Skip to content

Fix "Gigasecond: Schema Compliance" #685

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 10, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 33 additions & 36 deletions exercises/gigasecond/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,42 +17,39 @@
],
"cases": [
{
"add":
{
"comments": "Add one gigasecond to the input.",
"cases": [
{
"description": "date only specification of time",
"property": "integer",
"input": "2011-04-25",
"expected": "2043-01-01T01:46:40"
},
{
"description": "second test for date only specification of time",
"property": "integer",
"input": "1977-06-13",
"expected": "2009-02-19T01:46:40"
},
{
"description": "third test for date only specification of time",
"property": "integer",
"input": "1959-07-19",
"expected": "1991-03-27T01:46:40"
},
{
"description": "full time specified",
"property": "integer",
"input": "2015-01-24T22:00:00",
"expected": "2046-10-02T23:46:40"
},
{
"description": "full time with day roll-over",
"property": "integer",
"input": "2015-01-24T23:59:59",
"expected": "2046-10-03T01:46:39"
}
]
}
"description": "Add one gigasecond to the input.",
"cases": [
{
"description": "date only specification of time",
"property": "add",
"input": "2011-04-25",
"expected": "2043-01-01T01:46:40"
},
{
"description": "second test for date only specification of time",
"property": "add",
"input": "1977-06-13",
"expected": "2009-02-19T01:46:40"
},
{
"description": "third test for date only specification of time",
"property": "add",
"input": "1959-07-19",
"expected": "1991-03-27T01:46:40"
},
{
"description": "full time specified",
"property": "add",
"input": "2015-01-24T22:00:00",
"expected": "2046-10-02T23:46:40"
},
{
"description": "full time with day roll-over",
"property": "add",
"input": "2015-01-24T23:59:59",
"expected": "2046-10-03T01:46:39"
}
]
}
]
}