Add test for @value = null
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Mon, 09 Apr 2012 19:24:24 +0800
changeset 475 f024b8ab9163
parent 474 86b9e7034ff1
child 476 95cf53e4b075
Add test for @value = null
test-suite/tests/expand-0019-in.jsonld
test-suite/tests/expand-0019-out.jsonld
test-suite/tests/expand-manifest.jsonld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/expand-0019-in.jsonld	Mon Apr 09 19:24:24 2012 +0800
@@ -0,0 +1,6 @@
+{
+  "@context": {
+    "myproperty": "http://example.com/myproperty"
+  },
+  "myproperty": { "@value" : null }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/expand-0019-out.jsonld	Mon Apr 09 19:24:24 2012 +0800
@@ -0,0 +1,3 @@
+[
+  { }
+]
--- a/test-suite/tests/expand-manifest.jsonld	Mon Apr 09 19:05:49 2012 +0800
+++ b/test-suite/tests/expand-manifest.jsonld	Mon Apr 09 19:24:24 2012 +0800
@@ -94,5 +94,10 @@
     "name": "override default @language in terms",
     "input": "expand-0018-in.jsonld",
     "expect": "expand-0018-out.jsonld"
+  }, {
+    "@type": ["test:TestCase", "jld:ExpandTest"],
+    "name": "remove @value = null",
+    "input": "expand-0019-in.jsonld",
+    "expect": "expand-0019-out.jsonld"
   }]
 }