vcl/qa/cppunit/mnemonic.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
New commits: commit 86988a9eb3aebfa9c6c713ed69df0876d4e6e348 Author: Caolán McNamara <caol...@redhat.com> Date: Sat Jul 22 12:30:23 2017 +0100 tweak test a little Change-Id: I6b9aeaf03716496dc2c6dfcc88688891f57fb0c7 diff --git a/vcl/qa/cppunit/mnemonic.cxx b/vcl/qa/cppunit/mnemonic.cxx index c3a28730934e..f377a2d1085a 100644 --- a/vcl/qa/cppunit/mnemonic.cxx +++ b/vcl/qa/cppunit/mnemonic.cxx @@ -31,8 +31,10 @@ public: void VclMnemonicTest::testMnemonic() { MnemonicGenerator aGenerator; - OUString sResult = aGenerator.CreateMnemonic(OUString::fromUtf8(u8"Ãa")); - CPPUNIT_ASSERT_EQUAL(sResult[1], u'~'); + + const sal_Unicode TEST[] = { 0x00DF, 'a' }; + OUString sResult = aGenerator.CreateMnemonic(OUString(TEST, SAL_N_ELEMENTS(TEST))); + CPPUNIT_ASSERT_EQUAL(u'~', sResult[1]); } CPPUNIT_TEST_SUITE_REGISTRATION(VclMnemonicTest);
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits