diff --git a/exercises/rectangles/canonical-data.json b/exercises/rectangles/canonical-data.json index 401fb8997f..2670766b3f 100644 --- a/exercises/rectangles/canonical-data.json +++ b/exercises/rectangles/canonical-data.json @@ -1,26 +1,32 @@ { - "#": [ + "exercise": "rectangles", + "version": "1.0.0", + "comments": [ "The inputs 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": "rectangles", "input": [], "expected": 0 }, { "description": "no columns", + "property": "rectangles", "input": [""], "expected": 0 }, { "description": "no rectangles", + "property": "rectangles", "input": [" "], "expected": 0 }, { "description": "one rectangle", + "property": "rectangles", "input": [ "+-+", "| |", @@ -30,6 +36,7 @@ }, { "description": "two rectangles without shared parts", + "property": "rectangles", "input": [ " +-+", " | |", @@ -41,6 +48,7 @@ }, { "description": "five rectangles with shared parts", + "property": "rectangles", "input": [ " +-+", " | |", @@ -52,6 +60,7 @@ }, { "description": "rectangle of height 1 is counted", + "property": "rectangles", "input": [ "+--+", "+--+" @@ -60,6 +69,7 @@ }, { "description": "rectangle of width 1 is counted", + "property": "rectangles", "input": [ "++", "||", @@ -69,6 +79,7 @@ }, { "description": "1x1 square is counted", + "property": "rectangles", "input": [ "++", "++" @@ -77,6 +88,7 @@ }, { "description": "only complete rectangles are counted", + "property": "rectangles", "input": [ " +-+", " |", @@ -88,6 +100,7 @@ }, { "description": "rectangles can be of different sizes", + "property": "rectangles", "input": [ "+------+----+", "| | |", @@ -99,6 +112,7 @@ }, { "description": "corner is required for a rectangle to be complete", + "property": "rectangles", "input": [ "+------+----+", "| | |", @@ -110,6 +124,7 @@ }, { "description": "large input with many rectangles", + "property": "rectangles", "input": [ "+---+--+----+", "| +--+----+",