diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-03-28 18:11:38 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-03-28 18:11:38 +0200 |
commit | de054bd70138c9db939c239debae660f51d1a34d (patch) | |
tree | ef7962a2f9ceed4f0cf75428081c2d8c6690461a | |
parent | 56167fd971ecc61e322872a51a9a3174a3ced011 (diff) | |
download | subplot.liw.fi-de054bd70138c9db939c239debae660f51d1a34d.tar.gz |
Add: source of a small example right there on the front page
-rw-r--r-- | index.mdwn | 35 |
1 files changed, 35 insertions, 0 deletions
@@ -42,6 +42,41 @@ to abide by its terms. ## Examples +This is a pretty minimal example. + +~~~{.markdown .numberLines} +--- +title: "**echo**(1) acceptance tests" +... + +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 +============================================================================= + +```scenario +when user runs echo without arguments +then exit code is 0 +then standard output contains a newline +then standard error is empty +``` + +Hello, world +============================================================================= + +```scenario +when user runs echo with arguments hello, world +then exit code is 0 +then standard output contains "hello, world" +then standard error is empty +``` +~~~ + See actual, working, tested examples: * The Unix echo commandf |