mirror of
https://github.com/bblaz/num2words.git
synced 2025-12-06 06:42:25 +00:00
16 lines
409 B
Python
16 lines
409 B
Python
|
|
# -*- encoding: utf-8 -*-
|
||
|
|
from __future__ import unicode_literals
|
||
|
|
|
||
|
|
from unittest import TestCase
|
||
|
|
|
||
|
|
from num2words import num2words
|
||
|
|
|
||
|
|
|
||
|
|
class Num2WordsLVTest(TestCase):
|
||
|
|
def test_to_currency(self):
|
||
|
|
self.assertEqual(
|
||
|
|
num2words('38.4', lang='lv', to='currency', seperator=' un',
|
||
|
|
cents=False, currency='EUR'),
|
||
|
|
"trīsdesmit astoņi eiro un 40 centi"
|
||
|
|
)
|