diff options
author | Laurent Balland-Poirier <laurent.balland-poirier@laposte.net> | 2016-08-13 11:22:31 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-08-18 18:09:23 +0000 |
commit | 502574cb4f1c081b55445fd4b47de6693ef293e2 (patch) | |
tree | 30bbdcb58cbc483fdbbae6c08817ea9332d5cec9 | |
parent | 686887e2cb71e4ffc1e16179b06adf938a9dc7f9 (diff) |
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@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
-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 8fb241a940d5..6eca0ebc2274 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); |