Remove recursive lists from expand-0016
authorGregg Kellogg <gregg@kellogg-assoc.com>
Thu, 05 Apr 2012 16:08:28 -0700
changeset 458 112a699d2ab9
parent 457 5560d5e762ae
child 459 89034123b755
Remove recursive lists from expand-0016
test-suite/tests/expand-0016-in.jsonld
test-suite/tests/expand-0016-out.jsonld
--- a/test-suite/tests/expand-0016-in.jsonld	Thu Apr 05 12:18:20 2012 -0700
+++ b/test-suite/tests/expand-0016-in.jsonld	Thu Apr 05 16:08:28 2012 -0700
@@ -8,14 +8,14 @@
   },
   "@id": "http://example.org/id1",
   "mylist1": [],
-  "mylist2": [ { "@set": [] }, [], { "@set": [ 2, "hi" ] } ],
+  "mylist2": [ 2, "hi" ],
   "myset1": { "@set": [] },
   "myset2": [ { "@set": [] }, [], { "@set": [ null ] }, [ null ] ],
   "myproperty": {
     "@context": null,
     "@id": "http://example.org/id2",
     "mylist1": [],
-    "mylist2": [ { "@set": [] }, [], { "@set": [ 2, "hi" ] } ],
+    "mylist2": [ 2, "hi" ],
     "myset1": { "@set": [] },
     "myset2": [ { "@set": [] }, [], { "@set": [ null ] }, [ null ] ],
     "http://example.org/myproperty2": "ok"
@@ -23,7 +23,7 @@
   "http://example.com/emptyobj": {
     "@context": null,
     "mylist1": [],
-    "mylist2": [ { "@set": [] }, [], { "@set": [ 2, "hi" ] } ],
+    "mylist2": [ 2, "hi" ],
     "myset1": { "@set": [] },
     "myset2": [ { "@set": [] }, [], { "@set": [ null ] }, [ null ] ]
   }
--- a/test-suite/tests/expand-0016-out.jsonld	Thu Apr 05 12:18:20 2012 -0700
+++ b/test-suite/tests/expand-0016-out.jsonld	Thu Apr 05 16:08:28 2012 -0700
@@ -2,7 +2,7 @@
   {
     "@id": "http://example.org/id1",
     "http://example.com/mylist1": { "@list": [] },
-    "http://example.com/mylist2": { "@list": [ [] , [], [ 2, "hi" ] ] },
+    "http://example.com/mylist2": { "@list": [ 2, "hi" ] },
     "http://example.com/myset1": [ ],
     "http://example.com/myset2": [ ],
     "http://example.com/myproperty": [