File tree Expand file tree Collapse file tree 1 file changed +15
-14
lines changed
Expand file tree Collapse file tree 1 file changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -1969,18 +1969,19 @@ Block <- Statements {}
19691969 ast = pg.optimize_ast (ast);
19701970 auto s = ast_to_s (ast);
19711971
1972- EXPECT_EQ (R"( + Start/0[I]
1973- + Block/0[Statements]
1974- + Statement/0[S]
1975- + Statement/0[I]
1976- + Block/0[Statements]
1977- + Statement/0[I]
1978- + Block/0[Statements]
1979- + Statement/0[S]
1980- + Statement/0[S]
1981- + Statement/0[S]
1982- + Statement/0[S]
1983- )" , s);
1972+ EXPECT_EQ (R"( + Start[I]
1973+ + Block[Statements]
1974+ + Statement[S]
1975+ + Statement[I]
1976+ + Block[Statements]
1977+ + Statement[I]
1978+ + Block[Statements]
1979+ + Statement[S]
1980+ + Statement[S]
1981+ + Statement[S]
1982+ + Statement[S]
1983+ )" ,
1984+ s);
19841985}
19851986
19861987TEST (StateTest, NestedBlocks) {
@@ -2018,7 +2019,8 @@ expr <- 'hello'
20182019 };
20192020
20202021 size_t i = 0 ;
2021- pg.set_logger ([&](size_t ln, size_t col, const std::string &msg, const std::string &rule) {
2022+ pg.set_logger ([&](size_t ln, size_t col, const std::string &msg,
2023+ const std::string &rule) {
20222024 std::stringstream ss;
20232025 ss << ln << " :" << col << " : " << msg;
20242026 EXPECT_EQ (errors[i++], ss.str ());
@@ -2045,4 +2047,3 @@ expr <- 'hello'
20452047
20462048 EXPECT_EQ (i, errors.size ());
20472049}
2048-
You can’t perform that action at this time.
0 commit comments