Test round-tripping of relative URL
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Fri, 03 May 2013 11:17:50 +0200
changeset 1614 60076b8801e7
parent 1613 444416db39fe
child 1615 464ba6fcea77
Test round-tripping of relative URL

This addresses #244.
test-suite/tests/compact-0047-context.jsonld
test-suite/tests/compact-0047-in.jsonld
test-suite/tests/compact-0047-out.jsonld
test-suite/tests/compact-manifest.jsonld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/compact-0047-context.jsonld	Fri May 03 11:17:50 2013 +0200
@@ -0,0 +1,5 @@
+{
+  "@context": {
+    "link": { "@id": "http://example.com/link", "@type": "@id" }
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/compact-0047-in.jsonld	Fri May 03 11:17:50 2013 +0200
@@ -0,0 +1,6 @@
+{
+  "@context": {
+    "link": { "@id": "http://example.com/link", "@type": "@id" }
+  },
+  "link": "relative-url"
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/compact-0047-out.jsonld	Fri May 03 11:17:50 2013 +0200
@@ -0,0 +1,6 @@
+{
+  "@context": {
+    "link": { "@id": "http://example.com/link", "@type": "@id" }
+  },
+  "link": "relative-url"
+}
--- a/test-suite/tests/compact-manifest.jsonld	Thu May 02 16:51:48 2013 -0400
+++ b/test-suite/tests/compact-manifest.jsonld	Fri May 03 11:17:50 2013 +0200
@@ -329,6 +329,13 @@
       "context": "compact-0046-context.jsonld",
       "expect": "compact-0046-out.jsonld"
     }, {
+      "@id": "#t0047",
+      "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],
+      "name": "Round-trip relative URLs",
+      "input": "compact-0047-in.jsonld",
+      "context": "compact-0047-context.jsonld",
+      "expect": "compact-0047-out.jsonld"
+    }, {
       "@id": "#t0048",
       "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],
       "name": "Prefer terms with a language mapping set to null over terms without language-mapping for non-strings",