diff options
author | Laurent Balland-Poirier <laurent.balland-poirier@laposte.net> | 2016-07-12 22:10:20 +0200 |
---|---|---|
committer | Laurent BP <laurent.balland-poirier@laposte.net> | 2016-07-22 20:15:51 +0000 |
commit | bfec304e86e8ffd258e99ffa3efbbfe1167486bc (patch) | |
tree | c18d3f3e88d3f2aa640340d675a41806ee1e12a5 /svl | |
parent | sc: remove unused ScCloneFlags: Adjust3Drel and NoCaption (diff) | |
download | core-bfec304e86e8ffd258e99ffa3efbbfe1167486bc.tar.gz core-bfec304e86e8ffd258e99ffa3efbbfe1167486bc.zip |
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 <ci@libreoffice.org>
Reviewed-by: Laurent BP <laurent.balland-poirier@laposte.net>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/qa/unit/svl.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
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); |