File tree Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"exercise" : " gigasecond" ,
3
- "version" : " 1.0 .0" ,
3
+ "version" : " 1.1 .0" ,
4
4
"comments" : [
5
5
" The basic test is to add one gigasecond to a few ordinary dates." ,
6
6
" Most test programs currently check only the date and ignore the time." ,
22
22
{
23
23
"description" : " date only specification of time" ,
24
24
"property" : " add" ,
25
- "input" : " 2011-04-25" ,
25
+ "input" : {
26
+ "birthdate" : " 2011-04-25"
27
+ },
26
28
"expected" : " 2043-01-01T01:46:40"
27
29
},
28
30
{
29
31
"description" : " second test for date only specification of time" ,
30
32
"property" : " add" ,
31
- "input" : " 1977-06-13" ,
33
+ "input" : {
34
+ "birthdate" : " 1977-06-13"
35
+ },
32
36
"expected" : " 2009-02-19T01:46:40"
33
37
},
34
38
{
35
39
"description" : " third test for date only specification of time" ,
36
40
"property" : " add" ,
37
- "input" : " 1959-07-19" ,
41
+ "input" : {
42
+ "birthdate" : " 1959-07-19"
43
+ },
38
44
"expected" : " 1991-03-27T01:46:40"
39
45
},
40
46
{
41
47
"description" : " full time specified" ,
42
48
"property" : " add" ,
43
- "input" : " 2015-01-24T22:00:00" ,
49
+ "input" : {
50
+ "birthdate" : " 2015-01-24T22:00:00"
51
+ },
44
52
"expected" : " 2046-10-02T23:46:40"
45
53
},
46
54
{
47
55
"description" : " full time with day roll-over" ,
48
56
"property" : " add" ,
49
- "input" : " 2015-01-24T23:59:59" ,
57
+ "input" : {
58
+ "birthdate" : " 2015-01-24T23:59:59"
59
+ },
50
60
"expected" : " 2046-10-03T01:46:39"
51
61
}
52
62
]
53
63
}
54
64
]
55
- }
65
+ }
You can’t perform that action at this time.
0 commit comments