diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-05-21 10:17:47 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-05-21 11:36:31 +0200 |
commit | e95bafd4bf9e8159d5d58af413848c64aeed571a (patch) | |
tree | b9ede724cc8500468b35b80c01a3c449fcadc893 /svl | |
parent | d35e71409fac3d6054f2acb71a96e84888763f32 (diff) |
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@libreoffice.org>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/qa/unit/svl.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
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"; |