Restructure tests and adjust display format, to better understand what each test is testing.

This commit is contained in:
Andrew Wood
2023-07-23 16:25:52 +01:00
parent b086ddf599
commit 909355619b
24 changed files with 13 additions and 9 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
#
# Check that data can be just passed straight through.
# Dummy assignment for "shellcheck".
testSubject="${testSubject:-false}"
inputString="TESTING"
outputString=$(printf "${inputString}" | "${testSubject}" 2>/dev/null) || { echo "unexpected failure code"; exit 1; }
test "${inputString}" = "${outputString}" && exit 0
echo "output did not match input"
exit 1
# EOF