echo(1) acceptance tests

The Subplot project

2022-08-13 05:27

FIXME: This needs to move back into YAML: bibliography: [echo.bib]

1 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 echo implementation.

For more information, see (???).

2 No arguments

Run echo without arguments.

when user runs echo without arguments
then exit code is 0
and standard output contains a newline
and standard error is empty

3 Hello, world

This scenario runs echo to produce the output “hello, world”.

when user runs echo with arguments hello, world
then exit code is 0
and standard output contains "hello, world"
and standard error is empty

4 References