Skip to content

Instantly share code, notes, and snippets.

@trulyronak
Created May 21, 2020 23:09
Show Gist options
  • Save trulyronak/05d298b962caf3eada9465571d099a88 to your computer and use it in GitHub Desktop.
Save trulyronak/05d298b962caf3eada9465571d099a88 to your computer and use it in GitHub Desktop.
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