Added expand-0025 for some problematic IRI expansion cases.
--- /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"
}]
}