Skip to content

Commit 6dbd02f

Browse files
committed
test: consolidate after rebasing on #3425
1 parent 35c9518 commit 6dbd02f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/unit-tests/expression/parse.test.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,8 @@ describe('parse', function () {
303303
approxEqual(parseAndEval('2e.*3'), 2 * Math.E * 3)
304304
approxEqual(parseAndEval('2e./3'), 2 * Math.E / 3)
305305
approxEqual(parseAndEval('2e.^3'), 2 * Math.E ** 3)
306+
assert.deepStrictEqual(
307+
parse('3E.*[2,3]').evaluate({ E: [1, 2] }), math.matrix([6, 18]))
306308
})
307309

308310
it('should throw an error with invalid numbers', function () {
@@ -338,11 +340,6 @@ describe('parse', function () {
338340
assert.throws(function () { parseAndEval('0o89.89') }, /SyntaxError: String "0o89\.89" is not a valid number/)
339341
assert.throws(function () { parseAndEval('0xghji.xyz') }, /SyntaxError: String "0x" is not a valid number/)
340342
})
341-
342-
it('should allow a variable named E to access .-operators', function () {
343-
assert.deepStrictEqual(
344-
parse('3E.*[2,3]').evaluate({ E: [1, 2] }), math.matrix([6, 18]))
345-
})
346343
})
347344

348345
describe('bignumber', function () {

0 commit comments

Comments
 (0)