Commit 1c417030 by Peter Schmid Committed by Benjamin Kosnik

collate_byname.cc (test01): Replace size4 with size3 for the string collations of str5.


2002-02-18  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>

	* testsuite/22_locale/collate_byname.cc (test01): Replace size4
          with size3 for the string collations of str5.

From-SVN: r49857
parent 7355dba7
2002-02-18 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* testsuite/22_locale/collate_byname.cc (test01): Replace size4
with size3 for the string collations of str5.
2002-02-18 Paolo Carlini <pcarlini@unitus.it> 2002-02-18 Paolo Carlini <pcarlini@unitus.it>
libstdc++/5708 libstdc++/5708
......
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001 Free Software Foundation // Copyright (C) 2001, 2002 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -120,9 +120,9 @@ void test01() ...@@ -120,9 +120,9 @@ void test01()
l4 = coll_de.hash(strlit4, strlit4 + size4); l4 = coll_de.hash(strlit4, strlit4 + size4);
VERIFY ( l3 != l4 ); VERIFY ( l3 != l4 );
string str5 = coll_de.transform(strlit3, strlit3 + size4); string str5 = coll_de.transform(strlit3, strlit3 + size3);
string str6 = coll_de.transform(strlit4, strlit4 + size4); string str6 = coll_de.transform(strlit4, strlit4 + size4);
i3 = coll_de.compare(str5.c_str(), str5.c_str() + size4, i3 = coll_de.compare(str5.c_str(), str5.c_str() + size3,
str6.c_str(), str6.c_str() + size4); str6.c_str(), str6.c_str() + size4);
i4 = coll_de.compare(strlit3, strlit3 + size4, strlit4, strlit4 + size4); i4 = coll_de.compare(strlit3, strlit3 + size4, strlit4, strlit4 + size4);
VERIFY(i3 == i4); VERIFY(i3 == i4);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment