1.cc: Add VERIFY on the results.
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
This commit is contained in:
parent
c2504783d9
commit
abc145a322
|
@ -1,3 +1,15 @@
|
||||||
|
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>
|
2004-08-19 Paolo Carlini <pcarlini@suse.de>
|
||||||
|
|
||||||
* config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
|
* config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
|
||||||
|
|
|
@ -55,15 +55,22 @@ void test01()
|
||||||
oss.str(empty);
|
oss.str(empty);
|
||||||
iterator_type os_it21 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x');
|
iterator_type os_it21 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x');
|
||||||
string result21 = oss.str(); // "04/04/71"
|
string result21 = oss.str(); // "04/04/71"
|
||||||
|
VERIFY( result21 == "04/04/71" );
|
||||||
|
|
||||||
oss.str(empty);
|
oss.str(empty);
|
||||||
iterator_type os_it22 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X');
|
iterator_type os_it22 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X');
|
||||||
string result22 = oss.str(); // "12:00:00"
|
string result22 = oss.str(); // "12:00:00"
|
||||||
|
VERIFY( result22 == "12:00:00" );
|
||||||
|
|
||||||
oss.str(empty);
|
oss.str(empty);
|
||||||
iterator_type os_it31 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x', 'E');
|
iterator_type os_it31 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x', 'E');
|
||||||
string result31 = oss.str(); // "04/04/71"
|
string result31 = oss.str(); // "04/04/71"
|
||||||
|
VERIFY( result31 == "04/04/71" );
|
||||||
|
|
||||||
oss.str(empty);
|
oss.str(empty);
|
||||||
iterator_type os_it32 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X', 'E');
|
iterator_type os_it32 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X', 'E');
|
||||||
string result32 = oss.str(); // "12:00:00"
|
string result32 = oss.str(); // "12:00:00"
|
||||||
|
VERIFY( result32 == "12:00:00" );
|
||||||
}
|
}
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
|
|
@ -52,15 +52,22 @@ void test02()
|
||||||
oss.str(empty); // "%d.%m.%Y"
|
oss.str(empty); // "%d.%m.%Y"
|
||||||
iterator_type os_it23 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x');
|
iterator_type os_it23 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x');
|
||||||
string result23 = oss.str(); // "04.04.1971"
|
string result23 = oss.str(); // "04.04.1971"
|
||||||
|
VERIFY( result23 == "04.04.1971" );
|
||||||
|
|
||||||
oss.str(empty); // "%T"
|
oss.str(empty); // "%T"
|
||||||
iterator_type os_it24 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X');
|
iterator_type os_it24 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X');
|
||||||
string result24 = oss.str(); // "12:00:00"
|
string result24 = oss.str(); // "12:00:00"
|
||||||
|
VERIFY( result24 == "12:00:00" );
|
||||||
|
|
||||||
oss.str(empty);
|
oss.str(empty);
|
||||||
iterator_type os_it33 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x', 'E');
|
iterator_type os_it33 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x', 'E');
|
||||||
string result33 = oss.str(); // "04.04.1971"
|
string result33 = oss.str(); // "04.04.1971"
|
||||||
|
VERIFY( result33 == "04.04.1971" );
|
||||||
|
|
||||||
oss.str(empty);
|
oss.str(empty);
|
||||||
iterator_type os_it34 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X', 'E');
|
iterator_type os_it34 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X', 'E');
|
||||||
string result34 = oss.str(); // "12:00:00"
|
string result34 = oss.str(); // "12:00:00"
|
||||||
|
VERIFY( result34 == "12:00:00" );
|
||||||
}
|
}
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
|
|
@ -52,15 +52,22 @@ void test03()
|
||||||
oss.str(empty); // "%A, %B %d, %Y"
|
oss.str(empty); // "%A, %B %d, %Y"
|
||||||
iterator_type os_it25 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x');
|
iterator_type os_it25 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x');
|
||||||
string result25 = oss.str(); // "Sunday, April 04, 1971"
|
string result25 = oss.str(); // "Sunday, April 04, 1971"
|
||||||
|
VERIFY( result25 == "Sunday, April 04, 1971" );
|
||||||
|
|
||||||
oss.str(empty); // "%I:%M:%S %Z"
|
oss.str(empty); // "%I:%M:%S %Z"
|
||||||
iterator_type os_it26 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X');
|
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);
|
oss.str(empty);
|
||||||
iterator_type os_it35 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x', 'E');
|
iterator_type os_it35 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x', 'E');
|
||||||
string result35 = oss.str(); // "Sunday, April 04, 1971"
|
string result35 = oss.str(); // "Sunday, April 04, 1971"
|
||||||
|
VERIFY( result35 == "Sunday, April 04, 1971" );
|
||||||
|
|
||||||
oss.str(empty);
|
oss.str(empty);
|
||||||
iterator_type os_it36 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X', 'E');
|
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()
|
int main()
|
||||||
|
|
|
@ -51,15 +51,22 @@ void test04()
|
||||||
oss.str(empty); // "%d.%m.%Y"
|
oss.str(empty); // "%d.%m.%Y"
|
||||||
iterator_type os_it27 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x');
|
iterator_type os_it27 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x');
|
||||||
string result27 = oss.str(); // "04.04.1971"
|
string result27 = oss.str(); // "04.04.1971"
|
||||||
|
VERIFY( result27 == "04.04.1971" );
|
||||||
|
|
||||||
oss.str(empty); // "%T"
|
oss.str(empty); // "%T"
|
||||||
iterator_type os_it28 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X');
|
iterator_type os_it28 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X');
|
||||||
string result28 = oss.str(); // "12:00:00"
|
string result28 = oss.str(); // "12:00:00"
|
||||||
|
VERIFY( result28 == "12:00:00" );
|
||||||
|
|
||||||
oss.str(empty);
|
oss.str(empty);
|
||||||
iterator_type os_it37 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x', 'E');
|
iterator_type os_it37 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x', 'E');
|
||||||
string result37 = oss.str(); // "04.04.1971"
|
string result37 = oss.str(); // "04.04.1971"
|
||||||
|
VERIFY( result37 == "04.04.1971" );
|
||||||
|
|
||||||
oss.str(empty);
|
oss.str(empty);
|
||||||
iterator_type os_it38 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X', 'E');
|
iterator_type os_it38 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X', 'E');
|
||||||
string result38 = oss.str(); // "12:00:00"
|
string result38 = oss.str(); // "12:00:00"
|
||||||
|
VERIFY( result38 == "12:00:00" );
|
||||||
}
|
}
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
|
|
@ -55,15 +55,22 @@ void test01()
|
||||||
oss.str(empty);
|
oss.str(empty);
|
||||||
iterator_type os_it21 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x');
|
iterator_type os_it21 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x');
|
||||||
wstring result21 = oss.str(); // "04/04/71"
|
wstring result21 = oss.str(); // "04/04/71"
|
||||||
|
VERIFY( result21 == L"04/04/71" );
|
||||||
|
|
||||||
oss.str(empty);
|
oss.str(empty);
|
||||||
iterator_type os_it22 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X');
|
iterator_type os_it22 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X');
|
||||||
wstring result22 = oss.str(); // "12:00:00"
|
wstring result22 = oss.str(); // "12:00:00"
|
||||||
|
VERIFY( result22 == L"12:00:00" );
|
||||||
|
|
||||||
oss.str(empty);
|
oss.str(empty);
|
||||||
iterator_type os_it31 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x', 'E');
|
iterator_type os_it31 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x', 'E');
|
||||||
wstring result31 = oss.str(); // "04/04/71"
|
wstring result31 = oss.str(); // "04/04/71"
|
||||||
|
VERIFY( result31 == L"04/04/71" );
|
||||||
|
|
||||||
oss.str(empty);
|
oss.str(empty);
|
||||||
iterator_type os_it32 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X', 'E');
|
iterator_type os_it32 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X', 'E');
|
||||||
wstring result32 = oss.str(); // "12:00:00"
|
wstring result32 = oss.str(); // "12:00:00"
|
||||||
|
VERIFY( result32 == L"12:00:00" );
|
||||||
}
|
}
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
|
|
@ -52,15 +52,22 @@ void test02()
|
||||||
oss.str(empty); // "%d.%m.%Y"
|
oss.str(empty); // "%d.%m.%Y"
|
||||||
iterator_type os_it23 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x');
|
iterator_type os_it23 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x');
|
||||||
wstring result23 = oss.str(); // "04.04.1971"
|
wstring result23 = oss.str(); // "04.04.1971"
|
||||||
|
VERIFY( result23 == L"04.04.1971" );
|
||||||
|
|
||||||
oss.str(empty); // "%T"
|
oss.str(empty); // "%T"
|
||||||
iterator_type os_it24 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X');
|
iterator_type os_it24 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X');
|
||||||
wstring result24 = oss.str(); // "12:00:00"
|
wstring result24 = oss.str(); // "12:00:00"
|
||||||
|
VERIFY( result24 == L"12:00:00" );
|
||||||
|
|
||||||
oss.str(empty);
|
oss.str(empty);
|
||||||
iterator_type os_it33 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x', 'E');
|
iterator_type os_it33 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x', 'E');
|
||||||
wstring result33 = oss.str(); // "04.04.1971"
|
wstring result33 = oss.str(); // "04.04.1971"
|
||||||
|
VERIFY( result33 == L"04.04.1971" );
|
||||||
|
|
||||||
oss.str(empty);
|
oss.str(empty);
|
||||||
iterator_type os_it34 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X', 'E');
|
iterator_type os_it34 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X', 'E');
|
||||||
wstring result34 = oss.str(); // "12:00:00"
|
wstring result34 = oss.str(); // "12:00:00"
|
||||||
|
VERIFY( result34 == L"12:00:00" );
|
||||||
}
|
}
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
|
|
@ -52,15 +52,22 @@ void test03()
|
||||||
oss.str(empty); // "%A, %B %d, %Y"
|
oss.str(empty); // "%A, %B %d, %Y"
|
||||||
iterator_type os_it25 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x');
|
iterator_type os_it25 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x');
|
||||||
wstring result25 = oss.str(); // "Sunday, April 04, 1971"
|
wstring result25 = oss.str(); // "Sunday, April 04, 1971"
|
||||||
|
VERIFY( result25 == L"Sunday, April 04, 1971" );
|
||||||
|
|
||||||
oss.str(empty); // "%I:%M:%S %Z"
|
oss.str(empty); // "%I:%M:%S %Z"
|
||||||
iterator_type os_it26 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X');
|
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);
|
oss.str(empty);
|
||||||
iterator_type os_it35 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x', 'E');
|
iterator_type os_it35 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x', 'E');
|
||||||
wstring result35 = oss.str(); // "Sunday, April 04, 1971"
|
wstring result35 = oss.str(); // "Sunday, April 04, 1971"
|
||||||
|
VERIFY( result35 == L"Sunday, April 04, 1971" );
|
||||||
|
|
||||||
oss.str(empty);
|
oss.str(empty);
|
||||||
iterator_type os_it36 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X', 'E');
|
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()
|
int main()
|
||||||
|
|
|
@ -51,15 +51,22 @@ void test04()
|
||||||
oss.str(empty); // "%d.%m.%Y"
|
oss.str(empty); // "%d.%m.%Y"
|
||||||
iterator_type os_it27 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x');
|
iterator_type os_it27 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x');
|
||||||
wstring result27 = oss.str(); // "04.04.1971"
|
wstring result27 = oss.str(); // "04.04.1971"
|
||||||
|
VERIFY( result27 == L"04.04.1971" );
|
||||||
|
|
||||||
oss.str(empty); // "%T"
|
oss.str(empty); // "%T"
|
||||||
iterator_type os_it28 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X');
|
iterator_type os_it28 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X');
|
||||||
wstring result28 = oss.str(); // "12:00:00"
|
wstring result28 = oss.str(); // "12:00:00"
|
||||||
|
VERIFY( result28 == L"12:00:00" );
|
||||||
|
|
||||||
oss.str(empty);
|
oss.str(empty);
|
||||||
iterator_type os_it37 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x', 'E');
|
iterator_type os_it37 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x', 'E');
|
||||||
wstring result37 = oss.str(); // "04.04.1971"
|
wstring result37 = oss.str(); // "04.04.1971"
|
||||||
|
VERIFY( result37 == L"04.04.1971" );
|
||||||
|
|
||||||
oss.str(empty);
|
oss.str(empty);
|
||||||
iterator_type os_it38 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X', 'E');
|
iterator_type os_it38 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X', 'E');
|
||||||
wstring result38 = oss.str(); // "12:00:00"
|
wstring result38 = oss.str(); // "12:00:00"
|
||||||
|
VERIFY( result38 == L"12:00:00" );
|
||||||
}
|
}
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
|
Loading…
Reference in New Issue