diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-01-14 18:26:02 -0500 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-01-14 18:27:28 -0500 |
commit | b2774063e8bde758bd4966c00a3b4f3b32b4121a (patch) | |
tree | 6ac9faf48305a77ea0e3869886504ea08214b73b /sc/qa | |
parent | 3812db802116a9d88a90e0b0862da115cf675c94 (diff) |
Test on collator, which fails only during the unit test run.
The data pilot test relies on the collator being available. But
for some reason it's not. We need to get this working during the
unit test run in order to be able to test many other calc
functionalities.
Diffstat (limited to 'sc/qa')
-rw-r--r-- | sc/qa/unit/ucalc.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx index 3c256b1d96d9..e3e22cf22793 100644 --- a/sc/qa/unit/ucalc.cxx +++ b/sc/qa/unit/ucalc.cxx @@ -97,6 +97,7 @@ public: virtual void setUp(); virtual void tearDown(); + void testCollator(); void testSUM(); void testNamedRange(); void testCSV(); @@ -105,6 +106,7 @@ public: void testSheetCopy(); CPPUNIT_TEST_SUITE(Test); + CPPUNIT_TEST(testCollator); CPPUNIT_TEST(testSUM); CPPUNIT_TEST(testNamedRange); CPPUNIT_TEST(testCSV); @@ -151,6 +153,17 @@ Test::~Test() uno::Reference< lang::XComponent >(m_xContext, uno::UNO_QUERY_THROW)->dispose(); } +void Test::testCollator() +{ +#if 0 // This currently fails, and because of this the data pilot test fails too. + OUString s1(RTL_CONSTASCII_USTRINGPARAM("A")); + OUString s2(RTL_CONSTASCII_USTRINGPARAM("B")); + CollatorWrapper* p = ScGlobal::GetCollator(); + sal_Int32 nRes = p->compareString(s1, s2); + CPPUNIT_ASSERT_MESSAGE("these strings are supposed to be different!", nRes != 0); +#endif +} + void Test::testSUM() { rtl::OUString aTabName(RTL_CONSTASCII_USTRINGPARAM("foo")); |