1#!/usr/bin/env bash 2# 3# Tests to confirm GitHub issue #14 is resolved 4# 5# https://github.com/dharple/detox/issues/14 6# 7 8set -e 9 10if [ -z "$TESTBASE" ] ; then 11 echo TESTBASE needs to be passed via the env 12 exit 1 13fi 14 15. $TESTBASE/test-functions 16 17# Run the test based on data from 18# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=861537 19 20DETOX=$1 21INPUT="mÉ Æ.txt" 22OUTPUT="mÉ_Æ.txt" 23METHOD="utf_8" 24TABLE="test.tbl" 25 26test_single_table "$DETOX" "$INPUT" "$OUTPUT" "$METHOD" "$TABLE" 27 28# --------------------------------------------------------------------------- 29 30# Run the same test, based on the default table 31 32OUTPUT="mE_AE.txt" 33TABLE=$(dirname $TESTBASE)/table/unicode.tbl.sample 34 35test_single_table "$DETOX" "$INPUT" "$OUTPUT" "$METHOD" "$TABLE" 36