small fix, added tests, readme

This commit is contained in:
Mahdi Dibaiee
2015-04-20 14:25:41 +04:30
parent a8f47cd662
commit f903f35098
9 changed files with 51 additions and 14 deletions

View File

@ -53,6 +53,10 @@ describe('Functions', () => {
it('should work for without parantheses', () => {
expect(M.solve('lg4 * 5')).to.equal(10);
});
it('should work for wrapped functions', () => {
expect(M.solve('(lg4)*2')).to.equal(4);
});
});
describe('Constats', () => {