1 #include "locale_test.h"
3 #if !defined (STLPORT) || !defined (_STLP_USE_NO_IOSTREAMS)
7 # if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES)
12 // tests implementation
14 void LocaleTest::messages_by_name()
17 * Check of the 22.1.1.2.7 standard point. Construction of a locale
18 * instance from a null pointer or an unknown name should result in
19 * a runtime_error exception.
21 # if !defined (STLPORT) || defined (_STLP_USE_EXCEPTIONS)
22 # if defined (STLPORT) || !defined (__GNUC__)
24 locale loc(locale::classic(), new messages_byname<char>(static_cast<char const*>(0)));
27 catch (runtime_error const& /* e */) {
28 //CPPUNIT_MESSAGE( e.what() );
36 locale loc(locale::classic(), new messages_byname<char>("yasli_language"));
39 catch (runtime_error const& /* e */) {
40 //CPPUNIT_MESSAGE( e.what() );
48 locale loc(locale::classic(), new messages_byname<char>(""));
51 catch (runtime_error const& e) {
52 CPPUNIT_MESSAGE( e.what() );
59 # if !defined (STLPORT) || !defined (_STLP_NO_WCHAR_T)
60 # if defined (STLPORT) || !defined (__GNUC__)
62 locale loc(locale::classic(), new messages_byname<wchar_t>(static_cast<char const*>(0)));
65 catch (runtime_error const&) {
73 locale loc(locale::classic(), new messages_byname<wchar_t>("yasli_language"));
76 catch (runtime_error const&) {