~zorba-coders/zorba/llvm

« back to all changes in this revision

Viewing changes to src/unit_tests/test_base64_streambuf.cpp

1. Improved catch() for unit tests.
2. Improved bpackfail() for streambufs.
3. locale template function additions.
4. Enhanced aton(). Approved: Chris Hillery, Paul J. Lucas

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
 
52
52
#define ASSERT_TRUE_AND_NO_EXCEPTION( NO, EXPR ) \
53
53
  try { ASSERT_TRUE( NO, EXPR ); } \
54
 
  catch ( std::exception const &e ) { print_exception( NO, #EXPR, __LINE__, e ); }
 
54
  catch ( exception const &e ) { print_exception( NO, #EXPR, __LINE__, e ); } \
 
55
  catch ( ... ) { assert_true( NO, #EXPR, __LINE__, false ); }
55
56
 
56
57
///////////////////////////////////////////////////////////////////////////////
57
58