Added conflicting indexes error test case.
authorGregg Kellogg <gregg@kellogg-assoc.com>
Tue, 27 Aug 2013 15:50:46 -0700
changeset 1938 51ae432d8ca5
parent 1937 4dc2f32b92f3
child 1939 3595c0e2368e
Added conflicting indexes error test case.
test-suite/tests/error-0043-in.jsonld
test-suite/tests/error-manifest.jsonld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/error-0043-in.jsonld	Tue Aug 27 15:50:46 2013 -0700
@@ -0,0 +1,10 @@
+[
+  {
+    "@id": "http://example/foo",
+    "@index": "bar"
+  },
+  {
+    "@id": "http://example/foo",
+    "@index": "baz"
+  }
+]
\ No newline at end of file
--- a/test-suite/tests/error-manifest.jsonld	Tue Aug 27 15:32:17 2013 -0700
+++ b/test-suite/tests/error-manifest.jsonld	Tue Aug 27 15:50:46 2013 -0700
@@ -301,6 +301,13 @@
       "input": "error-0042-in.jsonld",
       "context": "error-0042-context.jsonld",
       "expect": "compaction to list of lists"
+    }, {
+      "@id": "#t0043",
+      "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ],
+      "name": "Conflicting indexes",
+      "purpose": "Verifies that an exception is raised in Flattening when conflicting indexes are found",
+      "input": "error-0043-in.jsonld",
+      "expect": "conflicting indexes"
     }
   ]
 }