echor/mk-outs.sh
minhtrannhat 0736d6e81a
Fix(test): Compare results to GNU echo
- Added new TestResult type
- Automated 5 testing cases with bash script
2023-07-21 20:17:11 -04:00

10 lines
266 B
Bash
Executable File

#!/usr/bin/env bash
OUTDIR="tests/expected"
[[ ! -d "$OUTDIR" ]] && mkdir -p "$OUTDIR"
echo "Hello there" > $OUTDIR/hello1.txt
echo "Hello" "there" > $OUTDIR/hello2.txt
echo -n "Hello there" > $OUTDIR/hello1.n.txt
echo -n "Hello" "there" > $OUTDIR/hello2.n.txt