Add test (re)defining compact IRI w/itself using string not @id.
authorDave Longley <dlongley@digitalbazaar.com>
Mon, 15 Apr 2013 11:09:49 -0400
changeset 1587 926b73915ffe
parent 1586 e0f751d4968c
child 1588 e8150785130a
Add test (re)defining compact IRI w/itself using string not @id.
test-suite/tests/expand-0070-in.jsonld
test-suite/tests/expand-0070-out.jsonld
test-suite/tests/expand-manifest.jsonld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/expand-0070-in.jsonld	Mon Apr 15 11:09:49 2013 -0400
@@ -0,0 +1,9 @@
+{
+  "@context": {
+    "prefix": "http://www.example.org/vocab#",
+    "prefix:foo": "prefix:foo"
+  },
+  "@id": "http://example.com/vocab#id",
+  "@type": "prefix:Class",
+  "prefix:foo": "bar"
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/expand-0070-out.jsonld	Mon Apr 15 11:09:49 2013 -0400
@@ -0,0 +1,9 @@
+[
+  {
+    "@id": "http://example.com/vocab#id",
+    "@type": [ "http://www.example.org/vocab#Class" ],
+    "http://www.example.org/vocab#foo": [
+      { "@value": "bar"}
+    ]
+  }
+]
--- a/test-suite/tests/expand-manifest.jsonld	Mon Apr 15 10:46:46 2013 -0400
+++ b/test-suite/tests/expand-manifest.jsonld	Mon Apr 15 11:09:49 2013 -0400
@@ -416,6 +416,12 @@
       "name": "Redefine compact IRI to define type mapping using the compact IRI itself as value of @id",
       "input": "expand-0069-in.jsonld",
       "expect": "expand-0069-out.jsonld"
+    }, {
+      "@id": "#t0069",
+      "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"],
+      "name": "Redefine compact IRI to define type mapping using the compact IRI itself as string value",
+      "input": "expand-0070-in.jsonld",
+      "expect": "expand-0070-out.jsonld"
     }
   ]
 }