2
0
mirror of https://github.com/boostorg/test.git synced 2026-02-19 14:52:09 +00:00

updated unit tests

[SVN r74643]
This commit is contained in:
Gennadiy Rozental
2011-10-02 09:57:34 +00:00
parent 1f4aa37f26
commit 286dc1db33
11 changed files with 89 additions and 16 deletions

View File

@@ -16,7 +16,7 @@
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/unit_test_log.hpp>
#include <boost/test/output_test_stream.hpp>
#include <boost/test/tools/output_test_stream.hpp>
#include <boost/test/execution_monitor.hpp>
#include <boost/test/detail/unit_test_parameters.hpp>
#include <boost/test/output/compiler_log_formatter.hpp>
@@ -597,6 +597,42 @@ BOOST_AUTO_TEST_CASE( test_argument_handling )
//____________________________________________________________________________//
TEST_CASE( test_context_logging )
{
BOOST_TEST_INFO( "some context" );
BOOST_CHECK( false );
int i = 12;
BOOST_TEST_INFO( "some more context: " << i );
BOOST_CHECK( false );
BOOST_TEST_INFO( "info 1" );
BOOST_TEST_INFO( "info 2" );
BOOST_TEST_INFO( "info 3" );
BOOST_CHECK( false );
BOOST_TEST_CONTEXT( "some sticky context" ) {
BOOST_CHECK( false );
BOOST_TEST_INFO( "more context" );
BOOST_CHECK( false );
BOOST_TEST_INFO( "different subcontext" );
BOOST_CHECK( false );
}
BOOST_TEST_CONTEXT( "outer context" ) {
BOOST_CHECK( false );
BOOST_TEST_CONTEXT( "inner context" ) {
BOOST_CHECK( false );
}
BOOST_CHECK( false );
}
}
//____________________________________________________________________________//
// !! CHECK_SMALL