Skip to content

Commit

Permalink
tests: Test of operator precedence
Browse files Browse the repository at this point in the history
  • Loading branch information
obiwac committed Sep 4, 2024
1 parent 891169f commit a2af710
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/precedence.fl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# XXX This is pretty inexaustive, but it's fine for now.
# I'll add more asserts here when regressions happen.

assert 1 + 2 * 3 == 7
assert (1 + 2) * 3 == 9
assert 1 * 2 + 3 == 5
assert 1 + 2 + 3 == 6

0 comments on commit a2af710

Please sign in to comment.