Add test for property generators where IRIs match but data doesn't
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Sun, 10 Feb 2013 17:04:21 +0100
changeset 1199 df0ae8d4c7ef
parent 1198 a97d3fe2acbf
child 1200 76364dc5ae26
Add test for property generators where IRIs match but data doesn't
test-suite/tests/compact-0047-context.jsonld
test-suite/tests/compact-0047-in.jsonld
test-suite/tests/compact-0047-out.jsonld
test-suite/tests/compact-manifest.jsonld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/compact-0047-context.jsonld	Sun Feb 10 17:04:21 2013 +0100
@@ -0,0 +1,6 @@
+{
+  "@context": {
+    "prop1": { "@id": [ "http://example.com/iri-shared", "http://example.com/iri1"] },
+    "prop2": { "@id": [ "http://example.com/iri-shared", "http://example.com/iri2"] }
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/compact-0047-in.jsonld	Sun Feb 10 17:04:21 2013 +0100
@@ -0,0 +1,10 @@
+[
+    {
+      "http://example.com/iri1": [ { "@value": "a" } ],
+      "http://example.com/iri-shared": [
+        { "@value": "b" },
+        { "@value": "c" }
+      ],
+      "http://example.com/iri2": [ { "@value": "d" } ]
+    }
+]
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/compact-0047-out.jsonld	Sun Feb 10 17:04:21 2013 +0100
@@ -0,0 +1,13 @@
+{
+   "@context": {
+      "prop1": {
+         "@id": ["http://example.com/iri-shared", "http://example.com/iri1"]
+      },
+      "prop2": {
+         "@id": ["http://example.com/iri-shared", "http://example.com/iri2"]
+      }
+   },
+   "http://example.com/iri-shared": ["b", "c"],
+   "http://example.com/iri1": "a",
+   "http://example.com/iri2": "d"
+}
--- a/test-suite/tests/compact-manifest.jsonld	Sun Feb 10 16:42:27 2013 +0100
+++ b/test-suite/tests/compact-manifest.jsonld	Sun Feb 10 17:04:21 2013 +0100
@@ -282,6 +282,12 @@
       "input": "compact-0046-in.jsonld",
       "context": "compact-0046-context.jsonld",
       "expect": "compact-0046-out.jsonld"
+    }, {
+      "@type": ["test:TestCase", "jld:CompactTest"],
+      "name": "Property generators match IRIs but not data",
+      "input": "compact-0047-in.jsonld",
+      "context": "compact-0047-context.jsonld",
+      "expect": "compact-0047-out.jsonld"
     }
   ]
 }