Add test for redefining a term using @vocab, not itself.
authorDave Longley <dlongley@digitalbazaar.com>
Mon, 15 Apr 2013 13:39:08 -0400
changeset 1591 4c7e3d38b2ca
parent 1590 39fc540bcf52
child 1592 a641c749c3e6
Add test for redefining a term using @vocab, not itself.
test-suite/tests/expand-0072-in.jsonld
test-suite/tests/expand-0072-out.jsonld
test-suite/tests/expand-manifest.jsonld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/expand-0072-in.jsonld	Mon Apr 15 13:39:08 2013 -0400
@@ -0,0 +1,13 @@
+{
+  "@context": [
+    {
+      "v": "http://example.com/vocab#",
+      "term": "v:somethingElse"
+    },
+    {
+      "@vocab": "http://example.com/anotherVocab#",
+      "term": "term"
+    }
+  ],
+  "term": "value of term"
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/expand-0072-out.jsonld	Mon Apr 15 13:39:08 2013 -0400
@@ -0,0 +1,7 @@
+[
+  {
+    "http://example.com/anotherVocab#term": [
+      { "@value": "value of term" }
+    ]
+  }
+]
--- a/test-suite/tests/expand-manifest.jsonld	Mon Apr 15 19:14:21 2013 +0200
+++ b/test-suite/tests/expand-manifest.jsonld	Mon Apr 15 13:39:08 2013 -0400
@@ -428,6 +428,12 @@
       "name": "Redefine term and a term looking like a compact IRI reusing a previous definition",
       "input": "expand-0071-in.jsonld",
       "expect": "expand-0071-out.jsonld"
+    }, {
+      "@id": "#t0071",
+      "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"],
+      "name": "Redefine term using @vocab, not itself",
+      "input": "expand-0072-in.jsonld",
+      "expect": "expand-0072-out.jsonld"
     }
   ]
 }