summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2018-06-05 17:26:32 +0200
committerEike Rathke <erack@redhat.com>2018-06-11 22:58:59 +0200
commit3aa6a43a59ea940fa079231b0a0251d7bbd05f85 (patch)
treedc113fdefd738861b577ab6c35088881f4a686f2 /svl
parentc40d3462cb138d5e665063fd7af8914545c5d27a (diff)
Add unit test for NatNum12 decimals spell-out
Change-Id: I31c84eb2267b4978f110a4f38cbf4d2377d59400 (cherry picked from commit e025c561d75c6b1e04d3df0ba90b38d3801241ac) Reviewed-on: https://gerrit.libreoffice.org/55623 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: László Németh <nemeth@numbertext.org> Reviewed-by: László Németh <nemeth@numbertext.org> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'svl')
-rw-r--r--svl/qa/unit/svl.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx
index 6e90143f5a08..737c3dcc379d 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);