Kaydet (Commit) 0f1ae0de authored tarafından Eike Rathke's avatar Eike Rathke

Unit test for de-* Januar/Jänner, tdf#114927

Change-Id: I8f0f3b88e172e93caca4de6d8000cb20c5af8333
Reviewed-on: https://gerrit.libreoffice.org/61428Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Tested-by: Jenkins
üst 692c2640
......@@ -1266,6 +1266,36 @@ void Test::testIsNumberFormatSpecific()
checkSpecificNumberFormats( aFormatter, aIO, "[es-ES] date");
}
{
// Test that de-DE accepts Januar and Jänner.
SvNumberFormatter aFormatter(m_xContext, LANGUAGE_GERMAN);
const sal_uInt32 n = aFormatter.GetFormatIndex( NF_DATE_SYS_DDMMYYYY, LANGUAGE_GERMAN);
std::vector<FormatInputOutput> aIO = {
{ "23. Januar 1999", true, "23.01.1999", n },
{ "23. J\xC3\xA4nner 1999", true, "23.01.1999", n },
{ "23. Jan. 1999", true, "23.01.1999", n },
{ "23. J\xC3\xA4n. 1999", true, "23.01.1999", n },
};
checkSpecificNumberFormats( aFormatter, aIO, "[de-DE] date January month names");
}
{
// Test that de-AT accepts Januar and Jänner.
SvNumberFormatter aFormatter(m_xContext, LANGUAGE_GERMAN_AUSTRIAN);
const sal_uInt32 n = aFormatter.GetFormatIndex( NF_DATE_SYS_DDMMYYYY, LANGUAGE_GERMAN_AUSTRIAN);
std::vector<FormatInputOutput> aIO = {
{ "23. Januar 1999", true, "23.01.1999", n },
{ "23. J\xC3\xA4nner 1999", true, "23.01.1999", n },
{ "23. Jan. 1999", true, "23.01.1999", n },
{ "23. J\xC3\xA4n. 1999", true, "23.01.1999", n },
};
checkSpecificNumberFormats( aFormatter, aIO, "[de-AT] date January month names");
}
}
void Test::testUserDefinedNumberFormats()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment