aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/beam_types_SUITE.erl
diff options
context:
space:
mode:
authorJohn Högberg <[email protected]>2019-05-24 15:26:53 +0200
committerJohn Högberg <[email protected]>2019-06-12 13:33:46 +0200
commit9cfcddacc961301733619d998833e0fe345966e7 (patch)
treed56524c1d47718e3c3b7c6cf58f196c35b7d1663 /lib/compiler/test/beam_types_SUITE.erl
parent9bf77c86ec83853d321958dac3582fdc2f00b045 (diff)
downloadotp-9cfcddacc961301733619d998833e0fe345966e7.tar.gz
otp-9cfcddacc961301733619d998833e0fe345966e7.tar.bz2
otp-9cfcddacc961301733619d998833e0fe345966e7.zip
compiler: Move "known functions" to beam_types
Diffstat (limited to 'lib/compiler/test/beam_types_SUITE.erl')
-rw-r--r--lib/compiler/test/beam_types_SUITE.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/compiler/test/beam_types_SUITE.erl b/lib/compiler/test/beam_types_SUITE.erl
index 66fd517ec0..297bd4026e 100644
--- a/lib/compiler/test/beam_types_SUITE.erl
+++ b/lib/compiler/test/beam_types_SUITE.erl
@@ -55,11 +55,11 @@ commutativity(Config) when is_list(Config) ->
binary_consistency(Config) when is_list(Config) ->
%% These binaries should meet into {binary,12} as that's the best common
%% unit for both types.
- A = {binary, 4},
- B = {binary, 6},
+ A = #t_bitstring{unit=4},
+ B = #t_bitstring{unit=6},
- {binary, 12} = beam_types:meet(A, B),
- {binary, 2} = beam_types:join(A, B),
+ #t_bitstring{unit=12} = beam_types:meet(A, B),
+ #t_bitstring{unit=2} = beam_types:join(A, B),
A = beam_types:meet(A, beam_types:join(A, B)),
A = beam_types:join(A, beam_types:meet(A, B)),