Added more tests
This commit is contained in:
parent
76c916018a
commit
3d245a15f9
6 changed files with 52 additions and 8 deletions
|
@ -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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue