Related: tdf#128314 Add unit test for NatNum12 lower names

Change-Id: I909a730111985905e2054b03dbc26e9bab7df92c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115641
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
This commit is contained in:
Eike Rathke
2021-05-15 00:50:57 +02:00
parent e8c373d1da
commit cb63fad5a1

View File

@@ -1470,6 +1470,15 @@ void Test::testUserDefinedNumberFormats()
sCode = "[NatNum12 NNN=upper NN=upper]NNN NN";
sExpected = "TUESDAY TUE";
checkPreviewString(aFormatter, sCode, M_PI, eLang, sExpected);
sCode = "[NatNum12 MMMM=lower MMM=lower MMMMM=lower]MMMM MMM MMMMM";
sExpected = "january jan j";
checkPreviewString(aFormatter, sCode, M_PI, eLang, sExpected);
sCode = "[NatNum12 DDDD=lower DDD=lower]DDDD DDD";
sExpected = "tuesday tue";
checkPreviewString(aFormatter, sCode, M_PI, eLang, sExpected);
sCode = "[NatNum12 NNN=lower NN=lower]NNN NN";
sExpected = "tuesday tue";
checkPreviewString(aFormatter, sCode, M_PI, eLang, sExpected);
}
{ // tdf#130193 tdf#130140 Native Number Formats mapping for Chinese (Traditional), Japanese, Korean
// -- Traditional Chinese: DBNum1 -> NatNum4, DBNum2 -> NatNum5, DBnum3 -> NatNum3