Skip to content

Commit 8ec7642

Browse files
committed
Move some expand/toRdf tests to avoid rebase collisions.
1 parent c9ffc91 commit 8ec7642

File tree

6 files changed

+43
-15
lines changed

6 files changed

+43
-15
lines changed

tests/expand-manifest.jsonld

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1833,6 +1833,13 @@
18331833
"purpose": "The value for a @json @set term MUST be an array.",
18341834
"input": "expand/er57-in.jsonld",
18351835
"expectErrorCode": "invalid set or list object"
1836+
}, {
1837+
"@id": "#ter58",
1838+
"@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"],
1839+
"name": "Array not found for @json @set.",
1840+
"purpose": "The value for a @json @set term MUST be an array.",
1841+
"input": "expand/er57-in.jsonld",
1842+
"expectErrorCode": "invalid set or list object"
18361843
}, {
18371844
"@id": "#ter58",
18381845
"@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"],

tests/expand/er57-in.jsonld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"prop": {
44
"@id": "ex:prop",
55
"@type": "@json",
6-
"@container": "@list"
6+
"@container": "@set"
77
}
88
},
99
"prop": "value"

tests/expand/er58-in.jsonld

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"@context": {
3+
"prop": {
4+
"@id": "ex:prop",
5+
"@type": "@json",
6+
"@container": "@list"
7+
}
8+
},
9+
"prop": "value"
10+
}
11+

tests/toRdf-manifest.jsonld

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2252,19 +2252,19 @@
22522252
"input": "expand/er56-in.jsonld",
22532253
"expectErrorCode": "keyword redefinition"
22542254
}, {
2255-
"@id": "#ter56",
2256-
"@type": ["jld:NegativeEvaluationTest", "jld:ToRDFTest" ],
2257-
"name": "Array not found for @json @list.",
2258-
"purpose": "The value for a @json @list term MUST be an array.",
2259-
"input": "toRdf/er57-in.jsonld",
2260-
"expectErrorCode": "invalid set or list object"
2261-
}, {
2262-
"@id": "#ter57",
2263-
"@type": ["jld:NegativeEvaluationTest", "jld:ToRDFTest" ],
2264-
"name": "Array not found for @json @set.",
2265-
"purpose": "The value for a @json @set term MUST be an array.",
2266-
"input": "toRdf/er56-in.jsonld",
2267-
"expectErrorCode": "invalid set or list object"
2255+
"@id": "#ter57",
2256+
"@type": ["jld:NegativeEvaluationTest", "jld:ToRDFTest" ],
2257+
"name": "Array not found for @json @list.",
2258+
"purpose": "The value for a @json @list term MUST be an array.",
2259+
"input": "toRdf/er57-in.jsonld",
2260+
"expectErrorCode": "invalid set or list object"
2261+
}, {
2262+
"@id": "#ter58",
2263+
"@type": ["jld:NegativeEvaluationTest", "jld:ToRDFTest" ],
2264+
"name": "Array not found for @json @set.",
2265+
"purpose": "The value for a @json @set term MUST be an array.",
2266+
"input": "toRdf/er58-in.jsonld",
2267+
"expectErrorCode": "invalid set or list object"
22682268
}, {
22692269
"@id": "#tin01",
22702270
"@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"],

tests/toRdf/er57-in.jsonld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"prop": {
44
"@id": "ex:prop",
55
"@type": "@json",
6-
"@container": "@list"
6+
"@container": "@set"
77
}
88
},
99
"prop": "value"

tests/toRdf/er58-in.jsonld

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"@context": {
3+
"prop": {
4+
"@id": "ex:prop",
5+
"@type": "@json",
6+
"@container": "@list"
7+
}
8+
},
9+
"prop": "value"
10+
}

0 commit comments

Comments
 (0)