fixed delay unittests

This commit is contained in:
Johannes Loher 2017-08-04 00:16:43 +02:00
parent 7a76d12ec2
commit 7cf2592ff2

View file

@ -189,13 +189,13 @@ body
assertThrown!(UnexpectedValueException!string)(xml.delay);
xml = "<dp><realtime>1</realtime></dp>".readDocument.parseXPath("/dp").front;
assertThrown!AssertError(xml.delay);
assert(xml.delay == dur!"seconds"(0));
xml = "<dp><realtime>1</realtime><st><t></t></st></dp>".readDocument.parseXPath("/dp").front;
assertThrown!DateTimeException(xml.delay);
xml = "<dp><realtime>1</realtime><st><rt></rt></st></dp>".readDocument.parseXPath("/dp").front;
assertThrown!AssertError(xml.delay);
assert(xml.delay == dur!"seconds"(0));
xml = "<dp><st><rt></rt><t></t></st></dp>".readDocument.parseXPath("/dp").front;
assertThrown!AssertError(xml.delay);