mirror of
https://github.com/boostorg/test.git
synced 2026-02-15 13:32:09 +00:00
Merge branch 'topic/BOOST_DATA_TEST_CASE_F' into develop
Conflicts: doc/closing_chapters/change_log.qbk
This commit is contained in:
@@ -93,6 +93,8 @@ BOOST_DATA_TEST_CASE( test_case_interface_06, samples1 * samples2 * samples3, in
|
||||
++index6;
|
||||
}
|
||||
|
||||
//____________________________________________________________________________//
|
||||
|
||||
// test dataset dim > 3
|
||||
int index7 = 0;
|
||||
|
||||
@@ -111,4 +113,22 @@ BOOST_DATA_TEST_CASE( test_case_interface_07, samples1 * samples2 * samples3 * s
|
||||
++index7;
|
||||
}
|
||||
|
||||
//____________________________________________________________________________//
|
||||
|
||||
static int index8 = 1;
|
||||
|
||||
struct SharedFixture {
|
||||
SharedFixture()
|
||||
: m_expected(index8++)
|
||||
{
|
||||
}
|
||||
|
||||
int m_expected;
|
||||
};
|
||||
|
||||
BOOST_DATA_TEST_CASE_F( SharedFixture, test_case_interface_08, data::make({1,2,3}) )
|
||||
{
|
||||
BOOST_TEST( sample == m_expected );
|
||||
}
|
||||
|
||||
// EOF
|
||||
|
||||
Reference in New Issue
Block a user