Added 048 acceptance test
This commit is contained in:
parent
e36f91c39c
commit
d608c50130
|
@ -0,0 +1,5 @@
|
||||||
|
# This file was generated by Aiken
|
||||||
|
# You typically do not need to edit this file
|
||||||
|
|
||||||
|
requirements = []
|
||||||
|
packages = []
|
|
@ -0,0 +1,3 @@
|
||||||
|
name = 'aiken-lang/acceptance_test_048'
|
||||||
|
version = '0.0.0'
|
||||||
|
description = ''
|
|
@ -0,0 +1,9 @@
|
||||||
|
pub fn when_tuple(a: (Int, Int)) -> Int {
|
||||||
|
when a is {
|
||||||
|
(a, b) -> a
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
test when_tuple_1() {
|
||||||
|
when_tuple((4, 1)) == 4
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
fn when_tuple(a: (Int, Int)) -> Int {
|
||||||
|
when a is {
|
||||||
|
(a, b) -> a
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn spend(a, b, c) -> Bool {
|
||||||
|
when_tuple((4, 1)) == 4
|
||||||
|
}
|
Loading…
Reference in New Issue