Add round tripping test for lists that contain just IRIs
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Mon, 11 Feb 2013 11:31:40 +0100
changeset 1205 d9d0ce837e30
parent 1204 ab406b72311f
child 1206 784b25bebcf5
Add round tripping test for lists that contain just IRIs
test-suite/tests/compact-0049-context.jsonld
test-suite/tests/compact-0049-in.jsonld
test-suite/tests/compact-0049-out.jsonld
test-suite/tests/compact-manifest.jsonld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/compact-0049-context.jsonld	Mon Feb 11 11:31:40 2013 +0100
@@ -0,0 +1,5 @@
+{
+  "@context": {
+    "property": { "@id": "http://example.org", "@type": "@id" }
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/compact-0049-in.jsonld	Mon Feb 11 11:31:40 2013 +0100
@@ -0,0 +1,6 @@
+{
+  "@context": {
+    "property": { "@id": "http://example.org", "@type": "@id" }
+  },
+  "property": { "@list": [ "http://example.com/node/a", "http://example.com/node/b", "http://example.com/node/c" ] }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/compact-0049-out.jsonld	Mon Feb 11 11:31:40 2013 +0100
@@ -0,0 +1,6 @@
+{
+  "@context": {
+    "property": { "@id": "http://example.org", "@type": "@id" }
+  },
+  "property": { "@list": [ "http://example.com/node/a", "http://example.com/node/b", "http://example.com/node/c" ] }
+}
--- a/test-suite/tests/compact-manifest.jsonld	Mon Feb 11 10:59:22 2013 +0100
+++ b/test-suite/tests/compact-manifest.jsonld	Mon Feb 11 11:31:40 2013 +0100
@@ -294,6 +294,12 @@
       "input": "compact-0048-in.jsonld",
       "context": "compact-0048-context.jsonld",
       "expect": "compact-0048-out.jsonld"
+    }, {
+      "@type": ["test:TestCase", "jld:CompactTest"],
+      "name": "Round tripping of lists that contain just IRIs",
+      "input": "compact-0049-in.jsonld",
+      "context": "compact-0049-context.jsonld",
+      "expect": "compact-0049-out.jsonld"
     }
   ]
 }