stringstream.cc (test02): Fix.
authorBenjamin Kosnik <bkoz@purist.soma.redhat.com>
Mon, 14 Aug 2000 21:14:19 +0000 (21:14 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Mon, 14 Aug 2000 21:14:19 +0000 (21:14 +0000)
2000-08-14  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

* testsuite/27_io/stringstream.cc (test02): Fix.

From-SVN: r35690

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/27_io/stringstream.cc

index d1cdc058f9fb8bb2c0b2a977d31a5ddf624f8a69..48df831c929ef67ac7fc8453683f0fe44d7cdafc 100644 (file)
@@ -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
index 361e087edd935a5013d764bed7cf6609a92393fe..2a8f97ea3a163d2ca734ab273159833bec3d0492 100644 (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 );
 
   //