mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-13 15:33:47 -05:00
option to _printarray_ when not VERBOSE
This commit is contained in:
@@ -110,5 +110,14 @@ teardown() {
|
||||
assert_success
|
||||
assert_line --index 1 "[ debug] foo = bar"
|
||||
assert_line --index 2 "[ debug] baz = foobar"
|
||||
|
||||
}
|
||||
|
||||
@test "_printArray_: print without verbose" {
|
||||
testArray=(1 2 3)
|
||||
VERBOSE=false
|
||||
run _printArray_ -v "testArray"
|
||||
assert_success
|
||||
assert_output --partial "[ info] 0 = 1"
|
||||
assert_output --partial "[ info] 1 = 2"
|
||||
assert_output --partial "[ info] 2 = 3"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user