@@ -233,6 +233,7 @@ function assert_not_same() {
233233
234234function assert_contains() {
235235 bashunit::assert::should_skip && return 0
236+ local IFS=$' \t\n '
236237
237238 local expected=" $1 "
238239 local -a actual_arr
@@ -281,6 +282,7 @@ function assert_contains_ignore_case() {
281282
282283function assert_not_contains() {
283284 bashunit::assert::should_skip && return 0
285+ local IFS=$' \t\n '
284286
285287 local expected=" $1 "
286288 local -a actual_arr
@@ -303,6 +305,7 @@ function assert_not_contains() {
303305
304306function assert_matches() {
305307 bashunit::assert::should_skip && return 0
308+ local IFS=$' \t\n '
306309
307310 local expected=" $1 "
308311 local -a actual_arr
@@ -325,6 +328,7 @@ function assert_matches() {
325328
326329function assert_not_matches() {
327330 bashunit::assert::should_skip && return 0
331+ local IFS=$' \t\n '
328332
329333 local expected=" $1 "
330334 local -a actual_arr
@@ -528,6 +532,7 @@ function assert_command_not_found() {
528532
529533function assert_string_starts_with() {
530534 bashunit::assert::should_skip && return 0
535+ local IFS=$' \t\n '
531536
532537 local expected=" $1 "
533538 local -a actual_arr
@@ -569,6 +574,7 @@ function assert_string_not_starts_with() {
569574
570575function assert_string_ends_with() {
571576 bashunit::assert::should_skip && return 0
577+ local IFS=$' \t\n '
572578
573579 local expected=" $1 "
574580 local -a actual_arr
@@ -591,6 +597,7 @@ function assert_string_ends_with() {
591597
592598function assert_string_not_ends_with() {
593599 bashunit::assert::should_skip && return 0
600+ local IFS=$' \t\n '
594601
595602 local expected=" $1 "
596603 local -a actual_arr
0 commit comments