mirror of
https://github.com/boostorg/test.git
synced 2026-01-27 07:22:11 +00:00
19 lines
327 B
C++
Executable File
19 lines
327 B
C++
Executable File
//[example22
|
|
#define BOOST_TEST_MODULE example
|
|
#include <boost/test/included/unit_test.hpp>
|
|
|
|
extern void foo( int i );
|
|
|
|
BOOST_AUTO_TEST_CASE( test_external_interface )
|
|
{
|
|
for( int i = 3; i >=0; i-- ) {
|
|
BOOST_TEST_CHECKPOINT( "Calling foo with i=" << i );
|
|
foo( i );
|
|
}
|
|
}
|
|
|
|
void foo( int i )
|
|
{
|
|
int j = 2/(i-1);
|
|
}
|
|
//]
|