-
-
Notifications
You must be signed in to change notification settings - Fork 546
/
Copy pathcanonical-data.json
86 lines (86 loc) · 2.18 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
{
"exercise": "leap",
"cases": [
{
"uuid": "6466b30d-519c-438e-935d-388224ab5223",
"description": "year not divisible by 4 in common year",
"property": "leapYear",
"input": {
"year": 2015
},
"expected": false
},
{
"uuid": "ac227e82-ee82-4a09-9eb6-4f84331ffdb0",
"description": "year divisible by 2, not divisible by 4 in common year",
"property": "leapYear",
"input": {
"year": 1970
},
"expected": false
},
{
"uuid": "4fe9b84c-8e65-489e-970b-856d60b8b78e",
"description": "year divisible by 4, not divisible by 100 in leap year",
"property": "leapYear",
"input": {
"year": 1996
},
"expected": true
},
{
"uuid": "7fc6aed7-e63c-48f5-ae05-5fe182f60a5d",
"description": "year divisible by 4 and 5 is still a leap year",
"property": "leapYear",
"input": {
"year": 1960
},
"expected": true
},
{
"uuid": "78a7848f-9667-4192-ae53-87b30c9a02dd",
"description": "year divisible by 100, not divisible by 400 in common year",
"property": "leapYear",
"input": {
"year": 2100
},
"expected": false
},
{
"uuid": "9d70f938-537c-40a6-ba19-f50739ce8bac",
"description": "year divisible by 100 but not by 3 is still not a leap year",
"property": "leapYear",
"input": {
"year": 1900
},
"expected": false
},
{
"uuid": "42ee56ad-d3e6-48f1-8e3f-c84078d916fc",
"description": "year divisible by 400 in leap year",
"property": "leapYear",
"input": {
"year": 2000
},
"expected": true
},
{
"uuid": "57902c77-6fe9-40de-8302-587b5c27121e",
"description": "year divisible by 400 but not by 125 is still a leap year",
"property": "leapYear",
"input": {
"year": 2400
},
"expected": true
},
{
"uuid": "c30331f6-f9f6-4881-ad38-8ca8c12520c1",
"description": "year divisible by 200, not divisible by 400 in common year",
"property": "leapYear",
"input": {
"year": 1800
},
"expected": false
}
]
}