diff options
author | Eike Rathke <erack@redhat.com> | 2018-05-30 16:20:42 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2018-05-30 16:22:06 +0200 |
commit | a8f8cf72b2b9e912dc4a5aebef55d9b2c0969462 (patch) | |
tree | 6dd06c825172bde3fbb65473881be8eea87b2212 | |
parent | 64980d88fb75b8a34b1fce4ed1d0d64d0f2d5e09 (diff) |
Add unit test for tdf#117819
Change-Id: Ice57b81106d35f5b217f0680824d1acf62ff9098
-rw-r--r-- | svl/qa/unit/svl.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx index 6e90143f5a08..679340afd67a 100644 --- a/svl/qa/unit/svl.cxx +++ b/svl/qa/unit/svl.cxx @@ -1502,6 +1502,12 @@ void Test::testUserDefinedNumberFormats() sCode = "\"Finnish: \"YYYY/MM/DD HH:MM:SS"; checkPreviewString(aFormatter, sCode, M_PI, eLang, sExpected); } + { // tdf#117819 wrong separator positions when displaying integers with + // more decimals than rtl::math::doubleToUString delivers. + sCode = "#,##0.00000000000000000000"; + sExpected = "117,669,030,460,994.00000000000000000000"; + checkPreviewString(aFormatter, sCode, 117669030460994.0, LANGUAGE_ENGLISH_US, sExpected); + } } void Test::testNfEnglishKeywordsIntegrity() |