Extend expand-0018 to test that just strings get language-tagged
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Fri, 07 Dec 2012 01:30:22 +0100
changeset 997 861cf9127026
parent 996 a84c099c349f
child 998 80f8941d998a
Extend expand-0018 to test that just strings get language-tagged
test-suite/tests/expand-0018-in.jsonld
test-suite/tests/expand-0018-out.jsonld
test-suite/tests/expand-manifest.jsonld
--- a/test-suite/tests/expand-0018-in.jsonld	Fri Dec 07 01:12:24 2012 +0100
+++ b/test-suite/tests/expand-0018-in.jsonld	Fri Dec 07 01:30:22 2012 +0100
@@ -6,7 +6,19 @@
     "nolang": { "@id": "ex:nolang", "@language": null }
   },
   "@id": "http://example.org/test",
-  "ex:test-default": "hello",
-  "de": "hallo",
-  "nolang": "no language"
+  "ex:test-default": [
+    "hello",
+    1,
+    true
+  ],
+  "de": [
+    "hallo",
+    2,
+    true
+  ],
+  "nolang": [
+    "no language",
+    3,
+    false
+  ]
 }
--- a/test-suite/tests/expand-0018-out.jsonld	Fri Dec 07 01:12:24 2012 +0100
+++ b/test-suite/tests/expand-0018-out.jsonld	Fri Dec 07 01:30:22 2012 +0100
@@ -1,8 +1,8 @@
 [
   {
     "@id": "http://example.org/test",
-    "http://example.org/vocab#test-default": [ { "@value": "hello", "@language": "en" } ],
-    "http://example.org/vocab#german": [ { "@value": "hallo", "@language": "de" } ],
-    "http://example.org/vocab#nolang": [ {"@value": "no language"} ]
+    "http://example.org/vocab#test-default": [ { "@value": "hello", "@language": "en" }, { "@value": 1 }, { "@value": true } ],
+    "http://example.org/vocab#german": [ { "@value": "hallo", "@language": "de" }, { "@value": 2 }, { "@value": true } ],
+    "http://example.org/vocab#nolang": [ {"@value": "no language"}, { "@value": 3 }, { "@value": false } ]
   }
 ]
--- a/test-suite/tests/expand-manifest.jsonld	Fri Dec 07 01:12:24 2012 +0100
+++ b/test-suite/tests/expand-manifest.jsonld	Fri Dec 07 01:30:22 2012 +0100
@@ -93,7 +93,7 @@
       "expect": "expand-0017-out.jsonld"
     }, {
       "@type": ["test:TestCase", "jld:ExpandTest"],
-      "name": "override default @language in terms",
+      "name": "override default @language in terms; only language-tag strings",
       "input": "expand-0018-in.jsonld",
       "expect": "expand-0018-out.jsonld"
     }, {