fix: rename test module to tests
This commit is contained in:
13
examples/acceptance_tests/017/lib/tests.ak
Normal file
13
examples/acceptance_tests/017/lib/tests.ak
Normal file
@@ -0,0 +1,13 @@
|
||||
use aiken/builtin
|
||||
|
||||
pub fn slice(bytes: ByteArray, start: Int, end: Int) -> ByteArray {
|
||||
builtin.slice_bytearray(start, end, bytes)
|
||||
}
|
||||
|
||||
pub fn take(bytes: ByteArray, n: Int) -> ByteArray {
|
||||
slice(bytes, 0, n)
|
||||
}
|
||||
|
||||
test take_1() {
|
||||
take(#[1, 2, 3], 2) == #[1, 2]
|
||||
}
|
||||
Reference in New Issue
Block a user