svl/qa/unit/svl.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit e8932e33123ca84fa16be629461108b6bb50a90a
Author: Eike Rathke <er...@redhat.com>
Date:   Sat Aug 6 00:50:32 2016 +0200

    another fraction format unit test
    
    Change-Id: Ic33edb9ca34235d2e24e8b0b0d6455efd0f3076c

diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx
index f4c033d..44878d8 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);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to