Debian Codegraph @

debian/tests/cli

raw
1 #!/bin/sh
2 # autopkgtest check: Test the cli against some basic strings
3
4 set -e
5
6 # Run it on some ascii
7 [ $(echo 'hello world' | uchardet) = 'ASCII' ]
8 echo "run1: OK"
9
10 # Run it on some chinese
11 [ $(echo '汉字漢字統一編碼萬國碼' | uchardet) = 'UTF-8' ]
12 echo "run2: OK"