summaryrefslogtreecommitdiffstats
path: root/src/iter.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-09-27 21:03:07 +0200
committerMatthias Beyer <mail@beyermatthias.de>2017-09-27 21:03:07 +0200
commit211fa5a91930fcdeec11da5055e53b645139b432 (patch)
treeb8288fec01766e56fe857f29ddb7e3beffb0a306 /src/iter.rs
parent62cab4b862f21cf6fe45e6d2e2209d3c7930bc22 (diff)
Fix test: Do not iterate over years and do take only 12 instances
Diffstat (limited to 'src/iter.rs')
-rw-r--r--src/iter.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/iter.rs b/src/iter.rs
index 4e7c18c..4f178ed 100644
--- a/src/iter.rs
+++ b/src/iter.rs
@@ -388,9 +388,10 @@ mod type_tests_filter_interface {
fn test_compile() {
// This test is solely to check whether this compiles and the API is nice
let _ = TimeType::today()
- .yearly(1)
+ .daily(1)
.unwrap()
.every(::indicator::Day::Monday.into_filter().or(::indicator::Month::January))
+ .take(12)
.collect::<Vec<_>>();
}
}