diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-08-09 10:57:32 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-08-09 16:44:02 +0200 |
commit | ccb1d71fe4c0585a42721f09d984fb699ff8f081 (patch) | |
tree | 53b70282d6d6576b87ac77ada22047279bc926a8 /svl/qa/unit | |
parent | 73b492255e4268aa4003bc3e68be4cd2a27a6ce2 (diff) |
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@libreoffice.org>
Diffstat (limited to 'svl/qa/unit')
-rw-r--r-- | svl/qa/unit/svl.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
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 @@ -1310,6 +1310,20 @@ void Test::testIsNumberFormatSpecific() } { + // 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); |