nicolewhite / algebra.js

Build, display, and solve algebraic equations.
http://algebra.js.org
MIT License
1.34k stars 111 forks source link

changed exceptions in complex.js and tests #26

Closed smwentum closed 9 years ago

smwentum commented 9 years ago

i am still learning about pulling on github but this is the changes to complex.js and the tests (ignore last two pull requests)

nicolewhite commented 9 years ago

I haven't gotten around to it yet, but issue https://github.com/nicolewhite/algebra.js/issues/19 is for updating all the error messages. I want them to be along the lines of what Tim has done in the parser, e.g. this line.

So if you could edit these to be more along those lines, e.g.

throw new Error("Expected " + input.toString() + " to be a Fraction");

then we'll be good.