From 960b4d3f6fd3bb52046957cecd0e193a481486b5 Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Thu, 29 Dec 2016 18:27:30 +0100 Subject: [PATCH] Added another test for fahrplanparser.parseTime --- source/fahrplanparser.d | 2 ++ 1 file changed, 2 insertions(+) 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)));