summaryrefslogtreecommitdiff
path: root/echo.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-11-30 16:16:28 +0200
committerLars Wirzenius <liw@liw.fi>2019-11-30 19:22:49 +0200
commit7405a3f6faccfb856d430cfd08988c8dc35893c5 (patch)
tree6c151130e5ab1f2b73ea74f8395e4d018034e667 /echo.md
parent609101a8506c787af00b98b81daae4d432756d15 (diff)
downloadsubplot-7405a3f6faccfb856d430cfd08988c8dc35893c5.tar.gz
Add: sample subplot documents
Diffstat (limited to 'echo.md')
-rw-r--r--echo.md36
1 files changed, 36 insertions, 0 deletions
diff --git a/echo.md b/echo.md
new file mode 100644
index 0000000..08072a0
--- /dev/null
+++ b/echo.md
@@ -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
+```