Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
366fb9569e |
4 changed files with 7 additions and 29 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -1,4 +1 @@
|
|||
bayernfahrplan*
|
||||
.dub/*
|
||||
replacement.txt
|
||||
dub.selections.json
|
||||
/bayernfahrplan
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
image: base/devel
|
||||
|
||||
before_script:
|
||||
- pacman -Sy
|
||||
- pacman --noconfirm -S ldc dub libevent
|
||||
|
||||
stages:
|
||||
- build
|
||||
- test
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- dub build --compiler=ldc2
|
||||
|
||||
test:
|
||||
stage: test
|
||||
script:
|
||||
- dub test --compiler=ldc2
|
6
dub.json
6
dub.json
|
@ -5,10 +5,10 @@
|
|||
"Oliver Rümpelein"
|
||||
],
|
||||
"dependencies": {
|
||||
"requests": "0.5.3",
|
||||
"requests": "~>0.4.1",
|
||||
"kxml": "~>1.0.1"
|
||||
},
|
||||
"description": "A minimal D application.",
|
||||
"copyright": "Copyright © 2017, Johannes Loher",
|
||||
"license": "MIT"
|
||||
"copyright": "Copyright © 2016, Johannes Loher",
|
||||
"license": "proprietary"
|
||||
}
|
||||
|
|
|
@ -189,13 +189,13 @@ body
|
|||
assertThrown!(UnexpectedValueException!string)(xml.delay);
|
||||
|
||||
xml = "<dp><realtime>1</realtime></dp>".readDocument.parseXPath("/dp").front;
|
||||
assert(xml.delay == dur!"seconds"(0));
|
||||
assertThrown!AssertError(xml.delay);
|
||||
|
||||
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;
|
||||
assert(xml.delay == dur!"seconds"(0));
|
||||
assertThrown!AssertError(xml.delay);
|
||||
|
||||
xml = "<dp><st><rt></rt><t></t></st></dp>".readDocument.parseXPath("/dp").front;
|
||||
assertThrown!AssertError(xml.delay);
|
||||
|
|
Loading…
Reference in a new issue