impl - * // /
This commit is contained in:
parent
bf44d84e17
commit
1a46130b1d
2 changed files with 30 additions and 4 deletions
src/lib
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue