summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFredrik Meringdal <fmeringdal@hotmail.com>2020-10-16 11:01:37 +0200
committerFredrik Meringdal <fmeringdal@hotmail.com>2020-10-16 11:01:37 +0200
commit552344a00e1bb6344e459c3b26433bc6287070a2 (patch)
tree18ceeebf5e6aef1383f0b0a2782d3b008dfb3523
parent9e5742a46211fbf4cb33e32082febb5932b5ad3e (diff)
downloadrust_rrule-552344a00e1bb6344e459c3b26433bc6287070a2.zip
cargo.toml
-rw-r--r--Cargo.toml2
-rw-r--r--tests/rrule.rs32
2 files changed, 33 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 8295829..0109b76 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "rust_ical"
+name = "rrule"
version = "0.1.0"
authors = ["Fredrik Meringdal <fmeringdal@hotmail.com>"]
edition = "2018"
diff --git a/tests/rrule.rs b/tests/rrule.rs
index 967e337..11632dc 100644
--- a/tests/rrule.rs
+++ b/tests/rrule.rs
@@ -653,4 +653,36 @@ mod test {
],
);
}
+
+ #[test]
+ fn yearly_by_weekno_and_weekday_last() {
+ let mut options = ParsedOptions {
+ freq: Frequenzy::YEARLY,
+ count: Some(3),
+ bymonth: vec![],
+ dtstart: ymd_hms(1997, 9, 2, 9, 0, 0),
+ byweekday: vec![6],
+ byhour: vec![9],
+ bysetpos: vec![],
+ byweekno: vec![-1],
+ byminute: vec![0],
+ 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, 12, 28, 9, 0, 0),
+ ymd_hms(1999, 1, 3, 9, 0, 0),
+ ymd_hms(2000, 1, 2, 9, 0, 0),
+ ],
+ );
+ }
}