Skip to content

Commit c8248d4

Browse files
Merge pull request #1080 from ErikSchierboom/gigasecond-input
gigasecond: Apply new "input" policy
2 parents dc86ed9 + 5506bac commit c8248d4

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

exercises/gigasecond/canonical-data.json

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"exercise": "gigasecond",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"comments": [
55
"The basic test is to add one gigasecond to a few ordinary dates.",
66
"Most test programs currently check only the date and ignore the time.",
@@ -22,34 +22,44 @@
2222
{
2323
"description": "date only specification of time",
2424
"property": "add",
25-
"input": "2011-04-25",
25+
"input": {
26+
"birthdate": "2011-04-25"
27+
},
2628
"expected": "2043-01-01T01:46:40"
2729
},
2830
{
2931
"description": "second test for date only specification of time",
3032
"property": "add",
31-
"input": "1977-06-13",
33+
"input": {
34+
"birthdate": "1977-06-13"
35+
},
3236
"expected": "2009-02-19T01:46:40"
3337
},
3438
{
3539
"description": "third test for date only specification of time",
3640
"property": "add",
37-
"input": "1959-07-19",
41+
"input": {
42+
"birthdate": "1959-07-19"
43+
},
3844
"expected": "1991-03-27T01:46:40"
3945
},
4046
{
4147
"description": "full time specified",
4248
"property": "add",
43-
"input": "2015-01-24T22:00:00",
49+
"input": {
50+
"birthdate": "2015-01-24T22:00:00"
51+
},
4452
"expected": "2046-10-02T23:46:40"
4553
},
4654
{
4755
"description": "full time with day roll-over",
4856
"property": "add",
49-
"input": "2015-01-24T23:59:59",
57+
"input": {
58+
"birthdate": "2015-01-24T23:59:59"
59+
},
5060
"expected": "2046-10-03T01:46:39"
5161
}
5262
]
5363
}
5464
]
55-
}
65+
}

0 commit comments

Comments
 (0)