Stop using assert() in tests
[SVN r33181]
This commit is contained in:
parent
87ad11583c
commit
fdd91dbf91
@ -10,7 +10,6 @@
|
|||||||
#include <boost/test/minimal.hpp>
|
#include <boost/test/minimal.hpp>
|
||||||
#include <boost/function.hpp>
|
#include <boost/function.hpp>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <cassert>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
@ -653,12 +652,12 @@ static void test_implicit()
|
|||||||
|
|
||||||
static void test_call_obj(boost::function<int (int, int)> f)
|
static void test_call_obj(boost::function<int (int, int)> f)
|
||||||
{
|
{
|
||||||
assert(!f.empty());
|
BOOST_CHECK(!f.empty());
|
||||||
}
|
}
|
||||||
|
|
||||||
static void test_call_cref(const boost::function<int (int, int)>& f)
|
static void test_call_cref(const boost::function<int (int, int)>& f)
|
||||||
{
|
{
|
||||||
assert(!f.empty());
|
BOOST_CHECK(!f.empty());
|
||||||
}
|
}
|
||||||
|
|
||||||
static void test_call()
|
static void test_call()
|
||||||
|
Loading…
Reference in New Issue
Block a user