Add test (re)defining compact IRI w/itself using string not @id.
--- /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"
}
]
}