Skip to content

Commit

Permalink
Added test to show library compresses an empty binary but won't decom…
Browse files Browse the repository at this point in the history
…press the result.
  • Loading branch information
pmembrey committed May 16, 2014
1 parent 6ac8b1d commit 9d15a21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/snappy_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ decompression() ->
?assertEqual({ok, BigData}, snappy:decompress(Compressed3)),
ok.

can_compress_and_decompress_empty_lists_test() ->
can_compress_and_decompress_empty_binary_test() ->
% Try to compress an empty list...
{ok, Compressed} = snappy:compress([]),
{ok, Compressed} = snappy:compress(<<>>),
% Try to decompress the result of the compression...
{ok, Decompressed} = snappy:decompress(Compressed),
ok.

0 comments on commit 9d15a21

Please sign in to comment.