From bfec304e86e8ffd258e99ffa3efbbfe1167486bc Mon Sep 17 00:00:00 2001 From: Laurent Balland-Poirier Date: Tue, 12 Jul 2016 22:10:20 +0200 Subject: tdf#100842 qa unit test test of text before after fraction, with or without integer test of text before after and in the middle of scientific number Change-Id: Ib4a1a722d4cf2350c73b1b721b4e77889dfc666c Reviewed-on: https://gerrit.libreoffice.org/27172 Tested-by: Jenkins Reviewed-by: Laurent BP --- svl/qa/unit/svl.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'svl/qa') diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx index 6271a5968fb5..a1231b02b05b 100644 --- a/svl/qa/unit/svl.cxx +++ b/svl/qa/unit/svl.cxx @@ -1114,6 +1114,17 @@ void Test::testUserDefinedNumberFormats() sExpected = "2 6/16 inch"; checkPreviewString(aFormatter, sCode, 2.379, eLang, sExpected); } + { // tdf#100842: text before/after fraction + sCode = "\"before \"?/?\" after\""; + sExpected = "before 11/9 after"; + checkPreviewString(aFormatter, sCode, 1.2345667, eLang, sExpected); + sCode = "\"before \"# ?/?\" after\""; + sExpected = "before 1 2/9 after"; + checkPreviewString(aFormatter, sCode, 1.2345667, eLang, sExpected); + sCode = "\"before \"0.0\"inside\"0E+0\"middle\"0\" after\""; + sExpected = "before 1.2inside3E+0middle4 after"; + checkPreviewString(aFormatter, sCode, 12345.667, eLang, sExpected); + } } CPPUNIT_TEST_SUITE_REGISTRATION(Test); -- cgit v1.2.3