Skip to content

Commit 70ff707

Browse files
committed
Add test cases to cover the behavior described in #14.
1 parent eac27e3 commit 70ff707

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_time.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,9 @@ def test_precisedelta_multiple_units(
559559
"%.4f",
560560
"23 hours, 59 minutes and 59.9990 seconds",
561561
),
562+
(dt.timedelta(days=31), "days", "%d", "1 month"),
563+
(dt.timedelta(days=31.01), "days", "%d", "1 month and 1 day"),
564+
(dt.timedelta(days=92), "days", "%d", "3 months"),
562565
],
563566
)
564567
def test_precisedelta_custom_format(

0 commit comments

Comments
 (0)