diff options
author | Eike Rathke <erack@redhat.com> | 2013-08-28 17:41:14 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-08-28 17:58:14 +0200 |
commit | 4a6ac8965b95b4775b438398a3e17d1b226bcea7 (patch) | |
tree | 0b702fcca912ddc843fd36375cbd575c927a021b /i18nlangtag | |
parent | a95a980e1e338b238f70f010057b017e08b47d79 (diff) |
added unit test for fallback strings
Change-Id: Ife3694e9432141e638d8f6050f4e5335c254cdbf
Diffstat (limited to 'i18nlangtag')
-rw-r--r-- | i18nlangtag/qa/cppunit/test_languagetag.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/i18nlangtag/qa/cppunit/test_languagetag.cxx b/i18nlangtag/qa/cppunit/test_languagetag.cxx index 41c1cc9e1602..2e82fccba0c7 100644 --- a/i18nlangtag/qa/cppunit/test_languagetag.cxx +++ b/i18nlangtag/qa/cppunit/test_languagetag.cxx @@ -165,6 +165,12 @@ void TestLanguageTag::testAllTags() CPPUNIT_ASSERT( ca_ES_valencia.getCountry() == "ES" ); CPPUNIT_ASSERT( ca_ES_valencia.getScript() == "" ); CPPUNIT_ASSERT( ca_ES_valencia.getLanguageAndScript() == "ca" ); + ::std::vector< OUString > ca_ES_valencia_Fallbacks( ca_ES_valencia.getFallbackStrings()); + CPPUNIT_ASSERT( ca_ES_valencia_Fallbacks.size() == 4); + CPPUNIT_ASSERT( ca_ES_valencia_Fallbacks[0] == "ca-ES-valencia"); + CPPUNIT_ASSERT( ca_ES_valencia_Fallbacks[1] == "ca-valencia"); + CPPUNIT_ASSERT( ca_ES_valencia_Fallbacks[2] == "ca-ES"); + CPPUNIT_ASSERT( ca_ES_valencia_Fallbacks[3] == "ca"); } { |