From 22c088275d0e1e58d65751e50552ea41a2e10b98 Mon Sep 17 00:00:00 2001 From: Fredrik Meringdal Date: Sat, 17 Oct 2020 13:43:14 +0200 Subject: hourly fixes again --- tests/rrule.rs | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'tests') 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), + ], + ); + } } -- cgit v1.2.3