Skip to content

Commit 7ee5387

Browse files
committed
test: add test for #3422
1 parent dba0bf2 commit 7ee5387

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,11 @@ describe('parse', function () {
323323
assert.throws(function () { parseAndEval('0o89.89') }, /SyntaxError: String "0o89\.89" is not a valid number/)
324324
assert.throws(function () { parseAndEval('0xghji.xyz') }, /SyntaxError: String "0x" is not a valid number/)
325325
})
326+
327+
it('should allow a variable named E to access .-operators', function () {
328+
assert.deepStrictEqual(
329+
parse('3E.*[2,3]').evaluate({ E: [1, 2] }), math.matrix([6, 18]))
330+
})
326331
})
327332

328333
describe('bignumber', function () {

0 commit comments

Comments
 (0)