mirror of
https://github.com/MorizzG/rlox.git
synced 2025-12-06 12:22:42 +00:00
added tests
This commit is contained in:
parent
1cca1494a4
commit
660464638f
255 changed files with 7220 additions and 3 deletions
21
interpreter/tests/lox/continue/while.lox
Normal file
21
interpreter/tests/lox/continue/while.lox
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
var i = 0;
|
||||
|
||||
while (i < 10) {
|
||||
if (i == 5) {
|
||||
i = i + 1;
|
||||
continue;
|
||||
}
|
||||
|
||||
print i;
|
||||
|
||||
i = i + 1;
|
||||
}
|
||||
// expect: 0
|
||||
// expect: 1
|
||||
// expect: 2
|
||||
// expect: 3
|
||||
// expect: 4
|
||||
// expect: 6
|
||||
// expect: 7
|
||||
// expect: 8
|
||||
// expect: 9
|
||||
Loading…
Add table
Add a link
Reference in a new issue