summaryrefslogtreecommitdiff
path: root/src/rrulestr.rs
diff options
context:
space:
mode:
authorFredrik Meringdal <fredrikmeringdal@Fredriks-MacBook-Pro.local>2021-03-01 12:37:52 +0100
committerFredrik Meringdal <fredrikmeringdal@Fredriks-MacBook-Pro.local>2021-03-01 12:37:52 +0100
commit8b415c0e75de03395d907426df92dd1e9de2c399 (patch)
tree7f117f217d8f47bf4909e32841268fc4e0adb20b /src/rrulestr.rs
parent6213d8c758be7b310843b4e7f803ce79bb9671bf (diff)
downloadrust_rrule-8b415c0e75de03395d907426df92dd1e9de2c399.zip
panic fix
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);
+ }
}