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

11 lines
135 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
}