aboutsummaryrefslogtreecommitdiff
path: root/testsuite/expand.tests
blob: 2d92344d4b230c69a4b02819cc73d249524e4fe7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
# Copyright 2008 by Denys Vlasenko
# Licensed under GPL v2, see file LICENSE for details.

. ./testing.sh
test -f "$bindir/.config" && . "$bindir/.config"

# testing "test name" "options" "expected result" "file input" "stdin"

testing "expand" \
	"expand" \
	"        12345678        12345678\n" \
	"" \
	"\t12345678\t12345678\n"

test x"$CONFIG_UNICODE_SUPPORT" = x"y" \
&& test x"$CONFIG_UNICODE_USING_LOCALE" != x"y" \
&& test "$CONFIG_LAST_SUPPORTED_WCHAR" -gt "916" \
testing "expand with unicode characher 0x394" \
	"expand" \
	"Δ       12345ΔΔΔ        12345678\n" \
	"" \
	"Δ\t12345ΔΔΔ\t12345678\n"

exit $FAILCOUNT