Added expand-0025 for some problematic IRI expansion cases.
authorGregg Kellogg <gregg@kellogg-assoc.com>
Thu, 19 Apr 2012 18:27:34 -0700
changeset 545 0a13b196ea64
parent 544 d78f856fffca
child 546 17f8807833db
child 547 3dbe4afcbd00
Added expand-0025 for some problematic IRI expansion cases.
test-suite/tests/expand-0025-in.jsonld
test-suite/tests/expand-0025-out.jsonld
test-suite/tests/expand-manifest.jsonld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/expand-0025-in.jsonld	Thu Apr 19 18:27:34 2012 -0700
@@ -0,0 +1,10 @@
+{
+  "@context": {
+    "foo": "http://example.com/foo/",
+    "foo:bar": "http://example.com/bar",
+    "bar": {"@id": "foo:bar", "@type": "@id"},
+    "_": "http://example.com/underscore/"
+  },
+  "@id": "_",
+  "bar": ["foo", "foo:bar"]
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/expand-0025-out.jsonld	Thu Apr 19 18:27:34 2012 -0700
@@ -0,0 +1,7 @@
+[{
+  "@id": "http://example.com/underscore/",
+  "http://example.com/bar": [
+    {"@id": "http://example.com/foo/"},
+    {"@id": "http://example.com/bar"}
+  ]
+}]
\ No newline at end of file
--- a/test-suite/tests/expand-manifest.jsonld	Thu Apr 19 17:57:58 2012 -0700
+++ b/test-suite/tests/expand-manifest.jsonld	Thu Apr 19 18:27:34 2012 -0700
@@ -124,5 +124,10 @@
     "name": "Multiple contexts",
     "input": "expand-0024-in.jsonld",
     "expect": "expand-0024-out.jsonld"
+  }, {
+    "@type": ["test:TestCase", "jld:ExpandTest"],
+    "name": "Problematic IRI expansion tests",
+    "input": "expand-0025-in.jsonld",
+    "expect": "expand-0025-out.jsonld"
   }]
 }