[Mockpp-commits] mockpp/mockpp/tests Formatter_test.cpp,1.20,1.21
Brought to you by:
ewald-arnold
|
From: Ewald A. <ewa...@us...> - 2005-03-03 15:50:07
|
Update of /cvsroot/mockpp/mockpp/mockpp/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19250/mockpp/tests Modified Files: Formatter_test.cpp Log Message: additional type Index: Formatter_test.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/tests/Formatter_test.cpp,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** Formatter_test.cpp 26 Jan 2005 21:59:12 -0000 1.20 --- Formatter_test.cpp 3 Mar 2005 15:49:36 -0000 1.21 *************** *** 402,405 **** --- 402,433 ---- MOCKPP_ASSERT_EQUALS(fmt, MOCKPP_PCSTRING("9876543210")); + + fmt = MOCKPP_PCHAR("%9%8%7%6%5%4%3%2%1%0"); + fmt << (signed char) ('0') + << (signed char)('1') + << (signed char)('2') + << (signed char)('3') + << (signed char)('4') + << (signed char)('5') + << (signed char)('6') + << (signed char)('7') + << (signed char)('8') + << (signed char)('9'); + + MOCKPP_ASSERT_EQUALS(fmt, MOCKPP_PCSTRING("9876543210")); + + fmt = MOCKPP_PCHAR("%9%8%7%6%5%4%3%2%1%0"); + fmt << (unsigned char)('0') + << (unsigned char)('1') + << (unsigned char)('2') + << (unsigned char)('3') + << (unsigned char)('4') + << (unsigned char)('5') + << (unsigned char)('6') + << (unsigned char)('7') + << (unsigned char)('8') + << (unsigned char)('9'); + + MOCKPP_ASSERT_EQUALS(fmt, MOCKPP_PCSTRING("9876543210")); } |