1
0
forked from boostorg/core

Switch swap tests to lightweight_test.

This commit is contained in:
Peter Dimov
2014-08-09 12:54:49 +03:00
parent 1a956992bd
commit 5d251ae769
20 changed files with 97 additions and 77 deletions

View File

@@ -9,12 +9,13 @@
// std::bitset<T> does not have its own std::swap overload.
#include <boost/utility/swap.hpp>
#define BOOST_INCLUDE_MAIN
#include <boost/test/test_tools.hpp>
#include <boost/core/lightweight_test.hpp>
#define BOOST_CHECK BOOST_TEST
#define BOOST_CHECK_EQUAL BOOST_TEST_EQ
#include <bitset>
int test_main(int, char*[])
int main()
{
typedef std::bitset<8> bitset_type;
const bitset_type initial_value1 = 1;
@@ -28,6 +29,6 @@ int test_main(int, char*[])
BOOST_CHECK_EQUAL(object1,initial_value2);
BOOST_CHECK_EQUAL(object2,initial_value1);
return 0;
return boost::report_errors();
}