diff --git a/test-suite/tests/compact-0074-context.jsonld b/test-suite/tests/compact-0074-context.jsonld new file mode 100644 index 000000000..6b952c2b4 --- /dev/null +++ b/test-suite/tests/compact-0074-context.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "name": { + "@type": "@id", + "@container": "@list", + "@id": "https://schema.org/name" + } + } +} \ No newline at end of file diff --git a/test-suite/tests/compact-0074-in.jsonld b/test-suite/tests/compact-0074-in.jsonld new file mode 100644 index 000000000..a89d800ba --- /dev/null +++ b/test-suite/tests/compact-0074-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "name": { + "@type": "@id", + "@container": "@list", + "@id": "https://schema.org/name" + } + }, + "name": [] +} \ No newline at end of file diff --git a/test-suite/tests/compact-0074-out.jsonld b/test-suite/tests/compact-0074-out.jsonld new file mode 100644 index 000000000..a89d800ba --- /dev/null +++ b/test-suite/tests/compact-0074-out.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "name": { + "@type": "@id", + "@container": "@list", + "@id": "https://schema.org/name" + } + }, + "name": [] +} \ No newline at end of file diff --git a/test-suite/tests/compact-manifest.jsonld b/test-suite/tests/compact-manifest.jsonld index 1cf5c3953..3d501992c 100644 --- a/test-suite/tests/compact-manifest.jsonld +++ b/test-suite/tests/compact-manifest.jsonld @@ -593,6 +593,14 @@ "input": "compact-0073-in.jsonld", "context": "compact-0073-context.jsonld", "expect": "compact-0073-out.jsonld" + }, { + "@id": "#t0074", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Container as a list with type of @id", + "purpose": "Ensure that compaction works for empty list when proparty has container declared as @list and type as @id", + "input": "compact-0074-in.jsonld", + "context": "compact-0074-context.jsonld", + "expect": "compact-0074-out.jsonld" }, { "@id": "#tc001", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],