Patch to testsuite

Anthony Williams anthony_w.geo@yahoo.com
Fri Jun 2 08:44:00 GMT 2000


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Patch to replace test: uses std::replace rather than just replace

Index: replace.cc
===================================================================
RCS file:
/cvs/gcc/egcs/libstdc++-v3/testsuite/21_strings/replace.cc,v
retrieving revision 1.1
diff -c -p -r1.1 replace.cc
*** replace.cc  2000/04/21 20:33:33     1.1
- --- replace.cc  2000/06/02 15:31:43
*************** bool test01(void)
*** 73,80 ****
    test &= x == "jello";
  
    int ar[] = { 'H', 'e', 'l', 'l', 'o' };
!   x.replace(find(x.begin(), x.end(), 'l'), 
!           find(x.rbegin(), x.rend(), 'l').base(), ar, 
            ar + sizeof(ar) / sizeof(ar[0]));
    test &= x == "jeHelloo";
  #endif
- --- 73,80 ----
    test &= x == "jello";
  
    int ar[] = { 'H', 'e', 'l', 'l', 'o' };
!   x.replace(std::find(x.begin(), x.end(), 'l'), 
!           std::find(x.rbegin(), x.rend(), 'l').base(), ar, 
            ar + sizeof(ar) / sizeof(ar[0]));
    test &= x == "jeHelloo";
  #endif

Anthony

PGP Fingerprint: 
0E2D D32A 8732 DC31 804C  D435 9BF0 F8FE 1C1B 9AD5
PGP Key at: http://i3.yimg.com/3/c7e5ee24/g/68fc2307.asc

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.1 for non-commercial use < http://www.pgp.com >
Comment: PGP Key at: http://i3.yimg.com/3/c7e5ee24/g/68fc2307.asc

iQA/AwUBOTfV1Zvw+P4cG5rVEQLIlgCbBIrLogoww8CaretxgAzG6GFedlkAniwV
9sjJ849q2taz7isjLH3opHF8
=3hcX
-----END PGP SIGNATURE-----



__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com


More information about the Libstdc++ mailing list