summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFredrik Meringdal <fmeringdal@hotmail.com>2020-10-17 13:43:14 +0200
committerFredrik Meringdal <fmeringdal@hotmail.com>2020-10-17 13:43:14 +0200
commit22c088275d0e1e58d65751e50552ea41a2e10b98 (patch)
tree1f1179d1b1dfad2fa418571b6c215ede2b013aa3 /tests
parentfd9900ff233b6cc9107805e5e0e401a89d7dbd78 (diff)
downloadrust_rrule-22c088275d0e1e58d65751e50552ea41a2e10b98.zip
hourly fixes again
Diffstat (limited to 'tests')
-rw-r--r--tests/rrule.rs31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/rrule.rs b/tests/rrule.rs
index 5d73eeb..745577a 100644
--- a/tests/rrule.rs
+++ b/tests/rrule.rs
@@ -4172,4 +4172,35 @@ mod test {
],
);
}
+ #[test]
+ fn hourly_by_minute() {
+ let mut options = ParsedOptions {
+ freq: Frequenzy::HOURLY,
+ count: Some(3),
+ bymonth: vec![],
+ dtstart: ymd_hms(1997, 9, 2, 9, 0, 0),
+ byweekday: vec![],
+ byhour: vec![],
+ bysetpos: vec![],
+ byweekno: vec![],
+ byminute: vec![6, 18],
+ bysecond: vec![0],
+ byyearday: vec![],
+ bymonthday: vec![],
+ bynweekday: vec![],
+ bynmonthday: vec![],
+ until: None,
+ wkst: 0,
+ tzid: None,
+ interval: 1,
+ };
+ test_recurring(
+ &mut options,
+ &vec![
+ ymd_hms(1997, 9, 2, 9, 6, 0),
+ ymd_hms(1997, 9, 2, 9, 18, 0),
+ ymd_hms(1997, 9, 2, 10, 6, 0),
+ ],
+ );
+ }
}