summaryrefslogtreecommitdiffhomepage
path: root/tests/test-grammer.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-11-01 16:26:22 +0100
committerRoland Reichwein <mail@reichwein.it>2020-11-01 16:26:22 +0100
commite0d6dac4b103a557b37f4850fe76dacf87df7cb9 (patch)
tree76cd488c6eb59d0e42639b0abcf623d311a07c4c /tests/test-grammer.cpp
parent8256280b348b4b53fff35c9101ced0a8dfb2c58e (diff)
Update cppbnf.cpp
Diffstat (limited to 'tests/test-grammer.cpp')
-rw-r--r--tests/test-grammer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-grammer.cpp b/tests/test-grammer.cpp
index 1734da2..6af6992 100644
--- a/tests/test-grammer.cpp
+++ b/tests/test-grammer.cpp
@@ -50,7 +50,7 @@ TEST_F(GrammerTest, minimumSymbolsNeeded) {
EXPECT_EQ(minimumSymbolsNeeded(compiler, "logical-or-expression"), 1);
EXPECT_EQ(minimumSymbolsNeeded(compiler, "assignment-expression"), 1);
EXPECT_EQ(minimumSymbolsNeeded(compiler, "declaration"), 1);
- EXPECT_EQ(minimumSymbolsNeeded(compiler, "block-declaration"), 3);
+ EXPECT_EQ(minimumSymbolsNeeded(compiler, "block-declaration"), 2);
EXPECT_EQ(minimumSymbolsNeeded(compiler, "simple-declaration"), 2);
EXPECT_EQ(minimumSymbolsNeeded(compiler, "asm-declaration"), 5);
EXPECT_EQ(minimumSymbolsNeeded(compiler, "namespace-alias-definition"), 5);
@@ -58,8 +58,8 @@ TEST_F(GrammerTest, minimumSymbolsNeeded) {
EXPECT_EQ(minimumSymbolsNeeded(compiler, "using-enum-declaration"), 4);
EXPECT_EQ(minimumSymbolsNeeded(compiler, "using-directive"), 4);
EXPECT_EQ(minimumSymbolsNeeded(compiler, "static_assert-declaration"), 5);
- EXPECT_EQ(minimumSymbolsNeeded(compiler, "alias-declaration"), 7);
+ EXPECT_EQ(minimumSymbolsNeeded(compiler, "alias-declaration"), 5);
EXPECT_EQ(minimumSymbolsNeeded(compiler, "opaque-enum-declaration"), 3);
- EXPECT_EQ(minimumSymbolsNeeded(compiler, "function-definition"), 4);
+ EXPECT_EQ(minimumSymbolsNeeded(compiler, "function-definition"), 3);
}