expand.tests 601 B

123456789101112131415161718192021222324
  1. #!/bin/sh
  2. # Copyright 2008 by Denys Vlasenko
  3. # Licensed under GPLv2, see file LICENSE in this source tree.
  4. . ./testing.sh
  5. test -f "$bindir/.config" && . "$bindir/.config"
  6. # testing "test name" "options" "expected result" "file input" "stdin"
  7. testing "expand" \
  8. "expand" \
  9. " 12345678 12345678\n" \
  10. "" \
  11. "\t12345678\t12345678\n"
  12. test x"$CONFIG_UNICODE_SUPPORT" = x"y" \
  13. && test x"$CONFIG_UNICODE_USING_LOCALE" != x"y" \
  14. && testing "expand with unicode characher 0x394" \
  15. "expand" \
  16. "Δ 12345ΔΔΔ 12345678\n" \
  17. "" \
  18. "Δ\t12345ΔΔΔ\t12345678\n"
  19. exit $FAILCOUNT