Skip to content

Commit

Permalink
Merge branch 'test-coverage/ordinal-reals' (pull request #181).
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Apr 6, 2023
2 parents c81b81b + 10ba894 commit 379c127
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_inflections.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,19 @@ def test_ordinal():
assert p.ordinal("one hundred and four") == "one hundred and fourth"


def test_decimal_ordinals():
"""
Capture expectation around ordinals for decimals.
This expectation is held loosely. Another expectation may be
considered if appropriate.
"""

p = inflect.engine()
assert p.ordinal("1.23") == "1.23rd"
assert p.ordinal("7.09") == "7.09th"


def test_prespart():
p = inflect.engine()
assert p.present_participle("sees") == "seeing"
Expand Down

0 comments on commit 379c127

Please sign in to comment.