summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJun Omae <jun66j5@gmail.com>2022-05-01 16:33:41 +0900
committerAarni Koskela <akx@iki.fi>2022-05-10 08:53:12 +0200
commit128322c6b9ad23f4c1cd0b3996dd00fc48306750 (patch)
tree20c6511b9e7fb51d8a81c9caae97aa21c73fcb68 /tests
parentb203c672a265bc9d4e6b44cc46359d9414252736 (diff)
downloadbabel-128322c6b9ad23f4c1cd0b3996dd00fc48306750.tar.gz
Fix get_period_id() with `dayPeriodRule` across 0:00
Diffstat (limited to 'tests')
-rw-r--r--tests/test_day_periods.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_day_periods.py b/tests/test_day_periods.py
index eb12b07..52cbc5e 100644
--- a/tests/test_day_periods.py
+++ b/tests/test_day_periods.py
@@ -10,6 +10,9 @@ import pytest
("de", time(3, 11), "night1"), # (after, before)
("fi", time(0), "midnight"), # (at)
("en_US", time(12), "noon"), # (at)
+ ("en_US", time(21), "night1"), # (from, before) across 0:00
+ ("en_US", time(5), "night1"), # (from, before) across 0:00
+ ("en_US", time(6), "morning1"), # (from, before)
("agq", time(10), "am"), # no periods defined
("agq", time(22), "pm"), # no periods defined
("am", time(14), "afternoon1"), # (before, after)