Skip to content

Commit 5f8becd

Browse files
committed
Update flatten-0004 and toRdf-0044, which had duplicate JSON keys, which was not the point of the test and causes errors in JSON parsers that are running in a strict mode.
1 parent 4e4468d commit 5f8becd

File tree

3 files changed

+14
-55
lines changed

3 files changed

+14
-55
lines changed

test-suite/tests/flatten-0004-in.jsonld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"http://example.org/list1": { "@list": [ null ] },
1414
"http://example.org/list2": { "@list": [ {"@value": null} ] },
1515
"http://example.org/set1": { "@set": [ ] },
16-
"http://example.org/set1": { "@set": [ null ] },
16+
"http://example.org/set2": { "@set": [ null ] },
1717
"http://example.org/set3": [ ],
1818
"http://example.org/set4": [ null ],
1919
"http://example.org/set5": "one item",
Lines changed: 12 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,25 @@
11
[
22
{
33
"@id": "http://example.org/id",
4-
"http://example.com/mylist1": [
5-
{
6-
"@list": [
7-
8-
]
9-
}
10-
],
4+
"http://example.com/mylist1": [{"@list": []}],
115
"http://example.com/mylist2": [
126
{
13-
"@list": [
14-
{
15-
"@value": "one item"
16-
}
17-
]
18-
}
19-
],
20-
"http://example.com/myset2": [
21-
22-
],
23-
"http://example.com/myset3": [
24-
{
25-
"@value": "v1"
26-
}
27-
],
28-
"http://example.org/list1": [
29-
{
30-
"@list": [
31-
32-
]
33-
}
34-
],
35-
"http://example.org/list2": [
36-
{
37-
"@list": [
38-
39-
]
7+
"@list": [{"@value": "one item"}]
408
}
419
],
10+
"http://example.com/myset2": [],
11+
"http://example.com/myset3": [{"@value": "v1"}],
12+
"http://example.org/list1": [{"@list": []}],
13+
"http://example.org/list2": [{"@list": []}],
4214
"http://example.org/property": [
4315
{
44-
"@list": [
45-
{
46-
"@value": "one item"
47-
}
48-
]
16+
"@list": [{"@value": "one item"}]
4917
}
5018
],
51-
"http://example.org/set1": [
52-
53-
],
54-
"http://example.org/set3": [
55-
56-
],
57-
"http://example.org/set4": [
58-
59-
],
60-
"http://example.org/set5": [
61-
{
62-
"@value": "one item"
63-
}
64-
]
19+
"http://example.org/set1": [],
20+
"http://example.org/set2": [],
21+
"http://example.org/set3": [],
22+
"http://example.org/set4": [],
23+
"http://example.org/set5": [{"@value": "one item"}]
6524
}
6625
]

test-suite/tests/toRdf-0044-in.jsonld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"http://example.org/list1": { "@list": [ null ] },
1414
"http://example.org/list2": { "@list": [ {"@value": null} ] },
1515
"http://example.org/set1": { "@set": [ ] },
16-
"http://example.org/set1": { "@set": [ null ] },
16+
"http://example.org/set2": { "@set": [ null ] },
1717
"http://example.org/set3": [ ],
1818
"http://example.org/set4": [ null ],
1919
"http://example.org/set5": "one item",

0 commit comments

Comments
 (0)