mirror of
https://github.com/bblaz/num2words.git
synced 2026-11-12 12:35:27 +00:00
updated tests
This commit is contained in:
1 parent
ede1db8690
commit
9b8a541224
1 file changed
+2
@@ -830,6 +830,8 @@ class Num2Word_TR(object):
|
||||
found = 1
|
||||
|
||||
def to_currency(self, value):
|
||||
if int(value) == 0:
|
||||
return self.ZERO + self.CURRENCY_UNIT[0]
|
||||
valueparts = self.to_cardinal(value).split(self.pointword)
|
||||
if len(valueparts) == 1:
|
||||
return valueparts[0] + self.CURRENCY_UNIT[0]
|
||||
|
||||
Reference in new issue
Block a user