diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-02-24 15:44:30 -0500 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-02-24 15:46:03 -0500 |
commit | 44b463c0e1b6d21e8707636387d88470ffce438a (patch) | |
tree | 0f8504805479809339e87ac6a1b7ed1d1dc0b3f9 /svl/qa/unit | |
parent | 39d15024ebf47104bae179c3351c6af842edd0bd (diff) |
Pick up numeral shape and calendar type as well as the language.
So far this change doesn't affect the behavior of the number formatter
but only to pick up extra data that Excel provides (that we need to
map to our own later on).
Diffstat (limited to 'svl/qa/unit')
-rw-r--r-- | svl/qa/unit/svl.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx index a56c90ff0d61..91f406d79832 100644 --- a/svl/qa/unit/svl.cxx +++ b/svl/qa/unit/svl.cxx @@ -242,6 +242,15 @@ void Test::testNumberFormat() CPPUNIT_ASSERT_MESSAGE("Unexpected number format code.", bEqual); } } + + xub_StrLen nPos; + short nType = NUMBERFORMAT_DEFINED; + sal_uInt32 nKey; + String aCode(RTL_CONSTASCII_USTRINGPARAM("[$-1070000]d/mm/yyyy;@")); // Thai date format. + if (!aFormatter.PutEntry(aCode, nPos, nType, nKey)) + { + CPPUNIT_ASSERT_MESSAGE("failed to insert format code '[$-1070000]d/mm/yyyy;@'", false); + } } CPPUNIT_TEST_SUITE_REGISTRATION(Test); |