aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite
diff options
context:
space:
mode:
authorBenjamin Kosnik <bkoz@purist.soma.redhat.com>2000-08-14 21:14:19 +0000
committerBenjamin Kosnik <bkoz@gcc.gnu.org>2000-08-14 21:14:19 +0000
commitf60ded13efc192895d073c64b1b0e71d3acd6fd9 (patch)
treeb39b7da372a09f35d91d374796f113e5e0a398aa /libstdc++-v3/testsuite
parent3f622353270a85d3945641069fb027d0ec9cd787 (diff)
downloadgcc-f60ded13efc192895d073c64b1b0e71d3acd6fd9.zip
gcc-f60ded13efc192895d073c64b1b0e71d3acd6fd9.tar.gz
gcc-f60ded13efc192895d073c64b1b0e71d3acd6fd9.tar.bz2
stringstream.cc (test02): Fix.
2000-08-14 Benjamin Kosnik <bkoz@purist.soma.redhat.com> * testsuite/27_io/stringstream.cc (test02): Fix. From-SVN: r35690
Diffstat (limited to 'libstdc++-v3/testsuite')
-rw-r--r--libstdc++-v3/testsuite/27_io/stringstream.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libstdc++-v3/testsuite/27_io/stringstream.cc b/libstdc++-v3/testsuite/27_io/stringstream.cc
index 361e087..2a8f97e 100644
--- a/libstdc++-v3/testsuite/27_io/stringstream.cc
+++ b/libstdc++-v3/testsuite/27_io/stringstream.cc
@@ -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 );
//