diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-03-28 22:52:37 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-03-28 23:00:55 +0200 |
commit | b741f7fb1ea7b62c9cf2988a64e07cbbb8db904a (patch) | |
tree | 5008e36bd18ae1bcd1107745f1b776b218510529 /sal | |
parent | string literal overload for OUStringBuffer::insert() (diff) | |
download | core-b741f7fb1ea7b62c9cf2988a64e07cbbb8db904a.tar.gz core-b741f7fb1ea7b62c9cf2988a64e07cbbb8db904a.zip |
make unittest check also for invalid conversions with OUStringBuffer
Diffstat (limited to 'sal')
-rw-r--r-- | sal/qa/rtl/strings/test_oustring_stringliterals.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sal/qa/rtl/strings/test_oustring_stringliterals.cxx b/sal/qa/rtl/strings/test_oustring_stringliterals.cxx index ddac4d62e35f..20706980c3f9 100644 --- a/sal/qa/rtl/strings/test_oustring_stringliterals.cxx +++ b/sal/qa/rtl/strings/test_oustring_stringliterals.cxx @@ -180,6 +180,9 @@ void test::oustring::StringLiterals::checkBuffer() CPPUNIT_ASSERT_EQUAL( buf.toString(), rtl::OUString( "foobar" )); buf.insert( 3, "baz" ); CPPUNIT_ASSERT_EQUAL( buf.toString(), rtl::OUString( "foobazbar" )); + char d[] = "d"; + CPPUNIT_ASSERT( !VALID_CONVERSION( buf.append( d ))); + CPPUNIT_ASSERT( !VALID_CONVERSION( buf.insert( 0, d ))); } }} // namespace |