mirror of
https://github.com/boostorg/test.git
synced 2026-02-19 02:42:13 +00:00
21 lines
293 B
C++
21 lines
293 B
C++
struct MyFixture {
|
|
MyFixture() { i = new int; *i = 0 }
|
|
~ MyFixture() { delete i; }
|
|
|
|
int* i;
|
|
};
|
|
|
|
BOOST_AUTO_TEST_CASE( test_case1 )
|
|
{
|
|
MyFixture f;
|
|
|
|
// do something involving f.i
|
|
}
|
|
|
|
BOOST_AUTO_TEST_CASE( test_case2 )
|
|
{
|
|
MyFixture f;
|
|
|
|
// do something involving f.i
|
|
}
|