Skip to content

Commit 84a92a4

Browse files
committed
sample a few test cases for year 2026
1 parent c86a16b commit 84a92a4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

t/2026.t

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
use Test2::V0;
2+
3+
use Date::Holidays::TW qw(is_tw_holiday tw_holidays);
4+
5+
is is_tw_holiday(2026, 1, 1), T();
6+
is is_tw_holiday(2026, 2, 15), T(), '小年夜';
7+
is is_tw_holiday(2026, 4, 3), T(), '補假';
8+
is is_tw_holiday(2026, 4, 4), T(), '兒童節';
9+
is is_tw_holiday(2026, 4, 5), T(), '清明節';
10+
is is_tw_holiday(2026, 6, 19), T(), '端午';
11+
is is_tw_holiday(2026, 9, 25), T(), '中秋節';
12+
is is_tw_holiday(2026,10, 25), T(), '臺灣光復暨金門古寧頭大捷紀念日';
13+
14+
done_testing;

0 commit comments

Comments
 (0)