This is an automated email from the ASF dual-hosted git repository. ronny pushed a commit to branch update-snappy in repository https://gitbox.apache.org/repos/asf/couchdb-snappy.git
commit 9d15a218c3f757bd8e9ad346c8c182d27eb2046e Author: Peter Membrey <[email protected]> AuthorDate: Fri May 16 21:25:02 2014 +0800 Added test to show library compresses an empty binary but won't decompress the result. --- test/snappy_tests.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/snappy_tests.erl b/test/snappy_tests.erl index bf3bcaf..0b42398 100644 --- a/test/snappy_tests.erl +++ b/test/snappy_tests.erl @@ -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.
