From 0950c449066770292beae220ba4289ce124b4680 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 15 Feb 2020 15:42:20 +0100 Subject: Bugfixing --- test-lexer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test-lexer.cpp') diff --git a/test-lexer.cpp b/test-lexer.cpp index 6733081..0449af9 100644 --- a/test-lexer.cpp +++ b/test-lexer.cpp @@ -61,7 +61,7 @@ TEST_F(Test, BNF) { // implicit? //std::set 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 tokens_reference{ {"identifier", "a", { 1, 1} }, {"preprocessing-op-or-punc", "=", { 1, 3}}, @@ -77,7 +77,8 @@ TEST_F(Test, BNF) { {"preprocessing-op-or-punc", ";", { 1, 29}}, {"pp-number", "1", { 1, 31}}, {"preprocessing-op-or-punc", "=", { 1, 33}}, - {"identifier", "XYZ", { 1, 34}}, + {"identifier", "XYZ", { 1, 35}}, + {"preprocessing-op-or-punc", ";", { 1, 38}}, }; Lex::Lexer lexer(LexBNF, LexTop); -- cgit v1.2.3