Add unit tests for multiline and inner outer loops
This commit is contained in:
parent
03746e7606
commit
9528e44b88
10
unittests/loop_inner_outer.chai
Normal file
10
unittests/loop_inner_outer.chai
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
var total = 0
|
||||||
|
|
||||||
|
for (var i = 0; i < 10; ++i) {
|
||||||
|
for (var j = 0; j < 10; ++j) {
|
||||||
|
total += 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
print(total)
|
||||||
|
|
1
unittests/loop_inner_outer.txt
Normal file
1
unittests/loop_inner_outer.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
100
|
Loading…
x
Reference in New Issue
Block a user