Finished all error cases in Expansion algorithm.
authorGregg Kellogg <gregg@kellogg-assoc.com>
Mon, 26 Aug 2013 22:10:29 -0700
changeset 1935 04f60b642e2c
parent 1934 063b36fdd3e1
child 1936 e38ef3b36c0a
Finished all error cases in Expansion algorithm.
test-suite/tests/error-0035-in.jsonld
test-suite/tests/error-0036-in.jsonld
test-suite/tests/error-0037-in.jsonld
test-suite/tests/error-0038-in.jsonld
test-suite/tests/error-0039-in.jsonld
test-suite/tests/error-0040-in.jsonld
test-suite/tests/error-0041-in.jsonld
test-suite/tests/error-manifest.jsonld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/error-0035-in.jsonld	Mon Aug 26 22:10:29 2013 -0700
@@ -0,0 +1,13 @@
+{
+  "@context": {
+    "vocab": "http://example.com/vocab/",
+    "label": {
+      "@id": "vocab:label",
+      "@container": "@language"
+    }
+  },
+  "@id": "http://example.com/queen",
+  "label": {
+    "en": true
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/error-0036-in.jsonld	Mon Aug 26 22:10:29 2013 -0700
@@ -0,0 +1,7 @@
+{
+  "@context": {
+    "term": {"@reverse": "http://example/reverse"}
+  },
+  "@id": "http://example/foo",
+  "term": {"@list": ["http://example/bar"]}
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/error-0037-in.jsonld	Mon Aug 26 22:10:29 2013 -0700
@@ -0,0 +1,3 @@
+{
+  "http://example/foo": {"@value": "bar", "@id": "http://example/baz"}
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/error-0038-in.jsonld	Mon Aug 26 22:10:29 2013 -0700
@@ -0,0 +1,3 @@
+{
+  "http://example/foo": {"@value": "bar", "@language": "en", "@type": "http://example/type"}
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/error-0039-in.jsonld	Mon Aug 26 22:10:29 2013 -0700
@@ -0,0 +1,3 @@
+{
+  "http://example/foo": {"@value": true, "@language": "en"}
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/error-0040-in.jsonld	Mon Aug 26 22:10:29 2013 -0700
@@ -0,0 +1,3 @@
+{
+  "http://example/foo": {"@value": "bar", "@type": "_:dt"}
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/error-0041-in.jsonld	Mon Aug 26 22:10:29 2013 -0700
@@ -0,0 +1,3 @@
+{
+  "http://example/prop": {"@list": ["foo"], "@id": "http://example/bar"}
+}
\ No newline at end of file
--- a/test-suite/tests/error-manifest.jsonld	Mon Aug 26 18:24:50 2013 -0700
+++ b/test-suite/tests/error-manifest.jsonld	Mon Aug 26 22:10:29 2013 -0700
@@ -240,10 +240,59 @@
     }, {
       "@id": "#t0034",
       "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ],
-      "name": "Invalid reverse property value",
+      "name": "Invalid reverse property value (in @reverse)",
       "purpose": "Verifies that an exception is raised in Expansion when an invalid reverse property value is found",
       "input": "error-0034-in.jsonld",
       "expect": "invalid reverse property value"
+    }, {
+      "@id": "#t0035",
+      "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ],
+      "name": "Invalid language map value",
+      "purpose": "Verifies that an exception is raised in Expansion when an invalid language map value is found",
+      "input": "error-0035-in.jsonld",
+      "expect": "invalid language map value"
+    }, {
+      "@id": "#t0036",
+      "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ],
+      "name": "Invalid reverse property value (through coercion)",
+      "purpose": "Verifies that an exception is raised in Expansion when an invalid reverse property value is found",
+      "input": "error-0036-in.jsonld",
+      "expect": "invalid reverse property value"
+    }, {
+      "@id": "#t0037",
+      "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ],
+      "name": "Invalid value object (unexpected keyword)",
+      "purpose": "Verifies that an exception is raised in Expansion when an invalid value object is found",
+      "input": "error-0037-in.jsonld",
+      "expect": "invalid value object"
+    }, {
+      "@id": "#t0038",
+      "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ],
+      "name": "Invalid value object (@type and @language)",
+      "purpose": "Verifies that an exception is raised in Expansion when an invalid value object is found",
+      "input": "error-0038-in.jsonld",
+      "expect": "invalid value object"
+    }, {
+      "@id": "#t0039",
+      "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ],
+      "name": "Invalid language-tagged value",
+      "purpose": "Verifies that an exception is raised in Expansion when an invalid language-tagged value is found",
+      "input": "error-0039-in.jsonld",
+      "expect": "invalid language-tagged value"
+    }, {
+      "@id": "#t0040",
+      "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ],
+      "name": "Invalid typed value",
+      "purpose": "Verifies that an exception is raised in Expansion when an invalid typed value is found",
+      "input": "error-0040-in.jsonld",
+      "expect": "invalid typed value"
+    }, {
+      "@id": "#t0041",
+      "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ],
+      "name": "Invalid set or list object",
+      "purpose": "Verifies that an exception is raised in Expansion when an invalid set or list object is found",
+      "input": "error-0041-in.jsonld",
+      "expect": "invalid set or list object"
     }
   ]
 }