Simplified Evaluate function
This commit is contained in:
parent
da6dcc4433
commit
891b4d9f90
15 changed files with 98 additions and 96 deletions
20
tests/programs/for.q
Normal file
20
tests/programs/for.q
Normal file
|
@ -0,0 +1,20 @@
|
|||
main() {
|
||||
total := 0
|
||||
|
||||
for 0..10 {
|
||||
total += 1
|
||||
}
|
||||
|
||||
assert total == 10
|
||||
|
||||
for 0..total {
|
||||
total -= 1
|
||||
}
|
||||
|
||||
assert total == 5
|
||||
|
||||
for i := 0..10 {
|
||||
assert i >= 0
|
||||
assert i < 10
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue