diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-06-01 21:04:33 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-06-01 21:04:33 +0300 |
commit | 61b65a32b6fb385ca78ac0226d633581cf4866a9 (patch) | |
tree | e5b4f848abbdc3dd0b84ae63e76aa2cefb8ea0cb | |
parent | b3edd8fd3977bf76d3179c7562bb18708a9e3bd2 (diff) | |
download | fable-poc-61b65a32b6fb385ca78ac0226d633581cf4866a9.tar.gz |
Add: echo.md and echo.yaml
These will be used as test data for code generation.
-rw-r--r-- | echo.md | 25 | ||||
-rw-r--r-- | echo.yaml | 4 |
2 files changed, 29 insertions, 0 deletions
@@ -0,0 +1,25 @@ +--- +title: "**echo**(1) acceptance tests" +author: Lars Wirzenius / The Fable project +... + +Introduction +============================================================================= + +**echo**(1) is a Unix command line tool, which writes its command line +arguments to the standard output. This is a simple acceptance test +suite for the `/bin/echo` implementation. + +No arguments +============================================================================= + +This scenario runs `/bin/echo` without arguments and checks that it +outputs a single newline character to the standard output, nothing to +the standard error, and exits with a zero exit code. + +```fable +when user runs echo without arguments +then exit code is 0 +and standard output contains a newline +and standard error is empty +``` diff --git a/echo.yaml b/echo.yaml new file mode 100644 index 0000000..773c192 --- /dev/null +++ b/echo.yaml @@ -0,0 +1,4 @@ +- when: user runs echo without arguments +- then: exit code is 0 +- then: standard output contains a newline +- then: standard error is empty |