diff --git a/tests/test-lib.sh b/tests/test-lib.sh index 35f4a2a..cf197be 100644 --- a/tests/test-lib.sh +++ b/tests/test-lib.sh @@ -566,14 +566,16 @@ test_tick () { } # Generate and run a series of tests based on a transcript. -# Usage: test_todo_session "description" <>> command # output1 # output2 +# # >>> command # === exit status -# output3 -# output4 +# output3 with empty line (must be escaped here) +# \ +# output5 # EOF test_todo_session () { test "$#" = 1 || @@ -606,6 +608,9 @@ test_todo_session () { > expect fi ;; + \\) + echo "" >> expect + ;; *) echo "$line" >> expect ;;