We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58b935d commit 51b6761Copy full SHA for 51b6761
tests/duration/test_in_words.py
@@ -65,9 +65,14 @@ def test_subseconds():
65
assert pi.in_words() == "0.12 seconds"
66
67
68
+def test_subseconds_with_n_digits():
69
+ pi = pendulum.duration(microseconds=123456)
70
+
71
+ assert pi.in_words(seconds_n_decimal=3) == "0.123 seconds"
72
73
74
def test_subseconds_with_seconds():
75
pi = pendulum.duration(seconds=12, microseconds=123456)
-
76
assert pi.in_words() == "12 seconds"
77
78
0 commit comments