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 d85dc65 commit 445095aCopy full SHA for 445095a
erts/emulator/test/bs_utf_SUITE.erl
@@ -359,8 +359,8 @@ utf32_illegal_sequences(Config) when is_list(Config) ->
359
utf32_fail_range(16#D800, 16#DFFF), %Reserved for UTF-16.
360
utf32_fail_range(-100, -1),
361
362
- <<>> = id(<< 0 || <<X/utf32>> <= <<"àxxx">>, _ = X >>),
363
- <<>> = id(<< 0 || <<X/little-utf32>> <= <<"àxxx">>, _ = X >>),
+ <<>> = id(<< 0 || <<X/utf32>> <= <<"àxxx">>, true =:= X >>),
+ <<>> = id(<< 0 || <<X/little-utf32>> <= <<"àxxx">>, true =:= X >>),
364
365
ok.
366
lib/compiler/test/bs_bincomp_SUITE.erl
@@ -261,7 +261,7 @@ inconsistent_types_2() ->
261
<<
262
Y ||
263
_ <- Y,
264
- (not ((false = Y) = (Y /= []))), (_ = Y)
+ (not ((false = Y) = (Y /= []))), true =:= (_ = Y)
265
>>
266
end
267
>>.
lib/compiler/test/receive_SUITE.erl
@@ -192,7 +192,7 @@ coverage(Config) when is_list(Config) ->
192
193
%% Cover code for handling a non-boolean `br` in beam_ssa_dead.
194
self() ! whatever,
195
- {'EXIT',{{badmatch,_},_}} = (catch [a || other = receive whatever -> false end]),
+ {'EXIT',{{badmatch,_},_}} = (catch [a || true =:= (other = receive whatever -> false end)]),
196
197
%% Cover code in beam_ssa_pre_codegen.
198
self() ! 0,
lib/compiler/test/trycatch_SUITE.erl
@@ -1175,7 +1175,7 @@ grab_bag_3() ->
1175
try 2 of
1176
true ->
1177
1178
- "" || [V0] = door
+ "" || true =:= ([V0] = door)
1179
1180
catch
1181
error:true:V0 ->
lib/debugger/test/int_eval_SUITE_data/my_int_eval_module.erl
@@ -232,10 +232,10 @@ otp_8310() ->
232
a = if (false orelse a) =:= a -> a; true -> b end,
233
F1 = fun() -> a end,
234
{'EXIT',{{bad_filter,a},_}} =
235
- (catch {a, [X || X <- [1,2,3], _ = F1()]}),
+ (catch {a, [X || X <- [1,2,3], F1()]}),
236
F2 = fun() -> << 3:8 >> end,
237
{'EXIT',{{bad_filter,<<3>>},_}} =
238
- (catch {a, << << X >> || << X >> <= << 7:8 >>,_ = F2() >>}),
+ (catch {a, << << X >> || << X >> <= << 7:8 >>, F2() >>}),
239
{'EXIT',{{bad_generator,a},_}} =
240
(catch {a, [X || X <- a]}),
241
{'EXIT',{{bad_generator,b},_}} =
lib/stdlib/test/erl_lint_SUITE.erl
@@ -365,9 +365,9 @@ unused_vars_warn_lc(Config) when is_list(Config) ->
[Z || Z <- (Y = X), % Y unused.
Y > X]; % Y unbound.
367
k(X) ->
368
- [Y || Y = X > 3, Z = X]; % Z unused.
+ [Y || true =:= (Y = X > 3), true =:= (Z = X)]; % Z unused.
369
370
- [Z || Y = X > 3, Z = X]. % Y unused.
+ [Z || true =:= (Y = X > 3), true =:= (Z = X)]. % Y unused.
371
">>,
372
[warn_unused_vars],
373
{error,[{{8,21},erl_lint,{unbound_var,'Y'}},
@@ -376,8 +376,8 @@ unused_vars_warn_lc(Config) when is_list(Config) ->
376
{{4,34},erl_lint,{unused_var,'Y'}},
377
{{8,34},erl_lint,{unused_var,'Y'}},
378
{{10,31},erl_lint,{unused_var,'Y'}},
379
- {{13,36},erl_lint,{unused_var,'Z'}},
380
- {{15,25},erl_lint,{unused_var,'Y'}}]}},
+ {{13,57},erl_lint,{unused_var,'Z'}},
+ {{15,35},erl_lint,{unused_var,'Y'}}]}},
381
382
{lc14,
383
<<"lc2() ->
lib/stdlib/test/qlc_SUITE.erl
@@ -2977,14 +2977,14 @@ lookup2(Config) when is_list(Config) ->
2977
<<"%% Only guards are inspected. No lookup.
2978
etsc(fun(E) ->
2979
Q = qlc:q([{X,Y} || {X,Y} <- ets:table(E),
2980
- Y = (X =:= 3)]),
+ true =:= (Y = (X =:= 3))]),
2981
{'EXIT', {{badmatch,false},_}} = (catch qlc:e(Q))
2982
end, [{false,3},{true,3}])">>,
2983
2984
2985
2986
2987
2988
2989
end, [{3,true},{4,true}])">>,
2990
@@ -2995,7 +2995,7 @@ lookup2(Config) when is_list(Config) ->
2995
true = ets:insert(E2, [{true,1},{false,2}]),
2996
Q = qlc:q([{X,Z} || {_,X} <- ets:table(E1),
2997
{Y,Z} <- ets:table(E2),
2998
2999
{'EXIT', {{badmatch,false},_}} = (catch qlc:e(Q)),
3000
ets:delete(E1),
3001
ets:delete(E2)">>,
0 commit comments