Add a space in multiple root test for ensuring that whitespace is not consumed when done.

This commit is contained in:
Milo Yip 2014-07-27 17:29:03 +08:00
parent e09b9d5c05
commit 3d106085c1

View File

@ -566,7 +566,8 @@ void TestMultipleRoot() {
EXPECT_EQ(2u, h.step_);
EXPECT_TRUE(reader.Parse<parseFlags>(s, h));
EXPECT_EQ(4u, h.step_);
EXPECT_EQ('a', s.Peek());
EXPECT_EQ(' ', s.Take());
EXPECT_EQ('a', s.Take());
}
TEST(Reader, Parse_MultipleRoot) {