Skip to content

Commit 0201b96

Browse files
committed
test: add test for #3422
1 parent c20b1da commit 0201b96

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
@@ -341,6 +341,11 @@ describe('parse', function () {
341341
assert.throws(function () { parseAndEval('0o89.89') }, /SyntaxError: String "0o89\.89" is not a valid number/)
342342
assert.throws(function () { parseAndEval('0xghji.xyz') }, /SyntaxError: String "0x" is not a valid number/)
343343
})
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+
})
344349
})
345350

346351
describe('bignumber', function () {

0 commit comments

Comments
 (0)