mirror of
https://github.com/bblaz/num2words.git
synced 2025-12-05 22:32:25 +00:00
Merge branch 'master' into master
This commit is contained in:
@@ -36,6 +36,7 @@ class Num2WordsNLTest(TestCase):
|
||||
)
|
||||
|
||||
def test_ordinal_at_crucial_number(self):
|
||||
self.assertEqual(num2words(0, ordinal=True, lang='nl'), "nulde")
|
||||
self.assertEqual(num2words(100, ordinal=True, lang='nl'), "honderdste")
|
||||
self.assertEqual(
|
||||
num2words(1000, ordinal=True, lang='nl'), "duizendste"
|
||||
|
||||
@@ -182,7 +182,11 @@ class Num2WordsTRTest(TestCase):
|
||||
{"test": 101101011010.02, "to": "cardinal",
|
||||
"expected": u"yüzbirmilyaryüzbirmilyononbirbinonvirgüliki"},
|
||||
{"test": 101101011010.2, "to": "cardinal",
|
||||
"expected": u"yüzbirmilyaryüzbirmilyononbirbinonvirgülyirmi"}
|
||||
"expected": u"yüzbirmilyaryüzbirmilyononbirbinonvirgülyirmi"},
|
||||
{"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ı"}
|
||||
]
|
||||
|
||||
for casedata in testcases:
|
||||
|
||||
Reference in New Issue
Block a user