+void IntlTestCase::RestoreLocale()
+{
+ if ( !m_locale )
+ return;
+
+ // We must be using the French locale now, it was changed in setUp().
+ CPPUNIT_ASSERT_EQUAL( ",", GetDecimalPoint() );
+
+ // Switch to the English locale.
+ {
+ wxLocale locEn(wxLANGUAGE_ENGLISH);
+ CPPUNIT_ASSERT_EQUAL( ".", GetDecimalPoint() );
+ }
+
+ // Verify that after destroying the English locale object, French locale is
+ // restored.
+ CPPUNIT_ASSERT_EQUAL( ",", GetDecimalPoint() );
+}
+