Added {:error, _} return on Abacus.eval() when there is the expression is invalid or contains an unexpected token
Added unit test to test that Abacus.eval("1 + )") returns an error tuple.
Oh, turns out I used with in the wrong way. It should also work with {:ok, parsed} <- parse(expr), but this fix is fine too, thanks for the submission :)
Added {:error, _} return on Abacus.eval() when there is the expression is invalid or contains an unexpected token Added unit test to test that Abacus.eval("1 + )") returns an error tuple.