mirror of
https://github.com/bblaz/num2words.git
synced 2025-12-06 06:42:25 +00:00
updated tests
This commit is contained in:
@@ -830,6 +830,8 @@ class Num2Word_TR(object):
|
|||||||
found = 1
|
found = 1
|
||||||
|
|
||||||
def to_currency(self, value):
|
def to_currency(self, value):
|
||||||
|
if int(value) == 0:
|
||||||
|
return self.ZERO + self.CURRENCY_UNIT[0]
|
||||||
valueparts = self.to_cardinal(value).split(self.pointword)
|
valueparts = self.to_cardinal(value).split(self.pointword)
|
||||||
if len(valueparts) == 1:
|
if len(valueparts) == 1:
|
||||||
return valueparts[0] + self.CURRENCY_UNIT[0]
|
return valueparts[0] + self.CURRENCY_UNIT[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user