From 5f456ffe339c8409ded9dc98cc5520dded1df0a6 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sun, 10 May 2020 23:16:58 +0300 Subject: [PATCH] Converted blank_test to lightweight_test.hpp. --- test/blank_test.cpp | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/test/blank_test.cpp b/test/blank_test.cpp index c1cf033..721aa58 100644 --- a/test/blank_test.cpp +++ b/test/blank_test.cpp @@ -5,28 +5,33 @@ #include #include -#include - +#include +#include +#include +#include #if !defined(BOOST_NO_IOSTREAM) #include #endif -int main() { +int main() +{ BOOST_STATIC_ASSERT((boost::is_pod::value)); BOOST_STATIC_ASSERT((boost::is_empty::value)); BOOST_STATIC_ASSERT((boost::is_stateless::value)); boost::blank b1,b2; - assert(b1 == b2); - assert(b1 <= b2); - assert(b1 >= b2); - assert(!(b1 != b2)); - assert(!(b1 < b2)); - assert(!(b1 > b2)); + BOOST_TEST(b1 == b2); + BOOST_TEST(b1 <= b2); + BOOST_TEST(b1 >= b2); + BOOST_TEST(!(b1 != b2)); + BOOST_TEST(!(b1 < b2)); + BOOST_TEST(!(b1 > b2)); #if !defined(BOOST_NO_IOSTREAM) std::stringstream s; s << "(" << b1 << ")"; - assert(s.str() == "()"); + BOOST_TEST(s.str() == "()"); #endif + + return boost::report_errors(); }