Added more tests
This commit is contained in:
17
tests/programs/operator-number.q
Normal file
17
tests/programs/operator-number.q
Normal file
@ -0,0 +1,17 @@
|
||||
main() {
|
||||
f(10)
|
||||
}
|
||||
|
||||
f(x int) {
|
||||
y := x
|
||||
x = x - 2
|
||||
assert x < y
|
||||
x = x + 2
|
||||
assert x == y
|
||||
x = x * 2
|
||||
assert x > y
|
||||
x = x / 2
|
||||
assert x == y
|
||||
x = x % 2
|
||||
assert x < 2
|
||||
}
|
Reference in New Issue
Block a user