Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NAN string is parsed by the BigFloat package successfully (as it is when parsed into any number type in Rust). This means the creation of the Num2Words object succeeds and tries to parse that number. However, this cause the call .to_u64().unwrap() to crash with the following error: thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /home/asp/.cargo/registry/src/index.crates.io-6f17d22bba15001f/num2words-1.0.0/src/lang/en.rs:78:53 Closes #12
- Loading branch information
I am honestly not fond of these
assert(true/false);
, now might be a good time to transfer that intoassert!(num.is_none());