2008-12-14 15:45:25 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Copyright 2008 by Denys Vlasenko
|
|
|
|
# Licensed under GPL v2, see file LICENSE for details.
|
|
|
|
|
2009-11-04 23:41:22 +00:00
|
|
|
. ./testing.sh
|
2010-07-05 19:37:12 +00:00
|
|
|
test -f "$bindir/.config" && . "$bindir/.config"
|
2008-12-14 15:45:25 +00:00
|
|
|
|
|
|
|
# testing "test name" "options" "expected result" "file input" "stdin"
|
|
|
|
|
|
|
|
testing "expand" \
|
|
|
|
"expand" \
|
|
|
|
" 12345678 12345678\n" \
|
|
|
|
"" \
|
2010-05-10 03:53:16 +00:00
|
|
|
"\t12345678\t12345678\n"
|
2008-12-14 15:45:25 +00:00
|
|
|
|
2010-07-05 19:37:12 +00:00
|
|
|
test x"$CONFIG_UNICODE_SUPPORT" = x"y" \
|
|
|
|
&& test x"$CONFIG_UNICODE_USING_LOCALE" != x"y" \
|
2010-07-06 00:20:00 +00:00
|
|
|
&& testing "expand with unicode characher 0x394" \
|
2010-01-04 15:21:31 +00:00
|
|
|
"expand" \
|
|
|
|
"Δ 12345ΔΔΔ 12345678\n" \
|
|
|
|
"" \
|
2010-05-10 03:53:16 +00:00
|
|
|
"Δ\t12345ΔΔΔ\t12345678\n"
|
2010-01-04 15:21:31 +00:00
|
|
|
|
2008-12-14 15:45:25 +00:00
|
|
|
exit $FAILCOUNT
|