
7 Jul
2009
7 Jul
'09
1:46 p.m.
Hicham Mouline
I have auto test cases that can take fixtures whose members they access in a uniform way.
Say struct F1... Fn
BOOST_FIXTURE_TEST_CASE( test_case1 , F1 ... Fn ) { //same code for all Fi }
Is there a way to do this?
Regards,
1. Make Fi inherit from Fi+1.
2. Use something like this:
template