diff options
author | Daniel Friesel <derf@finalrewind.org> | 2014-02-06 19:13:35 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2014-02-06 19:13:35 +0100 |
commit | 765bf0794a92522d13b75ced092ab0cfd8cdbf64 (patch) | |
tree | 8b12e123f4fffac8c9f1231dc30a8688224c49df /t/31-result-basics.t | |
parent | 822be4f5957a5f34a4542cfdf92c350953340151 (diff) |
add lookahead option
Diffstat (limited to 't/31-result-basics.t')
-rw-r--r-- | t/31-result-basics.t | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/t/31-result-basics.t b/t/31-result-basics.t index 9a76e91..7f9423b 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 => 435; +use Test::More tests => 436; use Test::Fatal; use Travel::Status::DE::IRIS; @@ -87,3 +87,21 @@ $status = Travel::Status::DE::IRIS->new( @results = $status->results; is(@results, 0, 'no data available -> empty result list'); + +$status = Travel::Status::DE::IRIS->new( + iris_base => 'file:t/in', + lookahead => 0, + station => 'EE', + datetime => DateTime->new( + year => 2014, + month => 1, + day => 3, + hour => 20, + minute => 1, + time_zone => 'Europe/Berlin' + ) +); + +@results = $status->results; + +is(@results, 0, 'lookahead 0 -> no results'); |