diff options
author | Laurent BP <laurent.balland-poirier@laposte.net> | 2018-06-16 10:27:47 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2018-06-20 20:38:24 +0200 |
commit | 4fd46c905f1bd45bd55e25fcf3d472c5bf8e5ded (patch) | |
tree | 4fce4d6b07e0ea0fa937bbe5da0aec44c23d9986 | |
parent | 261ff0cdf0e89a80f5d2af7ba5a331bc237a0ceb (diff) |
tdf#117575 Add QA unit test of thousand sep
Change-Id: Id28e688e7f81a2f3f43f01be44d03c5f185ffd01
Reviewed-on: https://gerrit.libreoffice.org/55904
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
-rw-r--r-- | svl/qa/unit/svl.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx index 7f0c54a2547e..12efb5b06ea6 100644 --- a/svl/qa/unit/svl.cxx +++ b/svl/qa/unit/svl.cxx @@ -1529,6 +1529,19 @@ void Test::testUserDefinedNumberFormats() sExpected = "117,669,030,460,994.00000000000000000000"; checkPreviewString(aFormatter, sCode, 117669030460994.0, LANGUAGE_ENGLISH_US, sExpected); } + { // tdf#117575 treat thousand separator with '?' in integer part + sCode = "\"Value= \"?,??0.00"; + sExpected = "Value= 3.14"; + checkPreviewString(aFormatter, sCode, M_PI, LANGUAGE_ENGLISH_US, sExpected); + sExpected = "Value= 12.00"; + checkPreviewString(aFormatter, sCode, 12, LANGUAGE_ENGLISH_US, sExpected); + sExpected = "Value= 123.00"; + checkPreviewString(aFormatter, sCode, 123, LANGUAGE_ENGLISH_US, sExpected); + sExpected = "Value= 1,234.00"; + checkPreviewString(aFormatter, sCode, 1234, LANGUAGE_ENGLISH_US, sExpected); + sExpected = "Value= 12,345.00"; + checkPreviewString(aFormatter, sCode, 12345, LANGUAGE_ENGLISH_US, sExpected); + } } void Test::testNfEnglishKeywordsIntegrity() |