10 lines
136 B
Plaintext
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
|
|
} |