Incorrect return
jro31 opened this issue · comments
Was just running some tests, and almost all returned correctly. I got the following return though:
[1] pry(main)> NumbersInWords.in_numbers('a thousand six hundred and fifty-five') => 1161
Interesting. Which version? I've been trying to improve this library a little in my spare time as a hobby. But I'm surprised that such a simple case can trip it up. I can maybe look at it tonight. Do you fancy doing a PR to add the failing spec?
Version 0.4.0.
Have added as a failing spec and put in a pr.
Fixed in 0.4.1
require 'numbers_in_words'; NumbersInWords.in_numbers('thousand six hundred and fifty five')
=> 1161
But I'm not sure it's grammatical without the article.