diff options
author | Mattias Andrée <maandree@kth.se> | 2018-05-06 13:03:00 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2018-05-06 13:03:00 +0200 |
commit | 8ce4b080ce0a66b03e4ae95a45a49ac7a37cb275 (patch) | |
tree | e2d1adf5c38935ebeae002807cc1fbbe4d829b2d /yes-test | |
parent | m (diff) | |
download | base-util-tests-8ce4b080ce0a66b03e4ae95a45a49ac7a37cb275.tar.gz base-util-tests-8ce4b080ce0a66b03e4ae95a45a49ac7a37cb275.tar.bz2 base-util-tests-8ce4b080ce0a66b03e4ae95a45a49ac7a37cb275.tar.xz |
Add UTF-8 test for yes
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'yes-test')
-rwxr-xr-x | yes-test/test | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/yes-test/test b/yes-test/test index f795771..b978255 100755 --- a/yes-test/test +++ b/yes-test/test @@ -96,10 +96,24 @@ EOF rm tmp } +utf8 () +{ + cat > tmp <<EOF +åäö𝔘 +åäö𝔘 +åäö𝔘 +åäö𝔘 +åäö𝔘 +EOF + diff <($y 'åäö𝔘' | head -n 5) tmp > /dev/null + report $? "utf8" + rm tmp +} + if test $# = 0; then - set args0 args1 args2 args3 ddash + set args0 args1 args2 args3 ddash utf8 fi ( for f in $@; do |