[Libreoffice-commits] core.git: svl/qa
Eike Rathke (via logerrit)
logerrit at kemper.freedesktop.org
Sat May 15 00:00:27 UTC 2021
svl/qa/unit/svl.cxx | 9 +++++++++
1 file changed, 9 insertions(+)
New commits:
commit cb63fad5a1967d20d067cd4ee2c8ddc7ba8ff1ea
Author: Eike Rathke <erack at redhat.com>
AuthorDate: Sat May 15 00:50:57 2021 +0200
Commit: Eike Rathke <erack at redhat.com>
CommitDate: Sat May 15 01:59:43 2021 +0200
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 at redhat.com>
Tested-by: Jenkins
diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx
index 2be337407835..f5b0bd557d13 100644
--- a/svl/qa/unit/svl.cxx
+++ b/svl/qa/unit/svl.cxx
@@ -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
More information about the Libreoffice-commits
mailing list