diff options
Diffstat (limited to 'index.mdwn')
-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 |