diff options
author | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-14 21:14:19 +0000 |
---|---|---|
committer | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-14 21:14:19 +0000 |
commit | 6a332808be4b3e6151f335969661740f6455c9f2 (patch) | |
tree | b39b7da372a09f35d91d374796f113e5e0a398aa /libstdc++-v3 | |
parent | d5f10acfe6048e8ec2f87d407d15b235dd197fbf (diff) | |
download | gcc-6a332808be4b3e6151f335969661740f6455c9f2.tar.gz |
2000-08-14 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
* testsuite/27_io/stringstream.cc (test02): Fix.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35690 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 4 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/27_io/stringstream.cc | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index d1cdc058f9f..48df831c929 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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 diff --git a/libstdc++-v3/testsuite/27_io/stringstream.cc b/libstdc++-v3/testsuite/27_io/stringstream.cc index 361e087edd9..2a8f97ea3a1 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 ); // |