Update test suite according resolution of #202
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Wed, 19 Dec 2012 16:25:17 +0100
changeset 1065 eff829dcd859
parent 1064 4e6c300d6c88
child 1066 b88a5aaa4f44
Update test suite according resolution of #202
test-suite/tests/compact-0039-context.jsonld
test-suite/tests/compact-0039-in.jsonld
test-suite/tests/compact-0039-out.jsonld
test-suite/tests/compact-manifest.jsonld
test-suite/tests/expand-0021-in.jsonld
test-suite/tests/flatten-0021-in.jsonld
test-suite/tests/toRdf-0030-in.jsonld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/compact-0039-context.jsonld	Wed Dec 19 16:25:17 2012 +0100
@@ -0,0 +1,2 @@
+{
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/compact-0039-in.jsonld	Wed Dec 19 16:25:17 2012 +0100
@@ -0,0 +1,10 @@
+[
+  {
+     "@id": "http://example.com/graph/1",
+     "@graph": [
+       {
+          "@id": "http://example.com/node/1"
+       }
+     ]
+  }
+]
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/compact-0039-out.jsonld	Wed Dec 19 16:25:17 2012 +0100
@@ -0,0 +1,8 @@
+{
+   "@id": "http://example.com/graph/1",
+   "@graph": [
+     {
+        "@id": "http://example.com/node/1"
+     }
+   ]
+}
--- a/test-suite/tests/compact-manifest.jsonld	Wed Dec 19 15:10:27 2012 +0100
+++ b/test-suite/tests/compact-manifest.jsonld	Wed Dec 19 16:25:17 2012 +0100
@@ -234,5 +234,11 @@
     "input": "compact-0038-in.jsonld",
     "context": "compact-0038-context.jsonld",
     "expect": "compact-0038-out.jsonld"
+  }, {
+    "@type": ["test:TestCase", "jld:CompactTest"],
+    "name": "Value of @graph is always an array, do not compact @id objects",
+    "input": "compact-0039-in.jsonld",
+    "context": "compact-0039-context.jsonld",
+    "expect": "compact-0039-out.jsonld"
   }]
 }
--- a/test-suite/tests/expand-0021-in.jsonld	Wed Dec 19 15:10:27 2012 +0100
+++ b/test-suite/tests/expand-0021-in.jsonld	Wed Dec 19 16:25:17 2012 +0100
@@ -32,7 +32,9 @@
             "description": "More fun",
             "title": "Chapter Two"
           },
-          "http://example.org/test#chapter3"
+          {
+            "@id": "http://example.org/test#chapter3"
+          }
         ]
       }
     },
--- a/test-suite/tests/flatten-0021-in.jsonld	Wed Dec 19 15:10:27 2012 +0100
+++ b/test-suite/tests/flatten-0021-in.jsonld	Wed Dec 19 16:25:17 2012 +0100
@@ -32,7 +32,9 @@
             "description": "More fun",
             "title": "Chapter Two"
           },
-          "http://example.org/test#chapter3"
+          {
+            "@id": "http://example.org/test#chapter3"
+          }
         ]
       }
     },
--- a/test-suite/tests/toRdf-0030-in.jsonld	Wed Dec 19 15:10:27 2012 +0100
+++ b/test-suite/tests/toRdf-0030-in.jsonld	Wed Dec 19 16:25:17 2012 +0100
@@ -21,6 +21,8 @@
       "name": "Gregg Kellogg",
       "knows": "http://manu.sporny.org/i/public"
     },
-    "http://www.markus-lanthaler.com/"
+    {
+      "@id": "http://www.markus-lanthaler.com/"
+    }
   ]
-}
\ No newline at end of file
+}