Fix the tests after the changes proposed by @10537

Ref: issuer # 10537
This commit is contained in:
Ernesto Rodriguez Ortiz
2017-04-03 17:29:03 -04:00
parent dac18f8928
commit 76fd9d905f
5 changed files with 90 additions and 214 deletions

View File

@@ -44,8 +44,8 @@ CONVERTER_CLASSES = {
'fr_CH': lang_FR_CH.Num2Word_FR_CH(),
'de': lang_DE.Num2Word_DE(),
'es': lang_ES.Num2Word_ES(),
'es_CO': lang_ES_CO.Num2Word_ES_CO,
'es_VE': lang_ES_VE.Num2Word_ES_VE,
'es_CO': lang_ES_CO.Num2Word_ES_CO(),
'es_VE': lang_ES_VE.Num2Word_ES_VE(),
'id': lang_ID.Num2Word_ID(),
'lt': lang_LT.Num2Word_LT(),
'lv': lang_LV.Num2Word_LV(),

View File

@@ -162,11 +162,12 @@ to_card = n2w.to_cardinal
to_ord = n2w.to_ordinal
to_ordnum = n2w.to_ordinal_num
def main():
for val in [ 1, 11, 12, 21, 31, 33, 71, 80, 81, 91, 99, 100, 101, 102, 155,
180, 300, 308, 832, 1000, 1001, 1061, 1100, 1500, 1701, 3000,
8280, 8291, 150000, 500000, 1000000, 2000000, 2000001,
-21212121211221211111, -2.121212, -1.0000100]:
for val in [1, 11, 12, 21, 31, 33, 71, 80, 81, 91, 99, 100, 101, 102, 155,
180, 300, 308, 832, 1000, 1001, 1061, 1100, 1500, 1701, 3000,
8280, 8291, 150000, 500000, 1000000, 2000000, 2000001,
-21212121211221211111, -2.121212, -1.0000100]:
n2w.test(val)
n2w.test(1325325436067876801768700107601001012212132143210473207540327057320957032975032975093275093275093270957329057320975093272950730)