Created
May 21, 2020 23:09
-
-
Save trulyronak/05d298b962caf3eada9465571d099a88 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INPUT=$1 | |
MY_COMPRESS="mycompress" | |
SOL_COMPRESS="solcompress" | |
MY_UNCOMP="myuncomp" | |
SOL_UNCOMP="soluncomp" | |
echo "testing compressions" | |
./build/src/compress --ascii $INPUT $MY_COMPRESS | |
./solution-compress.executable --ascii $INPUT $SOL_COMPRESS | |
diff $MY_COMPRESS $SOL_COMPRESS | |
echo "just diffed compressions" | |
echo "testing decompressions" | |
./build/src/uncompress --ascii $MY_COMPRESS $MY_UNCOMP | |
./solution-uncompress.executable --ascii $SOL_COMPRESS $SOL_UNCOMP | |
diff $MY_UNCOMP $SOL_UNCOMP | |
echo "just diffed uncompressions" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment