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

@ -13,6 +13,9 @@ describe('Equations', function () {
var equation = _M2['default'].equation('x+2');
_expect.expect(equation(2)).to.equal(4);
var subtraction = _M2['default'].equation('x - 3');
_expect.expect(subtraction(10)).to.equal(7);
});
it('should work with multiple variables', function () {