Skip to content

Commit

Permalink
test cases of year 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
gugod committed May 28, 2023
1 parent f1bf26c commit 3b50434
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions t/2024.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
use Test2::V0;

use Date::Holidays::TW qw(is_tw_holiday tw_holidays);

is is_tw_holiday(2024, 1, 1), T();
is is_tw_holiday(2024, 2, 7), F();
is is_tw_holiday(2024, 2, 8), T(), '小年夜';
is is_tw_holiday(2024, 4, 3), F();
is is_tw_holiday(2024, 4, 4), T(), '清明 / 兒童節';
is is_tw_holiday(2024, 4, 5), T(), '補假';
is is_tw_holiday(2024, 6, 22), T(), '端午';
is is_tw_holiday(2024, 9, 29), T(), '中秋';

done_testing;

0 comments on commit 3b50434

Please sign in to comment.