From 5a77702462a95de55cd70f5130e244db296abcd5 Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Sun, 30 Sep 2018 11:38:00 -0400 Subject: Fixed transcript testing bug where last command in transcript has no expected output Also: - Added unit test for this specific case --- tests/transcripts/no_output.txt | 2 +- tests/transcripts/no_output_last.txt | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 tests/transcripts/no_output_last.txt (limited to 'tests/transcripts') diff --git a/tests/transcripts/no_output.txt b/tests/transcripts/no_output.txt index d1089a39..6b84e8e7 100644 --- a/tests/transcripts/no_output.txt +++ b/tests/transcripts/no_output.txt @@ -1,4 +1,4 @@ -# ensure the transcript can play a command with no output +# ensure the transcript can play a command with no output from a command somewhere in the middle (Cmd) say something something diff --git a/tests/transcripts/no_output_last.txt b/tests/transcripts/no_output_last.txt new file mode 100644 index 00000000..c75d7e7f --- /dev/null +++ b/tests/transcripts/no_output_last.txt @@ -0,0 +1,7 @@ +# ensure the transcript can play a command with no output from the last command + +(Cmd) say something +something +(Cmd) say something else +something else +(Cmd) nothing -- cgit v1.2.1