Add new acceptance test scenario: 063
This commit is contained in:
parent
45454ced01
commit
8fabfd112e
|
@ -0,0 +1,13 @@
|
||||||
|
# This file was generated by Aiken
|
||||||
|
# You typically do not need to edit this file
|
||||||
|
|
||||||
|
[[requirements]]
|
||||||
|
name = "aiken-lang/stdlib"
|
||||||
|
version = "main"
|
||||||
|
source = "github"
|
||||||
|
|
||||||
|
[[packages]]
|
||||||
|
name = "aiken-lang/stdlib"
|
||||||
|
version = "main"
|
||||||
|
requirements = []
|
||||||
|
source = "github"
|
|
@ -0,0 +1,8 @@
|
||||||
|
name = 'aiken-lang/acceptance_test_061'
|
||||||
|
version = '0.0.0'
|
||||||
|
description = ''
|
||||||
|
|
||||||
|
[[dependencies]]
|
||||||
|
name = 'aiken-lang/stdlib'
|
||||||
|
version = 'main'
|
||||||
|
source = 'github'
|
|
@ -0,0 +1,17 @@
|
||||||
|
fn must_be_signed(signatories) {
|
||||||
|
when signatories is {
|
||||||
|
[] -> {
|
||||||
|
trace "no signatories"
|
||||||
|
False
|
||||||
|
}
|
||||||
|
[sig, ..] -> (sig == "#ffff")?
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fn must_say_hello(msg) {
|
||||||
|
msg == "Hello, World!"
|
||||||
|
}
|
||||||
|
|
||||||
|
test foo() {
|
||||||
|
must_be_signed(["#f000"])? && must_say_hello("Hello, World!")? || True
|
||||||
|
}
|
Loading…
Reference in New Issue