[Cppunit-cvs] cppunit/examples/hierarchy BoardGameTest.h,1.16,1.17 ChessTest.h,1.9,1.10
Brought to you by:
blep
From: Baptiste L. <bl...@us...> - 2005-02-23 07:34:58
|
Update of /cvsroot/cppunit/cppunit/examples/hierarchy In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31315/examples/hierarchy Modified Files: BoardGameTest.h ChessTest.h Log Message: * examples/hierarchy/BoardGameTest.h: * examples/hierarchy/ChessTest.h: fixed compilation issue, prefixed access to class member with 'this' (inheriting from template parameter dependent class). Index: BoardGameTest.h =================================================================== RCS file: /cvsroot/cppunit/cppunit/examples/hierarchy/BoardGameTest.h,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** BoardGameTest.h 25 Jun 2004 11:11:45 -0000 1.16 --- BoardGameTest.h 23 Feb 2005 07:34:40 -0000 1.17 *************** *** 27,41 **** void setUp() { ! m_game = new GAMECLASS; } void tearDown() { ! delete m_game; } void testReset() { ! CPPUNIT_ASSERT( m_game->reset() ); } --- 27,41 ---- void setUp() { ! this->m_game = new GAMECLASS; } void tearDown() { ! delete this->m_game; } void testReset() { ! CPPUNIT_ASSERT( this->m_game->reset() ); } *************** *** 43,47 **** { CPPUNIT_NS::stdCOut() << "The following test fails, this is intended:" << "\n"; ! CPPUNIT_ASSERT( !m_game->reset() ); } }; --- 43,47 ---- { CPPUNIT_NS::stdCOut() << "The following test fails, this is intended:" << "\n"; ! CPPUNIT_ASSERT( !this->m_game->reset() ); } }; Index: ChessTest.h =================================================================== RCS file: /cvsroot/cppunit/cppunit/examples/hierarchy/ChessTest.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** ChessTest.h 10 Jul 2002 18:50:02 -0000 1.9 --- ChessTest.h 23 Feb 2005 07:34:40 -0000 1.10 *************** *** 17,21 **** void testNumberOfPieces() { ! CPPUNIT_ASSERT( m_game->getNumberOfPieces () == 32 ); } }; --- 17,21 ---- void testNumberOfPieces() { ! CPPUNIT_ASSERT( this->m_game->getNumberOfPieces () == 32 ); } }; |