Skip to content

Commit 2b684cd

Browse files
authored
Merge pull request #664 from rbasso/minesweeper-schema
minesweeper: Make exercism schema-compliant
2 parents f6dd77d + 895d225 commit 2b684cd

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

exercises/minesweeper/canonical-data.json

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,28 @@
11
{
2-
"#": [
3-
"The expected outputs are represented as arrays of strings to improve readability in this JSON file.",
4-
"Your track may choose whether to present the input as a single string (concatenating all the lines) or as the list."
2+
"exercise": "minesweeper",
3+
"version": "1.0.0",
4+
"comments": [
5+
" The expected outputs are represented as arrays of strings to ",
6+
" improve readability in this JSON file. ",
7+
" Your track may choose whether to present the input as a single ",
8+
" string (concatenating all the lines) or as the list. "
59
],
610
"cases": [
711
{
812
"description": "no rows",
9-
"input" : [],
13+
"property": "annotate",
14+
"input": [],
1015
"expected": []
1116
},
1217
{
1318
"description": "no columns",
14-
"input" : [""],
19+
"property": "annotate",
20+
"input": [""],
1521
"expected": [""]
1622
},
1723
{
1824
"description": "no mines",
25+
"property": "annotate",
1926
"input": [
2027
" ",
2128
" ",
@@ -29,6 +36,7 @@
2936
},
3037
{
3138
"description": "board with only mines",
39+
"property": "annotate",
3240
"input": [
3341
"***",
3442
"***",
@@ -42,6 +50,7 @@
4250
},
4351
{
4452
"description": "mine surrounded by spaces",
53+
"property": "annotate",
4554
"input": [
4655
" ",
4756
" * ",
@@ -55,6 +64,7 @@
5564
},
5665
{
5766
"description": "space surrounded by mines",
67+
"property": "annotate",
5868
"input": [
5969
"***",
6070
"* *",
@@ -68,16 +78,19 @@
6878
},
6979
{
7080
"description": "horizontal line",
81+
"property": "annotate",
7182
"input": [" * * "],
7283
"expected": ["1*2*1"]
7384
},
7485
{
7586
"description": "horizontal line, mines at edges",
87+
"property": "annotate",
7688
"input": ["* *"],
7789
"expected": ["*1 1*"]
7890
},
7991
{
8092
"description": "vertical line",
93+
"property": "annotate",
8194
"input": [
8295
" ",
8396
"*",
@@ -95,6 +108,7 @@
95108
},
96109
{
97110
"description": "vertical line, mines at edges",
111+
"property": "annotate",
98112
"input": [
99113
"*",
100114
" ",
@@ -112,6 +126,7 @@
112126
},
113127
{
114128
"description": "cross",
129+
"property": "annotate",
115130
"input": [
116131
" * ",
117132
" * ",
@@ -129,6 +144,7 @@
129144
},
130145
{
131146
"description": "large board",
147+
"property": "annotate",
132148
"input": [
133149
" * * ",
134150
" * ",

0 commit comments

Comments
 (0)