File tree Expand file tree Collapse file tree 1 file changed +16
-17
lines changed Expand file tree Collapse file tree 1 file changed +16
-17
lines changed Original file line number Diff line number Diff line change 4
4
"comments" : [
5
5
" Given a Gregorian calendar year, indicate whether it is a leap year."
6
6
],
7
-
8
7
"cases" : [
9
8
{
10
- "description" : " year not divisible by 4: common year" ,
11
- "property" : " notLeap" ,
12
- "input" : 2015 ,
13
- "expected" : false
9
+ "description" : " year not divisible by 4: common year" ,
10
+ "property" : " notLeap" ,
11
+ "input" : 2015 ,
12
+ "expected" : false
14
13
},
15
14
{
16
- "description" : " year divisible by 4, not divisible by 100: leap year" ,
17
- "property" : " isLeap" ,
18
- "input" : 2016 ,
19
- "expected" : true
15
+ "description" : " year divisible by 4, not divisible by 100: leap year" ,
16
+ "property" : " isLeap" ,
17
+ "input" : 2016 ,
18
+ "expected" : true
20
19
},
21
20
{
22
- "description" : " year divisible by 100, not divisible by 400: common year" ,
23
- "property" : " notLeap" ,
24
- "input" : 2100 ,
25
- "expected" : false
21
+ "description" : " year divisible by 100, not divisible by 400: common year" ,
22
+ "property" : " notLeap" ,
23
+ "input" : 2100 ,
24
+ "expected" : false
26
25
},
27
26
{
28
- "description" : " year divisible by 400: leap year" ,
29
- "property" : " isLeap" ,
30
- "input" : 2000 ,
31
- "expected" : true
27
+ "description" : " year divisible by 400: leap year" ,
28
+ "property" : " isLeap" ,
29
+ "input" : 2000 ,
30
+ "expected" : true
32
31
}
33
32
]
34
33
}
You can’t perform that action at this time.
0 commit comments