one more check in test

This commit is contained in:
hyperxor 2019-11-23 21:36:14 +03:00
parent 2510d8cfa4
commit f1b3337bc1

View File

@ -4,13 +4,14 @@
using YAML::Parser; using YAML::Parser;
using YAML::MockEventHandler; using YAML::MockEventHandler;
using ::testing::StrictMock;
TEST(ParserTest, Empty) { TEST(ParserTest, Empty) {
Parser parser; Parser parser;
EXPECT_FALSE(parser); EXPECT_FALSE(parser);
MockEventHandler handler; StrictMock<MockEventHandler> handler;
EXPECT_FALSE(parser.HandleNextDocument(handler)); EXPECT_FALSE(parser.HandleNextDocument(handler));
std::ostringstream oss; std::ostringstream oss;