mirror of
https://github.com/logos-storage/logos-storage-local-harness.git
synced 2026-01-03 14:03:07 +00:00
17 lines
303 B
Bash
17 lines
303 B
Bash
#!/usr/bin/env bats
|
|
setup() {
|
|
load test_helper/common_setup
|
|
common_setup
|
|
}
|
|
|
|
@test "should shift an array" {
|
|
local arr=(1 2 3)
|
|
shift_arr arr
|
|
assert_equal "${arr[*]}" "2 3"
|
|
}
|
|
|
|
@test "should shift and array by n places" {
|
|
local arr=(1 2 3 4)
|
|
shift_arr arr 2
|
|
assert_equal "${arr[*]}" "3 4"
|
|
} |