mirror of
https://github.com/boostorg/utility.git
synced 2025-08-03 14:54:31 +02:00
BOOST_TEST -> BOOST_CHECK
[SVN r1727]
This commit is contained in:
@@ -45,14 +45,14 @@ struct xstring
|
||||
int test_main(int, char*[])
|
||||
{
|
||||
|
||||
BOOST_TEST(container(1).my_value);
|
||||
BOOST_TEST(container(1.0).my_value);
|
||||
BOOST_CHECK(container(1).my_value);
|
||||
BOOST_CHECK(container(1.0).my_value);
|
||||
|
||||
BOOST_TEST(!container("1").my_value);
|
||||
BOOST_TEST(!container(static_cast<void*>(0)).my_value);
|
||||
BOOST_CHECK(!container("1").my_value);
|
||||
BOOST_CHECK(!container(static_cast<void*>(0)).my_value);
|
||||
|
||||
char sa[] = "123456";
|
||||
BOOST_TEST(xstring<char>(sa, sa+6).data == 6);
|
||||
BOOST_CHECK(xstring<char>(sa, sa+6).data == 6);
|
||||
|
||||
|
||||
return 0;
|
||||
|
@@ -33,11 +33,11 @@ arithmetic_object(T t, dummy<1> = 0) { return false; }
|
||||
int test_main(int, char*[])
|
||||
{
|
||||
|
||||
BOOST_TEST(arithmetic_object(1));
|
||||
BOOST_TEST(arithmetic_object(1.0));
|
||||
BOOST_CHECK(arithmetic_object(1));
|
||||
BOOST_CHECK(arithmetic_object(1.0));
|
||||
|
||||
BOOST_TEST(!arithmetic_object("1"));
|
||||
BOOST_TEST(!arithmetic_object(static_cast<void*>(0)));
|
||||
BOOST_CHECK(!arithmetic_object("1"));
|
||||
BOOST_CHECK(!arithmetic_object(static_cast<void*>(0)));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -67,9 +67,9 @@ double mult(int i, double d) { return (double)i * d; }
|
||||
int test_main(int, char*[])
|
||||
{
|
||||
|
||||
BOOST_TEST(mult(1, 2) == 2);
|
||||
BOOST_TEST(mult(1.0, 3.0) == 3.0);
|
||||
BOOST_TEST(mult(1, 3.0) == 3.0);
|
||||
BOOST_CHECK(mult(1, 2) == 2);
|
||||
BOOST_CHECK(mult(1.0, 3.0) == 3.0);
|
||||
BOOST_CHECK(mult(1, 3.0) == 3.0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -75,17 +75,17 @@ int test_main(int, char*[])
|
||||
{
|
||||
using namespace A;
|
||||
using namespace B;
|
||||
BOOST_TEST(foo(1));
|
||||
BOOST_TEST(foo(1.0));
|
||||
BOOST_CHECK(foo(1));
|
||||
BOOST_CHECK(foo(1.0));
|
||||
|
||||
BOOST_TEST(!foo("1"));
|
||||
BOOST_TEST(!foo(static_cast<void*>(0)));
|
||||
BOOST_CHECK(!foo("1"));
|
||||
BOOST_CHECK(!foo(static_cast<void*>(0)));
|
||||
|
||||
BOOST_TEST(foo2(1));
|
||||
BOOST_TEST(foo2(1.0));
|
||||
BOOST_CHECK(foo2(1));
|
||||
BOOST_CHECK(foo2(1.0));
|
||||
|
||||
BOOST_TEST(!foo2("1"));
|
||||
BOOST_TEST(!foo2(static_cast<void*>(0)));
|
||||
BOOST_CHECK(!foo2("1"));
|
||||
BOOST_CHECK(!foo2(static_cast<void*>(0)));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -30,11 +30,11 @@ struct container {
|
||||
int test_main(int, char*[])
|
||||
{
|
||||
|
||||
BOOST_TEST(container().arithmetic_object(1));
|
||||
BOOST_TEST(container().arithmetic_object(1.0));
|
||||
BOOST_CHECK(container().arithmetic_object(1));
|
||||
BOOST_CHECK(container().arithmetic_object(1.0));
|
||||
|
||||
BOOST_TEST(!container().arithmetic_object("1"));
|
||||
BOOST_TEST(!container().arithmetic_object(static_cast<void*>(0)));
|
||||
BOOST_CHECK(!container().arithmetic_object("1"));
|
||||
BOOST_CHECK(!container().arithmetic_object(static_cast<void*>(0)));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -34,11 +34,11 @@ int test_main(int, char*[])
|
||||
{
|
||||
using namespace A;
|
||||
using namespace B;
|
||||
BOOST_TEST(arithmetic_object(1));
|
||||
BOOST_TEST(arithmetic_object(1.0));
|
||||
BOOST_CHECK(arithmetic_object(1));
|
||||
BOOST_CHECK(arithmetic_object(1.0));
|
||||
|
||||
BOOST_TEST(!arithmetic_object("1"));
|
||||
BOOST_TEST(!arithmetic_object(static_cast<void*>(0)));
|
||||
BOOST_CHECK(!arithmetic_object("1"));
|
||||
BOOST_CHECK(!arithmetic_object(static_cast<void*>(0)));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -30,11 +30,11 @@ arithmetic_object(T t) { return false; }
|
||||
int test_main(int, char*[])
|
||||
{
|
||||
|
||||
BOOST_TEST(arithmetic_object(1));
|
||||
BOOST_TEST(arithmetic_object(1.0));
|
||||
BOOST_CHECK(arithmetic_object(1));
|
||||
BOOST_CHECK(arithmetic_object(1.0));
|
||||
|
||||
BOOST_TEST(!arithmetic_object("1"));
|
||||
BOOST_TEST(!arithmetic_object(static_cast<void*>(0)));
|
||||
BOOST_CHECK(!arithmetic_object("1"));
|
||||
BOOST_CHECK(!arithmetic_object(static_cast<void*>(0)));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -48,17 +48,17 @@ struct tester2<T, typename disable_if<is_arithmetic<T> >::type> {
|
||||
int test_main(int, char*[])
|
||||
{
|
||||
|
||||
BOOST_TEST(tester<int>::value);
|
||||
BOOST_TEST(tester<double>::value);
|
||||
BOOST_CHECK(tester<int>::value);
|
||||
BOOST_CHECK(tester<double>::value);
|
||||
|
||||
BOOST_TEST(!tester<char*>::value);
|
||||
BOOST_TEST(!tester<void*>::value);
|
||||
BOOST_CHECK(!tester<char*>::value);
|
||||
BOOST_CHECK(!tester<void*>::value);
|
||||
|
||||
BOOST_TEST(tester2<int>::value);
|
||||
BOOST_TEST(tester2<double>::value);
|
||||
BOOST_CHECK(tester2<int>::value);
|
||||
BOOST_CHECK(tester2<double>::value);
|
||||
|
||||
BOOST_TEST(!tester2<char*>::value);
|
||||
BOOST_TEST(!tester2<void*>::value);
|
||||
BOOST_CHECK(!tester2<char*>::value);
|
||||
BOOST_CHECK(!tester2<void*>::value);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user