Added error test case for attempting to compact a list of lists.
--- /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"
}
]
}