From f018f576993c86a73f0a730ffa56e67e328c7aaf Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 1 Jun 2019 22:00:29 +0300 Subject: Add: a second scenario --- echo.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'echo.yaml') diff --git a/echo.yaml b/echo.yaml index 521ca25..6937d3d 100644 --- a/echo.yaml +++ b/echo.yaml @@ -1,11 +1,17 @@ - when: user runs echo without arguments function: run_echo_without_args - - then: exit code is (?P\d+) +- when: user runs echo with arguments (?P.+) + function: run_echo_with_args + +- then: exit code is (?P\d+) function: exit_code_is_zero - then: standard output contains a newline function: stdout_is_a_newline +- then: standard output contains "(?P.*)" + function: stdout_is_text + - then: standard error is empty function: stderr_is_empty -- cgit v1.2.1