diff --git a/source/fahrplanparser.d b/source/fahrplanparser.d
index 2273c87..952c487 100644
--- a/source/fahrplanparser.d
+++ b/source/fahrplanparser.d
@@ -96,7 +96,7 @@ in
body
{
auto timeNodes = dp.parseXPath(timeXPath!_timeNodeName);
- if(timeNodes.empty)
+ if (timeNodes.empty)
throw new CouldNotFindeNodeException(_timeNodeName);
return TimeOfDay.fromISOString(timeNodes.front.getCData ~ "00");
@@ -189,13 +189,13 @@ body
assertThrown!(UnexpectedValueException!string)(xml.delay);
xml = "1".readDocument.parseXPath("/dp").front;
- assertThrown!AssertError(xml.delay);
+ assert(xml.delay == dur!"seconds"(0));
xml = "1".readDocument.parseXPath("/dp").front;
assertThrown!DateTimeException(xml.delay);
xml = "1".readDocument.parseXPath("/dp").front;
- assertThrown!AssertError(xml.delay);
+ assert(xml.delay == dur!"seconds"(0));
xml = "".readDocument.parseXPath("/dp").front;
assertThrown!AssertError(xml.delay);