diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-10-02 19:51:14 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-10-02 19:51:14 +0200 |
commit | a02fc782b199b17a6a94f091cc80271289fef262 (patch) | |
tree | 07843c3cd0bdd050e884489db70bd2627549d65a /t/20-db.t | |
parent | f3beaf2d9eb789a6f745d4606d2e95bbb5ad29ae (diff) |
mgate: parse operator
Diffstat (limited to 't/20-db.t')
-rwxr-xr-x | t/20-db.t | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -52,8 +52,8 @@ for my $res ( $results[0]->line_no, $results[0]->train_no ) { is( $res, 300, 'result 0: line/train number' ); } -is( $results[0]->operator, undef, 'result 0: no operator' ); -is( $results[0]->platform, undef, 'result 0: platform' ); +is( $results[0]->operator, 'Nahreisezug', 'result 0: operator' ); +is( $results[0]->platform, undef, 'result 0: platform' ); for my $res ( $results[0]->route_end, $results[0]->destination, $results[0]->origin ) @@ -90,8 +90,8 @@ for my $res ( $results[2]->line_no, $results[2]->train_no ) { is( $res, 8, 'result 2: line/train number' ); } -is( $results[2]->operator, undef, 'result 2: no operator' ); -is( $results[2]->platform, undef, 'result 2: no platform' ); +is( $results[2]->operator, 'Nahreisezug', 'result 2: operator' ); +is( $results[2]->platform, undef, 'result 2: no platform' ); for my $res ( $results[2]->route_end, $results[2]->destination, $results[2]->origin ) @@ -128,8 +128,8 @@ for my $res ( $results[3]->line_no, $results[3]->train_no ) { is( $res, 3, 'result 3: line/train number' ); } -is( $results[3]->operator, undef, 'result 3: no operator' ); -is( $results[3]->platform, 4, 'result 3: platform' ); +is( $results[3]->operator, 'S-Bahn Berlin', 'result 3: operator' ); +is( $results[3]->platform, 4, 'result 3: platform' ); for my $res ( $results[3]->route_end, $results[3]->destination, $results[3]->origin ) |