summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Balland-Poirier <laurent.balland-poirier@laposte.net>2016-10-22 22:07:30 +0200
committerEike Rathke <erack@redhat.com>2016-11-09 14:52:17 +0000
commit2e84e730a89de683c97bbcab89cd2dbf5a7a9b6d (patch)
tree9560bbe5fcef6284bd9b7071f2cbde2e5c728749
parentb0901f9f0843c2d85da6742780d9aef296f62c60 (diff)
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@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com>
-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 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";