summaryrefslogtreecommitdiffhomepage
path: root/test-lexer.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-02-15 16:12:15 +0100
committerRoland Reichwein <mail@reichwein.it>2020-02-15 16:12:15 +0100
commit477d82f44f5303b55b456f58f53e878289710743 (patch)
treeb2df26884095acf21e1f00e308b8c5f97df5563a /test-lexer.cpp
parent0950c449066770292beae220ba4289ce124b4680 (diff)
First compile of statement list
Diffstat (limited to 'test-lexer.cpp')
-rw-r--r--test-lexer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test-lexer.cpp b/test-lexer.cpp
index 0449af9..2eeaef8 100644
--- a/test-lexer.cpp
+++ b/test-lexer.cpp
@@ -61,7 +61,7 @@ TEST_F(Test, BNF) {
// implicit?
//std::set<std::string> Terminals{"identifier", "=", ";"};
- std::string Code{"a = bc ; c = 123 ; esd = Ff ; 1 = XYZ ;"};
+ std::string Code{"a = bc ; c = 123 ; esd = Ff ; 1 = XYZ ; "};
std::vector<Token> tokens_reference{
{"identifier", "a", { 1, 1} },
{"preprocessing-op-or-punc", "=", { 1, 3}},
@@ -78,7 +78,7 @@ TEST_F(Test, BNF) {
{"pp-number", "1", { 1, 31}},
{"preprocessing-op-or-punc", "=", { 1, 33}},
{"identifier", "XYZ", { 1, 35}},
- {"preprocessing-op-or-punc", ";", { 1, 38}},
+ {"preprocessing-op-or-punc", ";", { 1, 39}},
};
Lex::Lexer lexer(LexBNF, LexTop);