[Libreoffice-commits] core.git: svl/qa
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Fri May 21 09:37:22 UTC 2021
svl/qa/unit/svl.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit e95bafd4bf9e8159d5d58af413848c64aeed571a
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Fri May 21 10:17:47 2021 +0200
Commit: Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Fri May 21 11:36:31 2021 +0200
tdf#122991: svl_qa_cppunit: Add unittest
Change-Id: I94fdab71acbbaf768f5151c642527d61728dfc7a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115899
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>
diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx
index 3c9fae7931bb..69135ebdb426 100644
--- a/svl/qa/unit/svl.cxx
+++ b/svl/qa/unit/svl.cxx
@@ -1337,6 +1337,14 @@ void Test::testUserDefinedNumberFormats()
sExpected = "-12.00 ;";
checkPreviewString(aFormatter, sCode, -12.0, eLang, sExpected);
}
+ { // tdf#122991
+ sCode = "[HH]:MM:SS";
+ sExpected = "08:47:00";
+ checkPreviewString(aFormatter, sCode, 0.365972222222222, eLang, sExpected);
+
+ sCode = "HH:MM:SS";
+ checkPreviewString(aFormatter, sCode, 0.365972222222222, eLang, sExpected);
+ }
{ // tdf#95339: detect SSMM as second minute
sCode = "SS:MM:HH DD/MM/YY"; // Month not detected by Excel, but we do not follow that.
sExpected = "53:23:03 02/01/00";
More information about the Libreoffice-commits
mailing list