2008-12-14 21:15:25 +05:30
|
|
|
#!/bin/sh
|
|
|
|
# Copyright 2008 by Denys Vlasenko
|
|
|
|
# Licensed under GPL v2, see file LICENSE for details.
|
|
|
|
|
2009-11-05 05:11:22 +05:30
|
|
|
. ./testing.sh
|
2008-12-14 21:15:25 +05:30
|
|
|
|
|
|
|
# testing "test name" "options" "expected result" "file input" "stdin"
|
|
|
|
|
|
|
|
testing "expand" \
|
|
|
|
"expand" \
|
|
|
|
" 12345678 12345678\n" \
|
|
|
|
"" \
|
2010-05-10 09:23:16 +05:30
|
|
|
"\t12345678\t12345678\n"
|
2008-12-14 21:15:25 +05:30
|
|
|
|
2010-05-10 09:23:16 +05:30
|
|
|
optional UNICODE_SUPPORT
|
2010-01-04 20:51:31 +05:30
|
|
|
testing "expand with unicode characher 0x394" \
|
|
|
|
"expand" \
|
|
|
|
"Δ 12345ΔΔΔ 12345678\n" \
|
|
|
|
"" \
|
2010-05-10 09:23:16 +05:30
|
|
|
"Δ\t12345ΔΔΔ\t12345678\n"
|
|
|
|
SKIP=
|
|
|
|
|
2010-01-04 20:51:31 +05:30
|
|
|
|
2008-12-14 21:15:25 +05:30
|
|
|
exit $FAILCOUNT
|