Skip to content

auto-format portions of some JSON files #1967

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 23 additions & 8 deletions exercises/go-counting/canonical-data.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"exercise": "go-counting",
"comments": [
"Territory consists of [x, y] coordinate pairs."
],
"comments": ["Territory consists of [x, y] coordinate pairs."],
"cases": [
{
"uuid": "94d0c01a-17d0-424c-aab5-2736d0da3939",
Expand All @@ -21,7 +19,11 @@
},
"expected": {
"owner": "BLACK",
"territory": [[0, 0], [0, 1], [1, 0]]
"territory": [
[0, 0],
[0, 1],
[1, 0]
]
Comment on lines +22 to +26
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if this is necessarily better than the single-line versions but I'm not objecting to it either.

}
},
{
Expand Down Expand Up @@ -61,7 +63,11 @@
},
"expected": {
"owner": "NONE",
"territory": [[0, 3], [0, 4], [1, 4]]
"territory": [
[0, 3],
[0, 4],
[1, 4]
]
}
},
{
Expand Down Expand Up @@ -186,8 +192,14 @@
]
},
"expected": {
"territoryBlack": [[0, 0], [0, 1]],
"territoryWhite": [[3, 0], [3, 1]],
"territoryBlack": [
[0, 0],
[0, 1]
],
"territoryWhite": [
[3, 0],
[3, 1]
],
"territoryNone": []
}
},
Expand All @@ -201,7 +213,10 @@
]
},
"expected": {
"territoryBlack": [[0, 0], [2, 0]],
"territoryBlack": [
[0, 0],
[2, 0]
],
"territoryWhite": [],
"territoryNone": []
}
Expand Down
6 changes: 4 additions & 2 deletions exercises/ocr-numbers/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
" "
]
},
"expected": {"error": "Number of input lines is not a multiple of four"}
"expected": { "error": "Number of input lines is not a multiple of four" }
},
{
"uuid": "235f7bd1-991b-4587-98d4-84206eec4cc6",
Expand All @@ -68,7 +68,9 @@
" "
]
},
"expected": {"error": "Number of input columns is not a multiple of three"}
"expected": {
"error": "Number of input columns is not a multiple of three"
}
},
{
"uuid": "4a841794-73c9-4da9-a779-1f9837faff66",
Expand Down
4 changes: 1 addition & 3 deletions exercises/saddle-points/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
{
"uuid": "3e374e63-a2e0-4530-a39a-d53c560382bd",
"description": "Can identify single saddle point",
"comments": [
"This is the README example."
],
"comments": ["This is the README example."],
"property": "saddlePoints",
"input": {
"matrix": [
Expand Down
2 changes: 1 addition & 1 deletion exercises/scale-generator/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
{
"uuid": "87fdbcca-d3dd-46d5-9c56-ec79e25b19f4",
"reimplements": "70517400-12b7-4530-b861-fa940ae69ee8",
"description": "Harmonic minor",
"description": "Harmonic minor",
"comments": [
"Note that this case introduces the augmented second interval (A)"
],
Expand Down