Change test to expand default language.
authorDave Longley <dlongley@digitalbazaar.com>
Thu, 12 Apr 2012 15:13:26 -0400
changeset 509 f101d7de2d1b
parent 508 16e640f2ef19
child 510 4e0b2bba0e9a
Change test to expand default language.
test-suite/tests/expand-0022-in.jsonld
test-suite/tests/expand-0022-out.jsonld
test-suite/tests/expand-manifest.jsonld
--- a/test-suite/tests/expand-0022-in.jsonld	Thu Apr 12 14:48:13 2012 -0400
+++ b/test-suite/tests/expand-0022-in.jsonld	Thu Apr 12 15:13:26 2012 -0400
@@ -1,12 +1,7 @@
 {
   "@context": {
-    "term1": {
-      "@id": "http://example.com/term1",
-      "@type": "http://example.com/type"
-    },
-    "term2": {"@id": "http://example.com/term2"},
+    "term": "http://example.com/term",
     "@language": "en"
   },
-  "term1": {"@value": "v1"},
-  "term2": {"@value": "v2"}
+  "term": "v"
 }
\ No newline at end of file
--- a/test-suite/tests/expand-0022-out.jsonld	Thu Apr 12 14:48:13 2012 -0400
+++ b/test-suite/tests/expand-0022-out.jsonld	Thu Apr 12 15:13:26 2012 -0400
@@ -1,4 +1,3 @@
 [{
-  "http://example.com/term1": [{"@value": "v1", "@type": "http://example.com/type"}],
-  "http://example.com/term2": [{"@value": "v2", "@language": "en"}]
+  "http://example.com/term": [{"@value": "v", "@language": "en"}]
 }]
\ No newline at end of file
--- a/test-suite/tests/expand-manifest.jsonld	Thu Apr 12 14:48:13 2012 -0400
+++ b/test-suite/tests/expand-manifest.jsonld	Thu Apr 12 15:13:26 2012 -0400
@@ -111,7 +111,7 @@
     "expect": "expand-0021-out.jsonld"
   }, {
     "@type": ["test:TestCase", "jld:ExpandTest"],
-    "name": "expand value that has only @value key",
+    "name": "expand value with default language",
     "input": "expand-0022-in.jsonld",
     "expect": "expand-0022-out.jsonld"
   }]