diff --git a/source/fahrplanparser.d b/source/fahrplanparser.d index 258e39f..b546f52 100644 --- a/source/fahrplanparser.d +++ b/source/fahrplanparser.d @@ -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 12:00".parseTime == tuple(TimeOfDay(0, 0), 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)));