diff options
Diffstat (limited to 'echo.yaml')
-rw-r--r-- | echo.yaml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/echo.yaml b/echo.yaml new file mode 100644 index 0000000..6937d3d --- /dev/null +++ b/echo.yaml @@ -0,0 +1,17 @@ +- when: user runs echo without arguments + function: run_echo_without_args + +- when: user runs echo with arguments (?P<args>.+) + function: run_echo_with_args + +- then: exit code is (?P<exit_code>\d+) + function: exit_code_is_zero + +- then: standard output contains a newline + function: stdout_is_a_newline + +- then: standard output contains "(?P<text>.*)" + function: stdout_is_text + +- then: standard error is empty + function: stderr_is_empty |