Skip to content

Commit 628ebd5

Browse files
committed
Add more tests
1 parent 4fb4340 commit 628ebd5

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

exercises/jigsaw-puzzle/canonical-data.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,42 @@
4141
"format": "square"
4242
}
4343
},
44+
{
45+
"uuid": "1126f160-b094-4dc2-bf37-13e36e394867",
46+
"description": "400 pieces square puzzle with only inside pieces and aspec ratio",
47+
"property": "jigsawData",
48+
"input": {
49+
"inside": 324,
50+
"aspectRatio": 1.0
51+
},
52+
"expected": {
53+
"pieces": 400,
54+
"border": 76,
55+
"inside": 324,
56+
"rows": 20,
57+
"columns": 20,
58+
"aspectRatio": 1.0,
59+
"format": "square"
60+
}
61+
},
62+
{
63+
"uuid": "a9743178-5642-4cc0-8fdb-00d6b031c3a0",
64+
"description": "1500 pieces landscape puzzle with 30 rows and 1.6 aspect ratio",
65+
"property": "jigsawData",
66+
"input": {
67+
"rows": 30,
68+
"aspectRatio": 1.6666666666666667
69+
},
70+
"expected": {
71+
"pieces": 1500,
72+
"border": 156,
73+
"inside": 1344,
74+
"rows": 30,
75+
"columns": 50,
76+
"aspectRatio": 1.6666666666666667,
77+
"format": "landscape"
78+
}
79+
},
4480
{
4581
"uuid": "f6378369-989c-497f-a6e2-f30b1fa76cba",
4682
"description": "300 pieces portrait puzzle with 70 border pieces",

0 commit comments

Comments
 (0)