summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2021-05-21 01:04:19 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2021-05-21 10:13:00 +0200
commite8578423e9390a07419066d6c350c34fa254095d (patch)
tree4d5f2eae5c90c1f7cf1c509484958e678b5432d1 /svl
parentaafe21d8765158d223dd359e6737b64ed1b34549 (diff)
tdf#123748: svl_qa_cppunit: Add unittest
Change-Id: I55b3ad930f39f955b5c1f326a12c20af5fc46a1f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115896 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'svl')
-rw-r--r--svl/qa/unit/svl.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx
index f5b0bd557d13..3c9fae7931bb 100644
--- a/svl/qa/unit/svl.cxx
+++ b/svl/qa/unit/svl.cxx
@@ -1347,6 +1347,11 @@ void Test::testUserDefinedNumberFormats()
sExpected = "03:23:53 01/02";
checkPreviewString(aFormatter, sCode, M_PI, eLang, sExpected);
}
+ { // tdf#123748
+ sCode = "HH:MM:SS.000000";
+ sExpected = "12:54:00.000000";
+ checkPreviewString(aFormatter, sCode, 43521.5375, eLang, sExpected);
+ }
{ // tdf#101096: different detection of month/minute with Excel
sCode = "HH DD MM"; // month detected because of previous DD
sExpected = "03 02 01";