Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Eliyaan committed Feb 17, 2025
1 parent f313650 commit fd9b8e6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ fn simple_for_test() {
println('loop5')
i--
}
i = 0
for i * i < 3 {
println('loop6')
i++
}
i = 0
for 3 > i * i {
println('loop7')
i++
}
}

fn break_continue_test() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ loop4
loop5
loop5
loop5
loop6
loop6
loop7
loop7
loop1
loop1
loop2
Expand Down

0 comments on commit fd9b8e6

Please sign in to comment.