Modules to convert numbers to words. 42 --> forty-two
GNU Lesser General Public License v2.1
820
stars
497
forks
source link
Arabic: num2words(..., lang="ar") can fail with IndexError or InvalidOperation (instead of OverflowError) #511
Closed
Jeronymous closed 1 year ago
Expected Behaviour
num2words can sometimes fail with OverflowError on big numbers, that's fine.
But sometimes for Arabic language, it fails with other errors that seem to be bugs.
Actual Behaviour / Steps to reproduce
Here are two input which fails, with 2 different errors (IndexError / InvalidOperation).
The first error is
IndexError
:The second one is
InvalidOperation
: