Skip to content

Commit

Permalink
Fix #637: pass actual newlines to the exercise script, not literal '\…
Browse files Browse the repository at this point in the history
…n' strings (#638)
  • Loading branch information
filbo authored Sep 7, 2023
1 parent 52e1369 commit 58374ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/practice/word-count/word_count.bats
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ load bats-extra

@test "handles expanded lists" {
[[ $BATS_RUN_SKIPPED == "true" ]] || skip
run bash word_count.sh "one,\ntwo,\nthree"
run bash word_count.sh $'one,\ntwo,\nthree'
assert_success
assert_line "one: 1"
assert_line "two: 1"
Expand Down

0 comments on commit 58374ad

Please sign in to comment.