blob: 357a9ad6b1bda4f5bc6015562f6dc95095017016 [file] [log] [blame]
Denis Vlasenko3139ea72008-12-14 15:45:25 +00001#!/bin/sh
2# Copyright 2008 by Denys Vlasenko
3# Licensed under GPL v2, see file LICENSE for details.
4
Mike Frysingercaa79402009-11-04 18:41:22 -05005. ./testing.sh
Denis Vlasenko3139ea72008-12-14 15:45:25 +00006
7# testing "test name" "options" "expected result" "file input" "stdin"
8
9testing "expand" \
10 "expand" \
11 " 12345678 12345678\n" \
12 "" \
Denys Vlasenkoe3d90a92010-05-10 05:53:16 +020013 "\t12345678\t12345678\n"
Denis Vlasenko3139ea72008-12-14 15:45:25 +000014
Denys Vlasenkoe3d90a92010-05-10 05:53:16 +020015optional UNICODE_SUPPORT
Tomas Heinrichd2b1ba62010-01-04 16:21:31 +010016testing "expand with unicode characher 0x394" \
17 "expand" \
18 "Δ 12345ΔΔΔ 12345678\n" \
19 "" \
Denys Vlasenkoe3d90a92010-05-10 05:53:16 +020020 "Δ\t12345ΔΔΔ\t12345678\n"
21SKIP=
22
Tomas Heinrichd2b1ba62010-01-04 16:21:31 +010023
Denis Vlasenko3139ea72008-12-14 15:45:25 +000024exit $FAILCOUNT