Skip to content

minesweeper: Make exercism schema-compliant #664

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 3 commits into from
Mar 9, 2017
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