Skip to content
Merged
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
26 changes: 21 additions & 5 deletions exercises/minesweeper/canonical-data.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
{
"#": [
"The expected outputs are represented as arrays of strings to improve readability in this JSON file.",
"Your track may choose whether to present the input as a single string (concatenating all the lines) or as the list."
"exercise": "minesweeper",
"version": "1.0.0",
"comments": [
" The expected outputs are represented as arrays of strings to ",
" improve readability in this JSON file. ",
" Your track may choose whether to present the input as a single ",
" string (concatenating all the lines) or as the list. "
],
"cases": [
{
"description": "no rows",
"input" : [],
"property": "annotate",
"input": [],
"expected": []
},
{
"description": "no columns",
"input" : [""],
"property": "annotate",
"input": [""],
"expected": [""]
},
{
"description": "no mines",
"property": "annotate",
"input": [
" ",
" ",
Expand All @@ -29,6 +36,7 @@
},
{
"description": "board with only mines",
"property": "annotate",
"input": [
"***",
"***",
Expand All @@ -42,6 +50,7 @@
},
{
"description": "mine surrounded by spaces",
"property": "annotate",
"input": [
" ",
" * ",
Expand All @@ -55,6 +64,7 @@
},
{
"description": "space surrounded by mines",
"property": "annotate",
"input": [
"***",
"* *",
Expand All @@ -68,16 +78,19 @@
},
{
"description": "horizontal line",
"property": "annotate",
"input": [" * * "],
"expected": ["1*2*1"]
},
{
"description": "horizontal line, mines at edges",
"property": "annotate",
"input": ["* *"],
"expected": ["*1 1*"]
},
{
"description": "vertical line",
"property": "annotate",
"input": [
" ",
"*",
Expand All @@ -95,6 +108,7 @@
},
{
"description": "vertical line, mines at edges",
"property": "annotate",
"input": [
"*",
" ",
Expand All @@ -112,6 +126,7 @@
},
{
"description": "cross",
"property": "annotate",
"input": [
" * ",
" * ",
Expand All @@ -129,6 +144,7 @@
},
{
"description": "large board",
"property": "annotate",
"input": [
" * * ",
" * ",
Expand Down