**echo**(1) acceptance tests

By: The Subplot project

2023-06-15 04:11

Table of Contents

  1. 1 Introduction
  2. 2 No arguments
  3. 3 Hello, world
  4. 4 References

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 [@foo2020].

No arguments

Run echo without arguments.

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

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
then standard output contains "hello, world"
then standard error is empty

References