[Libreoffice-commits] core.git: svl/qa
Eike Rathke (via logerrit)
logerrit at kemper.freedesktop.org
Fri May 14 23:30:55 UTC 2021
svl/qa/unit/svl.cxx | 9 +++++++++
1 file changed, 9 insertions(+)
New commits:
commit eb7a2bd2f1efa587fe0ebeff86e5e18760b9b465
Author: Eike Rathke <erack at redhat.com>
AuthorDate: Fri May 14 23:02:40 2021 +0200
Commit: Eike Rathke <erack at redhat.com>
CommitDate: Sat May 15 01:30:13 2021 +0200
Related: tdf#128314 tdf#137349 Add unit test for NatNum12 upper names
Change-Id: Ib71b6bc12471322f0a66eced2258045a563cbb07
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115639
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 284692b2724f..2be337407835 100644
--- a/svl/qa/unit/svl.cxx
+++ b/svl/qa/unit/svl.cxx
@@ -1461,6 +1461,15 @@ void Test::testUserDefinedNumberFormats()
sCode = "[NatNum12 YYYY=title year, D=capitalize ordinal]D\" of \"MMMM\", \"YYYY";
sExpected = "Second of January, Nineteen Hundred";
checkPreviewString(aFormatter, sCode, M_PI, eLang, sExpected);
+ sCode = "[NatNum12 MMMM=upper MMM=upper MMMMM=upper]MMMM MMM MMMMM";
+ sExpected = "JANUARY JAN J";
+ checkPreviewString(aFormatter, sCode, M_PI, eLang, sExpected);
+ sCode = "[NatNum12 DDDD=upper DDD=upper]DDDD DDD";
+ sExpected = "TUESDAY TUE";
+ checkPreviewString(aFormatter, sCode, M_PI, eLang, sExpected);
+ sCode = "[NatNum12 NNN=upper NN=upper]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