1.cc: Correct length, taking into account sizeof(wchar_t).
authorPaolo Carlini <pcarlini@unitus.it>
Tue, 18 Mar 2003 19:16:50 +0000 (20:16 +0100)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 18 Mar 2003 19:16:50 +0000 (19:16 +0000)
2003-03-18  Paolo Carlini  <pcarlini@unitus.it>

* testsuite/21_strings/basic_string/append/wchar_t/1.cc:
Correct length, taking into account sizeof(wchar_t).

From-SVN: r64547

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/21_strings/basic_string/append/wchar_t/1.cc

index 728cf5e23d15b3a2274fd9a5c72b095d93ea1043..425ffed6eec96a32db4372080b45702633e3663e 100644 (file)
@@ -1,3 +1,8 @@
+2003-03-18  Paolo Carlini  <pcarlini@unitus.it>
+
+       * testsuite/21_strings/basic_string/append/wchar_t/1.cc:
+       Correct size, taking into account sizeof(wchar_t).
+
 2003-03-18  Paolo Carlini  <pcarlini@unitus.it>
 
        Reshuffle 21_strings testsuite.
index ea8cd17b954898eb595f61d7e1400c952e015a51..d69d9b6bdfa3d4b0c6fa3412525eb694e062c138 100644 (file)
@@ -112,7 +112,7 @@ bool test01(void)
   VERIFY( str05.size() == 0 );
   VERIFY( str05 == str03 );
   
-  str05.append(str_lit01, sizeof(str_lit01) - 1);
+  str05.append(str_lit01, sizeof(str_lit01) / sizeof(wchar_t) - 1);
   VERIFY( str05 == str01 );
 
   str06 = str02;