2
0
mirror of https://github.com/boostorg/test.git synced 2026-02-19 02:42:13 +00:00
Files
test/doc/v2/snippet/snippet5.cpp
2014-01-27 02:16:48 +01:00

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
}