diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-12-03 11:08:09 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-12-03 11:08:09 +0100 |
commit | db1479f97edecfafa25599318240c217e0584e60 (patch) | |
tree | bb4e40ef92e62f9ac6eb9d1287265b5bfca43033 /t/21-vrr.t | |
parent | b272087f7bf83da66360cc0cc46611a4d8efff4e (diff) |
Add ->via test
Diffstat (limited to 't/21-vrr.t')
-rw-r--r-- | t/21-vrr.t | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 ], |