Add expansion test for blank term
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Fri, 04 May 2012 02:59:58 +0800
changeset 618 b069b6961456
parent 617 2c41954d107c
child 619 47c6b95254e4
Add expansion test for blank term
test-suite/tests/expand-0027-in.jsonld
test-suite/tests/expand-0027-out.jsonld
test-suite/tests/expand-manifest.jsonld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/expand-0027-in.jsonld	Fri May 04 02:59:58 2012 +0800
@@ -0,0 +1,10 @@
+{
+  "@context": {
+    "": {
+      "@id": "http://example.org/prop",
+      "@type": "@id"
+    }
+  },
+  "@id": "http://example.org/",
+  "": "http://example.org/blank"
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/expand-0027-out.jsonld	Fri May 04 02:59:58 2012 +0800
@@ -0,0 +1,10 @@
+[
+  {
+    "@id": "http://example.org/",
+    "http://example.org/prop": [
+      {
+          "@id": "http://example.org/blank"
+      }
+    ]
+  }
+]
--- a/test-suite/tests/expand-manifest.jsonld	Thu May 03 23:48:59 2012 +0800
+++ b/test-suite/tests/expand-manifest.jsonld	Fri May 04 02:59:58 2012 +0800
@@ -134,5 +134,11 @@
     "name": "Expanding term mapping to @type uses @type syntax",
     "input": "expand-0026-in.jsonld",
     "expect": "expand-0026-out.jsonld"
-  }]
+  }, {
+    "@type": ["test:TestCase", "jld:ExpandTest"],
+    "name": "Blank term",
+    "input": "expand-0027-in.jsonld",
+    "expect": "expand-0027-out.jsonld"
+  }
+  ]
 }