diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-07-22 12:30:23 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-07-22 12:30:23 +0100 |
commit | 86988a9eb3aebfa9c6c713ed69df0876d4e6e348 (patch) | |
tree | 224a2c128cf518767ef55830ecae1a0f9fe0e0aa /vcl/qa/cppunit/mnemonic.cxx | |
parent | 4f5238deaca3e565e56adefb6b4805cb2c571ed4 (diff) |
tweak test a little
Change-Id: I6b9aeaf03716496dc2c6dfcc88688891f57fb0c7
Diffstat (limited to 'vcl/qa/cppunit/mnemonic.cxx')
-rw-r--r-- | vcl/qa/cppunit/mnemonic.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
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); |