From 78a8235802c0689ad1e4ffe53c5bed63fd528e1b Mon Sep 17 00:00:00 2001 From: Pavel Kartavyy Date: Tue, 4 Oct 2016 19:10:15 +0300 Subject: [PATCH] json_test: fix build --- libs/libcommon/src/tests/json_test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/libcommon/src/tests/json_test.cpp b/libs/libcommon/src/tests/json_test.cpp index fe8c2cbae4f..30b7a4dfc99 100644 --- a/libs/libcommon/src/tests/json_test.cpp +++ b/libs/libcommon/src/tests/json_test.cpp @@ -1,4 +1,4 @@ -#define BOOST_TEST_MODULE JSON +#define BOOST_TEST_MODULE JSON_MODULE #include #include @@ -646,18 +646,18 @@ void test() JSON j(r.input.c_str(), r.input.c_str() + r.input.size()); BOOST_CHECK_EQUAL(j.getString(), r.result); - BOOST_CHECK_EQUAL(r.result_type, ResultType::Return); + BOOST_CHECK(r.result_type == ResultType::Return); } catch (JSONException & e) { - BOOST_CHECK_EQUAL(r.result_type, ResultType::Throw); + BOOST_CHECK(r.result_type == ResultType::Throw); BOOST_CHECK_EQUAL(e.message(), r.result); } } } } -BOOST_AUTO_TEST_SUITE(JSON) +BOOST_AUTO_TEST_SUITE(JSON_Suite) BOOST_AUTO_TEST_CASE(SimpleTest) {