[Libreoffice-commits] core.git: svl/qa
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Mon Aug 9 14:44:36 UTC 2021
svl/qa/unit/svl.cxx | 14 ++++++++++++++
1 file changed, 14 insertions(+)
New commits:
commit ccb1d71fe4c0585a42721f09d984fb699ff8f081
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Mon Aug 9 10:57:32 2021 +0200
Commit: Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Mon Aug 9 16:44:02 2021 +0200
tdf#143664: svl_qa_cppunit: Add unittest
Change-Id: If62da781bffc2480fd81dd6aaf28db69b46a0e31
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120198
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 49e1dc7f1b4b..878631e7142e 100644
--- a/svl/qa/unit/svl.cxx
+++ b/svl/qa/unit/svl.cxx
@@ -1309,6 +1309,20 @@ void Test::testIsNumberFormatSpecific()
checkSpecificNumberFormats( aFormatter, aIO, "[de-DE] date January month names");
}
+ {
+ // tdf#143664
+ SvNumberFormatter aFormatter(m_xContext, LANGUAGE_GERMAN);
+
+ const sal_uInt32 n = aFormatter.GetFormatIndex( NF_DATE_SYS_DDMMYYYY, LANGUAGE_GERMAN);
+ std::vector<FormatInputOutput> aIO = {
+ { "23. M\u00C4R 1999", true, "23.03.1999", n },
+ { "23. M\u00C4RZ 1999", true, "23.03.1999", n },
+ { "23. MRZ 1999", true, "23.03.1999", n },
+ };
+
+ checkSpecificNumberFormats( aFormatter, aIO, "[de-DE] date March month names");
+ }
+
{
// Test that de-AT accepts Januar and Jänner.
SvNumberFormatter aFormatter(m_xContext, LANGUAGE_GERMAN_AUSTRIAN);
More information about the Libreoffice-commits
mailing list