From fd1a63089332153e7180f16961d39c9c12654ff4 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Thu, 30 Sep 2021 11:04:27 +0200 Subject: 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 --- svl/qa/unit/svl.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'svl') 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"; -- cgit