Keep duplicates in @list and @set in compaction
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Fri, 07 Dec 2012 01:12:24 +0100
changeset 996 a84c099c349f
parent 995 9b207ba64cb8
child 997 861cf9127026
Keep duplicates in @list and @set in compaction

This addresses #129.
test-suite/tests/compact-0019-in.jsonld
test-suite/tests/compact-0019-out.jsonld
test-suite/tests/compact-manifest.jsonld
--- a/test-suite/tests/compact-0019-in.jsonld	Thu Dec 06 23:36:44 2012 +0100
+++ b/test-suite/tests/compact-0019-in.jsonld	Fri Dec 07 01:12:24 2012 +0100
@@ -11,6 +11,7 @@
   "http://example.com/myset": [
     {"@value": 1},
     {"@value": 2},
+    {"@value": 2},
     {"@value": 3}
   ]
-}]
\ No newline at end of file
+}]
--- a/test-suite/tests/compact-0019-out.jsonld	Thu Dec 06 23:36:44 2012 +0100
+++ b/test-suite/tests/compact-0019-out.jsonld	Fri Dec 07 01:12:24 2012 +0100
@@ -5,5 +5,5 @@
   },
   "@id": "http://example.org/id",
   "mylist": [1, 2, 2, 3],
-  "myset": [1, 2, 3]
-}
\ No newline at end of file
+  "myset": [1, 2, 2, 3]
+}
--- a/test-suite/tests/compact-manifest.jsonld	Thu Dec 06 23:36:44 2012 +0100
+++ b/test-suite/tests/compact-manifest.jsonld	Fri Dec 07 01:12:24 2012 +0100
@@ -116,7 +116,7 @@
     "expect": "compact-0018-out.jsonld"
   }, {
     "@type": ["test:TestCase", "jld:CompactTest"],
-    "name": "Keep duplicate values in @list, remove from @set",
+    "name": "Keep duplicate values in @list and @set",
     "input": "compact-0019-in.jsonld",
     "context": "compact-0019-context.jsonld",
     "expect": "compact-0019-out.jsonld"