stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r660333 - /stdcxx/branches/4.2.x/tests/regress/
Date Mon, 26 May 2008 23:16:09 GMT
Author: sebor
Date: Mon May 26 16:16:03 2008
New Revision: 660333

URL: http://svn.apache.org/viewvc?rev=660333&view=rev
Log:
2008-05-26  Martin Sebor  <sebor@roguewave.com>

	Merged revs 650369 650374 650370 650361 629551 635441 650360 650356
	635444 650366 637959 650352 650353 from trunk.

	2008-04-21  Martin Sebor  <sebor@roguewave.com>

	* tests/regress/27.stringbuf.seekoff.stdcxx-295.cpp: Added
	a regression test for STDCXX-295.

	2008-04-21  Martin Sebor  <sebor@roguewave.com>

	* tests/regress/21.char.traits.find.stdcxx-541.cpp: Added a regression
	test for STDCXX-541.

	2008-04-21  Martin Sebor  <sebor@roguewave.com>

	* tests/regress/23.vector.cons.stdcxx-294.cpp: Added a regression
	test for STDCXX-294.

	2008-04-21  Martin Sebor  <sebor@roguewave.com>

	* tests/regress/25.random.shuffle.stdcxx-126.cpp: Added
	a regression test for STDCXX-126.

	2008-02-20 Farid Zaripov <farid_zaripov@epam.com>

	* tests/regress/21.string.replace.stdcxx-170.cpp: New
	regression test for STDCXX-170 issue.

	2008-03-10 Farid Zaripov <farid_zaripov@epam.com>

	* tests/regress/21.string.replace.stdcxx-170.cpp: Added testcase with
	_InputIter as string::iterator. Removed testcase with _InputIter as
	UChar* (this testcase would fail), testing with _InputIter as char*
	instead.

	2008-04-21  Martin Sebor  <sebor@roguewave.com>

	* tests/regress/27.stringbuf.overflow.stdcxx-149.cpp: Added
	a regression test for STDCXX-149.

	2008-04-21  Martin Sebor  <sebor@roguewave.com>

	* tests/regress/27.filebuf.sgetn.stdcxx-161.cpp: Added a regression
	test for STDCXX-161.

	2008-03-10 Farid Zaripov <farid_zaripov@epam.com>

	* tests/regress/21.string.assign.stdcxx-629.cpp: Regression
	test for STDCXX-629 issue.

	2008-04-21  Martin Sebor  <sebor@roguewave.com>

	* tests/regress/26.valarray.cshift.stdcxx-316.cpp: Added
	a regression test for STDCXX-316.

	2008-03-17  Farid Zaripov  <farid_zaripov@epam.com>

	* tests/regress/21.string.insert.stdcxx-632.cpp: Regression test for
	STDCXX-632.

	2008-04-21  Martin Sebor  <sebor@roguewave.com>

	* tests/regress/27.istream.get.stdcxx-60.cpp: Added a regression
	test for STDCXX-60.

	2008-04-21  Martin Sebor  <sebor@roguewave.com>

	* tests/regress/27.istream.getline.stdcxx-59.cpp: Added a regression
	test for STDCXX-59.

Added:
    stdcxx/branches/4.2.x/tests/regress/21.char.traits.find.stdcxx-541.cpp
      - copied unchanged from r650374, stdcxx/trunk/tests/regress/21.char.traits.find.stdcxx-541.cpp
    stdcxx/branches/4.2.x/tests/regress/21.string.assign.stdcxx-629.cpp
      - copied unchanged from r635444, stdcxx/trunk/tests/regress/21.string.assign.stdcxx-629.cpp
    stdcxx/branches/4.2.x/tests/regress/21.string.insert.stdcxx-632.cpp
      - copied unchanged from r637959, stdcxx/trunk/tests/regress/21.string.insert.stdcxx-632.cpp
    stdcxx/branches/4.2.x/tests/regress/21.string.replace.stdcxx-170.cpp
      - copied, changed from r629551, stdcxx/trunk/tests/regress/21.string.replace.stdcxx-170.cpp
    stdcxx/branches/4.2.x/tests/regress/23.vector.cons.stdcxx-294.cpp
      - copied unchanged from r650370, stdcxx/trunk/tests/regress/23.vector.cons.stdcxx-294.cpp
    stdcxx/branches/4.2.x/tests/regress/25.random.shuffle.stdcxx-126.cpp
      - copied unchanged from r650361, stdcxx/trunk/tests/regress/25.random.shuffle.stdcxx-126.cpp
    stdcxx/branches/4.2.x/tests/regress/26.valarray.cshift.stdcxx-316.cpp
      - copied unchanged from r650366, stdcxx/trunk/tests/regress/26.valarray.cshift.stdcxx-316.cpp
    stdcxx/branches/4.2.x/tests/regress/27.filebuf.sgetn.stdcxx-161.cpp
      - copied unchanged from r650356, stdcxx/trunk/tests/regress/27.filebuf.sgetn.stdcxx-161.cpp
    stdcxx/branches/4.2.x/tests/regress/27.istream.get.stdcxx-60.cpp
      - copied unchanged from r650352, stdcxx/trunk/tests/regress/27.istream.get.stdcxx-60.cpp
    stdcxx/branches/4.2.x/tests/regress/27.istream.getline.stdcxx-59.cpp
      - copied unchanged from r650353, stdcxx/trunk/tests/regress/27.istream.getline.stdcxx-59.cpp
    stdcxx/branches/4.2.x/tests/regress/27.stringbuf.overflow.stdcxx-149.cpp
      - copied unchanged from r650360, stdcxx/trunk/tests/regress/27.stringbuf.overflow.stdcxx-149.cpp
    stdcxx/branches/4.2.x/tests/regress/27.stringbuf.seekoff.stdcxx-295.cpp
      - copied unchanged from r650369, stdcxx/trunk/tests/regress/27.stringbuf.seekoff.stdcxx-295.cpp

Copied: stdcxx/branches/4.2.x/tests/regress/21.string.replace.stdcxx-170.cpp (from r629551,
stdcxx/trunk/tests/regress/21.string.replace.stdcxx-170.cpp)
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/tests/regress/21.string.replace.stdcxx-170.cpp?p2=stdcxx/branches/4.2.x/tests/regress/21.string.replace.stdcxx-170.cpp&p1=stdcxx/trunk/tests/regress/21.string.replace.stdcxx-170.cpp&r1=629551&r2=660333&rev=660333&view=diff
==============================================================================
--- stdcxx/trunk/tests/regress/21.string.replace.stdcxx-170.cpp (original)
+++ stdcxx/branches/4.2.x/tests/regress/21.string.replace.stdcxx-170.cpp Mon May 26 16:16:03
2008
@@ -33,15 +33,17 @@
 {
     std::string s ("abc");
 
-    s.replace (s.begin (), s.begin (), s.rbegin () + 1, s.rbegin () + 2);
-
+    s.replace (s.begin (), s.begin (), s.begin () + 1, s.begin () + 2);
     assert ("babc" == s);
 
     s = "abc";
 
-    typedef const unsigned char UChar;
-    s.replace (s.begin (), s.begin (), (UChar*)&s [1], (UChar*)&s [2]);
+    s.replace (s.begin (), s.begin (), s.rbegin () + 1, s.rbegin () + 2);
+    assert ("babc" == s);
+
+    s = "abc";
 
+    s.replace (s.begin (), s.begin (), &s [1], &s [2]);
     assert ("babc" == s);
 
     return 0;



Mime
View raw message