summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-03-28 18:11:38 +0200
committerLars Wirzenius <liw@liw.fi>2020-03-28 18:11:38 +0200
commitde054bd70138c9db939c239debae660f51d1a34d (patch)
treeef7962a2f9ceed4f0cf75428081c2d8c6690461a
parent56167fd971ecc61e322872a51a9a3174a3ced011 (diff)
downloadsubplot.liw.fi-de054bd70138c9db939c239debae660f51d1a34d.tar.gz
Add: source of a small example right there on the front page
-rw-r--r--index.mdwn35
1 files changed, 35 insertions, 0 deletions
diff --git a/index.mdwn b/index.mdwn
index d969157..56a6c7c 100644
--- a/index.mdwn
+++ b/index.mdwn
@@ -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