diff options
author | Björn Gustavsson <[email protected]> | 2017-12-08 10:40:00 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-12-08 10:40:00 +0100 |
commit | 842d3c0be0d2095c8d1e79ea3d672e191f7f954e (patch) | |
tree | 44b12f32a41fbaf84c3b139ab8608ea22fed1ded /lib/compiler/test | |
parent | e38a9d81b536ecb68bf0c8a409a316aac43937d2 (diff) | |
parent | 087d9f36758c143d356c1b951ee8044f7bbe554a (diff) | |
download | otp-842d3c0be0d2095c8d1e79ea3d672e191f7f954e.tar.gz otp-842d3c0be0d2095c8d1e79ea3d672e191f7f954e.tar.bz2 otp-842d3c0be0d2095c8d1e79ea3d672e191f7f954e.zip |
Merge branch 'bjorn/compiler/cover-v3_codegen'
* bjorn/compiler/cover-v3_codegen:
v3_codegen: Simplify #k_guard_break{}
v3_codegen: Remove uncovered clause in bs_rename_ctx/4
Cover handling of #k_call{} in v3_codegen:bsm_rename_ctx/4
v3_codegen: Move guard_cg_list/6 to a more logical place
v3_codegen: Remove unnecessary clause for handling #cg_block{}
v3_codegen: Remove unnecessary adding of variable to set
Diffstat (limited to 'lib/compiler/test')
-rw-r--r-- | lib/compiler/test/bs_match_SUITE.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/compiler/test/bs_match_SUITE.erl b/lib/compiler/test/bs_match_SUITE.erl index 39f9b5d063..7e1a432511 100644 --- a/lib/compiler/test/bs_match_SUITE.erl +++ b/lib/compiler/test/bs_match_SUITE.erl @@ -1590,14 +1590,16 @@ check_bitstring_list(_, _) -> guard(_Config) -> Tuple = id({a,b}), ok = guard_1(<<1,2,3>>, {1,2,3}), - + ok = guard_2(<<42>>, #{}), ok. %% Cover handling of #k_put{} in v3_codegen:bsm_rename_ctx/4. - guard_1(<<A,B,C>>, Tuple) when Tuple =:= {A,B,C} -> ok. +%% Cover handling of #k_call{} in v3_codegen:bsm_rename_ctx/4. +guard_2(<<_>>, Healing) when Healing#{[] => Healing} =:= #{[] => #{}} -> + ok. check(F, R) -> R = F(). |