Add @list normalization test case.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/normalize-0053-in.jsonld Wed Mar 28 12:30:41 2012 -0400
@@ -0,0 +1,8 @@
+{
+ "@context": {
+ "prop1": "http://example.org/test#property1",
+ "prop2": {"@id": "http://example.org/test#property2", "@container": "@list"}
+ },
+ "prop1": {"@list": ["1","2","3"]},
+ "prop2": ["4","5","6"]
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/normalize-0053-out.jsonld Wed Mar 28 12:30:41 2012 -0400
@@ -0,0 +1,84 @@
+[
+ {
+ "@id": "_:c14n0",
+ "http://www.w3.org/1999/02/22-rdf-syntax-ns#first": [
+ "6"
+ ],
+ "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest": [
+ {
+ "@id": "http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"
+ }
+ ]
+ },
+ {
+ "@id": "_:c14n1",
+ "http://www.w3.org/1999/02/22-rdf-syntax-ns#first": [
+ "4"
+ ],
+ "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest": [
+ {
+ "@id": "_:c14n2"
+ }
+ ]
+ },
+ {
+ "@id": "_:c14n2",
+ "http://www.w3.org/1999/02/22-rdf-syntax-ns#first": [
+ "5"
+ ],
+ "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest": [
+ {
+ "@id": "_:c14n0"
+ }
+ ]
+ },
+ {
+ "@id": "_:c14n3",
+ "http://www.w3.org/1999/02/22-rdf-syntax-ns#first": [
+ "1"
+ ],
+ "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest": [
+ {
+ "@id": "_:c14n4"
+ }
+ ]
+ },
+ {
+ "@id": "_:c14n4",
+ "http://www.w3.org/1999/02/22-rdf-syntax-ns#first": [
+ "2"
+ ],
+ "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest": [
+ {
+ "@id": "_:c14n5"
+ }
+ ]
+ },
+ {
+ "@id": "_:c14n5",
+ "http://www.w3.org/1999/02/22-rdf-syntax-ns#first": [
+ "3"
+ ],
+ "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest": [
+ {
+ "@id": "http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"
+ }
+ ]
+ },
+ {
+ "@id": "_:c14n6",
+ "http://example.org/test#property1": [
+ {
+ "@id": "_:c14n3"
+ }
+ ],
+ "http://example.org/test#property2": [
+ {
+ "@id": "_:c14n1"
+ }
+ ]
+ },
+ {
+ "@id": "http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"
+ }
+]
\ No newline at end of file
--- a/test-suite/tests/normalize-manifest.jsonld Wed Mar 28 23:53:22 2012 +0800
+++ b/test-suite/tests/normalize-manifest.jsonld Wed Mar 28 12:30:41 2012 -0400
@@ -264,5 +264,10 @@
"name": "alias keywords",
"input": "normalize-0052-in.jsonld",
"expect": "normalize-0052-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:NormalizeTest"],
+ "name": "@list",
+ "input": "normalize-0053-in.jsonld",
+ "expect": "normalize-0053-out.jsonld"
}]
}