option to _printarray_ when not VERBOSE

This commit is contained in:
Nathaniel Landau
2021-11-09 10:13:06 -05:00
parent f7a8b019ed
commit 0676d7a9c0
2 changed files with 37 additions and 6 deletions

View File

@@ -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"
}