Add new acceptance test scenario (008)
```
Error:
× Main thread panicked.
├─▶ at crates/lang/src/uplc.rs:530:41
╰─▶ not yet implemented
help: set the `RUST_BACKTRACE=1` environment variable to display a backtrace.
```
This commit is contained in:
2
examples/acceptance_tests/008/aiken.toml
Normal file
2
examples/acceptance_tests/008/aiken.toml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
name = "acceptance_test_008"
|
||||||
|
version = "0.0.0"
|
||||||
21
examples/acceptance_tests/008/lib/test.ak
Normal file
21
examples/acceptance_tests/008/lib/test.ak
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
use aiken/builtin
|
||||||
|
|
||||||
|
pub fn is_empty(bytes: ByteArray) -> Bool {
|
||||||
|
builtin.length_of_bytearray(bytes) == 0
|
||||||
|
}
|
||||||
|
|
||||||
|
test is_empty_1() {
|
||||||
|
is_empty(#[]) == True
|
||||||
|
}
|
||||||
|
|
||||||
|
test is_empty_1_alt() {
|
||||||
|
is_empty(#[])
|
||||||
|
}
|
||||||
|
|
||||||
|
test is_empty_2() {
|
||||||
|
is_empty(#[1]) == False
|
||||||
|
}
|
||||||
|
|
||||||
|
test is_empty_2_alt() {
|
||||||
|
!is_empty(#[1])
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user