Fix #10, add test
This commit is contained in:
3
dist/tests/equation.js
vendored
3
dist/tests/equation.js
vendored
@ -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 () {
|
||||
|
Reference in New Issue
Block a user