name:
src/test/js/execution/CodeExecutorGeneralExpressionTest.ts
-rw-r--r--
386
1import { assert } from "chai";
2import { it, describe } from "../testutils/TestUtils";
3import { run } from "../testutils/TestUtils";
4
5describe("CodeExecutor - General Expression Test", function () {
6 it("should handle parenthesis appropriately", function () {
7 assert.equal(run("(TRUE)"), true);
8 assert.equal(run("(10)"), 10);
9 assert.equal(run("(2 + 1) * 4"), 12);
10 });
11});