finish math parser

This commit is contained in:
2025-02-05 23:04:53 +01:00
parent 69edf86b63
commit 5f7c1ca61a
2 changed files with 11 additions and 1 deletions

View File

@@ -11,6 +11,9 @@ var tests: [string, number][] = [
['2 /2+3 * 4.75- -6', 21.25],
['12* 123', 1476],
['2 / (2 + 3) * 4.33 - -6', 7.732],
['(2 + (2 + 2) / 4) * 3', 9],
['(1 - 2) + -(-(-(-4)))', 3],
['((2.33 / (2.9+3.5)*4) - -6)', 7.45625]
];
describe("calc", function () {