[Mockpp-commits] mockpp/mockpp/tests ChainableMockMethod_1_test.cpp,1.6,1.7 ChainableMockObject_1_te
Brought to you by:
ewald-arnold
From: Ewald A. <ewa...@us...> - 2005-10-18 20:17:24
|
Update of /cvsroot/mockpp/mockpp/mockpp/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17846/mockpp/tests Modified Files: ChainableMockMethod_1_test.cpp ChainableMockObject_1_test.cpp Log Message: avoid typecast Index: ChainableMockObject_1_test.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/tests/ChainableMockObject_1_test.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- ChainableMockObject_1_test.cpp 18 Oct 2005 20:03:54 -0000 1.9 +++ ChainableMockObject_1_test.cpp 18 Oct 2005 20:17:16 -0000 1.10 @@ -107,11 +107,11 @@ MOCKPP_CHAINER_FOR(MyChainableMockObject_1, chainable) chain(&mcm); chain.stubs(mockpp::once()) - .with(mockpp::eq((unsigned int) 12)) + .with(mockpp::eq(12u)) .will(mockpp::returnValue<int>(21)); chain.stubs(mockpp::once()) - .with(mockpp::eq((unsigned int) 34)) // @todoc pitfall + .with(mockpp::eq(34u)) // @todoc pitfall .will(mockpp::returnValue<int>(43)); MOCKPP_ASSERT_TRUE(mcm.chainable(12) == 21); Index: ChainableMockMethod_1_test.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/tests/ChainableMockMethod_1_test.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- ChainableMockMethod_1_test.cpp 18 Oct 2005 20:03:53 -0000 1.6 +++ ChainableMockMethod_1_test.cpp 18 Oct 2005 20:17:16 -0000 1.7 @@ -105,11 +105,11 @@ mockpp::ChainableMockMethod1<int, unsigned>::ChainerFor chain(mcm.chainable_mocker); chain.stubs(mockpp::once()) - .with(mockpp::eq((unsigned int) 12)) + .with(mockpp::eq(12u)) .will(mockpp::returnValue<int>(21)); chain.stubs(mockpp::once()) - .with(mockpp::eq((unsigned int) 34)) + .with(mockpp::eq(34u)) .will(mockpp::returnValue<int>(43)); MOCKPP_ASSERT_TRUE(mcm.chainable(12) == 21); @@ -137,12 +137,12 @@ unsigned counter = 0; chain.stubs(mockpp::once()) - .with(mockpp::eq((unsigned int) 12)) + .with(mockpp::eq(12u)) .will(new IncCounter<unsigned>(counter)); // @todo MOCKPP_ASSERT_EQUALS(1u, counter); chain.stubs(mockpp::once()) - .with(mockpp::eq((unsigned int) 34)) + .with(mockpp::eq(34u)) .will(new IncCounter<unsigned>(counter)); // @todo MOCKPP_ASSERT_EQUALS(2u, counter); |