diff --git a/tests/expand-manifest.jsonld b/tests/expand-manifest.jsonld index 582bd482..e05ec027 100644 --- a/tests/expand-manifest.jsonld +++ b/tests/expand-manifest.jsonld @@ -1856,6 +1856,22 @@ "input": "expand/js12-in.jsonld", "expect": "expand/js12-out.jsonld", "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tjs13", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expand JSON literal with aliased @type", + "purpose": "Tests expanding JSON literal with aliased @type.", + "input": "expand/js13-in.jsonld", + "expect": "expand/js13-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tjs14", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expand JSON literal with aliased @value", + "purpose": "Tests expanding JSON literal with aliased @value.", + "input": "expand/js14-in.jsonld", + "expect": "expand/js14-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} }, { "@id": "#tl001", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], diff --git a/tests/expand/js13-in.jsonld b/tests/expand/js13-in.jsonld new file mode 100644 index 00000000..7da97503 --- /dev/null +++ b/tests/expand/js13-in.jsonld @@ -0,0 +1,12 @@ +{ + "@context": { + "@version": 1.1, + "type": "@type" + }, + "ex:foo": { + "type": "@json", + "@value": { + "test": 1 + } + } +} diff --git a/tests/expand/js13-out.jsonld b/tests/expand/js13-out.jsonld new file mode 100644 index 00000000..da4939cc --- /dev/null +++ b/tests/expand/js13-out.jsonld @@ -0,0 +1,8 @@ +[{ + "ex:foo": [{ + "@type": "@json", + "@value": { + "test": 1 + } + }] +}] diff --git a/tests/expand/js14-in.jsonld b/tests/expand/js14-in.jsonld new file mode 100644 index 00000000..f1799a35 --- /dev/null +++ b/tests/expand/js14-in.jsonld @@ -0,0 +1,12 @@ +{ + "@context": { + "@version": 1.1, + "value": "@value" + }, + "ex:foo": { + "@type": "@json", + "value": { + "test": 1 + } + } +} diff --git a/tests/expand/js14-out.jsonld b/tests/expand/js14-out.jsonld new file mode 100644 index 00000000..da4939cc --- /dev/null +++ b/tests/expand/js14-out.jsonld @@ -0,0 +1,8 @@ +[{ + "ex:foo": [{ + "@type": "@json", + "@value": { + "test": 1 + } + }] +}]