[Libreoffice-commits] core.git: svl/qa
Laurent Balland-Poirier
laurent.balland-poirier at laposte.net
Thu Aug 18 18:09:46 UTC 2016
svl/qa/unit/svl.cxx | 11 +++++++++++
1 file changed, 11 insertions(+)
New commits:
commit 502574cb4f1c081b55445fd4b47de6693ef293e2
Author: Laurent Balland-Poirier <laurent.balland-poirier at 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 <erack at redhat.com>
Tested-by: Eike Rathke <erack at 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);
More information about the Libreoffice-commits
mailing list