Add a test for wxLocale::IsAvailable(wxLANGUAGE_DEFAULT)

This must always returns true.
This commit is contained in:
Vadim Zeitlin 2022-06-19 02:13:48 +02:00
parent adc7b31c0b
commit aedd4ca847

View File

@ -233,6 +233,8 @@ void IntlTestCase::IsAvailable()
TEST_CASE("wxLocale::Default", "[locale]") TEST_CASE("wxLocale::Default", "[locale]")
{ {
CHECK( wxLocale::IsAvailable(wxLANGUAGE_DEFAULT) );
wxLocale loc; wxLocale loc;
REQUIRE( loc.Init(wxLANGUAGE_DEFAULT, wxLOCALE_DONT_LOAD_DEFAULT) ); REQUIRE( loc.Init(wxLANGUAGE_DEFAULT, wxLOCALE_DONT_LOAD_DEFAULT) );