2024-08-05 18:47:24 +02:00

10 lines
136 B
Plaintext

main() {
assert neg(-1) == 1
assert neg(1) == -1
assert neg(-256) == 256
assert neg(256) == -256
}
neg(x Int) -> Int {
return -x
}