diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-11-30 16:16:28 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-11-30 19:22:49 +0200 |
commit | 7405a3f6faccfb856d430cfd08988c8dc35893c5 (patch) | |
tree | 6c151130e5ab1f2b73ea74f8395e4d018034e667 /echo.md | |
parent | 609101a8506c787af00b98b81daae4d432756d15 (diff) | |
download | subplot-7405a3f6faccfb856d430cfd08988c8dc35893c5.tar.gz |
Add: sample subplot documents
Diffstat (limited to 'echo.md')
-rw-r--r-- | echo.md | 36 |
1 files changed, 36 insertions, 0 deletions
@@ -0,0 +1,36 @@ +--- +title: "**echo**(1) acceptance tests" +author: The Subplot project +bindings: echo.yaml +... + +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 +============================================================================= + +Run `/bin/echo` without arguments. + +```subplot +when user runs echo without arguments +then exit code is 0 +and standard output contains a newline +and standard error is empty +``` + +Hello, world +============================================================================= + +This scenario runs `/bin/echo` to produce the output "hello, world". + +```subplot +when user runs echo with arguments hello, world +then exit code is 0 +and standard output contains "hello, world" +and standard error is empty +``` |