diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-02-17 08:49:38 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-02-18 10:42:40 +0200 |
commit | a85e7d15c57c11d8286656531c7394681fb855d9 (patch) | |
tree | 872ec655a99606e8fe2147a4b8d4fb3e1aeb186b /examples/echo/echo.yaml | |
parent | 4b9edb354297353cbbe38575553ca1351f68d380 (diff) | |
download | subplot-a85e7d15c57c11d8286656531c7394681fb855d9.tar.gz |
refactor: move echo and muck examples under new examples/ directory
Diffstat (limited to 'examples/echo/echo.yaml')
-rw-r--r-- | examples/echo/echo.yaml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/echo/echo.yaml b/examples/echo/echo.yaml new file mode 100644 index 0000000..7be6e96 --- /dev/null +++ b/examples/echo/echo.yaml @@ -0,0 +1,20 @@ +- when: user runs echo without arguments + function: run_echo_without_args + +- when: user runs echo with arguments (?P<args>.+) + function: run_echo_with_args + regex: true + +- then: exit code is (?P<exit_code>\d+) + function: exit_code_is + regex: true + +- then: standard output contains a newline + function: stdout_is_a_newline + +- then: standard output contains "(?P<text>.*)" + function: stdout_is_text + regex: true + +- then: standard error is empty + function: stderr_is_empty |