From 2e84e730a89de683c97bbcab89cd2dbf5a7a9b6d Mon Sep 17 00:00:00 2001 From: Laurent Balland-Poirier Date: Sat, 22 Oct 2016 22:07:30 +0200 Subject: 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 Reviewed-by: Eike Rathke --- svl/qa/unit/svl.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'svl') diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx index 48b5b4433a58..b8c3fc324651 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"; -- cgit