Skip to content

Commit

Permalink
Add test for issue #2 fixed in previous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdoeffinger committed Aug 16, 2016
1 parent ebbb6e2 commit 8ecc304
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/testsuite-example.utf8
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
▄ ▄ ▄ ▄ ▄ ▄ ▄ ▄ ▄ ▄ ▄
██▀▀█ █▄ ▀█ █▄███ ▀ ▀
█▀▀ ▀ ▄▀▄▄███▀▄ ▄█ ▄█▀
█ ▀ ▄ █▄▀▄ █▄▄ ▄ ▀ ▄ ▀
█ ▀█ ▀█▀▄▀ █▄█▀ █▀
█▄▀ ▄ █▄▀ ▀▀ ▀ ▄ ██▀▀
█ ▀ ▀ ██▄▄█▀█▄█▀█▀ ▀
█▀▀█▄▀█▀▀▄▄▀▀█▀▀█ ██▄▀
██▀▄ ██▄ ▀▀ █▄ ▄▄▀
█▀█▄ ▄ ▄▀█ ▀▀█▄▄▄ ▄▄▄▀
█▀▀▀▄ ▄█▀ █▄▀ █ ▀▀ █▀
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
2 changes: 2 additions & 0 deletions test/testsuite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ export LD_LIBRARY_PATH="../.libs:$LD_LIBRARY_PATH"
../iec16022 -o testsuite-test.png -f PNG -c "Aolash3l dee6Ieke OhBohm1C MengaR9m zaHaoQu2 huW3Uer8 ieg7chaJ haiKua1o"
../iec16022 -o testsuite-test.bin -f Bin -c "Aolash3l dee6Ieke OhBohm1C MengaR9m zaHaoQu2 huW3Uer8 ieg7chaJ haiKua1o"
../iec16022 -o testsuite-test.hex -f Hex -c "Aolash3l dee6Ieke OhBohm1C MengaR9m zaHaoQu2 huW3Uer8 ieg7chaJ haiKua1o"
../iec16022 -o testsuite-test.utf8 -f utf8 -c "UEXPLR4-CBR3A3-001-TSK 13471 3216"

diff -b testsuite-test.text testsuite-example.text && echo "Text test passed" || { echo "Text test FAILED" && FAILED=1 ; }
diff -b testsuite-test.eps testsuite-example.eps && echo "EPS test passed" || { echo "EPS test FAILED" && FAILED=1 ; }
diff -b testsuite-test.png testsuite-example.png && echo "PNG test passed" || { echo "PNG test FAILED" && FAILED=1 ; }
diff -b testsuite-test.bin testsuite-example.bin && echo "Bin test passed" || { echo "Bin test FAILED" && FAILED=1 ; }
diff -b testsuite-test.hex testsuite-example.hex && echo "Hex test passed" || { echo "Hex test FAILED" && FAILED=1 ; }
diff -b testsuite-test.utf8 testsuite-example.utf8 && echo "UTF-8 test passed" || { echo "UTF-8 test FAILED" && FAILED=1 ; }

rm testsuite-test.*

Expand Down

0 comments on commit 8ecc304

Please sign in to comment.