diff options
author | Fredrik Gustafsson <[email protected]> | 2013-02-13 15:09:45 +0100 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2013-02-13 15:09:45 +0100 |
commit | 14254702c27e9010f65cab69cd2829b00012d7ff (patch) | |
tree | 655e03f7a4f79bddfc3de193974fbfda7896d981 /lib/jinterface/test | |
parent | e55aff9434072dc9ba45b610d2e5110b0d537692 (diff) | |
parent | 283569b8ede00003c24776961e77051f37dc5594 (diff) | |
download | otp-14254702c27e9010f65cab69cd2829b00012d7ff.tar.gz otp-14254702c27e9010f65cab69cd2829b00012d7ff.tar.bz2 otp-14254702c27e9010f65cab69cd2829b00012d7ff.zip |
Merge branch 'nk/jinterface_dont_compress_if_size_increased/OTP-10822'
* nk/jinterface_dont_compress_if_size_increased/OTP-10822:
jinterface, OtpOutputStream: add a write_compressed(object, level) method
jinterface: fix a memory leak
jinterface: new limited OutputStream implementation without the need to resize
jinterface: don't return compressed external term if bigger than uncompressed
jinterface: don't compress small erlang terms < 5 bytes
jinterface, OtpOutputStream: properly override the three write() methods to ensure our growth strategy
jinterface: fix typo in error message if encoding fails
jinterface: don't need another FilterOutputStream wrapper
Diffstat (limited to 'lib/jinterface/test')
-rw-r--r-- | lib/jinterface/test/nc_SUITE.erl | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/jinterface/test/nc_SUITE.erl b/lib/jinterface/test/nc_SUITE.erl index 1f66366731..63c78ebdaa 100644 --- a/lib/jinterface/test/nc_SUITE.erl +++ b/lib/jinterface/test/nc_SUITE.erl @@ -208,7 +208,10 @@ decompress_roundtrip(Config) when is_list(Config) -> <<RandomBin1M:1048576/binary,_/binary>> = RandomBin, <<RandomBin10M:10485760/binary,_/binary>> = RandomBin, Terms = - [0.0, + [{}, + {a,b,c}, + [], + 0.0, math:sqrt(2), <<1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,31:5>>, RandomBin1k, @@ -234,7 +237,10 @@ compress_roundtrip(Config) when is_list(Config) -> <<RandomBin1M:1048576/binary,_/binary>> = RandomBin, <<RandomBin10M:10485760/binary,_/binary>> = RandomBin, Terms = - [0.0, + [{}, + {a,b,c}, + [], + 0.0, math:sqrt(2), <<1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,31:5>>, RandomBin1k, |