Skip to content

Commit

Permalink
Protect OTP26 setup for older OTPs.
Browse files Browse the repository at this point in the history
  • Loading branch information
lisztspace committed Nov 10, 2023
1 parent 96cf782 commit 818e5b0
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions test/power_shell_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -234,14 +234,22 @@ export_all() ->
local_bad_match(),
rebind([]),
external_filter([]),
map_comprehension_from_list(),
map_comprehension_from_binary(),
map_generator_to_map(),
map_generator_to_list(),
map_generator_to_binary(),
otp26_maps(),
throw_applied(),
try_side({1, 1}).

-if(?OTP_RELEASE > 25).
otp26_maps() ->
map_comprehension_from_list(),
map_comprehension_from_binary(),
map_generator_to_map(),
map_generator_to_list(),
map_generator_to_binary().
-else.
otp26_maps() ->
ok.
-endif.

-record(rec, {first= "1", second, third = initial}).
create_record() ->
#rec{third = application:get_env(kernel, missing, 3), first = "1"}.
Expand Down

0 comments on commit 818e5b0

Please sign in to comment.