Add simple named graph normalization test.
authorDave Longley <dlongley@digitalbazaar.com>
Fri, 15 Feb 2013 14:06:50 -0500
changeset 1274 f314de571def
parent 1273 624011ce90e4
child 1275 c71d57391110
Add simple named graph normalization test.
test-suite/tests/normalize-0057-in.jsonld
test-suite/tests/normalize-0057-out.nq
test-suite/tests/normalize-manifest.jsonld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/normalize-0057-in.jsonld	Fri Feb 15 14:06:50 2013 -0500
@@ -0,0 +1,14 @@
+{
+  "@context": {
+    "name": "http://xmlns.com/foaf/0.1/name",
+    "homepage": {
+      "@id": "http://xmlns.com/foaf/0.1/homepage",
+      "@type": "@id"
+    }
+  },
+  "@id": "_:graph1",
+  "@graph": {
+    "name": "Manu Sporny",
+    "homepage": "http://manu.sporny.org/"
+  }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/normalize-0057-out.nq	Fri Feb 15 14:06:50 2013 -0500
@@ -0,0 +1,2 @@
+_:c14n1 <http://xmlns.com/foaf/0.1/homepage> <http://manu.sporny.org/> _:c14n0 .
+_:c14n1 <http://xmlns.com/foaf/0.1/name> "Manu Sporny" _:c14n0 .
--- a/test-suite/tests/normalize-manifest.jsonld	Fri Feb 15 14:00:49 2013 -0500
+++ b/test-suite/tests/normalize-manifest.jsonld	Fri Feb 15 14:06:50 2013 -0500
@@ -285,5 +285,10 @@
     "name": "simple reorder (2)",
     "input": "normalize-0056-in.jsonld",
     "expect": "normalize-0056-out.nq"
+  }, {
+    "@type": ["test:TestCase", "jld:NormalizeTest"],
+    "name": "unnamed graph",
+    "input": "normalize-0057-in.jsonld",
+    "expect": "normalize-0057-out.nq"
   }]
 }