[Libreoffice-commits] core.git: svl/qa

Laurent Balland-Poirier laurent.balland-poirier at laposte.net
Wed Nov 9 14:52:43 UTC 2016


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

New commits:
commit 2e84e730a89de683c97bbcab89cd2dbf5a7a9b6d
Author: Laurent Balland-Poirier <laurent.balland-poirier at laposte.net>
Date:   Sat Oct 22 22:07:30 2016 +0200

    tdf#102507 Add qa test of left aligned denominator
    
    New behavior of format # ?/??? gives for 3.5
    3 1/2
    instead of
    3 1/  2
    
    Change-Id: I87f4a71fb13d8424017d557213bb4d279de28af5
    Reviewed-on: https://gerrit.libreoffice.org/30167
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Eike Rathke <erack at redhat.com>

diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx
index 48b5b44..b8c3fc3 100644
--- a/svl/qa/unit/svl.cxx
+++ b/svl/qa/unit/svl.cxx
@@ -1178,6 +1178,11 @@ void Test::testUserDefinedNumberFormats()
         sExpected = "-575 540/697";
         checkPreviewString(aFormatter, sCode, -575.774749601315, eLang, sExpected);
     }
+    {  // tdf#102507: left alignment of denominator
+        sCode = "# ?/???";
+        sExpected = "3 1/2  ";
+        checkPreviewString(aFormatter, sCode, 3.5, eLang, sExpected);
+    }
     {  // tdf#100594: forced denominator
         sCode = "# ?/100";
         sExpected = " 6/100";


More information about the Libreoffice-commits mailing list