--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/expand-0033-in.jsonld Sun Oct 28 14:01:20 2012 +0100
@@ -0,0 +1,14 @@
+{
+ "@context": {
+ "@vocab": "http://example.com/vocab#",
+ "homepage": {
+ "@type": "@id"
+ },
+ "created_at": {
+ "@type": "http://www.w3.org/2001/XMLSchema#date"
+ }
+ },
+ "name": "Markus Lanthaler",
+ "homepage": "http://www.markus-lanthaler.com/",
+ "created_at": "2012-10-28"
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/expand-0033-out.jsonld Sun Oct 28 14:01:20 2012 +0100
@@ -0,0 +1,12 @@
+[{
+ "http://example.com/vocab#name": [{
+ "@value": "Markus Lanthaler"
+ }],
+ "http://example.com/vocab#homepage": [{
+ "@id": "http://www.markus-lanthaler.com/"
+ }],
+ "http://example.com/vocab#created_at": [{
+ "@value": "2012-10-28",
+ "@type": "http://www.w3.org/2001/XMLSchema#date"
+ }]
+}]
--- a/test-suite/tests/expand-manifest.jsonld Sun Oct 28 10:03:16 2012 +0100
+++ b/test-suite/tests/expand-manifest.jsonld Sun Oct 28 14:01:20 2012 +0100
@@ -166,6 +166,11 @@
"name": "setting @id to null has no effect when @vocab is used",
"input": "expand-0032-in.jsonld",
"expect": "expand-0032-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "Using @vocab with with type-coercion",
+ "input": "expand-0033-in.jsonld",
+ "expect": "expand-0033-out.jsonld"
}
]
}