Added another test for fahrplanparser.parseTime
This commit is contained in:
parent
1cc8840127
commit
960b4d3f6f
1 changed files with 2 additions and 0 deletions
|
@ -81,6 +81,8 @@ auto parseTime(in string input) @safe
|
||||||
|
|
||||||
assert("00:00 00:00".parseTime == tuple(TimeOfDay(0, 0), dur!"minutes"(0)));
|
assert("00:00 00:00".parseTime == tuple(TimeOfDay(0, 0), dur!"minutes"(0)));
|
||||||
|
|
||||||
|
assert("00:00 00:00 12:00".parseTime == tuple(TimeOfDay(0, 0), dur!"minutes"(0)));
|
||||||
|
|
||||||
assert("12:3412:34".parseTime == tuple(TimeOfDay(12, 34), dur!"minutes"(0)));
|
assert("12:3412:34".parseTime == tuple(TimeOfDay(12, 34), dur!"minutes"(0)));
|
||||||
|
|
||||||
assert("ölqjfo12:34oieqf12:31ölqjf".parseTime == tuple(TimeOfDay(12, 31), dur!"minutes"(3)));
|
assert("ölqjfo12:34oieqf12:31ölqjf".parseTime == tuple(TimeOfDay(12, 31), dur!"minutes"(3)));
|
||||||
|
|
Loading…
Reference in a new issue