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 6ac8b1d386aed64c1c40aa9262bf200c8f99c817
Author: Peter Membrey <[email protected]>
AuthorDate: Fri May 16 21:16:37 2014 +0800

    Added test to show library compresses an empty list but won't decompress 
the result.
---
 test/snappy_tests.erl | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/test/snappy_tests.erl b/test/snappy_tests.erl
index ac39c58..bf3bcaf 100644
--- a/test/snappy_tests.erl
+++ b/test/snappy_tests.erl
@@ -72,3 +72,9 @@ decompression() ->
     ?assertEqual({ok, BigData}, snappy:decompress(Compressed3)),
     ok.
 
+can_compress_and_decompress_empty_lists_test() ->
+    % Try to compress an empty list...
+    {ok, Compressed} = snappy:compress([]),
+    % Try to decompress the result of the compression...
+    {ok, Decompressed} = snappy:decompress(Compressed),
+    ok.

Reply via email to