summaryrefslogtreecommitdiff
path: root/t/21-vrr.t
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-12-03 11:08:09 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-12-03 11:08:09 +0100
commitdb1479f97edecfafa25599318240c217e0584e60 (patch)
treebb4e40ef92e62f9ac6eb9d1287265b5bfca43033 /t/21-vrr.t
parentb272087f7bf83da66360cc0cc46611a4d8efff4e (diff)
Add ->via test
Diffstat (limited to 't/21-vrr.t')
-rw-r--r--t/21-vrr.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/21-vrr.t b/t/21-vrr.t
index 355f464..139790e 100644
--- a/t/21-vrr.t
+++ b/t/21-vrr.t
@@ -7,7 +7,7 @@ use utf8;
use Encode qw(decode);
use File::Slurp qw(slurp);
-use Test::More tests => 73;
+use Test::More tests => 74;
BEGIN {
use_ok('Travel::Routing::DE::VRR');
@@ -74,6 +74,10 @@ is( $c0->arrival_sdate, '27.11.2011', 'r0,0: asdate' );
is( $c0->arrival_time, '14:02', 'r0,0: artime' );
is( $c0->arrival_stime, '14:02', 'r0,0: astime' );
+is_deeply( ($c0->via)[0],
+ ['27.11.2011', '13:56', 'Essen Florastr.', 'Bstg. 1'],
+ 'r0,0: via[0]');
+
is( $c1->delay, 3, 'r0,1: delay' );
is_deeply(
[ $c1->extra ],