Skip to content

Commit 35c9518

Browse files
committed
test: add test for #3422
1 parent 22e83d5 commit 35c9518

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
@@ -338,6 +338,11 @@ describe('parse', function () {
338338
assert.throws(function () { parseAndEval('0o89.89') }, /SyntaxError: String "0o89\.89" is not a valid number/)
339339
assert.throws(function () { parseAndEval('0xghji.xyz') }, /SyntaxError: String "0x" is not a valid number/)
340340
})
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+
})
341346
})
342347

343348
describe('bignumber', function () {

0 commit comments

Comments
 (0)