summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2021-09-30 11:04:27 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2021-09-30 16:28:44 +0200
commitfd1a63089332153e7180f16961d39c9c12654ff4 (patch)
tree2163aeab02050360c298cae32bda6966a89d2b1d /svl
parent36d5e26549b273118cea8969c43ef5ad3845f8df (diff)
tdf#144697: svl_qa_cppunit: Add unittest
Change-Id: I7a62f7c5c8e6fceebcb9671fa28ec98dd7a312a7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122878 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 075515bca512..82e18ea91df1 100644
--- a/svl/qa/unit/svl.cxx
+++ b/svl/qa/unit/svl.cxx
@@ -1372,6 +1372,11 @@ void Test::testUserDefinedNumberFormats()
sExpected = "#FMT";
checkPreviewString(aFormatter, sCode, 2E+306, eLang, sExpected);
}
+ { // tdf#144697
+ sCode = "YYYY-MM-DD";
+ sExpected = "#FMT";
+ checkPreviewString(aFormatter, sCode, -12662108.0, eLang, sExpected);
+ }
{ // tdf#122991
sCode = "[HH]:MM:SS";
sExpected = "08:47:00";