Update of /cvsroot/cppunit/cppunit2/examples/input_based_test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6062/examples/input_based_test
Modified Files:
main.cpp
Log Message:
* fixed propagation of test input.
Index: main.cpp
===================================================================
RCS file: /cvsroot/cppunit/cppunit2/examples/input_based_test/main.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** main.cpp 28 Feb 2005 20:48:56 -0000 1.1
--- main.cpp 28 Feb 2005 22:31:36 -0000 1.2
***************
*** 29,35 ****
CppUT::TestPtr test1 = CppUT::makeTestCase( CppTL::cfn0( testMultiply ),
"multiply 7*2" );
! test1->info()["x"] = 7;
! test1->info()["x"] = 2;
! test1->info()["expected"] = 7*2+1;
allSuite->add( test1 );
--- 29,35 ----
CppUT::TestPtr test1 = CppUT::makeTestCase( CppTL::cfn0( testMultiply ),
"multiply 7*2" );
! test1->info()["input"]["x"] = 7;
! test1->info()["input"]["y"] = 2;
! test1->info()["input"]["expected"] = 7*2+1;
allSuite->add( test1 );
|