Correct funcparser tests
This commit is contained in:
parent
705d47fe47
commit
6fa68745ba
3 changed files with 31 additions and 19 deletions
|
|
@ -2745,7 +2745,7 @@ def int2str(number, adjective=False):
|
|||
str: The number expressed as a string.
|
||||
|
||||
"""
|
||||
number = int(adjective)
|
||||
number = int(number)
|
||||
if adjective:
|
||||
return _INT2STR_MAP_ADJ.get(number, f"{number}th")
|
||||
return _INT2STR_MAP_NOUN.get(number, str(number))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue