Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Neff <[email protected]>
  • Loading branch information
andyneff committed Apr 3, 2024
1 parent 5e1e816 commit 3a4b7f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test-pre-commit_filter_lines.bsh
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ begin_test "precommit::filter_lines"
answers=("foo 0000000000000000000000000000000000000000 bar 0"
"foo 1 bar 0")

IFS=$'\n \t'
questions=$(IFS=$'\n'; echo "${questions[*]}")
answers=$(IFS=$'\n'; echo "${answers[*]}")


assert_str_eq "$(IFS=' ' precommit::filter_lines <<< "${questions[*]}")" "${answers[*]}"
assert_str_eq "$(precommit::filter_lines <<< "${questions}")" "${answers}"
)
end_test

0 comments on commit 3a4b7f8

Please sign in to comment.