summaryrefslogtreecommitdiff
path: root/t/20-db.t
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-10-02 19:51:14 +0200
committerDaniel Friesel <derf@finalrewind.org>2022-10-02 19:51:14 +0200
commita02fc782b199b17a6a94f091cc80271289fef262 (patch)
tree07843c3cd0bdd050e884489db70bd2627549d65a /t/20-db.t
parentf3beaf2d9eb789a6f745d4606d2e95bbb5ad29ae (diff)
mgate: parse operator
Diffstat (limited to 't/20-db.t')
-rwxr-xr-xt/20-db.t12
1 files changed, 6 insertions, 6 deletions
diff --git a/t/20-db.t b/t/20-db.t
index 65c7ba5..b206a51 100755
--- a/t/20-db.t
+++ b/t/20-db.t
@@ -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 )