Add property generator round-trip test for empty arrays
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Sun, 10 Feb 2013 16:42:27 +0100
changeset 1198 a97d3fe2acbf
parent 1197 844f453a1f43
child 1199 df0ae8d4c7ef
Add property generator round-trip test for empty arrays
test-suite/tests/compact-0046-context.jsonld
test-suite/tests/compact-0046-in.jsonld
test-suite/tests/compact-0046-out.jsonld
test-suite/tests/compact-manifest.jsonld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/compact-0046-context.jsonld	Sun Feb 10 16:42:27 2013 +0100
@@ -0,0 +1,5 @@
+{
+  "@context": {
+    "name": { "@id": ["http://xmlns.com/foaf/0.1/name", "http://schema.org/name"] }
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/compact-0046-in.jsonld	Sun Feb 10 16:42:27 2013 +0100
@@ -0,0 +1,8 @@
+{
+  "@context": {
+    "name": { "@id": ["http://xmlns.com/foaf/0.1/name", "http://schema.org/name"] }
+  },
+  "@id": "http://me.markus-lanthaler.com/",
+  "name": [],
+  "http://xmlns.com/foaf/0.1/name": "Markus Lanthaler"
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/compact-0046-out.jsonld	Sun Feb 10 16:42:27 2013 +0100
@@ -0,0 +1,8 @@
+{
+  "@context": {
+    "name": { "@id": ["http://xmlns.com/foaf/0.1/name", "http://schema.org/name"] }
+  },
+  "@id": "http://me.markus-lanthaler.com/",
+  "name": [],
+  "http://xmlns.com/foaf/0.1/name": "Markus Lanthaler"
+}
--- a/test-suite/tests/compact-manifest.jsonld	Fri Feb 08 18:33:48 2013 +0100
+++ b/test-suite/tests/compact-manifest.jsonld	Sun Feb 10 16:42:27 2013 +0100
@@ -276,6 +276,12 @@
       "input": "compact-0045-in.jsonld",
       "context": "compact-0045-context.jsonld",
       "expect": "compact-0045-out.jsonld"
+    }, {
+      "@type": ["test:TestCase", "jld:CompactTest"],
+      "name": "Property generator empty array round-tripping",
+      "input": "compact-0046-in.jsonld",
+      "context": "compact-0046-context.jsonld",
+      "expect": "compact-0046-out.jsonld"
     }
   ]
 }