summaryrefslogtreecommitdiffstats
path: root/svl
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-08-06 00:50:32 +0200
committerEike Rathke <erack@redhat.com>2016-08-06 00:50:51 +0200
commite8932e33123ca84fa16be629461108b6bb50a90a (patch)
tree5e24dff5250ae9b49c5e317d029b228b5515e1df /svl
parentdetermine nFuncFmtType before PushDouble() (diff)
downloadcore-e8932e33123ca84fa16be629461108b6bb50a90a.tar.gz
core-e8932e33123ca84fa16be629461108b6bb50a90a.zip
another fraction format unit test
Change-Id: Ic33edb9ca34235d2e24e8b0b0d6455efd0f3076c
Diffstat (limited to 'svl')
-rw-r--r--svl/qa/unit/svl.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx
index f4c033df093a..44878d8565d2 100644
--- a/svl/qa/unit/svl.cxx
+++ b/svl/qa/unit/svl.cxx
@@ -1162,6 +1162,11 @@ void Test::testUserDefinedNumberFormats()
sExpected = "before 1.2inside3E+0middle4 after";
checkPreviewString(aFormatter, sCode, 12345.667, eLang, sExpected);
}
+ { // Display 1.96 as 2 and not 1 1/1
+ sCode = "# ?/?";
+ sExpected = "2 ";
+ checkPreviewString(aFormatter, sCode, 1.96, eLang, sExpected);
+ }
}
CPPUNIT_TEST_SUITE_REGISTRATION(Test);