Restructure tests and adjust display format, to better understand what each test is testing.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user