From 23bdfcdf6a56af01729d60fff8350b5e015aa51b Mon Sep 17 00:00:00 2001 From: rbasso Date: Thu, 9 Mar 2017 17:32:40 +0900 Subject: [PATCH 1/3] minesweeper: Make canonical-data.json compliant --- exercises/minesweeper/canonical-data.json | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/exercises/minesweeper/canonical-data.json b/exercises/minesweeper/canonical-data.json index 00610da919..ada6602d37 100644 --- a/exercises/minesweeper/canonical-data.json +++ b/exercises/minesweeper/canonical-data.json @@ -1,21 +1,26 @@ { - "#": [ + "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", + "property": "annotate", "input" : [], "expected": [] }, { "description": "no columns", + "property": "annotate", "input" : [""], "expected": [""] }, { "description": "no mines", + "property": "annotate", "input": [ " ", " ", @@ -29,6 +34,7 @@ }, { "description": "board with only mines", + "property": "annotate", "input": [ "***", "***", @@ -42,6 +48,7 @@ }, { "description": "mine surrounded by spaces", + "property": "annotate", "input": [ " ", " * ", @@ -55,6 +62,7 @@ }, { "description": "space surrounded by mines", + "property": "annotate", "input": [ "***", "* *", @@ -68,16 +76,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": [ " ", "*", @@ -95,6 +106,7 @@ }, { "description": "vertical line, mines at edges", + "property": "annotate", "input": [ "*", " ", @@ -112,6 +124,7 @@ }, { "description": "cross", + "property": "annotate", "input": [ " * ", " * ", @@ -129,6 +142,7 @@ }, { "description": "large board", + "property": "annotate", "input": [ " * * ", " * ", From 42db3c12292bd3a5301dd1b1ff813ca95e8dc2dd Mon Sep 17 00:00:00 2001 From: rbasso Date: Thu, 9 Mar 2017 17:37:17 +0900 Subject: [PATCH 2/3] minesweeper: Fix canonical-data.json formatting --- exercises/minesweeper/canonical-data.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/minesweeper/canonical-data.json b/exercises/minesweeper/canonical-data.json index ada6602d37..0d2ea8a580 100644 --- a/exercises/minesweeper/canonical-data.json +++ b/exercises/minesweeper/canonical-data.json @@ -9,13 +9,13 @@ { "description": "no rows", "property": "annotate", - "input" : [], + "input": [], "expected": [] }, { "description": "no columns", "property": "annotate", - "input" : [""], + "input": [""], "expected": [""] }, { From 895d2252328f9a58c407d27e038cdd9137feb50b Mon Sep 17 00:00:00 2001 From: rbasso Date: Thu, 9 Mar 2017 17:49:25 +0900 Subject: [PATCH 3/3] minesweeper: Fix JSON comment to fit in 80 columns --- exercises/minesweeper/canonical-data.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/exercises/minesweeper/canonical-data.json b/exercises/minesweeper/canonical-data.json index 0d2ea8a580..7e69c5ce64 100644 --- a/exercises/minesweeper/canonical-data.json +++ b/exercises/minesweeper/canonical-data.json @@ -2,8 +2,10 @@ "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." + " 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": [ {