Change test containing list of sets to test set of sets
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Thu, 05 Apr 2012 22:47:04 +0800
changeset 456 934e71f4d314
parent 455 a4ce4cd4afe0
child 457 5560d5e762ae
Change test containing list of sets to test set of sets
test-suite/tests/expand-0015-in.jsonld
test-suite/tests/expand-0015-out.jsonld
test-suite/tests/expand-manifest.jsonld
--- a/test-suite/tests/expand-0015-in.jsonld	Wed Apr 04 23:00:49 2012 -0700
+++ b/test-suite/tests/expand-0015-in.jsonld	Thu Apr 05 22:47:04 2012 +0800
@@ -3,11 +3,12 @@
     "mylist1": {"@id": "http://example.com/mylist1", "@container": "@list"},
     "mylist2": {"@id": "http://example.com/mylist2", "@container": "@list"},
     "myset1": {"@id": "http://example.com/myset1", "@container": "@set" },
-    "myset2": {"@id": "http://example.com/myset2", "@container": "@set" }
+    "myset2": {"@id": "http://example.com/myset2", "@container": "@set" },
+    "myset3": {"@id": "http://example.com/myset3", "@container": "@set" }
   },
   "@id": "http://example.org/id",
   "mylist1": [],
-  "mylist2": [ { "@set": [] }, [], { "@set": [ 2, "hi" ] } ],
   "myset1": { "@set": [] },
-  "myset2": [ { "@set": [] }, [], { "@set": [ null ] }, [ null ] ]
+  "myset2": [ { "@set": [] }, [], { "@set": [ null ] }, [ null ] ],
+  "myset3": [ { "@set": [ "hello", "this" ] }, "will", { "@set": [ "be", "collapsed" ] } ]
 }
--- a/test-suite/tests/expand-0015-out.jsonld	Wed Apr 04 23:00:49 2012 -0700
+++ b/test-suite/tests/expand-0015-out.jsonld	Thu Apr 05 22:47:04 2012 +0800
@@ -2,8 +2,8 @@
   {
     "@id": "http://example.org/id",
     "http://example.com/mylist1": { "@list": [] },
-    "http://example.com/mylist2": { "@list": [ [] , [], [ 2, "hi" ] ] },
-    "http://example.com/myset1": [],
-    "http://example.com/myset2": [ ]
+    "http://example.com/myset1": [ ],
+    "http://example.com/myset2": [ ],
+    "http://example.com/myset3": [ "hello", "this", "will", "be", "collapsed" ]
   }
 ]
--- a/test-suite/tests/expand-manifest.jsonld	Wed Apr 04 23:00:49 2012 -0700
+++ b/test-suite/tests/expand-manifest.jsonld	Thu Apr 05 22:47:04 2012 +0800
@@ -76,7 +76,7 @@
     "expect": "expand-0014-out.jsonld"
   }, {
     "@type": ["test:TestCase", "jld:ExpandTest"],
-    "name": "keep lists of sets (also empty ones), optimize set of sets",
+    "name": "collapse set of sets, keep empty lists",
     "input": "expand-0015-in.jsonld",
     "expect": "expand-0015-out.jsonld"
   }, {