Fix #10, add test

This commit is contained in:
Mahdi Dibaiee
2015-07-07 15:50:05 +04:30
parent a4b45ded0a
commit 9274694d98
5 changed files with 16 additions and 5 deletions

View File

@ -6,6 +6,10 @@ describe('Equations', () => {
let equation = M.equation('x+2');
expect(equation(2)).to.equal(4);
// Issue #10
let subtraction = M.equation('x - 3');
expect(subtraction(10)).to.equal(7);
});
it('should work with multiple variables', () => {