]>
diplodocus.org Git - nmh/blob - test/format/test-unquote
3 # Test that the unquote function works properly.
6 if test -z "${MH_OBJ_DIR}"; then
7 srcdir
=`dirname "$0"`/..
/..
8 MH_OBJ_DIR
=`cd "$srcdir" && pwd`; export MH_OBJ_DIR
11 .
"$MH_OBJ_DIR/test/common.sh"
16 # Test various unquoting scenarios
19 run_test
'eval fmttest -raw -format "%(unquote{text})" "Mr. Foo Bar"' \
22 run_test
'eval fmttest -raw -format "%(unquote{text})" "Mr. \"Foo\" Bar"' \
26 # Note here: the string we wanted passed on the command line is:
30 # The extra \ are necessary to get it past the shell
33 run_test
'eval fmttest -raw -format "%(unquote{text})" "Mr. \\\"Foo\\\" Bar"' \