mirror of
https://github.com/bblaz/num2words.git
synced 2025-12-05 22:32:25 +00:00
- add uzs for ru and en
This commit is contained in:
committed by
Willem Van Onsem
parent
2ca98971e1
commit
084ace67cb
@@ -131,6 +131,12 @@ class Num2WordsENTest(TestCase):
|
||||
"four pesos and one cent"
|
||||
)
|
||||
|
||||
self.assertEqual(
|
||||
num2words('2000.00', lang='en', to='currency', separator=' and',
|
||||
cents=True, currency='UZS'),
|
||||
"two thousand sums and zero tiyins"
|
||||
)
|
||||
|
||||
def test_to_year(self):
|
||||
# issue 141
|
||||
# "e2 e2"
|
||||
|
||||
@@ -272,3 +272,8 @@ class Num2WordsRUTest(TestCase):
|
||||
'одна тысяча двести тридцать четыре доллара, пятьдесят шесть '
|
||||
'центов'
|
||||
)
|
||||
self.assertEqual(
|
||||
num2words(10122, lang='ru', to='currency', currency='UZS',
|
||||
separator=' и'),
|
||||
'сто один сум и двадцать два тийина'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user