impl - * // /

This commit is contained in:
Tangent 2024-05-17 20:52:33 -04:00
parent bf44d84e17
commit 1a46130b1d
2 changed files with 30 additions and 4 deletions

View file

@ -5,10 +5,10 @@ describe("expr", () => {
test.each([
["1", "1"],
["1 + 2", "3"],
// ["1 - 2", "-1"],
// ["1 * 2", "2"],
// ["1 / 2", "0.5"],
// ["1 // 2", "0"],
["1 - 2", "-1"],
["1 * 2", "2"],
["1 / 2", "0.5"],
["1 // 2", "0"],
// TODO: operator precedence
// TODO: parentheses
// TODO; eror reporting