diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-02-24 18:13:28 -0500 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-02-24 18:13:28 -0500 |
commit | 65493885df5c5d6dc1ade2f311f01e74d270fa57 (patch) | |
tree | 4d66d0692daa23217c54392bdae3ac89c36b448a /svl/qa/unit | |
parent | 8bd3bc3f698278e9fbe57dfe990b9500c2dd3588 (diff) |
Generate locale code that includes numeral shape and calendar type.
Diffstat (limited to 'svl/qa/unit')
-rw-r--r-- | svl/qa/unit/svl.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx index 0b54b2ca5d19..4e16b4990b4c 100644 --- a/svl/qa/unit/svl.cxx +++ b/svl/qa/unit/svl.cxx @@ -264,7 +264,14 @@ void Test::testNumberFormat() xub_StrLen nPos; short nType = NUMBERFORMAT_DEFINED; sal_uInt32 nKey; - String aCode(RTL_CONSTASCII_USTRINGPARAM("[$-1070000]d/mm/yyyy;@")); // Thai date format. + String aCode; + aCode = String(RTL_CONSTASCII_USTRINGPARAM("[$-1070000]d/mm/yyyy;@")); // Thai date format (implicit locale). + if (!aFormatter.PutEntry(aCode, nPos, nType, nKey)) + { + CPPUNIT_ASSERT_MESSAGE("failed to insert format code '[$-1070000]d/mm/yyyy;@'", false); + } + + aCode = String(RTL_CONSTASCII_USTRINGPARAM("[$-107041E]d/mm/yyyy;@")); // Thai date format (explicit locale) if (!aFormatter.PutEntry(aCode, nPos, nType, nKey)) { CPPUNIT_ASSERT_MESSAGE("failed to insert format code '[$-1070000]d/mm/yyyy;@'", false); |