Skip to content

Commit 90af323

Browse files
committed
test: consolidate after rebasing on #3425
1 parent 0201b96 commit 90af323

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
@@ -306,6 +306,8 @@ describe('parse', function () {
306306
approxEqual(parseAndEval('2e.*3'), 2 * Math.E * 3)
307307
approxEqual(parseAndEval('2e./3'), 2 * Math.E / 3)
308308
approxEqual(parseAndEval('2e.^3'), 2 * Math.E ** 3)
309+
assert.deepStrictEqual(
310+
parse('3E.*[2,3]').evaluate({ E: [1, 2] }), math.matrix([6, 18]))
309311
})
310312

311313
it('should throw an error with invalid numbers', function () {
@@ -341,11 +343,6 @@ describe('parse', function () {
341343
assert.throws(function () { parseAndEval('0o89.89') }, /SyntaxError: String "0o89\.89" is not a valid number/)
342344
assert.throws(function () { parseAndEval('0xghji.xyz') }, /SyntaxError: String "0x" is not a valid number/)
343345
})
344-
345-
it('should allow a variable named E to access .-operators', function () {
346-
assert.deepStrictEqual(
347-
parse('3E.*[2,3]').evaluate({ E: [1, 2] }), math.matrix([6, 18]))
348-
})
349346
})
350347

351348
describe('bignumber', function () {

0 commit comments

Comments
 (0)