Skip to content

Commit

Permalink
Jubilee 2022 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dten committed Nov 18, 2020
1 parent 3dd10c2 commit 4c75ebf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/uk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ pub fn is_bankholiday<T: Datelike>(date: &T) -> bool {
(2012, 06, 05) => return true, // Extra For Jubilee
(2020, 05, 04) => return false, // Move for VE Day
(2020, 05, 08) => return true,
(2022, 05, 30) => return false, // Move for Jubilee
(2022, 06, 02) => return true,
(2022, 06, 03) => return true, // Extra for Jubilee
_ => {}
}

Expand Down Expand Up @@ -123,4 +126,7 @@ mod tests {
test!(year_2020, 2020,
[(1, 1), (10, 4), (13, 4), (8, 5), (25, 5), (31, 8), (25, 12), (28, 12)]);

test!(year_2022, 2022,
[(3, 1), (15, 4), (18, 4), (2, 5), (2, 6), (3, 6), (29, 8), (26, 12), (27, 12)]);

}

0 comments on commit 4c75ebf

Please sign in to comment.