summaryrefslogtreecommitdiffstats
path: root/src/iter.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-09-26 17:41:20 +0200
committerMatthias Beyer <mail@beyermatthias.de>2017-09-26 17:57:56 +0200
commit4be0e3b361615a84ecf1402b827a81ca62e95bc5 (patch)
tree900ca070850269155815499b88307566cecd0a50 /src/iter.rs
parent77c3f75343dc84b87e99e333bc15ea5c308fc017 (diff)
Implement filter interface for matchers
Diffstat (limited to 'src/iter.rs')
-rw-r--r--src/iter.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/iter.rs b/src/iter.rs
index 7e53da4..0b8c6a0 100644
--- a/src/iter.rs
+++ b/src/iter.rs
@@ -412,3 +412,20 @@ mod type_tests {
}
}
+#[cfg(all(feature = "with-filters", test))]
+mod type_tests_filter_interface {
+ use super::*;
+ use super::IntoCalculatingIter;
+ use super::extensions::*;
+
+ #[test]
+ fn test_compile() {
+ // This test is solely to check whether this compiles and the API is nice
+ let _ = TimeType::today()
+ .yearly(1)
+ .unwrap()
+ .calculate()
+ .every(::indicator::Day::Monday.or(::indicator::Month::January));
+ }
+}
+