-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add additional tests to clock exercise for extreme I64 values, fixes #…
- Loading branch information
Showing
5 changed files
with
141 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"cases": [ | ||
{ | ||
"description": "Can create a clock with max I64 values", | ||
"property": "create", | ||
"input": { | ||
"hour": 9223372036854775807, | ||
"minute": 9223372036854775807 | ||
}, | ||
"expected": "01:07" | ||
}, | ||
{ | ||
"description": "Can create a clock with min I64 values", | ||
"property": "create", | ||
"input": { | ||
"hour": -9223372036854775808, | ||
"minute": -9223372036854775808 | ||
}, | ||
"expected": "21:52" | ||
}, | ||
{ | ||
"description": "Can add max I64 values to a clock", | ||
"property": "add", | ||
"input": { | ||
"hour": 23, | ||
"minute": 59, | ||
"value": 9223372036854775807 | ||
}, | ||
"expected": "18:06" | ||
}, | ||
{ | ||
"description": "Can add min I64 values to a clock", | ||
"property": "add", | ||
"input": { | ||
"hour": 23, | ||
"minute": 59, | ||
"value": -9223372036854775808 | ||
}, | ||
"expected": "05:51" | ||
}, | ||
{ | ||
"description": "Can subtract max I64 values from a clock", | ||
"property": "subtract", | ||
"input": { | ||
"hour": 23, | ||
"minute": 59, | ||
"value": 9223372036854775807 | ||
}, | ||
"expected": "05:52" | ||
}, | ||
{ | ||
"description": "Can subtract min I64 values from a clock", | ||
"property": "subtract", | ||
"input": { | ||
"hour": 23, | ||
"minute": 59, | ||
"value": -9223372036854775808 | ||
}, | ||
"expected": "18:07" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters