openexchangerates / accounting.js

A lightweight JavaScript library for number, money and currency formatting - fully localisable, zero dependencies.
http://openexchangerates.github.io/accounting.js
MIT License
4.95k stars 532 forks source link

create unit tests #4

Closed millermedeiros closed 13 years ago

millermedeiros commented 13 years ago

Unit tests are essential to avoid regressions and to help spotting edge cases.

millermedeiros commented 13 years ago

I recommend Jasmine or QUnit since both are popular and easy to use.

wjcrowcroft commented 13 years ago

Yeah, tests are on the way for sure - this was a weekend project really, so didn't think to write any just yet, but as the library grows they'll come in handy.

wjcrowcroft commented 13 years ago

By the way - please feel free to add some tests of your own and commit them, I'll be happy to pull it in.

wjcrowcroft commented 13 years ago

We now have qunit and jasmine tests. Whoa.