@@ -90,8 +90,8 @@ TEST_F(ForestTest, DumpBasic) {
90
90
TEST_F (ForestTest, DumpAmbiguousAndRefs) {
91
91
build (R"cpp(
92
92
_ := type
93
- type := class-type # rule 1
94
- type := enum-type # rule 2
93
+ type := class-type # rule 3
94
+ type := enum-type # rule 4
95
95
class-type := shared-type
96
96
enum-type := shared-type
97
97
shared-type := IDENTIFIER)cpp" );
@@ -106,21 +106,21 @@ TEST_F(ForestTest, DumpAmbiguousAndRefs) {
106
106
symbol (" shared-type" ), ruleFor (" shared-type" ), {Terminals.begin ()});
107
107
const auto *ClassType = &Arena.createSequence (
108
108
symbol (" class-type" ), ruleFor (" class-type" ), {SharedType});
109
- const auto *Enumtype = &Arena.createSequence (
109
+ const auto *EnumType = &Arena.createSequence (
110
110
symbol (" enum-type" ), ruleFor (" enum-type" ), {SharedType});
111
111
const auto *Alternative1 =
112
- &Arena.createSequence (symbol (" type" ), /* RuleID=*/ 1 , {ClassType});
112
+ &Arena.createSequence (symbol (" type" ), /* RuleID=*/ 3 , {ClassType});
113
113
const auto *Alternative2 =
114
- &Arena.createSequence (symbol (" type" ), /* RuleID=*/ 2 , {Enumtype });
114
+ &Arena.createSequence (symbol (" type" ), /* RuleID=*/ 4 , {EnumType });
115
115
const auto *Type =
116
116
&Arena.createAmbiguous (symbol (" type" ), {Alternative1, Alternative2});
117
117
EXPECT_EQ (Type->dumpRecursive (*G),
118
118
" [ 0, end) type := <ambiguous>\n "
119
- " [ 0, end) ├─class- type := shared -type\n "
119
+ " [ 0, end) ├─type := class -type\n "
120
120
" [ 0, end) │ └─class-type := shared-type\n "
121
121
" [ 0, end) │ └─shared-type := IDENTIFIER #1\n "
122
122
" [ 0, end) │ └─IDENTIFIER := tok[0]\n "
123
- " [ 0, end) └─enum- type := shared -type\n "
123
+ " [ 0, end) └─type := enum -type\n "
124
124
" [ 0, end) └─enum-type := shared-type\n "
125
125
" [ 0, end) └─shared-type := IDENTIFIER =#1\n "
126
126
" [ 0, end) └─IDENTIFIER := tok[0]\n " );
0 commit comments