Fixed #1389: one unit test failing on Windows

This commit is contained in:
Jos de Jong 2019-01-28 22:23:08 +01:00
parent e8b8a36aab
commit 6f92201e18

View File

@ -40,7 +40,8 @@ describe('createUnit', function () {
})
it('should override units', function () {
math.eval('createUnit({"bar": 1e12 Pa}, {"override":true})')
assert.strictEqual(math.eval('1 bar to Pa').toString(), '1e+12 Pa')
const math2 = math.create()
math2.eval('createUnit({"bar": 1e12 Pa}, {"override":true})')
assert.strictEqual(math2.eval('1 bar to Pa').toString(), '1e+12 Pa')
})
})