Test expansion of keyword aliases in term definitions
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Tue, 12 Feb 2013 12:04:07 +0100
changeset 1226 5dc427eae946
parent 1225 93e8f09bbb3e
child 1227 94d24e9dd299
Test expansion of keyword aliases in term definitions
test-suite/tests/expand-0051-in.jsonld
test-suite/tests/expand-0051-out.jsonld
test-suite/tests/expand-manifest.jsonld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/expand-0051-in.jsonld	Tue Feb 12 12:04:07 2013 +0100
@@ -0,0 +1,8 @@
+{
+  "@context": [
+    { "id": "@id" },
+    { "url": "id" }
+  ],
+  "url": "/issue/1",
+  "http://example.com/property": "ok"
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/expand-0051-out.jsonld	Tue Feb 12 12:04:07 2013 +0100
@@ -0,0 +1,6 @@
+[{
+   "http://example.com/property": [{
+      "@value": "ok"
+   }],
+   "@id": "http://json-ld.org/issue/1"
+}]
--- a/test-suite/tests/expand-manifest.jsonld	Tue Feb 12 11:47:35 2013 +0100
+++ b/test-suite/tests/expand-manifest.jsonld	Tue Feb 12 12:04:07 2013 +0100
@@ -256,6 +256,11 @@
       "name": "Context definitions using compact IRIs don't inherit the definitions of the prefix",
       "input": "expand-0050-in.jsonld",
       "expect": "expand-0050-out.jsonld"
+    }, {
+      "@type": ["test:TestCase", "jld:ExpandTest"],
+      "name": "Expansion of keyword aliases in term definitions",
+      "input": "expand-0051-in.jsonld",
+      "expect": "expand-0051-out.jsonld"
     }
   ]
 }