@@ -202,7 +202,9 @@ init_per_testcase(TestCase, Config) when
202202 {skip , " Maybe expressions are only supported from OTP 25" };
203203 false ->
204204 Config
205- end ;
205+ end ,
206+ els_mock_diagnostics :setup (),
207+ els_test_utils :init_per_testcase (TestCase , Config );
206208init_per_testcase (TestCase , Config ) ->
207209 els_mock_diagnostics :setup (),
208210 els_test_utils :init_per_testcase (TestCase , Config ).
@@ -333,23 +335,23 @@ bound_var_in_pattern(_Config) ->
333335 Hints0 = [
334336 #{
335337 message => <<" Bound variable in pattern: Var1" >>,
336- range => {{5 , 2 }, {5 , 6 }}
338+ range => {{18 , 2 }, {18 , 6 }}
337339 },
338340 #{
339341 message => <<" Bound variable in pattern: Var2" >>,
340- range => {{9 , 9 }, {9 , 13 }}
342+ range => {{22 , 9 }, {22 , 13 }}
341343 },
342344 #{
343345 message => <<" Bound variable in pattern: Var4" >>,
344- range => {{17 , 8 }, {17 , 12 }}
346+ range => {{30 , 8 }, {30 , 12 }}
345347 },
346348 #{
347349 message => <<" Bound variable in pattern: Var3" >>,
348- range => {{15 , 10 }, {15 , 14 }}
350+ range => {{28 , 10 }, {28 , 14 }}
349351 },
350352 #{
351353 message => <<" Bound variable in pattern: Var5" >>,
352- range => {{23 , 6 }, {23 , 10 }}
354+ range => {{36 , 6 }, {36 , 10 }}
353355 }
354356 ],
355357 Hints =
@@ -362,11 +364,19 @@ bound_var_in_pattern(_Config) ->
362364 [
363365 #{
364366 message => <<" Bound variable in pattern: New" >>,
365- range => {{28 , 6 }, {28 , 9 }}
367+ range => {{41 , 6 }, {41 , 9 }}
366368 },
367369 #{
368370 message => <<" Bound variable in pattern: F" >>,
369- range => {{29 , 6 }, {29 , 7 }}
371+ range => {{42 , 6 }, {42 , 7 }}
372+ },
373+ #{
374+ message => <<" Bound variable in pattern: X" >>,
375+ range => {{11 , 9 }, {11 , 10 }}
376+ },
377+ #{
378+ message => <<" Bound variable in pattern: Y" >>,
379+ range => {{13 , 9 }, {13 , 10 }}
370380 }
371381 ]
372382 )
0 commit comments