Fix expansion test to keep unmapped properties
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Thu, 29 Mar 2012 01:28:20 +0800
changeset 417 2da486b08555
parent 416 63fa0b707804
child 419 af2af234c176
Fix expansion test to keep unmapped properties

Not sure what should happen during compaction.
test-suite/tests/expand-0003-out.jsonld
test-suite/tests/expand-manifest.jsonld
--- a/test-suite/tests/expand-0003-out.jsonld	Wed Mar 28 23:53:22 2012 +0800
+++ b/test-suite/tests/expand-0003-out.jsonld	Thu Mar 29 01:28:20 2012 +0800
@@ -1,3 +1,11 @@
 [{
-  "@id": "http://example.org/id"
-}]
\ No newline at end of file
+  "@id": "http://example.org/id",
+  "regularJson": {
+    "nonJsonLd": "property",
+    "deep": [{
+      "foo": "bar"
+    }, {
+      "bar": "foo"
+    }]
+  }
+}]
--- a/test-suite/tests/expand-manifest.jsonld	Wed Mar 28 23:53:22 2012 +0800
+++ b/test-suite/tests/expand-manifest.jsonld	Thu Mar 29 01:28:20 2012 +0800
@@ -16,7 +16,7 @@
     "expect": "expand-0002-out.jsonld"
   }, {
     "@type": ["test:TestCase", "jld:ExpandTest"],
-    "name": "drop null and unmapped properties",
+    "name": "drop null and keep unmapped properties",
     "input": "expand-0003-in.jsonld",
     "expect": "expand-0003-out.jsonld"
   }, {
@@ -70,4 +70,4 @@
     "input": "expand-0013-in.jsonld",
     "expect": "expand-0013-out.jsonld"
   }]
-}
\ No newline at end of file
+}