mirror of
https://github.com/boostorg/function.git
synced 2025-07-22 17:07:14 +02:00
function_n_test.cpp:
function_test.cpp: - Removed silly ';;' constructs: MSVC seems to handle the updated code much better. regression.cfg: - Fixed typos [SVN r10482]
This commit is contained in:
@ -130,7 +130,7 @@ test_zero_args()
|
||||
|
||||
// Construction from another function (that is empty)
|
||||
v1.clear();
|
||||
func_void_type v2(v1);;
|
||||
func_void_type v2(v1);
|
||||
BOOST_TEST(!v2);
|
||||
|
||||
// Assignment to an empty function
|
||||
@ -227,10 +227,10 @@ test_zero_args()
|
||||
BOOST_TEST(global_int == 5);
|
||||
global_int = 0;
|
||||
v2();
|
||||
BOOST_TEST(global_int == 5);;
|
||||
BOOST_TEST(global_int == 5);
|
||||
|
||||
// Construct a function given another function containing a function
|
||||
func_void_type v3(v1);;
|
||||
func_void_type v3(v1);
|
||||
|
||||
// Invocation of a function
|
||||
global_int = 0;
|
||||
@ -552,7 +552,7 @@ test_emptiness()
|
||||
BOOST_TEST(f2.empty());
|
||||
|
||||
function0<double> f3;
|
||||
f3 = f2;;
|
||||
f3 = f2;
|
||||
BOOST_TEST(f3.empty());
|
||||
}
|
||||
|
||||
|
@ -130,7 +130,7 @@ test_zero_args()
|
||||
|
||||
// Construction from another function (that is empty)
|
||||
v1.clear();
|
||||
func_void_type v2(v1);;
|
||||
func_void_type v2(v1);
|
||||
BOOST_TEST(!v2);
|
||||
|
||||
// Assignment to an empty function
|
||||
@ -227,10 +227,10 @@ test_zero_args()
|
||||
BOOST_TEST(global_int == 5);
|
||||
global_int = 0;
|
||||
v2();
|
||||
BOOST_TEST(global_int == 5);;
|
||||
BOOST_TEST(global_int == 5);
|
||||
|
||||
// Construct a function given another function containing a function
|
||||
func_void_type v3(v1);;
|
||||
func_void_type v3(v1);
|
||||
|
||||
// Invocation of a function
|
||||
global_int = 0;
|
||||
@ -552,7 +552,7 @@ test_emptiness()
|
||||
BOOST_TEST(f2.empty());
|
||||
|
||||
function<double> f3;
|
||||
f3 = f2;;
|
||||
f3 = f2;
|
||||
BOOST_TEST(f3.empty());
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Boost.Function regression test configuration file
|
||||
|
||||
// From the boost/status directory, run
|
||||
// ./regressions --tests ../libs/function/test/regression.cfg --o function.html
|
||||
// ./regression --tests ../libs/function/test/regression.cfg -o function.html
|
||||
|
||||
|
||||
run libs/function/test/allocator_test.cpp
|
||||
|
Reference in New Issue
Block a user