Skip to content

Commit 4e0afd1

Browse files
Improve stop previouslaps case
1 parent 3570883 commit 4e0afd1

File tree

1 file changed

+34
-23
lines changed

1 file changed

+34
-23
lines changed

exercises/split-second-stopwatch/canonical-data.json

Lines changed: 34 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -214,29 +214,6 @@
214214
},
215215
"expected": {}
216216
},
217-
{
218-
"uuid": "e585ee15-3b3f-4785-976b-dd96e7cc978b",
219-
"description": "stop does not change previous laps",
220-
"property": "time",
221-
"input": {
222-
"commands": [
223-
{
224-
"command": "new"
225-
},
226-
{
227-
"command": "start"
228-
},
229-
{
230-
"command": "stop"
231-
},
232-
{
233-
"command": "previousLaps",
234-
"expected": []
235-
}
236-
]
237-
},
238-
"expected": {}
239-
},
240217
{
241218
"uuid": "621eac4c-8f43-4d99-919c-4cad776d93df",
242219
"description": "stop pauses time tracking for current lap",
@@ -593,6 +570,40 @@
593570
},
594571
"expected": {}
595572
},
573+
{
574+
"uuid": "e585ee15-3b3f-4785-976b-dd96e7cc978b",
575+
"description": "stop does not change previous laps",
576+
"property": "time",
577+
"input": {
578+
"commands": [
579+
{
580+
"command": "new"
581+
},
582+
{
583+
"command": "start"
584+
},
585+
{
586+
"command": "advanceTime",
587+
"by": "00:11:22"
588+
},
589+
{
590+
"command": "lap"
591+
},
592+
{
593+
"command": "previousLaps",
594+
"expected": ["00:11:22"]
595+
},
596+
{
597+
"command": "stop"
598+
},
599+
{
600+
"command": "previousLaps",
601+
"expected": ["00:11:22"]
602+
}
603+
]
604+
},
605+
"expected": {}
606+
},
596607
{
597608
"uuid": "fc3645e2-86cf-4d11-97c6-489f031103f6",
598609
"description": "reset from stopped state changes state to ready",

0 commit comments

Comments
 (0)