summaryrefslogtreecommitdiff
path: root/svl/qa
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2013-10-02 13:06:20 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2013-10-04 19:15:22 -0400
commit2c96a2887360f3b152b369a745440d4b503aa70d (patch)
treeb84fc339e9e77c8ac2fdd43b194b4fdb49648365 /svl/qa
parentb3674c9291a09c4e278a0875b691fc7aaf3f38cd (diff)
Correct way to get case-insensitive string identifiers.
Change-Id: Ia343165941231fab34c4904b7a2fa10b07fa32bb
Diffstat (limited to 'svl/qa')
-rw-r--r--svl/qa/unit/svl.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx
index 003a1523b163..58882bb734c2 100644
--- a/svl/qa/unit/svl.cxx
+++ b/svl/qa/unit/svl.cxx
@@ -307,7 +307,11 @@ void Test::testStringPool()
OUString aAndy("Andy");
svl::StringPool::StrIdType si1 = aPool.getIdentifier("Andy");
svl::StringPool::StrIdType si2 = aPool.getIdentifier(aAndy);
+ CPPUNIT_ASSERT_MESSAGE("Identifier shouldn't be 0.", si1);
+ CPPUNIT_ASSERT_MESSAGE("Identifier shouldn't be 0.", si2);
CPPUNIT_ASSERT_EQUAL(si1, si2);
+ si1 = aPool.getIdentifierIgnoreCase(aAndy);
+ CPPUNIT_ASSERT_MESSAGE("Case insensitive identifier shouldn't be 0.", si1);
// Test case insensitive string ID's.
OUString aAndyLower("andy"), aAndyUpper("ANDY");