mirror of
https://github.com/bblaz/num2words.git
synced 2025-12-06 06:42:25 +00:00
Fixed bogus word merge in english
Also, added a first unit test. Gotta start somewhere. Fixes #8.
This commit is contained in:
@@ -49,7 +49,7 @@ class Num2Word_EN(lang_EU.Num2Word_EU):
|
||||
|
||||
def merge(self, (ltext, lnum), (rtext, rnum)):
|
||||
if lnum == 1 and rnum < 100:
|
||||
return (rtext, rnum + lnum)
|
||||
return (rtext, rnum)
|
||||
elif 100 > lnum > rnum :
|
||||
return ("%s-%s"%(ltext, rtext), lnum + rnum)
|
||||
elif lnum >= 100 > rnum:
|
||||
|
||||
Reference in New Issue
Block a user