Author: mlandres Date: Thu Sep 6 14:30:02 2007 New Revision: 7126 URL: http://svn.opensuse.org/viewcvs/zypp?rev=7126&view=rev Log: add newline at eof Modified: trunk/libzypp/tests/zypp/TranslatedText.cc Modified: trunk/libzypp/tests/zypp/TranslatedText.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/tests/zypp/TranslatedText... ============================================================================== --- trunk/libzypp/tests/zypp/TranslatedText.cc (original) +++ trunk/libzypp/tests/zypp/TranslatedText.cc Thu Sep 6 14:30:02 2007 @@ -26,32 +26,32 @@ void test_tt() { ZYpp::Ptr god; - + god = getZYpp(); - + TranslatedText testTT; MIL << "Locale: en" << std::endl; god->setTextLocale(Locale("en")); testTT.setText("default"); MIL << "value: '" << testTT.text() << "'" << std::endl; BOOST_CHECK_EQUAL( testTT.text(), "default" ); - + testTT.setText("default english", Locale("en")); BOOST_CHECK_EQUAL( testTT.text(), "default english" ); - + MIL << "Locale: es_ES" << std::endl; god->setTextLocale(Locale("es_ES")); - + BOOST_CHECK_EQUAL( testTT.text(), "default english" ); - + testTT.setText("hola esto es neutro", Locale("es")); testTT.setText("this is neutral", Locale("en")); - + BOOST_CHECK_EQUAL( testTT.text(), "hola esto es neutro" ); - + testTT.setText("hola Spain", Locale("es_ES")); BOOST_CHECK_EQUAL( testTT.text(), "hola Spain" ); - + MIL << "Locale: null" << std::endl; god->setTextLocale(Locale()); BOOST_CHECK_EQUAL( testTT.text(), "default" ); @@ -63,4 +63,4 @@ test_suite* test= BOOST_TEST_SUITE( "TranslatedText" ); test->add( BOOST_TEST_CASE( &test_tt ), 0 /* expected zero error */ ); return test; -} \ No newline at end of file +} -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org