summaryrefslogtreecommitdiff
path: root/editeng/qa/lookuptree
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-05-07 12:56:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-05-07 14:59:35 +0200
commit37722469bee4fe170e9514e32d6112ca31c2d934 (patch)
treef8d57fb4a4b8cc7f03688c6ea259f869f2ef0466 /editeng/qa/lookuptree
parent9422879a5cf74120c1057b0f8150529e304f7c95 (diff)
loplugin:ostr in editeng
Change-Id: I7353710e1558d486130ace09844ce97150eb4c43 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167272 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng/qa/lookuptree')
-rw-r--r--editeng/qa/lookuptree/lookuptree_test.cxx26
1 files changed, 13 insertions, 13 deletions
diff --git a/editeng/qa/lookuptree/lookuptree_test.cxx b/editeng/qa/lookuptree/lookuptree_test.cxx
index 486c871ca09f..bdad1418ca21 100644
--- a/editeng/qa/lookuptree/lookuptree_test.cxx
+++ b/editeng/qa/lookuptree/lookuptree_test.cxx
@@ -58,13 +58,13 @@ void LookupTreeTest::testTrie()
trie.insert( u"abcdefghijklmnopqrstuvwxyz" );
trie.findSuggestions( u"a", suggestions);
CPPUNIT_ASSERT_EQUAL( size_t(2), suggestions.size() );
- CPPUNIT_ASSERT_EQUAL( OUString("abc"), suggestions[0] );
- CPPUNIT_ASSERT_EQUAL( OUString("abcdefghijklmnopqrstuvwxyz"), suggestions[1] );
+ CPPUNIT_ASSERT_EQUAL( u"abc"_ustr, suggestions[0] );
+ CPPUNIT_ASSERT_EQUAL( u"abcdefghijklmnopqrstuvwxyz"_ustr, suggestions[1] );
suggestions.clear();
trie.findSuggestions( u"abc", suggestions);
CPPUNIT_ASSERT_EQUAL( size_t(1), suggestions.size() );
- CPPUNIT_ASSERT_EQUAL( OUString("abcdefghijklmnopqrstuvwxyz"), suggestions[0] );
+ CPPUNIT_ASSERT_EQUAL( u"abcdefghijklmnopqrstuvwxyz"_ustr, suggestions[0] );
suggestions.clear();
trie.findSuggestions( u"abe", suggestions);
@@ -74,41 +74,41 @@ void LookupTreeTest::testTrie()
trie.insert( u"abe" );
trie.findSuggestions( u"", suggestions);
CPPUNIT_ASSERT_EQUAL( size_t(3), suggestions.size() );
- CPPUNIT_ASSERT_EQUAL( OUString("abc"), suggestions[0] );
- CPPUNIT_ASSERT_EQUAL( OUString("abcdefghijklmnopqrstuvwxyz"), suggestions[1] );
- CPPUNIT_ASSERT_EQUAL( OUString("abe"), suggestions[2] );
+ CPPUNIT_ASSERT_EQUAL( u"abc"_ustr, suggestions[0] );
+ CPPUNIT_ASSERT_EQUAL( u"abcdefghijklmnopqrstuvwxyz"_ustr, suggestions[1] );
+ CPPUNIT_ASSERT_EQUAL( u"abe"_ustr, suggestions[2] );
suggestions.clear();
trie.insert( u"H31l0" );
trie.findSuggestions( u"H", suggestions);
CPPUNIT_ASSERT_EQUAL( size_t(1), suggestions.size() );
- CPPUNIT_ASSERT_EQUAL( OUString("H31l0"), suggestions[0] );
+ CPPUNIT_ASSERT_EQUAL( u"H31l0"_ustr, suggestions[0] );
suggestions.clear();
trie.insert( u"H1" );
trie.findSuggestions( u"H", suggestions);
CPPUNIT_ASSERT_EQUAL( size_t(2), suggestions.size() );
- CPPUNIT_ASSERT_EQUAL( OUString("H31l0"), suggestions[0] );
- CPPUNIT_ASSERT_EQUAL( OUString("H1"), suggestions[1] );
+ CPPUNIT_ASSERT_EQUAL( u"H31l0"_ustr, suggestions[0] );
+ CPPUNIT_ASSERT_EQUAL( u"H1"_ustr, suggestions[1] );
suggestions.clear();
trie.findSuggestions( u"H3", suggestions);
CPPUNIT_ASSERT_EQUAL( size_t(1), suggestions.size() );
- CPPUNIT_ASSERT_EQUAL( OUString("H31l0"), suggestions[0] );
+ CPPUNIT_ASSERT_EQUAL( u"H31l0"_ustr, suggestions[0] );
suggestions.clear();
trie.insert( OStringToOUString( "H\xC3\xA4llo", RTL_TEXTENCODING_UTF8 ) );
trie.findSuggestions( u"H", suggestions );
CPPUNIT_ASSERT_EQUAL( size_t(3), suggestions.size() );
- CPPUNIT_ASSERT_EQUAL( OUString("H31l0"), suggestions[0] );
- CPPUNIT_ASSERT_EQUAL( OUString("H1"), suggestions[1] );
+ CPPUNIT_ASSERT_EQUAL( u"H31l0"_ustr, suggestions[0] );
+ CPPUNIT_ASSERT_EQUAL( u"H1"_ustr, suggestions[1] );
CPPUNIT_ASSERT_EQUAL( OStringToOUString( "H\xC3\xA4llo", RTL_TEXTENCODING_UTF8 ), suggestions[2] );
suggestions.clear();
trie.findSuggestions( u"H3", suggestions );
CPPUNIT_ASSERT_EQUAL( size_t(1), suggestions.size() );
- CPPUNIT_ASSERT_EQUAL( OUString("H31l0"), suggestions[0] );
+ CPPUNIT_ASSERT_EQUAL( u"H31l0"_ustr, suggestions[0] );
suggestions.clear();
trie.findSuggestions( OStringToOUString("H\xC3\xA4", RTL_TEXTENCODING_UTF8), suggestions );