summaryrefslogtreecommitdiff
path: root/src/rrulestr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/rrulestr.rs')
-rw-r--r--src/rrulestr.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rrulestr.rs b/src/rrulestr.rs
index ee18199..51a3f24 100644
--- a/src/rrulestr.rs
+++ b/src/rrulestr.rs
@@ -772,4 +772,10 @@ mod test {
assert_eq!(rrule.all().len(), 30);
}
+
+ #[test]
+ fn rrule_all_fails_with_panic() {
+ let res = "DTSTART;VALUE=DATE:20201230T130000\nRRULE:FREQ=MONTHLY;UNTIL=20210825T120000Z;INTERVAL=1;BYDAY=-1WE".parse::<RRuleSet>().unwrap().all();
+ println!("Res {:?}", res);
+ }
}