Skip to content

Commit fa45468

Browse files
committed
go-counting: fix canonical data file Closes: #560
1 parent 9dc02d8 commit fa45468

File tree

1 file changed

+10
-19
lines changed

1 file changed

+10
-19
lines changed

exercises/go-counting/canonical-data.json

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
}
8383
},
8484
{
85-
"description": "Invalid coordinate on 5x5 board",
85+
"description": "Invalid because X is too low coordinate on 5x5 board",
8686
"property": "territory",
8787
"input": {
8888
"board": [
@@ -100,7 +100,7 @@
100100
}
101101
},
102102
{
103-
"description": "Invalid coordinate #2 on 5x5 board",
103+
"description": "Invalid because Y is too high coordinate on 5x5 board",
104104
"property": "territory",
105105
"input": {
106106
"board": [
@@ -122,7 +122,7 @@
122122
"property": "territories",
123123
"input": {
124124
"board": [
125-
" "
125+
" "
126126
]
127127
},
128128
"expected": {
@@ -147,26 +147,17 @@
147147
}
148148
},
149149
{
150-
"description": "Open corner territory on 9x9 board",
151-
"property": "territory",
150+
"description": "Two region rectangular board",
151+
"property": "territories",
152152
"input": {
153153
"board": [
154-
" B B ",
155-
"B B B",
156-
"WBBBWBBBW",
157-
"W W W W W",
158-
" ",
159-
" W W W W ",
160-
"B B B B",
161-
" W BBB W ",
162-
" B B "
163-
],
164-
"x": 0,
165-
"y": 8
154+
" B "
155+
]
166156
},
167157
"expected": {
168-
"owner": "NONE",
169-
"territory": [[2, 7], [2, 8], [1, 8], [0, 8], [0, 7]]
158+
"territoryBlack": [[0, 0], [0, 2]],
159+
"territoryWhite": [],
160+
"territoryNone": []
170161
}
171162
}
172163
]

0 commit comments

Comments
 (0)