Skip to content

Commit

Permalink
Add a simple test.
Browse files Browse the repository at this point in the history
  • Loading branch information
eloj committed May 5, 2020
1 parent 05bfa14 commit 1094884
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions run-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
TMPFILE=$(tempfile)
trap "{ rm $TMPFILE; }" EXIT
set -e
./lzw-eddy -d tests/abra.txt.lzw -o $TMPFILE && test "$(sha256sum $TMPFILE)" = "3119a48c6843ee7dcc08312e97b1d8e3b241b082996afe761f8a045d493b7cef $TMPFILE" || (echo "Test failed." && exit 1)
echo "Passed."
1 change: 1 addition & 0 deletions tests/abra.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ABRACADABRA!!!
Binary file added tests/abra.txt.lzw
Binary file not shown.

0 comments on commit 1094884

Please sign in to comment.