savoirfairelinux / num2words

Modules to convert numbers to words. 42 --> forty-two
GNU Lesser General Public License v2.1
820 stars 497 forks source link

Fix #498 - Romanian inflect is wrong for mega and giga values, add te… #499

Open adrian-branescu opened 1 year ago

adrian-branescu commented 1 year ago

…sts that replicated the issue and capture potential regressions, fix wrong tests

Fixes #498 by...

Changes proposed in this pull request:

Changed Romanian inflect() logic for mega and giga values in order to add de before plural when (value corresponding to that order of magnitude) % 100 >= 20 and nothing otherwise aka between 1 .. 19 inclusive.

Status

How to verify this change

Just run the tests and should all pass. Note that only those for Romanian language were touched.