From cc18970cf86db1be89fba6b9971e04281aa75bfa Mon Sep 17 00:00:00 2001 From: lucioleKi Date: Tue, 13 Aug 2024 11:06:20 +0200 Subject: [PATCH] yecc_SUITE: fix errors after PR #8699 jaro similarity --- lib/parsetools/test/yecc_SUITE.erl | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/parsetools/test/yecc_SUITE.erl b/lib/parsetools/test/yecc_SUITE.erl index 0158eb686526..e64bff58c034 100644 --- a/lib/parsetools/test/yecc_SUITE.erl +++ b/lib/parsetools/test/yecc_SUITE.erl @@ -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) @@ -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) @@ -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),