diff options
author | Eike Rathke <erack@redhat.com> | 2016-08-06 00:50:32 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-08-06 00:50:51 +0200 |
commit | e8932e33123ca84fa16be629461108b6bb50a90a (patch) | |
tree | 5e24dff5250ae9b49c5e317d029b228b5515e1df /svl | |
parent | determine nFuncFmtType before PushDouble() (diff) | |
download | core-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.cxx | 5 |
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); |