diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-06-02 00:13:28 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-06-02 00:14:44 +0200 |
commit | b8bd51de83cafe3e9f0f3850bb1b40330a2a6aa3 (patch) | |
tree | b8866a59492c4089512c12439b4b6462970905a6 /svl | |
parent | 12e30adf9daf337084aba2249218d3e56bfe4ea3 (diff) |
the test works much better if you really use en_US as language
Change-Id: Ie936bfb6ae03a6a3abd8175938555aea99790959
Diffstat (limited to 'svl')
-rw-r--r-- | svl/qa/unit/svl.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx index edfd536273ef..6f46ba5110ae 100644 --- a/svl/qa/unit/svl.cxx +++ b/svl/qa/unit/svl.cxx @@ -1022,7 +1022,7 @@ void Test::checkDateInput( SvNumberFormatter& rFormatter, const char* pTimezone, void Test::testIsNumberFormat() { - LanguageType eLang = LANGUAGE_THAI; + LanguageType eLang = LANGUAGE_ENGLISH_US; SvNumberFormatter aFormatter(m_xContext, eLang); struct NumberFormatData @@ -1033,16 +1033,16 @@ void Test::testIsNumberFormat() { "20.3", true }, { "2", true }, { "test", false }, - { "Jan1", false } - // { "Jan1 2000", true }, - // { "Jan 1", true }, - // { "Jan 1 2000", true} + { "Jan1", false }, + { "Jan1 2000", true }, + { "Jan 1", true }, + { "Jan 1 2000", true} }; for (size_t i = 0; i < SAL_N_ELEMENTS(aTests); ++i) { - sal_uInt32 nIndex; - double nNumber; + sal_uInt32 nIndex = 0; + double nNumber = 0; OUString aString = OUString::createFromAscii(aTests[i].pFormat); bool bIsNumber = aFormatter.IsNumberFormat(aString, nIndex, nNumber); CPPUNIT_ASSERT_EQUAL(aTests[i].bIsNumber, bIsNumber); |