2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-22 17:32:55 +00:00

Made Python testing more verbose by default

Avoid using the Boost.Test library wherever possible.


[SVN r24249]
This commit is contained in:
Dave Abrahams
2004-08-02 19:31:59 +00:00
parent bd985d67d8
commit cac6d3e5ac
2 changed files with 9 additions and 19 deletions

View File

@@ -17,13 +17,15 @@ BOOST_PYTHON_DECL bool handle_exception_impl(function0<void>)
int result;
#define ASSERT_SAME(T1,T2) \
if (!is_same< T1, T2 >::value) { \
std::cout << "*********************\n"; \
std::cout << python::type_id< T1 >() << " != " << python::type_id< T2 >() << "\n"; \
std::cout << "*********************\n"; \
result = 1; \
}
#define ASSERT_SAME(T1,T2) assert_same< T1,T2 >()
template <class T, class U>
void assert_same(U* = 0, T* = 0)
{
BOOST_STATIC_ASSERT((boost::is_same<T,U>::value));
}
int main()
{