Skip to content

Commit 085bacf

Browse files
committed
Fix binary comparison in OTP R16B03
Binaries are not equal in OTP R16B03 & 20-rc.1, converting binary back to term passes in R16B03. Would have tested OTP 20-rc.1 as well, but it's not available via kerl [#146794925]
1 parent d817366 commit 085bacf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/term_to_binary_compat_prop_SUITE.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ prop_pre_3_6_11_works(_Config) ->
5656
begin
5757
Current = term_to_binary(Term),
5858
Compat = term_to_binary_compat:term_to_binary_1(Term),
59-
Current =:= Compat
59+
binary_to_term(Current) =:= binary_to_term(Compat)
6060
end).
6161

6262
term_to_binary_latin_atom(Config) ->

0 commit comments

Comments
 (0)