Extended Parser tests with whitespace handling check.

This commit is contained in:
Patrick Lühne 2016-05-30 12:56:30 +02:00
parent 4d984d32c3
commit 348bd98de8

View File

@ -108,6 +108,12 @@ TEST(UtilsTests, ParserPosition)
ASSERT_EQ(p.row(), 1u); ASSERT_EQ(p.row(), 1u);
ASSERT_EQ(p.column(), 4u); ASSERT_EQ(p.column(), 4u);
ASSERT_EQ(p.currentCharacter(), ' ');
p.advance();
ASSERT_EQ(p.row(), 1u);
ASSERT_EQ(p.column(), 5u);
ASSERT_EQ(p.currentCharacter(), '\n'); ASSERT_EQ(p.currentCharacter(), '\n');
p.advance(); p.advance();