common/exercises/clock/canonical-data.json in trackler-2.1.0.3 vs common/exercises/clock/canonical-data.json in trackler-2.1.0.4
- old
+ new
@@ -1,18 +1,18 @@
{
"exercise": "clock",
- "version": "1.0.0",
+ "version": "1.0.1",
"comments": [
"Most languages require constructing a clock with initial values,",
"adding a positive or negative number of minutes, and testing equality",
"in some language-native way. Some languages require separate add and",
"subtract functions. Negative and out of range values are generally",
"expected to wrap around rather than represent errors."
],
"cases": [
{
- "description": "Test creating a new clock with an initial time.",
+ "description": "Create a new clock with an initial time",
"cases": [
{
"description": "on the hour",
"property": "create",
"hour": 8,
@@ -146,11 +146,11 @@
"expected": "22:10"
}
]
},
{
- "description": "Test adding and subtracting minutes.",
+ "description": "Add minutes",
"cases": [
{
"description": "add minutes",
"property": "add",
"hour": 10,
@@ -211,11 +211,16 @@
"property": "add",
"hour": 1,
"minute": 1,
"add": 3500,
"expected": "11:21"
- },
+ }
+ ]
+ },
+ {
+ "description": "Subtract minutes",
+ "cases": [
{
"description": "subtract minutes",
"property": "add",
"hour": 10,
"minute": 3,
@@ -279,10 +284,10 @@
"expected": "00:20"
}
]
},
{
- "description": "Construct two separate clocks, set times, test if they are equal.",
+ "description": "Compare two clocks for equality",
"cases": [
{
"description": "clocks with same time",
"property": "equal",
"clock1": {