Added flatten-0043 to verify that a test manifest is flattened properly. This validates issue #248
authorGregg Kellogg <gregg@kellogg-assoc.com>
Fri, 17 May 2013 19:54:57 -0700
changeset 1665 b9f452c3e5fd
parent 1664 189a949ca4ca
child 1667 dd60b86f5ac3
Added flatten-0043 to verify that a test manifest is flattened properly. This validates issue #248
test-suite/tests/flatten-0043-in.jsonld
test-suite/tests/flatten-0043-out.jsonld
test-suite/tests/flatten-manifest.jsonld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/flatten-0043-in.jsonld	Fri May 17 19:54:57 2013 -0700
@@ -0,0 +1,10 @@
+{
+  "@id": "",
+  "http://example/sequence": {"@list": [
+    {
+      "@id": "#t0001",
+      "http://example/name": "Keywords cannot be aliased to other keywords",
+      "http://example/input": {"@id": "error-expand-0001-in.jsonld"}
+    }
+  ]}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/flatten-0043-out.jsonld	Fri May 17 19:54:57 2013 -0700
@@ -0,0 +1,18 @@
+[
+  {"@id": "http://json-ld.org/test-suite/tests/error-expand-0001-in.jsonld"},
+  {
+    "@id": "http://json-ld.org/test-suite/tests/flatten-0043-in.jsonld",
+    "http://example/sequence": [
+      {"@list": [{"@id": "http://json-ld.org/test-suite/tests/flatten-0043-in.jsonld#t0001"}]}
+    ]
+  },
+  {
+    "@id": "http://json-ld.org/test-suite/tests/flatten-0043-in.jsonld#t0001",
+    "http://example/input": [
+      {"@id": "http://json-ld.org/test-suite/tests/error-expand-0001-in.jsonld"}
+    ],
+    "http://example/name": [
+      {"@value": "Keywords cannot be aliased to other keywords"}
+    ]
+  }
+]
\ No newline at end of file
--- a/test-suite/tests/flatten-manifest.jsonld	Fri May 17 12:45:55 2013 -0700
+++ b/test-suite/tests/flatten-manifest.jsonld	Fri May 17 19:54:57 2013 -0700
@@ -258,6 +258,12 @@
       "name": "Lists objects are implicit unlabeled blank nodes and thus never equivalent",
       "input": "flatten-0042-in.jsonld",
       "expect": "flatten-0042-out.jsonld"
+    }, {
+      "@id": "#t0043",
+      "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"],
+      "name": "Sample test manifest extract",
+      "input": "flatten-0043-in.jsonld",
+      "expect": "flatten-0043-out.jsonld"
     }
   ]
 }