Add test of base option in expansion manifest.
--- /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"
}
]
}