diff options
| author | Alan Somers <asomers@FreeBSD.org> | 2017-06-23 15:02:49 +0000 |
|---|---|---|
| committer | Alan Somers <asomers@FreeBSD.org> | 2017-06-23 15:02:49 +0000 |
| commit | f01753c151b6c3c81a83c7039e3d3f9b70f067ed (patch) | |
| tree | 54cc041ecfc7b033dcc7e10ae5f6817a91277f04 /bin/echo | |
| parent | a61847217d5fd3b587869beaff9b31e117fec90a (diff) | |
Notes
Diffstat (limited to 'bin/echo')
| -rw-r--r-- | bin/echo/tests/echo_test.sh | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/bin/echo/tests/echo_test.sh b/bin/echo/tests/echo_test.sh index ddfd8903beac..5c5fc1f92d8b 100644 --- a/bin/echo/tests/echo_test.sh +++ b/bin/echo/tests/echo_test.sh @@ -27,29 +27,33 @@ # atf_test_case n_output -n_output_head() { - atf_set "descr" "Verify that echo(1) does not print the trailing " \ - "newline character with option '-n'" +n_output_head() +{ + atf_set "descr" "Verify that echo(1) does not print the trailing " \ + "newline character with option '-n'" } -n_output_body() { - atf_check -s ignore -o inline:"Hello world" \ - /bin/echo -n "Hello world" +n_output_body() +{ + atf_check -s ignore -o inline:"Hello world" \ + /bin/echo -n "Hello world" } atf_test_case append_c_output -append_c_output_head() { - atf_set "descr" "Verify that echo(1) does not print the trailing newline " \ - "character when '\c' is appended to the end of the string" +append_c_output_head() +{ + atf_set "descr" "Verify that echo(1) does not print the trailing newline " \ + "character when '\c' is appended to the end of the string" } -append_c_output_body() { - atf_check -s ignore -o inline:"Hello world" \ - /bin/echo "Hello world\c" +append_c_output_body() +{ + atf_check -s ignore -o inline:"Hello world" \ + /bin/echo "Hello world\c" } atf_init_test_cases() { - atf_add_test_case n_output - atf_add_test_case append_c_output + atf_add_test_case n_output + atf_add_test_case append_c_output } |
