diff --git a/.gitignore b/.gitignore index ff31868..af5181e 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,3 @@ bin *.o *.morse tests/*.morse -tests/*.txt diff --git a/tests/test.sh b/tests/test.sh index 77e4185..70b1289 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -1,3 +1,7 @@ -../bin/cmorse -i test.txt > out1.morse -../bin/cmorse -i test.txt -o out2.morse -../bin/cmorse -i out1.morse -d -o out1.txt +../bin/cmorse -i test.txt -o morse +../bin/cmorse -d -i morse -o text +if ! cmp test.txt text +then +echo "Files are not the same!" +fi +rm -f morse text