Add new acceptance test scenario: 063

This commit is contained in:
KtorZ
2023-02-16 14:46:37 +01:00
committed by Lucas
parent 45454ced01
commit 8fabfd112e
3 changed files with 38 additions and 0 deletions

View File

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