From c2ecfeb9c010e175e6401390b8150b10988093a5 Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 18 Dec 2022 20:23:09 +0100 Subject: Fix tests --- src/model/repetition.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/repetition.rs b/src/model/repetition.rs index 6151cbf..360cf5f 100644 --- a/src/model/repetition.rs +++ b/src/model/repetition.rs @@ -293,7 +293,7 @@ mod tests { } fn d(y: i32, m: u32, d: u32) -> NaiveDate { - NaiveDate::from_ymd_opt(y, m, d) + NaiveDate::from_ymd_opt(y, m, d).unwrap() } fn from_freq(frequency: Frequency) -> Repetition { -- cgit v1.2.3