From e70f068243e39654da7320125161ca1da79cb721 Mon Sep 17 00:00:00 2001 From: Carmeli Tamir Date: Wed, 16 Oct 2019 09:14:35 -0400 Subject: [PATCH] Now making sure that the tests pass with no output --- test/CMakeLists.txt | 1 + test/node/node_test.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 033ec18..23fc0c5 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -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) diff --git a/test/node/node_test.cpp b/test/node/node_test.cpp index d747b96..18234db 100644 --- a/test/node/node_test.cpp +++ b/test/node/node_test.cpp @@ -25,7 +25,7 @@ namespace { TEST(NodeTest, SimpleScalar) { Node node = Node("Hello, World!"); EXPECT_TRUE(node.IsScalar()); - EXPECT_EQ("Hello, World!!", node.as()); + EXPECT_EQ("Hello, World!", node.as()); } TEST(NodeTest, IntScalar) {