Skip to content

Commit

Permalink
Merge branch 'isabell/parsetools/yecc-test-fix'
Browse files Browse the repository at this point in the history
* isabell/parsetools/yecc-test-fix:
  yecc_SUITE: fix errors after PR #8699 jaro similarity
  • Loading branch information
lucioleKi committed Aug 15, 2024
2 parents 8816c26 + cc18970 commit da07de3
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions lib/parsetools/test/yecc_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,10 @@ syntax(Config) when is_list(Config) ->
%% Note: checking the line numbers. Changes when yeccpre.hrl changes.
fun() ->
{error,[{_,[{{5,25},_,["syntax error before: ","bad"]}]},
{_,[{{L1,_},_,{undefined_function,{yeccpars2_2_,1}}},
{{L2,_},_,{bad_inline,{yeccpars2_2_,1}}},
{{_,_},_,{undefined_function,{yeccpars2_2_,1}}},
{{_,_},_,{bad_nowarn_unused_function,{yeccpars2_2_,1}}}]}],
{_,[{{L1,_},_,{undefined_function,{yeccpars2_2_,1},_}},
{{L2,_},_,{bad_inline,{yeccpars2_2_,1},_}},
{{_,_},_,{undefined_function,{yeccpars2_2_,1},_}},
{{_,_},_,{bad_nowarn_unused_function,{yeccpars2_2_,1},_}}]}],
[]} = compile:file(Parserfile1, [basic_validation,return]),
?assertEqual(L1, 38 + SzYeccPre),
?assertEqual(L2, 47 + SzYeccPre)
Expand All @@ -361,10 +361,10 @@ syntax(Config) when is_list(Config) ->
%% Note: checking the line numbers. Changes when yeccpre.hrl changes.
fun() ->
{error,[{_,[{{5,24},_,{undefined,'F',1}}]},
{_,[{{L1,_},_,{undefined_function,{yeccpars2_2_,1}}},
{{L2,_},_,{bad_inline,{yeccpars2_2_,1}}},
{{_,_},_,{undefined_function,{yeccpars2_2_,1}}},
{{_,_},_,{bad_nowarn_unused_function,{yeccpars2_2_,1}}}]}],
{_,[{{L1,_},_,{undefined_function,{yeccpars2_2_,1},_}},
{{L2,_},_,{bad_inline,{yeccpars2_2_,1},_}},
{{_,_},_,{undefined_function,{yeccpars2_2_,1},_}},
{{_,_},_,{bad_nowarn_unused_function,{yeccpars2_2_,1},_}}]}],
[]} = compile:file(Parserfile1, [basic_validation,return]),
?assertEqual(L1, 38 + SzYeccPre),
?assertEqual(L2, 47 + SzYeccPre)
Expand Down Expand Up @@ -1691,10 +1691,10 @@ otp_7292(Config) when is_list(Config) ->
SzYeccPre = yeccpre_size(),
{error,
[{_,[{{5,32},_,["syntax error before: ","bad"]}]},
{_,[{{L1,_},_,{undefined_function,{yeccpars2_2_,1}}},
{{L2,_},_,{bad_inline,{yeccpars2_2_,1}}},
{{_,_},_,{undefined_function,{yeccpars2_2_,1}}},
{{_,_},_,{bad_nowarn_unused_function,{yeccpars2_2_,1}}}]}],
{_,[{{L1,_},_,{undefined_function,{yeccpars2_2_,1},_}},
{{L2,_},_,{bad_inline,{yeccpars2_2_,1},_}},
{{_,_},_,{undefined_function,{yeccpars2_2_,1},_}},
{{_,_},_,{bad_nowarn_unused_function,{yeccpars2_2_,1},_}}]}],
[{_,[{{16,20},_,{unused_function,{foo,0}}}]}]} =
compile:file(Parserfile1, [basic_validation, return]),
?assertEqual(L1, 48 + SzYeccPre),
Expand Down

0 comments on commit da07de3

Please sign in to comment.