mirror of
https://github.com/boostorg/local_function.git
synced 2026-01-23 17:52:08 +00:00
Added test for sequence syntax (to run with and without variadic macro support) and disabled variadic syntax test when variadic macros are not supported.
Updated docs. [SVN r77078]
This commit is contained in:
@@ -87,17 +87,17 @@ void world::add_person(person const& a_person) {
|
||||
checkpoint = ++p.evolution_;
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE( test_scope_exit ) {
|
||||
BOOST_AUTO_TEST_CASE(test_scope_exit) {
|
||||
person adam, eva;
|
||||
std::ostringstream oss;
|
||||
oss << adam;
|
||||
std::cout << oss.str() << std::endl;
|
||||
BOOST_CHECK( oss.str() == "person(0, 0)" );
|
||||
BOOST_CHECK(oss.str() == "person(0, 0)");
|
||||
|
||||
oss.str("");
|
||||
oss << eva;
|
||||
std::cout << oss.str() << std::endl;
|
||||
BOOST_CHECK( oss.str() == "person(0, 0)" );
|
||||
BOOST_CHECK(oss.str() == "person(0, 0)");
|
||||
|
||||
world w;
|
||||
w.add_person(adam);
|
||||
@@ -105,6 +105,6 @@ BOOST_AUTO_TEST_CASE( test_scope_exit ) {
|
||||
oss.str("");
|
||||
oss << w;
|
||||
std::cout << oss.str() << std::endl;
|
||||
BOOST_CHECK( oss.str() == "world(3, { person(1, 2), person(2, 2), })" );
|
||||
BOOST_CHECK(oss.str() == "world(3, { person(1, 2), person(2, 2), })");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user