We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 179d097 commit 5f98841Copy full SHA for 5f98841
erts/emulator/test/bs_utf_SUITE.erl
@@ -357,8 +357,8 @@ utf32_illegal_sequences(Config) when is_list(Config) ->
357
utf32_fail_range(16#D800, 16#DFFF), %Reserved for UTF-16.
358
utf32_fail_range(-100, -1),
359
360
- <<>> = id(<< 0 || <<X/utf32>> <= <<"àxxx">>, _ = X >>),
361
- <<>> = id(<< 0 || <<X/little-utf32>> <= <<"àxxx">>, _ = X >>),
+ <<>> = id(<< 0 || <<X/utf32>> <= <<"àxxx">>, true =:= X >>),
+ <<>> = id(<< 0 || <<X/little-utf32>> <= <<"àxxx">>, true =:= X >>),
362
363
ok.
364
lib/compiler/test/bs_bincomp_SUITE.erl
@@ -274,7 +274,7 @@ inconsistent_types_2() ->
274
<<
275
Y ||
276
_ <- Y,
277
- (not ((false = Y) = (Y /= []))), (_ = Y)
+ (not ((false = Y) = (Y /= []))), true =:= (_ = Y)
278
>>
279
end
280
>>.
lib/compiler/test/receive_SUITE.erl
@@ -190,7 +190,7 @@ coverage(Config) when is_list(Config) ->
190
191
%% Cover code for handling a non-boolean `br` in beam_ssa_dead.
192
self() ! whatever,
193
- {'EXIT',{{badmatch,_},_}} = (catch [a || other = receive whatever -> false end]),
+ {'EXIT',{{badmatch,_},_}} = (catch [a || true =:= (other = receive whatever -> false end)]),
194
195
%% Cover code in beam_ssa_pre_codegen.
196
self() ! 0,
lib/compiler/test/trycatch_SUITE.erl
@@ -1173,7 +1173,7 @@ grab_bag_3() ->
1173
try 2 of
1174
true ->
1175
1176
- "" || [V0] = door
+ "" || true =:= ([V0] = door)
1177
1178
catch
1179
error:true:V0 ->
lib/debugger/test/int_eval_SUITE_data/my_int_eval_module.erl
@@ -230,10 +230,10 @@ otp_8310() ->
230
a = if (false orelse a) =:= a -> a; true -> b end,
231
F1 = fun() -> a end,
232
{'EXIT',{{bad_filter,a},_}} =
233
- (catch {a, [X || X <- [1,2,3], _ = F1()]}),
+ (catch {a, [X || X <- [1,2,3], F1()]}),
234
F2 = fun() -> << 3:8 >> end,
235
{'EXIT',{{bad_filter,<<3>>},_}} =
236
- (catch {a, << << X >> || << X >> <= << 7:8 >>,_ = F2() >>}),
+ (catch {a, << << X >> || << X >> <= << 7:8 >>, F2() >>}),
237
{'EXIT',{{bad_generator,a},_}} =
238
(catch {a, [X || X <- a]}),
239
{'EXIT',{{bad_generator,b},_}} =
lib/stdlib/test/erl_lint_SUITE.erl
@@ -361,9 +361,9 @@ unused_vars_warn_lc(Config) when is_list(Config) ->
[Z || Z <- (Y = X), % Y unused.
Y > X]; % Y unbound.
k(X) ->
- [Y || Y = X > 3, Z = X]; % Z unused.
+ [Y || true =:= (Y = X > 3), true =:= (Z = X)]; % Z unused.
365
366
- [Z || Y = X > 3, Z = X]. % Y unused.
+ [Z || true =:= (Y = X > 3), true =:= (Z = X)]. % Y unused.
367
">>,
368
[warn_unused_vars],
369
{error,[{{8,21},erl_lint,{unbound_var,'Y'}},
@@ -372,8 +372,8 @@ unused_vars_warn_lc(Config) when is_list(Config) ->
372
{{4,34},erl_lint,{unused_var,'Y'}},
373
{{8,34},erl_lint,{unused_var,'Y'}},
374
{{10,31},erl_lint,{unused_var,'Y'}},
375
- {{13,36},erl_lint,{unused_var,'Z'}},
376
- {{15,25},erl_lint,{unused_var,'Y'}}]}},
+ {{13,57},erl_lint,{unused_var,'Z'}},
+ {{15,35},erl_lint,{unused_var,'Y'}}]}},
377
378
{lc14,
379
<<"lc2() ->
lib/stdlib/test/qlc_SUITE.erl
@@ -2968,14 +2968,14 @@ lookup2(Config) when is_list(Config) ->
2968
<<"%% Only guards are inspected. No lookup.
2969
etsc(fun(E) ->
2970
Q = qlc:q([{X,Y} || {X,Y} <- ets:table(E),
2971
- Y = (X =:= 3)]),
+ true =:= (Y = (X =:= 3))]),
2972
{'EXIT', {{badmatch,false},_}} = (catch qlc:e(Q))
2973
end, [{false,3},{true,3}])">>,
2974
2975
2976
2977
2978
2979
2980
end, [{3,true},{4,true}])">>,
2981
@@ -2986,7 +2986,7 @@ lookup2(Config) when is_list(Config) ->
2986
true = ets:insert(E2, [{true,1},{false,2}]),
2987
Q = qlc:q([{X,Z} || {_,X} <- ets:table(E1),
2988
{Y,Z} <- ets:table(E2),
2989
2990
{'EXIT', {{badmatch,false},_}} = (catch qlc:e(Q)),
2991
ets:delete(E1),
2992
ets:delete(E2)">>,
0 commit comments