summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2013-12-23 20:10:06 +0100
committerDaniel Friesel <derf@finalrewind.org>2013-12-23 20:10:06 +0100
commite2cbbe502cf1543e3209b5121bd0180ae1d60695 (patch)
treef95f5bf012330ec2c1a5199788e37ff3eba6f3ec
parentf295a96773aa512cbd71131cfae7691455ccf777 (diff)
Add hide_past test
-rw-r--r--t/20-aseag.t7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/20-aseag.t b/t/20-aseag.t
index 22d5d69..40e819c 100644
--- a/t/20-aseag.t
+++ b/t/20-aseag.t
@@ -7,7 +7,7 @@ use utf8;
use Encode qw(decode);
use File::Slurp qw(slurp);
use List::Util qw(first);
-use Test::More tests => 18;
+use Test::More tests => 19;
BEGIN {
use_ok('Travel::Status::DE::ASEAG');
@@ -32,6 +32,11 @@ my @results = $s->results;
is( @results, 16208, 'All departures parsed and returned' );
+# hide_past => 1 should return nothing
+
+@results = $s->results( hide_past => 1 );
+is( @results, 0, 'hide_past => 1 returns nothing' );
+
# fuzzy matching: bushof should return Aachen Bushof and Eschweiler Bushof
# (459 results)