This website requires JavaScript.
Explore
Help
Sign In
waalge
/
aiken
Watch
1
Star
0
Fork
You've already forked aiken
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
51b6b77db8
aiken
/
examples
/
acceptance_tests
/
030
/
lib
/
tests.ak
12 lines
106 B
Plaintext
Raw
Blame
History
pub fn abs(a: Int) -> Int {
if a < 0 {
-a
} else {
a
}
}
test abs_1() {
abs(-14) == 14
}
Reference in New Issue
View Git Blame
Copy Permalink