diff options
author | Fredrik Meringdal <fmeringdal@hotmail.com> | 2020-10-20 23:36:32 +0200 |
---|---|---|
committer | Fredrik Meringdal <fmeringdal@hotmail.com> | 2020-10-20 23:36:32 +0200 |
commit | 8b062ddeb1143e6894653274a524b63dc7c5b165 (patch) | |
tree | f69b97e2876452569bb2f79527c0ef244421cab8 /tests | |
parent | eac4ef5fe5f0b86b576736ea49b53043c24c1357 (diff) | |
download | rust_rrule-8b062ddeb1143e6894653274a524b63dc7c5b165.zip |
checkpoint! Refactored more and tests pass
Diffstat (limited to 'tests')
-rw-r--r-- | tests/rrule.rs | 634 |
1 files changed, 314 insertions, 320 deletions
diff --git a/tests/rrule.rs b/tests/rrule.rs index 1518656..225ae4b 100644 --- a/tests/rrule.rs +++ b/tests/rrule.rs @@ -4,7 +4,7 @@ extern crate rrule; use chrono::prelude::*; use chrono_tz::UTC; -use rrule::iter::*; +use rrule::rrule::RRule; use rrule::options::*; #[cfg(test)] @@ -22,16 +22,10 @@ mod test { Utc.ymd(year, month, day).and_hms(hour, minute, second) } - fn test_recurring(options: &mut ParsedOptions, expected_dates: &Vec<DateTime<Utc>>) { - let iter_args = IterArgs { - inc: true, - before: UTC.ymd(2020, 1, 1).and_hms(0, 0, 0), - after: UTC.ymd(2020, 1, 1).and_hms(0, 0, 0), - dt: UTC.ymd(2020, 1, 1).and_hms(0, 0, 0), - }; - let mut iter_res = IterResult::new(QueryMethodTypes::ALL, iter_args); + fn test_recurring(options: ParsedOptions, expected_dates: &Vec<DateTime<Utc>>) { - let res = iter(&mut iter_res, options); + let mut rrule = RRule::new(options); + let res = rrule.all(); assert_eq!( res.len(), @@ -47,10 +41,10 @@ mod test { #[test] fn yearly() { - let mut options = + let options = ParsedOptions::new(Frequenzy::YEARLY, &ymd_hms(1997, 9, 2, 9, 0, 0)).count(3); test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 0), ymd_hms(1998, 9, 2, 9, 0, 0), @@ -61,11 +55,11 @@ mod test { #[test] fn yearly_interval() { - let mut options = ParsedOptions::new(Frequenzy::YEARLY, &ymd_hms(1997, 9, 2, 9, 0, 0)) + let options = ParsedOptions::new(Frequenzy::YEARLY, &ymd_hms(1997, 9, 2, 9, 0, 0)) .count(3) .interval(2); test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 0), ymd_hms(1999, 9, 2, 9, 0, 0), @@ -76,11 +70,11 @@ mod test { #[test] fn yearly_interval_large() { - let mut options = ParsedOptions::new(Frequenzy::YEARLY, &ymd_hms(1997, 9, 2, 9, 0, 0)) + let options = ParsedOptions::new(Frequenzy::YEARLY, &ymd_hms(1997, 9, 2, 9, 0, 0)) .count(3) .interval(40); test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 0), ymd_hms(2037, 9, 2, 9, 0, 0), @@ -91,7 +85,7 @@ mod test { #[test] fn yearly_by_easter() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::YEARLY, count: Some(3), bymonth: vec![], @@ -113,7 +107,7 @@ mod test { byeaster: Some(0), }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 4, 12, 9, 0, 0), ymd_hms(1999, 4, 4, 9, 0, 0), @@ -124,7 +118,7 @@ mod test { #[test] fn yearly_by_easterpos() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::YEARLY, count: Some(3), bymonth: vec![], @@ -146,7 +140,7 @@ mod test { byeaster: Some(1), }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 4, 13, 9, 0, 0), ymd_hms(1999, 4, 5, 9, 0, 0), @@ -157,7 +151,7 @@ mod test { #[test] fn yearly_by_easterpos_neg() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::YEARLY, count: Some(3), bymonth: vec![], @@ -179,7 +173,7 @@ mod test { byeaster: Some(-2), }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 4, 10, 9, 0, 0), ymd_hms(1999, 4, 2, 9, 0, 0), @@ -190,7 +184,7 @@ mod test { #[test] fn yearly_by_month() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::YEARLY, count: Some(3), bymonth: vec![1, 3], @@ -212,7 +206,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 2, 9, 0, 0), ymd_hms(1998, 3, 2, 9, 0, 0), @@ -223,7 +217,7 @@ mod test { #[test] fn yearly_by_monthday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::YEARLY, count: Some(3), bymonth: vec![], @@ -245,7 +239,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 3, 9, 0, 0), ymd_hms(1997, 10, 1, 9, 0, 0), @@ -256,7 +250,7 @@ mod test { #[test] fn yearly_by_month_and_monthday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::YEARLY, count: Some(3), bymonth: vec![1, 3], @@ -278,7 +272,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 5, 9, 0, 0), ymd_hms(1998, 1, 7, 9, 0, 0), @@ -289,7 +283,7 @@ mod test { #[test] fn yearly_by_weekday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::YEARLY, count: Some(3), bymonth: vec![], @@ -311,7 +305,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 0), ymd_hms(1997, 9, 4, 9, 0, 0), @@ -322,7 +316,7 @@ mod test { #[test] fn yearly_by_nweekday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::YEARLY, count: Some(3), bymonth: vec![], @@ -344,7 +338,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 12, 25, 9, 0, 0), ymd_hms(1998, 1, 6, 9, 0, 0), @@ -355,7 +349,7 @@ mod test { #[test] fn yearly_by_nweekday_large() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::YEARLY, count: Some(3), bymonth: vec![], @@ -377,7 +371,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 10, 2, 9, 0, 0), ymd_hms(1998, 3, 31, 9, 0, 0), @@ -388,7 +382,7 @@ mod test { #[test] fn yearly_by_month_and_weekday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::YEARLY, count: Some(3), bymonth: vec![1, 3], @@ -410,7 +404,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 1, 9, 0, 0), ymd_hms(1998, 1, 6, 9, 0, 0), @@ -421,7 +415,7 @@ mod test { #[test] fn yearly_by_month_and_nweekday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::YEARLY, count: Some(3), bymonth: vec![1, 3], @@ -443,7 +437,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 6, 9, 0, 0), ymd_hms(1998, 1, 29, 9, 0, 0), @@ -454,7 +448,7 @@ mod test { #[test] fn yearly_by_month_and_nweekday_large() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::YEARLY, count: Some(3), bymonth: vec![1, 3], @@ -476,7 +470,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 15, 9, 0, 0), ymd_hms(1998, 1, 20, 9, 0, 0), @@ -487,7 +481,7 @@ mod test { #[test] fn yearly_by_monthday_and_weekday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::YEARLY, count: Some(3), bymonth: vec![], @@ -509,7 +503,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 1, 9, 0, 0), ymd_hms(1998, 2, 3, 9, 0, 0), @@ -520,7 +514,7 @@ mod test { #[test] fn yearly_by_month_and_monthday_and_weekday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::YEARLY, count: Some(3), bymonth: vec![1, 3], @@ -542,7 +536,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 1, 9, 0, 0), ymd_hms(1998, 3, 3, 9, 0, 0), @@ -553,7 +547,7 @@ mod test { #[test] fn yearly_by_yearday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::YEARLY, count: Some(4), bymonth: vec![], @@ -575,7 +569,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 12, 31, 9, 0, 0), ymd_hms(1998, 1, 1, 9, 0, 0), @@ -587,7 +581,7 @@ mod test { #[test] fn yearly_by_yeardayneg() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::YEARLY, count: Some(4), bymonth: vec![], @@ -609,7 +603,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 12, 31, 9, 0, 0), ymd_hms(1998, 1, 1, 9, 0, 0), @@ -621,7 +615,7 @@ mod test { #[test] fn yearly_by_month_and_yearday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::YEARLY, count: Some(4), bymonth: vec![4, 7], @@ -643,7 +637,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 4, 10, 9, 0, 0), ymd_hms(1998, 7, 19, 9, 0, 0), @@ -655,7 +649,7 @@ mod test { #[test] fn yearly_by_weekno() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::YEARLY, count: Some(3), bymonth: vec![], @@ -677,7 +671,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 5, 11, 9, 0, 0), ymd_hms(1998, 5, 12, 9, 0, 0), @@ -688,7 +682,7 @@ mod test { #[test] fn yearly_by_weekno_and_weekday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::YEARLY, count: Some(3), bymonth: vec![], @@ -710,7 +704,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 12, 29, 9, 0, 0), ymd_hms(1999, 1, 4, 9, 0, 0), @@ -721,7 +715,7 @@ mod test { #[test] fn yearly_by_weekno_and_weekday_large() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::YEARLY, count: Some(3), bymonth: vec![], @@ -743,7 +737,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 12, 28, 9, 0, 0), ymd_hms(1998, 12, 27, 9, 0, 0), @@ -754,7 +748,7 @@ mod test { #[test] fn yearly_by_weekno_and_weekday_last() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::YEARLY, count: Some(3), bymonth: vec![], @@ -776,7 +770,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 12, 28, 9, 0, 0), ymd_hms(1999, 1, 3, 9, 0, 0), @@ -787,7 +781,7 @@ mod test { #[test] fn yearly_by_weekno_and_weekday53_last() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::YEARLY, count: Some(3), bymonth: vec![], @@ -809,7 +803,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 12, 28, 9, 0, 0), ymd_hms(2004, 12, 27, 9, 0, 0), @@ -820,7 +814,7 @@ mod test { #[test] fn yearly_by_hour() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::YEARLY, count: Some(3), bymonth: vec![9], @@ -842,7 +836,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 18, 0, 0), ymd_hms(1998, 9, 2, 6, 0, 0), @@ -853,7 +847,7 @@ mod test { #[test] fn yearly_by_minute() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::YEARLY, count: Some(3), bymonth: vec![9], @@ -875,7 +869,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 6, 0), ymd_hms(1997, 9, 2, 9, 18, 0), @@ -886,7 +880,7 @@ mod test { #[test] fn yearly_by_second() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::YEARLY, count: Some(3), bymonth: vec![9], @@ -908,7 +902,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 6), ymd_hms(1997, 9, 2, 9, 0, 18), @@ -919,7 +913,7 @@ mod test { #[test] fn yearly_by_hour_and_minute() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::YEARLY, count: Some(3), bymonth: vec![9], @@ -941,7 +935,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 18, 6, 0), ymd_hms(1997, 9, 2, 18, 18, 0), @@ -952,7 +946,7 @@ mod test { #[test] fn yearly_by_hour_and_second() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::YEARLY, count: Some(3), bymonth: vec![9], @@ -974,7 +968,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 18, 0, 6), ymd_hms(1997, 9, 2, 18, 0, 18), @@ -985,7 +979,7 @@ mod test { #[test] fn yearly_by_minute_and_second() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::YEARLY, count: Some(3), bymonth: vec![9], @@ -1007,7 +1001,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 6, 6), ymd_hms(1997, 9, 2, 9, 6, 18), @@ -1018,7 +1012,7 @@ mod test { #[test] fn yearly_by_hour_and_minute_and_second() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::YEARLY, count: Some(3), bymonth: vec![9], @@ -1040,7 +1034,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 18, 6, 6), ymd_hms(1997, 9, 2, 18, 6, 18), @@ -1051,7 +1045,7 @@ mod test { #[test] fn yearly_by_setpos() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::YEARLY, count: Some(3), bymonth: vec![], @@ -1073,7 +1067,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 11, 15, 18, 0, 0), ymd_hms(1998, 2, 15, 6, 0, 0), @@ -1084,7 +1078,7 @@ mod test { #[test] fn monthly() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(3), bymonth: vec![], @@ -1106,7 +1100,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 0), ymd_hms(1997, 10, 2, 9, 0, 0), @@ -1117,7 +1111,7 @@ mod test { #[test] fn monthly_interval() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(3), bymonth: vec![], @@ -1139,7 +1133,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 0), ymd_hms(1997, 11, 2, 9, 0, 0), @@ -1150,7 +1144,7 @@ mod test { #[test] fn monthly_interval_large() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(3), bymonth: vec![], @@ -1172,7 +1166,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 0), ymd_hms(1999, 3, 2, 9, 0, 0), @@ -1183,7 +1177,7 @@ mod test { #[test] fn monthly_by_easter() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(3), bymonth: vec![], @@ -1205,7 +1199,7 @@ mod test { byeaster: Some(0), }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 4, 12, 9, 0, 0), ymd_hms(1999, 4, 4, 9, 0, 0), @@ -1216,7 +1210,7 @@ mod test { #[test] fn monthly_by_easterpos() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(3), bymonth: vec![], @@ -1238,7 +1232,7 @@ mod test { byeaster: Some(1), }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 4, 13, 9, 0, 0), ymd_hms(1999, 4, 5, 9, 0, 0), @@ -1249,7 +1243,7 @@ mod test { #[test] fn monthly_by_easterpos_neg() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(3), bymonth: vec![], @@ -1271,7 +1265,7 @@ mod test { byeaster: Some(-2), }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 4, 10, 9, 0, 0), ymd_hms(1999, 4, 2, 9, 0, 0), @@ -1282,7 +1276,7 @@ mod test { #[test] fn monthly_neg_by_monthday_janfeb_for_nonleapyear() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(4), bymonth: vec![], @@ -1304,7 +1298,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(2013, 12, 31, 9, 0, 0), ymd_hms(2014, 1, 31, 9, 0, 0), @@ -1316,7 +1310,7 @@ mod test { #[test] fn monthly_neg_by_monthday_janfeb_for_leapyear() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(4), bymonth: vec![], @@ -1338,7 +1332,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(2015, 12, 31, 9, 0, 0), ymd_hms(2016, 1, 31, 9, 0, 0), @@ -1350,7 +1344,7 @@ mod test { #[test] fn monthly_neg_monthday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(6), bymonth: vec![], @@ -1372,7 +1366,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(2015, 12, 29, 9, 0, 0), ymd_hms(2015, 12, 31, 9, 0, 0), @@ -1386,7 +1380,7 @@ mod test { #[test] fn monthly_by_month() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(3), bymonth: vec![1, 3], @@ -1408,7 +1402,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 2, 9, 0, 0), ymd_hms(1998, 3, 2, 9, 0, 0), @@ -1419,7 +1413,7 @@ mod test { #[test] fn monthly_by_monthday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(3), bymonth: vec![], @@ -1441,7 +1435,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 3, 9, 0, 0), ymd_hms(1997, 10, 1, 9, 0, 0), @@ -1452,7 +1446,7 @@ mod test { #[test] fn monthly_by_month_and_monthday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(3), bymonth: vec![1, 3], @@ -1474,7 +1468,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 5, 9, 0, 0), ymd_hms(1998, 1, 7, 9, 0, 0), @@ -1485,7 +1479,7 @@ mod test { #[test] fn monthly_by_weekday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(3), bymonth: vec![], @@ -1507,7 +1501,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 0), ymd_hms(1997, 9, 4, 9, 0, 0), @@ -1518,7 +1512,7 @@ mod test { #[test] fn monthly_by_nweekday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(3), bymonth: vec![], @@ -1540,7 +1534,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 0), ymd_hms(1997, 9, 25, 9, 0, 0), @@ -1551,7 +1545,7 @@ mod test { #[test] fn monthly_by_nweekday_large() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(3), bymonth: vec![], @@ -1573,7 +1567,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 11, 9, 0, 0), ymd_hms(1997, 9, 16, 9, 0, 0), @@ -1584,7 +1578,7 @@ mod test { #[test] fn monthly_by_month_and_weekday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(3), bymonth: vec![1, 3], @@ -1606,7 +1600,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 1, 9, 0, 0), ymd_hms(1998, 1, 6, 9, 0, 0), @@ -1617,7 +1611,7 @@ mod test { #[test] fn monthly_by_month_and_nweekday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(3), bymonth: vec![1, 3], @@ -1639,7 +1633,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 6, 9, 0, 0), ymd_hms(1998, 1, 29, 9, 0, 0), @@ -1650,7 +1644,7 @@ mod test { #[test] fn monthly_by_month_and_nweekday_large() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(3), bymonth: vec![1, 3], @@ -1672,7 +1666,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 15, 9, 0, 0), ymd_hms(1998, 1, 20, 9, 0, 0), @@ -1683,7 +1677,7 @@ mod test { #[test] fn monthly_by_monthday_and_weekday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(3), bymonth: vec![], @@ -1705,7 +1699,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 1, 9, 0, 0), ymd_hms(1998, 2, 3, 9, 0, 0), @@ -1716,7 +1710,7 @@ mod test { #[test] fn monthly_by_month_and_monthday_and_weekday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(3), bymonth: vec![1, 3], @@ -1738,7 +1732,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 1, 9, 0, 0), ymd_hms(1998, 3, 3, 9, 0, 0), @@ -1749,7 +1743,7 @@ mod test { #[test] fn monthly_by_yearday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(4), bymonth: vec![], @@ -1771,7 +1765,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 12, 31, 9, 0, 0), ymd_hms(1998, 1, 1, 9, 0, 0), @@ -1783,7 +1777,7 @@ mod test { #[test] fn monthly_by_yeardayneg() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(4), bymonth: vec![], @@ -1805,7 +1799,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 12, 31, 9, 0, 0), ymd_hms(1998, 1, 1, 9, 0, 0), @@ -1817,7 +1811,7 @@ mod test { #[test] fn monthly_by_month_and_yearday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(4), bymonth: vec![4, 7], @@ -1839,7 +1833,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 4, 10, 9, 0, 0), ymd_hms(1998, 7, 19, 9, 0, 0), @@ -1851,7 +1845,7 @@ mod test { #[test] fn monthly_by_weekno() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(3), bymonth: vec![], @@ -1873,7 +1867,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 5, 11, 9, 0, 0), ymd_hms(1998, 5, 12, 9, 0, 0), @@ -1886,7 +1880,7 @@ mod test { // may be in the last year. #[test] fn monthly_by_weekno_and_weekday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(3), bymonth: vec![], @@ -1908,7 +1902,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 12, 29, 9, 0, 0), ymd_hms(1999, 1, 4, 9, 0, 0), @@ -1921,7 +1915,7 @@ mod test { // may be in the next year. #[test] fn monthly_by_weekno_and_weekday_large() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(3), bymonth: vec![], @@ -1943,7 +1937,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 12, 28, 9, 0, 0), ymd_hms(1998, 12, 27, 9, 0, 0), @@ -1954,7 +1948,7 @@ mod test { #[test] fn monthly_by_weekno_and_weekday_last() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(3), bymonth: vec![], @@ -1976,7 +1970,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 12, 28, 9, 0, 0), ymd_hms(1999, 1, 3, 9, 0, 0), @@ -1987,7 +1981,7 @@ mod test { #[test] fn monthly_by_weekno_and_weekday53() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(3), bymonth: vec![], @@ -2009,7 +2003,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 12, 28, 9, 0, 0), ymd_hms(2004, 12, 27, 9, 0, 0), @@ -2020,7 +2014,7 @@ mod test { #[test] fn monthly_by_hour() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(3), bymonth: vec![], @@ -2042,7 +2036,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 18, 0, 0), ymd_hms(1997, 10, 2, 6, 0, 0), @@ -2053,7 +2047,7 @@ mod test { #[test] fn monthly_by_minute() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(3), bymonth: vec![], @@ -2075,7 +2069,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 6, 0), ymd_hms(1997, 9, 2, 9, 18, 0), @@ -2086,7 +2080,7 @@ mod test { #[test] fn monthly_by_second() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(3), bymonth: vec![], @@ -2108,7 +2102,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 6), ymd_hms(1997, 9, 2, 9, 0, 18), @@ -2119,7 +2113,7 @@ mod test { #[test] fn monthly_by_hour_and_minute() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(3), bymonth: vec![], @@ -2141,7 +2135,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 18, 6, 0), ymd_hms(1997, 9, 2, 18, 18, 0), @@ -2152,7 +2146,7 @@ mod test { #[test] fn monthly_by_hour_and_second() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(3), bymonth: vec![], @@ -2174,7 +2168,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 18, 0, 6), ymd_hms(1997, 9, 2, 18, 0, 18), @@ -2185,7 +2179,7 @@ mod test { #[test] fn monthly_by_minute_and_second() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(3), bymonth: vec![], @@ -2207,7 +2201,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 6, 6), ymd_hms(1997, 9, 2, 9, 6, 18), @@ -2218,7 +2212,7 @@ mod test { #[test] fn monthly_by_hour_and_minute_and_second() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(3), bymonth: vec![], @@ -2240,7 +2234,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 18, 6, 6), ymd_hms(1997, 9, 2, 18, 6, 18), @@ -2251,7 +2245,7 @@ mod test { #[test] fn monthly_by_setpos() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::MONTHLY, count: Some(3), bymonth: vec![], @@ -2273,7 +2267,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 13, 18, 0, 0), ymd_hms(1997, 9, 17, 6, 0, 0), @@ -2284,7 +2278,7 @@ mod test { #[test] fn weekly() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::WEEKLY, count: Some(3), bymonth: vec![], @@ -2306,7 +2300,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 0), ymd_hms(1997, 9, 9, 9, 0, 0), @@ -2317,7 +2311,7 @@ mod test { #[test] fn weekly_interval() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::WEEKLY, count: Some(3), bymonth: vec![], @@ -2339,7 +2333,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 0), ymd_hms(1997, 9, 16, 9, 0, 0), @@ -2350,7 +2344,7 @@ mod test { #[test] fn weekly_interval_large() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::WEEKLY, count: Some(3), bymonth: vec![], @@ -2372,7 +2366,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 0), ymd_hms(1998, 1, 20, 9, 0, 0), @@ -2383,7 +2377,7 @@ mod test { #[test] fn weekly_by_month() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::WEEKLY, count: Some(6), bymonth: vec![1, 3], @@ -2405,7 +2399,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 6, 9, 0, 0), ymd_hms(1998, 1, 13, 9, 0, 0), @@ -2419,7 +2413,7 @@ mod test { #[test] fn weekly_by_monthday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::WEEKLY, count: Some(3), bymonth: vec![], @@ -2441,7 +2435,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 3, 9, 0, 0), ymd_hms(1997, 10, 1, 9, 0, 0), @@ -2452,7 +2446,7 @@ mod test { #[test] fn weekly_by_month_and_monthday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::WEEKLY, count: Some(3), bymonth: vec![1, 3], @@ -2474,7 +2468,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 5, 9, 0, 0), ymd_hms(1998, 1, 7, 9, 0, 0), @@ -2485,7 +2479,7 @@ mod test { #[test] fn weekly_by_weekday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::WEEKLY, count: Some(3), bymonth: vec![], @@ -2507,7 +2501,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 0), ymd_hms(1997, 9, 4, 9, 0, 0), @@ -2519,7 +2513,7 @@ mod test { // ! why isnt this using nweekday ??? #[test] fn weekly_by_nweekday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::WEEKLY, count: Some(3), bymonth: vec![], @@ -2541,7 +2535,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 0), ymd_hms(1997, 9, 4, 9, 0, 0), @@ -2552,7 +2546,7 @@ mod test { #[test] fn weekly_by_month_and_weekday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::WEEKLY, count: Some(3), bymonth: vec![1, 3], @@ -2574,7 +2568,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 1, 9, 0, 0), ymd_hms(1998, 1, 6, 9, 0, 0), @@ -2585,7 +2579,7 @@ mod test { #[test] fn weekly_by_monthday_and_weekday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::WEEKLY, count: Some(3), bymonth: vec![], @@ -2607,7 +2601,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 1, 9, 0, 0), ymd_hms(1998, 2, 3, 9, 0, 0), @@ -2618,7 +2612,7 @@ mod test { #[test] fn weekly_by_month_monthday_and_weekday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::WEEKLY, count: Some(3), bymonth: vec![1, 3], @@ -2640,7 +2634,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 1, 9, 0, 0), ymd_hms(1998, 3, 3, 9, 0, 0), @@ -2651,7 +2645,7 @@ mod test { #[test] fn weekly_by_yearday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::WEEKLY, count: Some(4), bymonth: vec![], @@ -2673,7 +2667,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 12, 31, 9, 0, 0), ymd_hms(1998, 1, 1, 9, 0, 0), @@ -2685,7 +2679,7 @@ mod test { #[test] fn weekly_by_yeardayneg() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::WEEKLY, count: Some(4), bymonth: vec![], @@ -2707,7 +2701,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 12, 31, 9, 0, 0), ymd_hms(1998, 1, 1, 9, 0, 0), @@ -2719,7 +2713,7 @@ mod test { #[test] fn weekly_by_month_yearday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::WEEKLY, count: Some(4), bymonth: vec![1, 7], @@ -2741,7 +2735,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 1, 9, 0, 0), ymd_hms(1998, 7, 19, 9, 0, 0), @@ -2753,7 +2747,7 @@ mod test { #[test] fn weekly_by_weekno() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::WEEKLY, count: Some(3), bymonth: vec![], @@ -2775,7 +2769,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 5, 11, 9, 0, 0), ymd_hms(1998, 5, 12, 9, 0, 0), @@ -2786,7 +2780,7 @@ mod test { #[test] fn weekly_by_weekno_and_weekday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::WEEKLY, count: Some(3), bymonth: vec![], @@ -2808,7 +2802,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 12, 29, 9, 0, 0), ymd_hms(1999, 1, 4, 9, 0, 0), @@ -2819,7 +2813,7 @@ mod test { #[test] fn weekly_by_weekno_and_weekday_large() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::WEEKLY, count: Some(3), bymonth: vec![], @@ -2841,7 +2835,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 12, 28, 9, 0, 0), ymd_hms(1998, 12, 27, 9, 0, 0), @@ -2852,7 +2846,7 @@ mod test { #[test] fn weekly_by_weekno_and_weekday_last() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::WEEKLY, count: Some(3), bymonth: vec![], @@ -2874,7 +2868,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 12, 28, 9, 0, 0), ymd_hms(1999, 1, 3, 9, 0, 0), @@ -2885,7 +2879,7 @@ mod test { #[test] fn weekly_by_weekno_and_weekday53() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::WEEKLY, count: Some(3), bymonth: vec![], @@ -2907,7 +2901,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 12, 28, 9, 0, 0), ymd_hms(2004, 12, 27, 9, 0, 0), @@ -2918,7 +2912,7 @@ mod test { #[test] fn weekly_by_hour() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::WEEKLY, count: Some(3), bymonth: vec![], @@ -2940,7 +2934,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 18, 0, 0), ymd_hms(1997, 9, 9, 6, 0, 0), @@ -2951,7 +2945,7 @@ mod test { #[test] fn weekly_by_minute() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::WEEKLY, count: Some(3), bymonth: vec![], @@ -2973,7 +2967,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 6, 0), ymd_hms(1997, 9, 2, 9, 18, 0), @@ -2984,7 +2978,7 @@ mod test { #[test] fn weekly_by_second() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::WEEKLY, count: Some(3), bymonth: vec![], @@ -3006,7 +3000,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 6), ymd_hms(1997, 9, 2, 9, 0, 18), @@ -3017,7 +3011,7 @@ mod test { #[test] fn weekly_by_hour_and_minute() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::WEEKLY, count: Some(3), bymonth: vec![], @@ -3039,7 +3033,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 18, 6, 0), ymd_hms(1997, 9, 2, 18, 18, 0), @@ -3050,7 +3044,7 @@ mod test { #[test] fn weekly_by_hour_and_second() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::WEEKLY, count: Some(3), bymonth: vec![], @@ -3072,7 +3066,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 18, 0, 6), ymd_hms(1997, 9, 2, 18, 0, 18), @@ -3083,7 +3077,7 @@ mod test { #[test] fn weekly_by_minute_and_second() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::WEEKLY, count: Some(3), bymonth: vec![], @@ -3105,7 +3099,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 6, 6), ymd_hms(1997, 9, 2, 9, 6, 18), @@ -3116,7 +3110,7 @@ mod test { #[test] fn weekly_by_hour_and_minute_and_second() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::WEEKLY, count: Some(5), bymonth: vec![], @@ -3138,7 +3132,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 18, 6, 6), ymd_hms(1997, 9, 2, 18, 6, 18), @@ -3151,7 +3145,7 @@ mod test { #[test] fn weekly_by_setpos() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::WEEKLY, count: Some(3), bymonth: vec![], @@ -3173,7 +3167,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 18, 0, 0), ymd_hms(1997, 9, 4, 6, 0, 0), @@ -3184,7 +3178,7 @@ mod test { #[test] fn daily() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(3), bymonth: vec![], @@ -3206,7 +3200,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 0), ymd_hms(1997, 9, 3, 9, 0, 0), @@ -3217,7 +3211,7 @@ mod test { #[test] fn daily_interval() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(3), bymonth: vec![], @@ -3239,7 +3233,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 0), ymd_hms(1997, 9, 4, 9, 0, 0), @@ -3250,7 +3244,7 @@ mod test { #[test] fn daily_interval_large() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(3), bymonth: vec![], @@ -3272,7 +3266,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 0), ymd_hms(1997, 12, 3, 9, 0, 0), @@ -3283,7 +3277,7 @@ mod test { #[test] fn daily_by_month() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(3), bymonth: vec![1, 3], @@ -3305,7 +3299,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 1, 9, 0, 0), ymd_hms(1998, 1, 2, 9, 0, 0), @@ -3316,7 +3310,7 @@ mod test { #[test] fn daily_by_monthday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(3), bymonth: vec![], @@ -3338,7 +3332,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 3, 9, 0, 0), ymd_hms(1997, 10, 1, 9, 0, 0), @@ -3349,7 +3343,7 @@ mod test { #[test] fn daily_by_month_and_monthday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(3), bymonth: vec![1, 3], @@ -3371,7 +3365,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 5, 9, 0, 0), ymd_hms(1998, 1, 7, 9, 0, 0), @@ -3382,7 +3376,7 @@ mod test { #[test] fn daily_by_weekday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(3), bymonth: vec![], @@ -3404,7 +3398,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 0), ymd_hms(1997, 9, 4, 9, 0, 0), @@ -3415,7 +3409,7 @@ mod test { #[test] fn daily_by_month_and_weekday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(3), bymonth: vec![1, 3], @@ -3437,7 +3431,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 1, 9, 0, 0), ymd_hms(1998, 1, 6, 9, 0, 0), @@ -3448,7 +3442,7 @@ mod test { #[test] fn daily_by_monthday_and_weekday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(3), bymonth: vec![], @@ -3470,7 +3464,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 1, 9, 0, 0), ymd_hms(1998, 2, 3, 9, 0, 0), @@ -3481,7 +3475,7 @@ mod test { #[test] fn daily_by_month_and_monthday_and_weekday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(3), bymonth: vec![1, 3], @@ -3503,7 +3497,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 1, 9, 0, 0), ymd_hms(1998, 3, 3, 9, 0, 0), @@ -3514,7 +3508,7 @@ mod test { #[test] fn daily_by_yearday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(4), bymonth: vec![], @@ -3536,7 +3530,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 12, 31, 9, 0, 0), ymd_hms(1998, 1, 1, 9, 0, 0), @@ -3548,7 +3542,7 @@ mod test { #[test] fn daily_by_yeardayneg() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(4), bymonth: vec![], @@ -3570,7 +3564,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 12, 31, 9, 0, 0), ymd_hms(1998, 1, 1, 9, 0, 0), @@ -3582,7 +3576,7 @@ mod test { #[test] fn daily_by_month_and_yearday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(4), bymonth: vec![1, 7], @@ -3604,7 +3598,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 1, 9, 0, 0), ymd_hms(1998, 7, 19, 9, 0, 0), @@ -3616,7 +3610,7 @@ mod test { #[test] fn daily_by_weekno() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(3), bymonth: vec![], @@ -3638,7 +3632,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 5, 11, 9, 0, 0), ymd_hms(1998, 5, 12, 9, 0, 0), @@ -3651,7 +3645,7 @@ mod test { // may be in the last year. #[test] fn daily_by_weekno_and_weekday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(3), bymonth: vec![], @@ -3673,7 +3667,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 12, 29, 9, 0, 0), ymd_hms(1999, 1, 4, 9, 0, 0), @@ -3686,7 +3680,7 @@ mod test { // may be in the next year. #[test] fn daily_by_weekno_and_weekday_large() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(3), bymonth: vec![], @@ -3708,7 +3702,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 12, 28, 9, 0, 0), ymd_hms(1998, 12, 27, 9, 0, 0), @@ -3719,7 +3713,7 @@ mod test { #[test] fn daily_by_weekno_and_weekday_last() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(3), bymonth: vec![], @@ -3741,7 +3735,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 12, 28, 9, 0, 0), ymd_hms(1999, 1, 3, 9, 0, 0), @@ -3752,7 +3746,7 @@ mod test { #[test] fn daily_by_weekno_and_weekday53() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(3), bymonth: vec![], @@ -3774,7 +3768,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 12, 28, 9, 0, 0), ymd_hms(2004, 12, 27, 9, 0, 0), @@ -3785,7 +3779,7 @@ mod test { #[test] fn daily_by_hour() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(3), bymonth: vec![], @@ -3807,7 +3801,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 18, 0, 0), ymd_hms(1997, 9, 3, 6, 0, 0), @@ -3818,7 +3812,7 @@ mod test { #[test] fn daily_by_minute() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(3), bymonth: vec![], @@ -3840,7 +3834,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 6, 0), ymd_hms(1997, 9, 2, 9, 18, 0), @@ -3851,7 +3845,7 @@ mod test { #[test] fn daily_by_second() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(3), bymonth: vec![], @@ -3873,7 +3867,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 6), ymd_hms(1997, 9, 2, 9, 0, 18), @@ -3884,7 +3878,7 @@ mod test { #[test] fn daily_by_hour_and_minute() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(3), bymonth: vec![], @@ -3906,7 +3900,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 18, 6, 0), ymd_hms(1997, 9, 2, 18, 18, 0), @@ -3917,7 +3911,7 @@ mod test { #[test] fn daily_by_hour_and_second() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(3), bymonth: vec![], @@ -3939,7 +3933,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 18, 0, 6), ymd_hms(1997, 9, 2, 18, 0, 18), @@ -3950,7 +3944,7 @@ mod test { #[test] fn daily_by_minute_and_second() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(3), bymonth: vec![], @@ -3972,7 +3966,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 6, 6), ymd_hms(1997, 9, 2, 9, 6, 18), @@ -3983,7 +3977,7 @@ mod test { #[test] fn daily_by_hour_and_minute_and_second() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(3), bymonth: vec![], @@ -4005,7 +3999,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 18, 6, 6), ymd_hms(1997, 9, 2, 18, 6, 18), @@ -4016,7 +4010,7 @@ mod test { #[test] fn daily_by_setpos() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(3), bymonth: vec![], @@ -4038,7 +4032,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 18, 15, 0), ymd_hms(1997, 9, 3, 6, 45, 0), @@ -4049,7 +4043,7 @@ mod test { #[test] fn hourly() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::HOURLY, count: Some(3), bymonth: vec![], @@ -4071,7 +4065,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 0), ymd_hms(1997, 9, 2, 10, 0, 0), @@ -4082,7 +4076,7 @@ mod test { #[test] fn hourly_interval() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::HOURLY, count: Some(3), bymonth: vec![], @@ -4104,7 +4098,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 0), ymd_hms(1997, 9, 2, 11, 0, 0), @@ -4115,7 +4109,7 @@ mod test { #[test] fn hourly_interval_large() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::HOURLY, count: Some(3), bymonth: vec![], @@ -4137,7 +4131,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 0), ymd_hms(1997, 10, 4, 10, 0, 0), @@ -4148,7 +4142,7 @@ mod test { #[test] fn hourly_by_month() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::HOURLY, count: Some(3), bymonth: vec![1, 3], @@ -4170,7 +4164,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 1, 0, 0, 0), ymd_hms(1998, 1, 1, 1, 0, 0), @@ -4181,7 +4175,7 @@ mod test { #[test] fn hourly_by_monthday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::HOURLY, count: Some(3), bymonth: vec![], @@ -4203,7 +4197,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 3, 0, 0, 0), ymd_hms(1997, 9, 3, 1, 0, 0), @@ -4214,7 +4208,7 @@ mod test { #[test] fn hourly_by_month_and_monthday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::HOURLY, count: Some(3), bymonth: vec![1, 3], @@ -4236,7 +4230,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 5, 0, 0, 0), ymd_hms(1998, 1, 5, 1, 0, 0), @@ -4247,7 +4241,7 @@ mod test { #[test] fn hourly_by_weekday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::HOURLY, count: Some(5), bymonth: vec![], @@ -4269,7 +4263,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 0), ymd_hms(1997, 9, 2, 14, 0, 0), @@ -4282,7 +4276,7 @@ mod test { #[test] fn hourly_by_month_and_weekday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::HOURLY, count: Some(3), bymonth: vec![1, 3], @@ -4304,7 +4298,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 1, 0, 0, 0), ymd_hms(1998, 1, 1, 1, 0, 0), @@ -4315,7 +4309,7 @@ mod test { #[test] fn hourly_by_monthday_and_weekday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::HOURLY, count: Some(3), bymonth: vec![], @@ -4337,7 +4331,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 1, 0, 0, 0), ymd_hms(1998, 1, 1, 1, 0, 0), @@ -4348,7 +4342,7 @@ mod test { #[test] fn hourly_by_month_and_monthday_and_weekday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::HOURLY, count: Some(3), bymonth: vec![1, 3], @@ -4370,7 +4364,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 1, 1, 0, 0, 0), ymd_hms(1998, 1, 1, 1, 0, 0), @@ -4381,7 +4375,7 @@ mod test { #[test] fn hourly_by_yearday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::HOURLY, count: Some(8), bymonth: vec![], @@ -4403,7 +4397,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 12, 31, 9, 0, 0), ymd_hms(1997, 12, 31, 21, 0, 0), @@ -4419,7 +4413,7 @@ mod test { #[test] fn hourly_by_yeardayneg() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::HOURLY, count: Some(8), bymonth: vec![], @@ -4441,7 +4435,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 12, 31, 9, 0, 0), ymd_hms(1997, 12, 31, 21, 0, 0), @@ -4457,7 +4451,7 @@ mod test { #[test] fn hourly_by_month_and_yearday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::HOURLY, count: Some(4), bymonth: vec![4, 7], @@ -4479,7 +4473,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 4, 10, 0, 0, 0), ymd_hms(1998, 4, 10, 1, 0, 0), @@ -4491,7 +4485,7 @@ mod test { #[test] fn hourly_by_weekno() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::HOURLY, count: Some(3), bymonth: vec![], @@ -4513,7 +4507,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 5, 11, 0, 0, 0), ymd_hms(1998, 5, 11, 1, 0, 0), @@ -4524,7 +4518,7 @@ mod test { #[test] fn hourly_by_weekno_and_weekday() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::HOURLY, count: Some(3), bymonth: vec![], @@ -4546,7 +4540,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 12, 29, 0, 0, 0), ymd_hms(1997, 12, 29, 1, 0, 0), @@ -4557,7 +4551,7 @@ mod test { #[test] fn hourly_by_weekno_and_weekday_large() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::HOURLY, count: Some(3), bymonth: vec![], @@ -4579,7 +4573,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 12, 28, 0, 0, 0), ymd_hms(1997, 12, 28, 1, 0, 0), @@ -4590,7 +4584,7 @@ mod test { #[test] fn hourly_by_weekno_and_weekday_last() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::HOURLY, count: Some(3), bymonth: vec![], @@ -4612,7 +4606,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 12, 28, 0, 0, 0), ymd_hms(1997, 12, 28, 1, 0, 0), @@ -4623,7 +4617,7 @@ mod test { #[test] fn hourly_by_weekno_and_weekday53() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::HOURLY, count: Some(3), bymonth: vec![], @@ -4645,7 +4639,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1998, 12, 28, 0, 0, 0), ymd_hms(1998, 12, 28, 1, 0, 0), @@ -4656,7 +4650,7 @@ mod test { #[test] fn hourly_by_hour() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::HOURLY, count: Some(3), bymonth: vec![], @@ -4678,7 +4672,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 18, 0, 0), ymd_hms(1997, 9, 3, 6, 0, 0), @@ -4689,7 +4683,7 @@ mod test { #[test] fn hourly_by_minute() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::HOURLY, count: Some(3), bymonth: vec![], @@ -4711,7 +4705,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 6, 0), ymd_hms(1997, 9, 2, 9, 18, 0), @@ -4722,7 +4716,7 @@ mod test { #[test] fn hourly_by_second() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::HOURLY, count: Some(3), bymonth: vec![], @@ -4744,7 +4738,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 6), ymd_hms(1997, 9, 2, 9, 0, 18), @@ -4755,7 +4749,7 @@ mod test { #[test] fn hourly_by_hour_and_minute() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::HOURLY, count: Some(3), bymonth: vec![], @@ -4777,7 +4771,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 18, 6, 0), ymd_hms(1997, 9, 2, 18, 18, 0), @@ -4788,7 +4782,7 @@ mod test { #[test] fn hourly_by_hour_and_second() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::HOURLY, count: Some(3), bymonth: vec![], @@ -4810,7 +4804,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 18, 0, 6), ymd_hms(1997, 9, 2, 18, 0, 18), @@ -4821,7 +4815,7 @@ mod test { #[test] fn hourly_by_minute_and_second() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::HOURLY, count: Some(3), bymonth: vec![], @@ -4843,7 +4837,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 6, 6), ymd_hms(1997, 9, 2, 9, 6, 18), @@ -4854,7 +4848,7 @@ mod test { #[test] fn hourly_by_hour_and_minute_and_second() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::HOURLY, count: Some(5), bymonth: vec![], @@ -4876,7 +4870,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 18, 6, 6), ymd_hms(1997, 9, 2, 18, 6, 18), @@ -4889,7 +4883,7 @@ mod test { #[test] fn hourly_by_setpos() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::HOURLY, count: Some(3), bymonth: vec![], @@ -4911,7 +4905,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 15, 45), ymd_hms(1997, 9, 2, 9, 45, 15), @@ -4922,7 +4916,7 @@ mod test { #[test] fn until_not_matching() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(3), bymonth: vec![], @@ -4944,7 +4938,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 0), ymd_hms(1997, 9, 3, 9, 0, 0), @@ -4955,7 +4949,7 @@ mod test { #[test] fn until_matching() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(4), bymonth: vec![], @@ -4977,7 +4971,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 0), ymd_hms(1997, 9, 3, 9, 0, 0), @@ -4988,7 +4982,7 @@ mod test { #[test] fn until_single() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(1), bymonth: vec![], @@ -5009,12 +5003,12 @@ mod test { interval: 1, byeaster: None, }; - test_recurring(&mut options, &vec![ymd_hms(1997, 9, 2, 9, 0, 0)]); + test_recurring(options, &vec![ymd_hms(1997, 9, 2, 9, 0, 0)]); } #[test] fn until_empty() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(1), bymonth: vec![], @@ -5035,12 +5029,12 @@ mod test { interval: 1, byeaster: None, }; - test_recurring(&mut options, &vec![]); + test_recurring(options, &vec![]); } #[test] fn until_with_date() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::DAILY, count: Some(4), bymonth: vec![], @@ -5062,7 +5056,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 0), ymd_hms(1997, 9, 3, 9, 0, 0), @@ -5073,7 +5067,7 @@ mod test { #[test] fn wkst_interval_mo() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::WEEKLY, count: Some(3), bymonth: vec![], @@ -5095,7 +5089,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 0), ymd_hms(1997, 9, 7, 9, 0, 0), @@ -5106,7 +5100,7 @@ mod test { #[test] fn wkst_interval_su() { - let mut options = ParsedOptions { + let options = ParsedOptions { freq: Frequenzy::WEEKLY, count: Some(3), bymonth: vec![], @@ -5128,7 +5122,7 @@ mod test { byeaster: None, }; test_recurring( - &mut options, + options, &vec![ ymd_hms(1997, 9, 2, 9, 0, 0), ymd_hms(1997, 9, 14, 9, 0, 0), |