Skip to content

Commit

Permalink
tests: add test for while stmt
Browse files Browse the repository at this point in the history
  • Loading branch information
StunxFS committed Jul 5, 2024
1 parent 60985fb commit 2981e5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/invalid_code/while_stmt.bs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
while 1 { }
}
1 change: 1 addition & 0 deletions tests/invalid_code/while_stmt.out
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tests/invalid_code/while_stmt.bs:2:11: error: non-boolean `while` condition

0 comments on commit 2981e5e

Please sign in to comment.