Skip to content

Commit baaae03

Browse files
committed
format test/Examples json files
1 parent 1ac976c commit baaae03

10 files changed

+337
-2086
lines changed

test/Examples/demo_diff.json

Lines changed: 10 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,18 @@
44
0,
55
2
66
],
7-
"surface": [
8-
17840000,
9-
0,
10-
0
11-
],
7+
"surface": [17840000, 0, 0],
128
"demographics": {
13-
"population": [
14-
385742554,
15-
385744896
16-
]
9+
"population": [385742554, 385744896]
1710
},
1811
"languages": {
19-
"2": [
20-
"inglés"
21-
],
12+
"2": ["inglés"],
2213
"_t": "a",
23-
"_2": [
24-
"english",
25-
0,
26-
0
27-
]
14+
"_2": ["english", 0, 0]
2815
},
2916
"countries": {
3017
"0": {
31-
"capital": [
32-
"Buenos Aires",
33-
"Rawson"
34-
]
18+
"capital": ["Buenos Aires", "Rawson"]
3519
},
3620
"9": [
3721
{
@@ -40,21 +24,11 @@
4024
}
4125
],
4226
"10": {
43-
"population": [
44-
42888594
45-
]
27+
"population": [42888594]
4628
},
4729
"_t": "a",
48-
"_4": [
49-
"",
50-
10,
51-
3
52-
],
53-
"_8": [
54-
"",
55-
2,
56-
3
57-
],
30+
"_4": ["", 10, 3],
31+
"_8": ["", 2, 3],
5832
"_10": [
5933
{
6034
"name": "Uruguay",
@@ -76,7 +50,5 @@
7650
0
7751
]
7852
},
79-
"spanishName": [
80-
"Sudamérica"
81-
]
82-
}
53+
"spanishName": ["Sudamérica"]
54+
}

test/Examples/demo_diff_jsonpatch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@
8686
"path": "/spanishName",
8787
"value": "Sudam\u00E9rica"
8888
}
89-
]
89+
]

test/Examples/demo_diff_notext.json

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,14 @@
33
"South America (Spanish: Am\u00E9rica del Sur, Sudam\u00E9rica or \nSuram\u00E9rica; Portuguese: Am\u00E9rica do Sul; Quechua and Aymara: \nUrin Awya Yala; Guarani: \u00D1embyam\u00E9rika; Dutch: Zuid-Amerika; \nFrench: Am\u00E9rique du Sud) is a continent situated in the \nWestern Hemisphere, mostly in the Southern Hemisphere, with \na relatively small portion in the Northern Hemisphere. \nThe continent is also considered a subcontinent of the \nAmericas.[2][3] It is bordered on the west by the Pacific \nOcean and on the north and east by the Atlantic Ocean; \nNorth America and the Caribbean Sea lie to the northwest. \nIt includes twelve countries: Argentina, Bolivia, Brazil, \nChile, Colombia, Ecuador, Guyana, Paraguay, Peru, Suriname, \nUruguay, and Venezuela. The South American nations that \nborder the Caribbean Sea\u2014including Colombia, Venezuela, \nGuyana, Suriname, as well as French Guiana, which is an \noverseas region of France\u2014are also known as Caribbean South \nAmerica. South America has an area of 17,840,000 square \nkilometers (6,890,000 sq mi). Its population as of 2005 \nhas been estimated at more than 371,090,000. South America \nranks fourth in area (after Asia, Africa, and North America) \nand fifth in population (after Asia, Africa, Europe, and \nNorth America). The word America was coined in 1507 by \ncartographers Martin Waldseem\u00FCller and Matthias Ringmann, \nafter Amerigo Vespucci, who was the first European to \nsuggest that the lands newly discovered by Europeans were \nnot India, but a New World unknown to Europeans.",
44
"South America (Spanish: Am\u00E9rica del Sur, Sudam\u00E9rica or \nSuram\u00E9rica; Portuguese: Am\u00E9rica do Sul; Quechua and Aymara: \nUrin Awya Yala; Guarani: \u00D1embyam\u00E9rika; Dutch: Zuid-Amerika; \nFrench: Am\u00E9rique du Sud) is a continent situated in the \nWestern Hemisphere, mostly in the Southern Hemisphere, with \na relatively small portion in the Northern Hemisphere. \nThe continent is also considered a subcontinent of the \nAmericas.[2][3] It is bordered on the west by the Pacific \nOcean and on the north and east by the Atlantic Ocean; \nNorth America and the Caribbean Sea lie to the northwest. \nIt includes twelve countries: Argentina, Bolivia, Brasil, \nChile, Colombia, Ecuador, Guyana, Paraguay, Peru, Suriname, \nUruguay, and Venezuela. The South American nations that \nborder the Caribbean Sea\u2014including Colombia, Venezuela, \nGuyana, Suriname, as well as French Guiana, which is an \noverseas region of France\u2014are a.k.a. Caribbean South \nAmerica. South America has an area of 17,840,000 square \nkilometers (6,890,000 sq mi). Its population as of 2005 \nhas been estimated at more than 371,090,000. South America \nranks fourth in area (after Asia, Africa, and North America) \nand fifth in population (after Asia, Africa, Europe, and \nNorth America). The word America was coined in 1507 by \ncartographers Martin Waldseem\u00FCller and Matthias Ringmann, \nafter Amerigo Vespucci, who was the first European to \nsuggest that the lands newly discovered by Europeans were \nnot India, but a New World unknown to Europeans."
55
],
6-
"surface": [
7-
17840000,
8-
0,
9-
0
10-
],
6+
"surface": [17840000, 0, 0],
117
"demographics": {
12-
"population": [
13-
385742554,
14-
385744896
15-
]
8+
"population": [385742554, 385744896]
169
},
1710
"languages": {
1811
"_t": "a",
19-
"_2": [
20-
"english",
21-
0,
22-
0
23-
],
24-
"2": [
25-
"ingl\u00E9s"
26-
]
12+
"_2": ["english", 0, 0],
13+
"2": ["ingl\u00E9s"]
2714
},
2815
"countries": {
2916
"_t": "a",
@@ -47,11 +34,7 @@
4734
0,
4835
0
4936
],
50-
"_8": [
51-
"",
52-
2,
53-
3
54-
],
37+
"_8": ["", 2, 3],
5538
"_10": [
5639
{
5740
"name": "Uruguay",
@@ -96,7 +79,5 @@
9679
}
9780
]
9881
},
99-
"spanishName": [
100-
"Sudam\u00E9rica"
101-
]
102-
}
82+
"spanishName": ["Sudam\u00E9rica"]
83+
}

test/Examples/demo_left.json

Lines changed: 100 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -1,104 +1,101 @@
11
{
2-
"name": "South America",
3-
"summary": "South America (Spanish: América del Sur, Sudamérica or \nSuramérica; Portuguese: América do Sul; Quechua and Aymara: \nUrin Awya Yala; Guarani: Ñembyamérika; Dutch: Zuid-Amerika; \nFrench: Amérique du Sud) is a continent situated in the \nWestern Hemisphere, mostly in the Southern Hemisphere, with \na relatively small portion in the Northern Hemisphere. \nThe continent is also considered a subcontinent of the \nAmericas.[2][3] It is bordered on the west by the Pacific \nOcean and on the north and east by the Atlantic Ocean; \nNorth America and the Caribbean Sea lie to the northwest. \nIt includes twelve countries: Argentina, Bolivia, Brazil, \nChile, Colombia, Ecuador, Guyana, Paraguay, Peru, Suriname, \nUruguay, and Venezuela. The South American nations that \nborder the Caribbean Sea—including Colombia, Venezuela, \nGuyana, Suriname, as well as French Guiana, which is an \noverseas region of France—are also known as Caribbean South \nAmerica. South America has an area of 17,840,000 square \nkilometers (6,890,000 sq mi). Its population as of 2005 \nhas been estimated at more than 371,090,000. South America \nranks fourth in area (after Asia, Africa, and North America) \nand fifth in population (after Asia, Africa, Europe, and \nNorth America). The word America was coined in 1507 by \ncartographers Martin Waldseemüller and Matthias Ringmann, \nafter Amerigo Vespucci, who was the first European to \nsuggest that the lands newly discovered by Europeans were \nnot India, but a New World unknown to Europeans.",
4-
"surface": 17840000,
5-
"timezone": [
6-
-4,
7-
-2
8-
],
9-
"demographics": {
10-
"population": 385742554,
11-
"largestCities": [
12-
"São Paulo",
13-
"Buenos Aires",
14-
"Rio de Janeiro",
15-
"Lima",
16-
"Bogotá"
17-
]
18-
},
19-
"languages": [
20-
"spanish",
21-
"portuguese",
22-
"english",
23-
"dutch",
24-
"french",
25-
"quechua",
26-
"guaraní",
27-
"aimara",
28-
"mapudungun"
29-
],
30-
"countries": [
31-
{
32-
"name": "Argentina",
33-
"capital": "Buenos Aires",
34-
"independence": "1816-07-08T12:20:56.000Z",
35-
"unasur": true
36-
},
37-
{
38-
"name": "Bolivia",
39-
"capital": "La Paz",
40-
"independence": "1825-08-05T12:20:56.000Z",
41-
"unasur": true
42-
},
43-
{
44-
"name": "Brazil",
45-
"capital": "Brasilia",
46-
"independence": "1822-09-06T12:20:56.000Z",
47-
"unasur": true
48-
},
49-
{
50-
"name": "Chile",
51-
"capital": "Santiago",
52-
"independence": "1818-02-11T12:20:56.000Z",
53-
"unasur": true
54-
},
55-
{
56-
"name": "Colombia",
57-
"capital": "Bogotá",
58-
"independence": "1810-07-19T12:20:56.000Z",
59-
"unasur": true
60-
},
61-
{
62-
"name": "Ecuador",
63-
"capital": "Quito",
64-
"independence": "1809-08-09T12:20:56.000Z",
65-
"unasur": true
66-
},
67-
{
68-
"name": "Guyana",
69-
"capital": "Georgetown",
70-
"independence": "1966-05-25T12:00:00.000Z",
71-
"unasur": true
72-
},
73-
{
74-
"name": "Paraguay",
75-
"capital": "Asunción",
76-
"independence": "1811-05-13T12:20:56.000Z",
77-
"unasur": true
78-
},
79-
{
80-
"name": "Peru",
81-
"capital": "Lima",
82-
"independence": "1821-07-27T12:20:56.000Z",
83-
"unasur": true
84-
},
85-
{
86-
"name": "Suriname",
87-
"capital": "Paramaribo",
88-
"independence": "1975-11-24T11:00:00.000Z",
89-
"unasur": true
90-
},
91-
{
92-
"name": "Uruguay",
93-
"capital": "Montevideo",
94-
"independence": "1825-08-24T12:20:56.000Z",
95-
"unasur": true
96-
},
97-
{
98-
"name": "Venezuela",
99-
"capital": "Caracas",
100-
"independence": "1811-07-04T12:20:56.000Z",
101-
"unasur": true
102-
}
103-
]
104-
}
2+
"name": "South America",
3+
"summary": "South America (Spanish: América del Sur, Sudamérica or \nSuramérica; Portuguese: América do Sul; Quechua and Aymara: \nUrin Awya Yala; Guarani: Ñembyamérika; Dutch: Zuid-Amerika; \nFrench: Amérique du Sud) is a continent situated in the \nWestern Hemisphere, mostly in the Southern Hemisphere, with \na relatively small portion in the Northern Hemisphere. \nThe continent is also considered a subcontinent of the \nAmericas.[2][3] It is bordered on the west by the Pacific \nOcean and on the north and east by the Atlantic Ocean; \nNorth America and the Caribbean Sea lie to the northwest. \nIt includes twelve countries: Argentina, Bolivia, Brazil, \nChile, Colombia, Ecuador, Guyana, Paraguay, Peru, Suriname, \nUruguay, and Venezuela. The South American nations that \nborder the Caribbean Sea—including Colombia, Venezuela, \nGuyana, Suriname, as well as French Guiana, which is an \noverseas region of France—are also known as Caribbean South \nAmerica. South America has an area of 17,840,000 square \nkilometers (6,890,000 sq mi). Its population as of 2005 \nhas been estimated at more than 371,090,000. South America \nranks fourth in area (after Asia, Africa, and North America) \nand fifth in population (after Asia, Africa, Europe, and \nNorth America). The word America was coined in 1507 by \ncartographers Martin Waldseemüller and Matthias Ringmann, \nafter Amerigo Vespucci, who was the first European to \nsuggest that the lands newly discovered by Europeans were \nnot India, but a New World unknown to Europeans.",
4+
"surface": 17840000,
5+
"timezone": [-4, -2],
6+
"demographics": {
7+
"population": 385742554,
8+
"largestCities": [
9+
"São Paulo",
10+
"Buenos Aires",
11+
"Rio de Janeiro",
12+
"Lima",
13+
"Bogotá"
14+
]
15+
},
16+
"languages": [
17+
"spanish",
18+
"portuguese",
19+
"english",
20+
"dutch",
21+
"french",
22+
"quechua",
23+
"guaraní",
24+
"aimara",
25+
"mapudungun"
26+
],
27+
"countries": [
28+
{
29+
"name": "Argentina",
30+
"capital": "Buenos Aires",
31+
"independence": "1816-07-08T12:20:56.000Z",
32+
"unasur": true
33+
},
34+
{
35+
"name": "Bolivia",
36+
"capital": "La Paz",
37+
"independence": "1825-08-05T12:20:56.000Z",
38+
"unasur": true
39+
},
40+
{
41+
"name": "Brazil",
42+
"capital": "Brasilia",
43+
"independence": "1822-09-06T12:20:56.000Z",
44+
"unasur": true
45+
},
46+
{
47+
"name": "Chile",
48+
"capital": "Santiago",
49+
"independence": "1818-02-11T12:20:56.000Z",
50+
"unasur": true
51+
},
52+
{
53+
"name": "Colombia",
54+
"capital": "Bogotá",
55+
"independence": "1810-07-19T12:20:56.000Z",
56+
"unasur": true
57+
},
58+
{
59+
"name": "Ecuador",
60+
"capital": "Quito",
61+
"independence": "1809-08-09T12:20:56.000Z",
62+
"unasur": true
63+
},
64+
{
65+
"name": "Guyana",
66+
"capital": "Georgetown",
67+
"independence": "1966-05-25T12:00:00.000Z",
68+
"unasur": true
69+
},
70+
{
71+
"name": "Paraguay",
72+
"capital": "Asunción",
73+
"independence": "1811-05-13T12:20:56.000Z",
74+
"unasur": true
75+
},
76+
{
77+
"name": "Peru",
78+
"capital": "Lima",
79+
"independence": "1821-07-27T12:20:56.000Z",
80+
"unasur": true
81+
},
82+
{
83+
"name": "Suriname",
84+
"capital": "Paramaribo",
85+
"independence": "1975-11-24T11:00:00.000Z",
86+
"unasur": true
87+
},
88+
{
89+
"name": "Uruguay",
90+
"capital": "Montevideo",
91+
"independence": "1825-08-24T12:20:56.000Z",
92+
"unasur": true
93+
},
94+
{
95+
"name": "Venezuela",
96+
"capital": "Caracas",
97+
"independence": "1811-07-04T12:20:56.000Z",
98+
"unasur": true
99+
}
100+
]
101+
}

test/Examples/demo_right.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
{
22
"name": "South America",
33
"summary": "South America (Spanish: América del Sur, Sudamérica or \nSuramérica; Portuguese: América do Sul; Quechua and Aymara: \nUrin Awya Yala; Guarani: Ñembyamérika; Dutch: Zuid-Amerika; \nFrench: Amérique du Sud) is a continent situated in the \nWestern Hemisphere, mostly in the Southern Hemisphere, with \na relatively small portion in the Northern Hemisphere. \nThe continent is also considered a subcontinent of the \nAmericas.[2][3] It is bordered on the west by the Pacific \nOcean and on the north and east by the Atlantic Ocean; \nNorth America and the Caribbean Sea lie to the northwest. \nIt includes twelve countries: Argentina, Bolivia, Brasil, \nChile, Colombia, Ecuador, Guyana, Paraguay, Peru, Suriname, \nUruguay, and Venezuela. The South American nations that \nborder the Caribbean Sea—including Colombia, Venezuela, \nGuyana, Suriname, as well as French Guiana, which is an \noverseas region of France—are a.k.a. Caribbean South \nAmerica. South America has an area of 17,840,000 square \nkilometers (6,890,000 sq mi). Its population as of 2005 \nhas been estimated at more than 371,090,000. South America \nranks fourth in area (after Asia, Africa, and North America) \nand fifth in population (after Asia, Africa, Europe, and \nNorth America). The word America was coined in 1507 by \ncartographers Martin Waldseemüller and Matthias Ringmann, \nafter Amerigo Vespucci, who was the first European to \nsuggest that the lands newly discovered by Europeans were \nnot India, but a New World unknown to Europeans.",
4-
"timezone": [
5-
-4,
6-
-2
7-
],
4+
"timezone": [-4, -2],
85
"demographics": {
96
"population": 385744896,
107
"largestCities": [
@@ -94,4 +91,4 @@
9491
}
9592
],
9693
"spanishName": "Sudamérica"
97-
}
94+
}

0 commit comments

Comments
 (0)