#454: [tr] fix negative number problem

This commit is contained in:
Yunus Emre Geldegul
2022-08-19 23:37:53 +03:00
parent a218b332d2
commit 3ffdbec8e0
2 changed files with 32 additions and 22 deletions

View File

@@ -186,7 +186,11 @@ class Num2WordsTRTest(TestCase):
{"test": 10, "to": "ordinal_num", "expected": u"10uncu"},
{"test": 1, "to": "ordinal_num", "expected": u"1inci"},
{"test": 3, "to": "ordinal_num", "expected": u"3üncü"},
{"test": 6, "to": "ordinal_num", "expected": u"6ıncı"}
{"test": 6, "to": "ordinal_num", "expected": u"6ıncı"},
{"test": -5, "to": "cardinal", "expected": u"eksibeş"},
{"test": -55, "to": "cardinal", "expected": u"eksiellibeş"},
{"test": -576, "to": "cardinal", "expected": u"eksibeşyüzyetmişaltı"},
{"test": -3, "to": "currency", "expected": u"eksiüçlira"},
]
for casedata in testcases: