stringstream.cc (test02): Fix.
2000-08-14 Benjamin Kosnik <bkoz@purist.soma.redhat.com> * testsuite/27_io/stringstream.cc (test02): Fix. From-SVN: r35690
This commit is contained in:
parent
3f62235327
commit
f60ded13ef
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
2000-08-14 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
|
||||
|
||||
* testsuite/27_io/stringstream.cc (test02): Fix.
|
||||
|
||||
2000-08-14 Brent Verner <brent@rcfile.org>
|
||||
|
||||
* testsuite/debug_assert.h: new file
|
||||
|
|
|
@ -87,16 +87,16 @@ test02()
|
|||
std::ostringstream ostrst01;
|
||||
std::ostringstream ostrst02(blank);
|
||||
|
||||
// No buffer, so nothing should be added.
|
||||
// No buffer,so should be created.
|
||||
ostrst01 << "i: " << i << " i's address: " << pi << "\n"
|
||||
<< "d: " << d << " d's address: " << pd << std::endl;
|
||||
// Buffer, so this should be ok.
|
||||
// Buffer, so existing buffer should be overwritten.
|
||||
ostrst02 << "i: " << i << " i's address: " << pi << "\n"
|
||||
<< "d: " << d << " d's address: " << pd << std::endl;
|
||||
|
||||
std::string msg01 = ostrst01.str();
|
||||
std::string msg02 = ostrst02.str();
|
||||
VERIFY( msg01 != msg02 );
|
||||
VERIFY( msg01 == msg02 );
|
||||
VERIFY( msg02 != blank );
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Reference in a new issue