summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-06-25 11:36:38 +0200
committerDaniel Friesel <derf@finalrewind.org>2017-06-25 11:38:48 +0200
commitf09d59986998f2210314e38a1ad72d77fcfac067 (patch)
tree3b2b96cd07701e345c75b188cd0d3490828d6e22 /t
parent710c15968ef20e0c17a9ce0cd493596f6a457cde (diff)
Interpret lookahead / lookbehind with 1-minute granularity
Diffstat (limited to 't')
-rw-r--r--t/20-iris-class.t4
-rw-r--r--t/31-result-basics.t6
2 files changed, 5 insertions, 5 deletions
diff --git a/t/20-iris-class.t b/t/20-iris-class.t
index 8ec50ef..a861909 100644
--- a/t/20-iris-class.t
+++ b/t/20-iris-class.t
@@ -4,7 +4,7 @@ use warnings;
use 5.014;
use DateTime;
-use Test::More tests => 274;
+use Test::More tests => 266;
BEGIN {
use_ok('Travel::Status::DE::IRIS');
@@ -22,7 +22,7 @@ my $status = Travel::Status::DE::IRIS->new(
minute => 1,
time_zone => 'Europe/Berlin',
),
- lookahead => 3 * 60 + 59,
+ lookahead => 3 * 60,
);
isa_ok( $status, 'Travel::Status::DE::IRIS' );
diff --git a/t/31-result-basics.t b/t/31-result-basics.t
index ac2b23d..d313d4f 100644
--- a/t/31-result-basics.t
+++ b/t/31-result-basics.t
@@ -5,7 +5,7 @@ use 5.014;
use utf8;
use DateTime;
-use Test::More tests => 436;
+use Test::More tests => 424;
use Test::Fatal;
use Travel::Status::DE::IRIS;
@@ -21,12 +21,12 @@ my $status = Travel::Status::DE::IRIS->new(
minute => 1,
time_zone => 'Europe/Berlin'
),
- lookahead => 3 * 60 + 59,
+ lookahead => 3 * 60,
);
my @results = $status->results;
-is(@results, 135, 'got 135 results');
+is(@results, 131, 'got 131 results');
my $ice645 = $results[0];
my $s1 = $results[1];