mirror of
https://github.com/bblaz/num2words.git
synced 2025-12-06 06:42:25 +00:00
Long form for currency name is optional. Currency name rendering in e… (#133)
* Long form for currency name is optional. Currency name rendering in english. * Missing encoding header.
This commit is contained in:
committed by
Ernesto Rodriguez Ortiz
parent
ee9f767b06
commit
5a131fedc6
@@ -41,7 +41,13 @@ class Num2WordsLVTest(TestCase):
|
||||
|
||||
self.assertEqual(
|
||||
num2words('38.4', lang='lv', to='currency', seperator=' un',
|
||||
cents=False, currency='USD'),
|
||||
cents=False, currency='USD', prefix=False),
|
||||
"trīsdesmit astoņi dolāri un 40 centi"
|
||||
)
|
||||
|
||||
self.assertEqual(
|
||||
num2words('38.4', lang='lv', to='currency', seperator=' un',
|
||||
cents=False, currency='USD', prefix=True),
|
||||
"trīsdesmit astoņi ASV dolāri un 40 centi"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user