Tshepang Mbambo 2022-07-18 22:26:28 +02:00
parent c9fcae3d6b
commit f4803a77e3
1 changed files with 2 additions and 2 deletions

View File

@ -186,7 +186,7 @@ mod tests {
fn test_collect_dates_from_file() {
let text = "Test1\nAs of Jan 2021\nTest2\nAs of Feb 2021 \
\nTest3\nTest4\nAs of march 2021Bar\nas of apr 2021 \
\nTest5\nTest6\nTest7\n\n\nas of may 2021\nTest8
\nTest5\nTest6\nTest7\n\n\nas of\n\n may 2021\nTest8
";
assert_eq!(
collect_dates_from_file(&make_date_regex(), text),
@ -220,7 +220,7 @@ mod tests {
}
),
(
14,
16,
Date {
year: 2021,
month: 5,