From 457e47e4e3466f3218ef1f99d7213c087ee03ddc Mon Sep 17 00:00:00 2001 From: fis Date: Mon, 25 May 2020 15:40:03 +0800 Subject: [PATCH] Fix test. --- tests/cpp/test_learner.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cpp/test_learner.cc b/tests/cpp/test_learner.cc index a69fce19d900..7cd354fe92c2 100644 --- a/tests/cpp/test_learner.cc +++ b/tests/cpp/test_learner.cc @@ -46,7 +46,7 @@ TEST(Learner, ParameterValidation) { learner->Configure(); std::string output = testing::internal::GetCapturedStderr(); - ASSERT_TRUE(output.find("Parameters: { Knock Knock, Silence }") != std::string::npos); + ASSERT_TRUE(output.find(R"(Parameters: { "Knock Knock", "Silence" })") != std::string::npos); } TEST(Learner, CheckGroup) {