mirror of
https://github.com/bblaz/num2words.git
synced 2025-12-06 06:42:25 +00:00
Improve Ukrainian support and minor fixes in CZ, KZ, LT, LV, PL, RU, SR languages (#400)
* Fix English char 'i' in Ukrainian words * Fix the feminine currency processing for UAH in lang_UK.py * Fix test_ua.py * Fix the feminine currency processing for UAH in lang_RU.py * Add tests for UAH in test_ru.py * Add world currencies to lang_UK.py; Add test cases to test_uk.py for world currencies * Fix incorrect handling of zeros after decimal point for CZ, KZ, LT, LV, PL, RU, SR and UK languages * Add ukrainian ordinal numbers * Fix too long lines of code * Add test for negative cardinal number
This commit is contained in:
committed by
Willem Van Onsem
parent
79a9abfaba
commit
6bf14bee7b
@@ -32,6 +32,14 @@ class Num2WordsPLTest(TestCase):
|
||||
self.assertEqual(num2words(1000, lang='pl'), "tysiąc")
|
||||
self.assertEqual(num2words(1001, lang='pl'), "tysiąc jeden")
|
||||
self.assertEqual(num2words(2012, lang='pl'), "dwa tysiące dwanaście")
|
||||
self.assertEqual(
|
||||
num2words(10.02, lang='pl'),
|
||||
"dziesięć przecinek zero dwa"
|
||||
)
|
||||
self.assertEqual(
|
||||
num2words(15.007, lang='pl'),
|
||||
"piętnaście przecinek zero zero siedem"
|
||||
)
|
||||
self.assertEqual(
|
||||
num2words(12519.85, lang='pl'),
|
||||
"dwanaście tysięcy pięćset dziewiętnaście przecinek "
|
||||
|
||||
Reference in New Issue
Block a user