Add new acceptance test scenario: 063
This commit is contained in:
17
examples/acceptance_tests/063/lib/tests.ak
Normal file
17
examples/acceptance_tests/063/lib/tests.ak
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user