Added error test case for attempting to compact a list of lists.
authorGregg Kellogg <gregg@kellogg-assoc.com>
Tue, 27 Aug 2013 15:32:17 -0700
changeset 1937 4dc2f32b92f3
parent 1936 e38ef3b36c0a
child 1938 51ae432d8ca5
Added error test case for attempting to compact a list of lists.
test-suite/tests/error-0042-context.jsonld
test-suite/tests/error-0042-in.jsonld
test-suite/tests/error-manifest.jsonld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/error-0042-context.jsonld	Tue Aug 27 15:32:17 2013 -0700
@@ -0,0 +1,5 @@
+{
+  "@context": {
+    "list": {"@id": "http://example/list", "@container": "@list"}
+  }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/error-0042-in.jsonld	Tue Aug 27 15:32:17 2013 -0700
@@ -0,0 +1,3 @@
+{
+  "http://example/list": [{"@list": ["foo"]}, {"@list": ["bar"]}]
+}
\ No newline at end of file
--- a/test-suite/tests/error-manifest.jsonld	Tue Aug 27 13:33:45 2013 -0400
+++ b/test-suite/tests/error-manifest.jsonld	Tue Aug 27 15:32:17 2013 -0700
@@ -293,6 +293,14 @@
       "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"
+    }, {
+      "@id": "#t0042",
+      "@type": [ "jld:NegativeEvaluationTest", "jld:CompactTest" ],
+      "name": "Compaction to list of lists",
+      "purpose": "Verifies that an exception is raised in Compaction when attempting to compact a list of lists",
+      "input": "error-0042-in.jsonld",
+      "context": "error-0042-context.jsonld",
+      "expect": "compaction to list of lists"
     }
   ]
 }