finish math parser
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user