aiken/examples/acceptance_tests/049/lib/tests.ak

10 lines
129 B
Plaintext

pub fn when_tuple(a: (Int, Int)) -> Int {
when a is {
(a, b) -> a
}
}
test when_tuple_1() {
when_tuple((4, 1)) == 4
}