]> diplodocus.org Git - nmh/blob - test/format/test-unquote
Test for unquoting, but it doesn't work yet.
[nmh] / test / format / test-unquote
1 #!/bin/sh
2 #
3 # Test that the unquote function works properly.
4 #
5
6 if test -z "${MH_OBJ_DIR}"; then
7 srcdir=`dirname "$0"`/../..
8 MH_OBJ_DIR=`cd "$srcdir" && pwd`; export MH_OBJ_DIR
9 fi
10
11 . "$MH_OBJ_DIR/test/common.sh"
12
13 setup_test
14
15 #
16 # Test various unquoting scenarios
17 #
18
19 name='"Mr. Foo Bar"'
20
21 run_test "fmttest -raw -format %(unquote{text}) $name" \
22 'Mr. Foo Bar'
23
24 exit ${failed:-0}