Add a space in multiple root test for ensuring that whitespace is not consumed when done.
This commit is contained in:
parent
e09b9d5c05
commit
3d106085c1
@ -566,7 +566,8 @@ void TestMultipleRoot() {
|
|||||||
EXPECT_EQ(2u, h.step_);
|
EXPECT_EQ(2u, h.step_);
|
||||||
EXPECT_TRUE(reader.Parse<parseFlags>(s, h));
|
EXPECT_TRUE(reader.Parse<parseFlags>(s, h));
|
||||||
EXPECT_EQ(4u, h.step_);
|
EXPECT_EQ(4u, h.step_);
|
||||||
EXPECT_EQ('a', s.Peek());
|
EXPECT_EQ(' ', s.Take());
|
||||||
|
EXPECT_EQ('a', s.Take());
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(Reader, Parse_MultipleRoot) {
|
TEST(Reader, Parse_MultipleRoot) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user