libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / busybox / testsuite / expand.tests
blob0682c295042f1ae3e3d165d79901a53555a8f418
1 #!/bin/sh
2 # Copyright 2008 by Denys Vlasenko
3 # Licensed under GPLv2, see file LICENSE in this source tree.
5 . ./testing.sh
6 test -f "$bindir/.config" && . "$bindir/.config"
8 # testing "test name" "options" "expected result" "file input" "stdin"
10 testing "expand" \
11 "expand" \
12 " 12345678 12345678\n" \
13 "" \
14 "\t12345678\t12345678\n"
16 test x"$CONFIG_UNICODE_SUPPORT" = x"y" \
17 && test x"$CONFIG_UNICODE_USING_LOCALE" != x"y" \
18 && testing "expand with unicode characher 0x394" \
19 "expand" \
20 "Δ 12345ΔΔΔ 12345678\n" \
21 "" \
22 \t12345ΔΔΔ\t12345678\n"
24 exit $FAILCOUNT