Now making sure that the tests pass with no output

This commit is contained in:
Carmeli Tamir 2019-10-16 09:14:35 -04:00
parent 1badd67f1c
commit e70f068243
2 changed files with 2 additions and 1 deletions

View File

@ -45,4 +45,5 @@ if (NOT DEFINED CMAKE_CXX_STANDARD)
set_target_properties(yaml-cpp-tests PROPERTIES CXX_STANDARD 11)
endif()
add_test(yaml-cpp::test yaml-cpp-tests)

View File

@ -25,7 +25,7 @@ namespace {
TEST(NodeTest, SimpleScalar) {
Node node = Node("Hello, World!");
EXPECT_TRUE(node.IsScalar());
EXPECT_EQ("Hello, World!!", node.as<std::string>());
EXPECT_EQ("Hello, World!", node.as<std::string>());
}
TEST(NodeTest, IntScalar) {