comparison scripts/test/wc.test @ 710:cfdaead45479

Make internalization support optional
author Felix Janda <felix.janda@posteo.de>
date Wed, 21 Nov 2012 20:38:29 +0100
parents 9414be56b1db
children
comparison
equal deleted inserted replaced
709:6164dcc7384d 710:cfdaead45479
18 testing "wc -l" "wc -l file1" "4 file1\n" "" "" 18 testing "wc -l" "wc -l file1" "4 file1\n" "" ""
19 testing "wc -w" "wc -w file1" "5 file1\n" "" "" 19 testing "wc -w" "wc -w file1" "5 file1\n" "" ""
20 testing "wc format" "wc file1" "4 5 26 file1\n" "" "" 20 testing "wc format" "wc file1" "4 5 26 file1\n" "" ""
21 testing "wc multiple files" "wc input - file1" \ 21 testing "wc multiple files" "wc input - file1" \
22 "1 2 3 input\n0 2 3 -\n4 5 26 file1\n5 9 32 total\n" "a\nb" "a b" 22 "1 2 3 input\n0 2 3 -\n4 5 26 file1\n5 9 32 total\n" "a\nb" "a b"
23
24 optional TOYBOX_I18N
23 25
24 #Tests for wc -m 26 #Tests for wc -m
25 if printf "%s" "$LANG" | grep -q UTF-8 27 if printf "%s" "$LANG" | grep -q UTF-8
26 then 28 then
27 29