Infer failure cases.
mtwilliams opened this issue · comments
Specifically, when you request the conversion rate to a non-existent currency like ZWL
.
As of 8f2af6f, it returns {:ok, [0.0, 0.0]}
. As of my decimal improvements it fails with a Decimal.Error
.
The best heuristic would be to look for the occurrence of --
.