1.cc: Add VERIFY on the results.
authorPaolo Carlini <pcarlini@suse.de>
Thu, 19 Aug 2004 10:30:05 +0000 (10:30 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 19 Aug 2004 10:30:05 +0000 (10:30 +0000)
2004-08-19  Paolo Carlini  <pcarlini@suse.de>

* testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
results.
* testsuite/22_locale/time_put/put/char/2.cc: Likewise.
* testsuite/22_locale/time_put/put/char/3.cc: Likewise.
* testsuite/22_locale/time_put/put/char/4.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.

From-SVN: r86246

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/22_locale/time_put/put/char/1.cc
libstdc++-v3/testsuite/22_locale/time_put/put/char/2.cc
libstdc++-v3/testsuite/22_locale/time_put/put/char/3.cc
libstdc++-v3/testsuite/22_locale/time_put/put/char/4.cc
libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/3.cc
libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/4.cc

index 579bf09..e934d3b 100644 (file)
@@ -1,5 +1,17 @@
 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
 
+       * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
+       results.
+       * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
+       * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
+       * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
+       * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
+       * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
+       * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
+       * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
+2004-08-19  Paolo Carlini  <pcarlini@suse.de>
+
        * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
 
 2004-08-18  Matthias Klose  <doko@debian.org>
index a178544..2fe9534 100644 (file)
@@ -55,15 +55,22 @@ void test01()
   oss.str(empty);
   iterator_type os_it21 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x');
   string result21 = oss.str(); // "04/04/71"
+  VERIFY( result21 == "04/04/71" );
+
   oss.str(empty);
   iterator_type os_it22 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X');
   string result22 = oss.str(); // "12:00:00"
+  VERIFY( result22 == "12:00:00" );
+  
   oss.str(empty);
   iterator_type os_it31 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x', 'E');
   string result31 = oss.str(); // "04/04/71"
+  VERIFY( result31 == "04/04/71" );
+
   oss.str(empty);
   iterator_type os_it32 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X', 'E');
   string result32 = oss.str(); // "12:00:00"
+  VERIFY( result32 == "12:00:00" );
 }
 
 int main()
index d7dad7f..004bea8 100644 (file)
@@ -52,15 +52,22 @@ void test02()
   oss.str(empty); // "%d.%m.%Y"
   iterator_type os_it23 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x');
   string result23 = oss.str(); // "04.04.1971"
+  VERIFY( result23 == "04.04.1971" );
+
   oss.str(empty); // "%T"
   iterator_type os_it24 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X');
   string result24 = oss.str(); // "12:00:00"
+  VERIFY( result24 == "12:00:00" );
+
   oss.str(empty);
   iterator_type os_it33 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x', 'E');
   string result33 = oss.str(); // "04.04.1971"
+  VERIFY( result33 == "04.04.1971" );
+
   oss.str(empty);
   iterator_type os_it34 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X', 'E');
   string result34 = oss.str(); // "12:00:00"
+  VERIFY( result34 == "12:00:00" );
 }
 
 int main()
index 8124107..3a46e83 100644 (file)
@@ -52,15 +52,22 @@ void test03()
   oss.str(empty); // "%A, %B %d, %Y"
   iterator_type os_it25 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x');
   string result25 = oss.str(); // "Sunday, April 04, 1971"
+  VERIFY( result25 == "Sunday, April 04, 1971" );
+
   oss.str(empty); // "%I:%M:%S %Z"
   iterator_type os_it26 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X');
-  string result26 = oss.str(); // "12:00:00 PST"
+  string result26 = oss.str(); // "12:00:00 CET"
+  VERIFY( result26 == "12:00:00 CET" );
+
   oss.str(empty);
   iterator_type os_it35 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x', 'E');
   string result35 = oss.str(); // "Sunday, April 04, 1971"
+  VERIFY( result35 == "Sunday, April 04, 1971" );
+
   oss.str(empty);
   iterator_type os_it36 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X', 'E');
-  string result36 = oss.str(); // "12:00:00 PST"
+  string result36 = oss.str(); // "12:00:00 CET"
+  VERIFY( result36 == "12:00:00 CET" );
 }
 
 int main()
index 7640fc0..95f922c 100644 (file)
@@ -51,15 +51,22 @@ void test04()
   oss.str(empty); // "%d.%m.%Y"
   iterator_type os_it27 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x');
   string result27 = oss.str(); // "04.04.1971"
+  VERIFY( result27 == "04.04.1971" );
+
   oss.str(empty); // "%T"
   iterator_type os_it28 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X');
   string result28 = oss.str(); // "12:00:00"
+  VERIFY( result28 == "12:00:00" );
+
   oss.str(empty);
   iterator_type os_it37 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x', 'E');
   string result37 = oss.str(); // "04.04.1971"
+  VERIFY( result37 == "04.04.1971" );
+
   oss.str(empty);
   iterator_type os_it38 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X', 'E');
   string result38 = oss.str(); // "12:00:00"
+  VERIFY( result38 == "12:00:00" );
 }
 
 int main()
index e9a9e85..5499454 100644 (file)
@@ -55,15 +55,22 @@ void test01()
   oss.str(empty);
   iterator_type os_it21 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x');
   wstring result21 = oss.str(); // "04/04/71"
+  VERIFY( result21 == L"04/04/71" );
+
   oss.str(empty);
   iterator_type os_it22 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X');
   wstring result22 = oss.str(); // "12:00:00"
+  VERIFY( result22 == L"12:00:00" );
+
   oss.str(empty);
   iterator_type os_it31 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x', 'E');
   wstring result31 = oss.str(); // "04/04/71"
+  VERIFY( result31 == L"04/04/71" );
+
   oss.str(empty);
   iterator_type os_it32 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X', 'E');
   wstring result32 = oss.str(); // "12:00:00"
+  VERIFY( result32 == L"12:00:00" );
 }
 
 int main()
index a4a6968..2250127 100644 (file)
@@ -52,15 +52,22 @@ void test02()
   oss.str(empty); // "%d.%m.%Y"
   iterator_type os_it23 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x');
   wstring result23 = oss.str(); // "04.04.1971"
+  VERIFY( result23 == L"04.04.1971" );
+
   oss.str(empty); // "%T"
   iterator_type os_it24 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X');
   wstring result24 = oss.str(); // "12:00:00"
+  VERIFY( result24 == L"12:00:00" );
+
   oss.str(empty);
   iterator_type os_it33 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x', 'E');
   wstring result33 = oss.str(); // "04.04.1971"
+  VERIFY( result33 == L"04.04.1971" );
+
   oss.str(empty);
   iterator_type os_it34 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X', 'E');
   wstring result34 = oss.str(); // "12:00:00"
+  VERIFY( result34 == L"12:00:00" );
 }
 
 int main()
index a95248e..72c702c 100644 (file)
@@ -52,15 +52,22 @@ void test03()
   oss.str(empty); // "%A, %B %d, %Y"
   iterator_type os_it25 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x');
   wstring result25 = oss.str(); // "Sunday, April 04, 1971"
+  VERIFY( result25 == L"Sunday, April 04, 1971" );
+
   oss.str(empty); // "%I:%M:%S %Z"
   iterator_type os_it26 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X');
-  wstring result26 = oss.str(); // "12:00:00 PST"
+  wstring result26 = oss.str(); // "12:00:00 CET"
+  VERIFY( result26 == L"12:00:00 CET" );
+
   oss.str(empty);
   iterator_type os_it35 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x', 'E');
   wstring result35 = oss.str(); // "Sunday, April 04, 1971"
+  VERIFY( result35 == L"Sunday, April 04, 1971" );
+
   oss.str(empty);
   iterator_type os_it36 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X', 'E');
-  wstring result36 = oss.str(); // "12:00:00 PST"
+  wstring result36 = oss.str(); // "12:00:00 CET"
+  VERIFY( result36 == L"12:00:00 CET" );
 }
 
 int main()
index 84bd775..aec5c0a 100644 (file)
@@ -51,15 +51,22 @@ void test04()
   oss.str(empty); // "%d.%m.%Y"
   iterator_type os_it27 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x');
   wstring result27 = oss.str(); // "04.04.1971"
+  VERIFY( result27 == L"04.04.1971" );
+
   oss.str(empty); // "%T"
   iterator_type os_it28 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X');
   wstring result28 = oss.str(); // "12:00:00"
+  VERIFY( result28 == L"12:00:00" );
+
   oss.str(empty);
   iterator_type os_it37 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x', 'E');
   wstring result37 = oss.str(); // "04.04.1971"
+  VERIFY( result37 == L"04.04.1971" );
+
   oss.str(empty);
   iterator_type os_it38 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X', 'E');
   wstring result38 = oss.str(); // "12:00:00"
+  VERIFY( result38 == L"12:00:00" );
 }
 
 int main()