svl/qa/unit/svl.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) New commits: commit 502574cb4f1c081b55445fd4b47de6693ef293e2 Author: Laurent Balland-Poirier <laurent.balland-poir...@laposte.net> Date: Sat Aug 13 11:22:31 2016 +0200
tdf#79399 tdf#101462 Add qa unit test Test Native Number formats NatNum and DBNum Change-Id: I6e62586d9bfcc27162017291ee110cb70f85d425 Reviewed-on: https://gerrit.libreoffice.org/28098 Reviewed-by: Eike Rathke <er...@redhat.com> Tested-by: Eike Rathke <er...@redhat.com> diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx index 8fb241a..6eca0eb 100644 --- a/svl/qa/unit/svl.cxx +++ b/svl/qa/unit/svl.cxx @@ -1183,6 +1183,17 @@ void Test::testUserDefinedNumberFormats() sExpected = "2 "; checkPreviewString(aFormatter, sCode, 1.96, eLang, sExpected); } + { // tdf#79399 tdf#101462 Native Number Formats + sCode = "[NatNum5][$-0404]General\\ "; + sExpected = OUString(sal_Unicode(22777)) + // 壹 + OUString(sal_Unicode(20336)) + // ä½° + OUString(sal_Unicode(36019)) + // è²³ + OUString(sal_Unicode(25342)) + // æ¾ + OUString(sal_Unicode(' ')); + checkPreviewString(aFormatter, sCode, 120, eLang, sExpected); + sCode = "[DBNum2][$-0404]General\\ "; + checkPreviewString(aFormatter, sCode, 120, eLang, sExpected); + } } CPPUNIT_TEST_SUITE_REGISTRATION(Test);
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits