Added more tests

This commit is contained in:
2024-07-31 15:24:21 +02:00
parent 76c916018a
commit 3d245a15f9
6 changed files with 52 additions and 8 deletions

View File

@ -1,7 +1,10 @@
main() {
assert f(-32) == 32
assert neg(-1) == 1
assert neg(1) == -1
assert neg(-256) == 256
assert neg(256) == -256
}
f(x) {
neg(x) {
return -x
}