Add new acceptance test scenario: 063
This commit is contained in:
13
examples/acceptance_tests/063/aiken.lock
Normal file
13
examples/acceptance_tests/063/aiken.lock
Normal file
@@ -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"
|
||||
8
examples/acceptance_tests/063/aiken.toml
Normal file
8
examples/acceptance_tests/063/aiken.toml
Normal file
@@ -0,0 +1,8 @@
|
||||
name = 'aiken-lang/acceptance_test_061'
|
||||
version = '0.0.0'
|
||||
description = ''
|
||||
|
||||
[[dependencies]]
|
||||
name = 'aiken-lang/stdlib'
|
||||
version = 'main'
|
||||
source = 'github'
|
||||
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