[Libreoffice-commits] core.git: svl/qa
Laurent BP
laurent.balland-poirier at laposte.net
Wed Jun 20 18:38:52 UTC 2018
svl/qa/unit/svl.cxx | 13 +++++++++++++
1 file changed, 13 insertions(+)
New commits:
commit 4fd46c905f1bd45bd55e25fcf3d472c5bf8e5ded
Author: Laurent BP <laurent.balland-poirier at laposte.net>
Date: Sat Jun 16 10:27:47 2018 +0200
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 at redhat.com>
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()
More information about the Libreoffice-commits
mailing list