Add test of base option in expansion manifest.
authorGregg Kellogg <gregg@kellogg-assoc.com>
Tue, 27 Aug 2013 16:17:46 -0700
changeset 1942 b2e8e1583cc6
parent 1941 3341f839fed5
child 1943 ec7cb1029453
Add test of base option in expansion manifest.
test-suite/tests/expand-0076-in.jsonld
test-suite/tests/expand-0076-out.jsonld
test-suite/tests/expand-manifest.jsonld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/expand-0076-in.jsonld	Tue Aug 27 16:17:46 2013 -0700
@@ -0,0 +1,4 @@
+{
+  "@id": "relative-iri",
+  "http://prop": "value"
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/expand-0076-out.jsonld	Tue Aug 27 16:17:46 2013 -0700
@@ -0,0 +1,4 @@
+[{
+  "@id": "http://example/base/relative-iri",
+  "http://prop": [{"@value": "value"}]
+}]
--- a/test-suite/tests/expand-manifest.jsonld	Tue Aug 27 16:06:31 2013 -0700
+++ b/test-suite/tests/expand-manifest.jsonld	Tue Aug 27 16:17:46 2013 -0700
@@ -531,6 +531,16 @@
       "purpose": "Use @vocab to map all properties to blank node identifiers",
       "input": "expand-0075-in.jsonld",
       "expect": "expand-0075-out.jsonld"
+    }, {
+      "@id": "#t0076",
+      "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"],
+      "name": "base option overrides document location",
+      "purpose": "Use of the base option overrides the document location",
+      "option": {
+        "base": "http://example/base/"
+      },
+      "input": "expand-0076-in.jsonld",
+      "expect": "expand-0076-out.jsonld"
     }
   ]
 }