1 #!/usr/bin/env bash 2 # 3 # Subset of legacy regression tests: max_32 4 # 5 6 set -e 7 8 if [ -z "$TESTBASE" ] ; then 9 echo TESTBASE needs to be passed via the env 10 exit 1 11 fi 12 13 . $TESTBASE/test-functions 14 15 DETOX=$1 16 TABLEPATH=$(dirname $TESTBASE)/table 17 METHOD1=safe 18 METHOD2=wipeup 19 METHOD3=max-length-32 20 21 # --------------------------------------------------------------------------- 22 23 INPUT="___________underscore_______________________x" 24 OUTPUT="underscore_x" 25 26 test_sequence "$DETOX" "$INPUT" "$OUTPUT" "$TABLEPATH" "$METHOD1" "$METHOD2" "$METHOD3" 27 28 # --------------------------------------------------------------------------- 29 30 INPUT="..........how.....does.....this....translate......" 31 OUTPUT="..........how.....does.....this." 32 33 test_sequence "$DETOX" "$INPUT" "$OUTPUT" "$TABLEPATH" "$METHOD1" "$METHOD2" "$METHOD3" 34 35 # --------------------------------------------------------------------------- 36 37 INPUT="_-_-_-_-_-dotted-_-_-_-_line.....part......two......." 38 OUTPUT="dotted-line.....part......two." 39 40 test_sequence "$DETOX" "$INPUT" "$OUTPUT" "$TABLEPATH" "$METHOD1" "$METHOD2" "$METHOD3" 41 42 # --------------------------------------------------------------------------- 43 44 INPUT="registered trademark symbol, ®, is a typographic symbol" 45 OUTPUT="registered_trademark_symbol,_®," 46 47 test_sequence "$DETOX" "$INPUT" "$OUTPUT" "$TABLEPATH" "$METHOD1" "$METHOD2" "$METHOD3" 48