1 #!/usr/bin/env bash 2 # 3 # Tests to confirm GitHub issue #17 is resolved 4 # 5 # https://github.com/dharple/detox/issues/17 6 # 7 8 set -e 9 10 if [ -z "$TESTBASE" ] ; then 11 echo TESTBASE needs to be passed via the env 12 exit 1 13 fi 14 15 . $TESTBASE/test-functions 16 17 DETOX=$1 18 TABLEPATH=$(dirname $TESTBASE)/table 19 INPUT=$(printf "new\nline") 20 OUTPUT="new_line" 21 22 # --------------------------------------------------------------------------- 23 24 METHOD1=safe 25 26 test_sequence "$DETOX" "$INPUT" "$OUTPUT" "$TABLEPATH" "$METHOD1" 27 28 # --------------------------------------------------------------------------- 29 30 METHOD1=safe-basic 31 32 test_sequence "$DETOX" "$INPUT" "$OUTPUT" "$TABLEPATH" "$METHOD1"