Skip to content

Commit c1799bd

Browse files
committed
Make debug_echo_array associative test more robust.
1 parent 5e25c42 commit c1799bd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/array_manipulation.bats

+7-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,13 @@ DEBUG=true
7171

7272
run debug_echo_array ASSOCIATIVE_ARRAY
7373

74-
assert_output 'debug: ASSOCIATIVE_ARRAY={[five]="5", [two]="2", [eight]="8", [one]="1", [zero]="0", [six]="6"}'
74+
assert_output -p 'debug: ASSOCIATIVE_ARRAY={'
75+
assert_output -p '[zero]="0"'
76+
assert_output -p '[one]="1"'
77+
assert_output -p '[two]="2"'
78+
assert_output -p '[five]="5"'
79+
assert_output -p '[six]="6"'
80+
assert_output -p '[eight]="8"'
7581
}
7682

7783
# get_next_array_index

0 commit comments

Comments
 (0)