Correct funcparser tests

This commit is contained in:
Griatch 2022-09-18 00:49:41 +02:00
parent 705d47fe47
commit 6fa68745ba
3 changed files with 31 additions and 19 deletions

View file

@ -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))