aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/binary_SUITE.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2014-02-24 17:19:19 +0100
committerLukas Larsson <[email protected]>2014-02-24 17:19:19 +0100
commited5cb316a0a1bbc30f90e7bac27efed3818d4a16 (patch)
treea7242471f60a0f343e9839504b12212e71018193 /erts/emulator/test/binary_SUITE.erl
parent60b771c936b3d5c1bf3f8c223f789e5fc639dbab (diff)
parenta3af5f4a5c4568225ef91ee4493da6bf659f7161 (diff)
downloadotp-ed5cb316a0a1bbc30f90e7bac27efed3818d4a16.tar.gz
otp-ed5cb316a0a1bbc30f90e7bac27efed3818d4a16.tar.bz2
otp-ed5cb316a0a1bbc30f90e7bac27efed3818d4a16.zip
Merge branch 'lukas/erts/float_encoding/OTP-11738'
* lukas/erts/float_encoding/OTP-11738: erts: Set default external enc to use new float scheme
Diffstat (limited to 'erts/emulator/test/binary_SUITE.erl')
-rw-r--r--erts/emulator/test/binary_SUITE.erl10
1 files changed, 5 insertions, 5 deletions
diff --git a/erts/emulator/test/binary_SUITE.erl b/erts/emulator/test/binary_SUITE.erl
index a390c536bb..938aac6a0e 100644
--- a/erts/emulator/test/binary_SUITE.erl
+++ b/erts/emulator/test/binary_SUITE.erl
@@ -474,16 +474,16 @@ terms_compression_levels(_, _, _) -> ok.
terms_float(Config) when is_list(Config) ->
?line test_floats(fun(Term) ->
- Bin0 = term_to_binary(Term),
Bin0 = term_to_binary(Term, [{minor_version,0}]),
Term = binary_to_term_stress(Bin0),
+ Bin1 = term_to_binary(Term),
Bin1 = term_to_binary(Term, [{minor_version,1}]),
Term = binary_to_term_stress(Bin1),
true = size(Bin1) < size(Bin0),
- Size0 = erlang:external_size(Term),
- Size00 = erlang:external_size(Term, [{minor_version, 0}]),
- Size1 = erlang:external_size(Term, [{minor_version, 1}]),
- true = (Size0 =:= Size00),
+ Size0 = erlang:external_size(Term, [{minor_version, 0}]),
+ Size1 = erlang:external_size(Term),
+ Size11 = erlang:external_size(Term, [{minor_version, 1}]),
+ true = (Size1 =:= Size11),
true = Size1 < Size0
end).