From 87f36824bbd97758b6f1d69eddd80c6d15d45cf3 Mon Sep 17 00:00:00 2001 From: Bela Lubkin Date: Wed, 6 Sep 2023 19:56:29 -0700 Subject: [PATCH] Fix #637: pass actual newlines to the exercise script, not literal '\n' strings --- exercises/practice/word-count/word_count.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/practice/word-count/word_count.bats b/exercises/practice/word-count/word_count.bats index f6c0d4dc..e2ba3cb1 100644 --- a/exercises/practice/word-count/word_count.bats +++ b/exercises/practice/word-count/word_count.bats @@ -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"