-
-
Notifications
You must be signed in to change notification settings - Fork 544
/
canonical-data.json
111 lines (111 loc) · 2.96 KB
/
canonical-data.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"exercise": "grains",
"comments": [
"The final tests of square test error conditions",
"In these cases you should expect an error as is idiomatic for your language"
],
"cases": [
{
"description": "returns the number of grains on the square",
"cases": [
{
"uuid": "9fbde8de-36b2-49de-baf2-cd42d6f28405",
"description": "1",
"property": "square",
"input": {
"square": 1
},
"expected": 1
},
{
"uuid": "ee1f30c2-01d8-4298-b25d-c677331b5e6d",
"description": "2",
"property": "square",
"input": {
"square": 2
},
"expected": 2
},
{
"uuid": "10f45584-2fc3-4875-8ec6-666065d1163b",
"description": "3",
"property": "square",
"input": {
"square": 3
},
"expected": 4
},
{
"uuid": "a7cbe01b-36f4-4601-b053-c5f6ae055170",
"description": "4",
"property": "square",
"input": {
"square": 4
},
"expected": 8
},
{
"uuid": "c50acc89-8535-44e4-918f-b848ad2817d4",
"description": "16",
"property": "square",
"input": {
"square": 16
},
"expected": 32768
},
{
"uuid": "acd81b46-c2ad-4951-b848-80d15ed5a04f",
"description": "32",
"property": "square",
"input": {
"square": 32
},
"expected": 2147483648
},
{
"uuid": "c73b470a-5efb-4d53-9ac6-c5f6487f227b",
"description": "64",
"property": "square",
"input": {
"square": 64
},
"expected": 9223372036854775808
},
{
"uuid": "1d47d832-3e85-4974-9466-5bd35af484e3",
"description": "square 0 raises an exception",
"property": "square",
"input": {
"square": 0
},
"expected": {"error": "square must be between 1 and 64"}
},
{
"uuid": "61974483-eeb2-465e-be54-ca5dde366453",
"description": "negative square raises an exception",
"property": "square",
"input": {
"square": -1
},
"expected": {"error": "square must be between 1 and 64"}
},
{
"uuid": "a95e4374-f32c-45a7-a10d-ffec475c012f",
"description": "square greater than 64 raises an exception",
"property": "square",
"input": {
"square": 65
},
"expected": {"error": "square must be between 1 and 64"}
}
]
},
{
"uuid": "6eb07385-3659-4b45-a6be-9dc474222750",
"description": "returns the total number of grains on the board",
"property": "total",
"input": {},
"expected": 18446744073709551615
}
]
}