Merge pull request #306 from aiken-lang/micah/acceptance-test-048

Added 048 acceptance test
This commit is contained in:
Micah 2023-01-23 12:46:42 +11:00 committed by GitHub
commit ad7a62d2bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,5 @@
# This file was generated by Aiken
# You typically do not need to edit this file
requirements = []
packages = []

View File

@ -0,0 +1,3 @@
name = 'aiken-lang/acceptance_test_048'
version = '0.0.0'
description = ''

View File

@ -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
}

View File

@ -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
}