[Libreoffice-commits] core.git: svl/qa
Eike Rathke
erack at redhat.com
Tue Jun 5 15:28:03 UTC 2018
svl/qa/unit/svl.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit e025c561d75c6b1e04d3df0ba90b38d3801241ac
Author: Eike Rathke <erack at redhat.com>
Date: Tue Jun 5 17:26:32 2018 +0200
Add unit test for NatNum12 decimals spell-out
Change-Id: I31c84eb2267b4978f110a4f38cbf4d2377d59400
diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx
index ff344ff65834..6dea21f05883 100644
--- a/svl/qa/unit/svl.cxx
+++ b/svl/qa/unit/svl.cxx
@@ -1385,6 +1385,9 @@ void Test::testUserDefinedNumberFormats()
sCode = "[NatNum12]0";
sExpected = "one hundred twenty-three";
checkPreviewString(aFormatter, sCode, 123, eLang, sExpected);
+ sCode = "[NatNum12]0.00";
+ sExpected = "one hundred twenty-three point four five";
+ checkPreviewString(aFormatter, sCode, 123.45, eLang, sExpected);
sCode = "[NatNum13]0";
sExpected = "one hundred twenty-third";
checkPreviewString(aFormatter, sCode, 123, eLang, sExpected);
More information about the Libreoffice-commits
mailing list