Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Travel-Status-DE-HAFAS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
derf
Travel-Status-DE-HAFAS
Commits
c679a589
Commit
c679a589
authored
13 years ago
by
Birte Kristina Friesel
Browse files
Options
Downloads
Patches
Plain Diff
DeutscheBahn/Result: Add ->delay tests
parent
54943f4f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
t/20-db.t
+5
-1
5 additions, 1 deletion
t/20-db.t
with
5 additions
and
1 deletion
t/20-db.t
+
5
−
1
View file @
c679a589
...
...
@@ -4,7 +4,7 @@ use warnings;
use
5.010
;
use
File::
Slurp
qw(slurp)
;
use
Test::
More
tests
=>
9
3
;
use
Test::
More
tests
=>
9
6
;
BEGIN
{
use_ok
('
Travel::Status::DE::DeutscheBahn
');
...
...
@@ -30,6 +30,7 @@ is($departures[0]->time, '19:21', 'first result: time ok');
is
(
$departures
[
0
]
->
train
,
'
RE 10228
',
'
first result: train ok
');
is
(
$departures
[
0
]
->
destination
,
'
Duisburg Hbf
',
'
first result: destination ok
');
is
(
$departures
[
0
]
->
platform
,
'
2
',
'
first result: platform ok
');
is
(
$departures
[
0
]
->
delay
,
0
,
'
first result: delay ok
');
is
(
$departures
[
-
1
]
->
time
,
'
20:18
',
'
last result: time ok
');
is
(
$departures
[
-
1
]
->
train
,
'
S 6
',
'
last result: train ok
');
...
...
@@ -39,6 +40,9 @@ is($departures[8]->time, '19:31', '9th result: time ok');
is
(
$departures
[
8
]
->
train
,
'
NWB75366
',
'
9th result: train ok
');
is
(
$departures
[
8
]
->
info_raw
,
'
k.A.
',
'
9th result: info_raw ok
');
is
(
$departures
[
8
]
->
info
,
q{}
,
'
9th result: info ok
');
is
(
$departures
[
8
]
->
delay
,
undef
,
'
9th result: delay ok
');
is
(
$departures
[
15
]
->
delay
,
15
,
'
16th result: delay ok
');
is_deeply
([
$departures
[
8
]
->
route
],
['
Essen-Borbeck
',
'
Bottrop Hbf
',
'
Gladbeck West
',
'
Gladbeck-Zweckel
',
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment