tdf#161411 - UI: Add Better wording for ASCII-only characters
[LibreOffice.git] / unotools / qa / unit / testRecodeString.cxx
blobb24a4a27e0a4f2de16d928ab01615c5ea0fb562f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 */
11 #include <config_options.h>
13 #include <cppunit/TestFixture.h>
14 #include <cppunit/extensions/HelperMacros.h>
15 #include <cppunit/plugin/TestPlugIn.h>
17 #include <unotools/fontcvt.hxx>
18 #include <unotools/fontdefs.hxx>
20 class Test : public CppUnit::TestFixture
22 public:
23 void testRecodeString();
25 CPPUNIT_TEST_SUITE(Test);
26 CPPUNIT_TEST(testRecodeString);
28 CPPUNIT_TEST_SUITE_END();
31 void Test::testRecodeString()
33 // note, the below won't work with mergelibs as the class is not visible to the linker
34 #if !ENABLE_MERGELIBS
35 ConvertChar const* pConversion = ConvertChar::GetRecodeData(u"starbats", u"opensymbol");
36 OUString aStr(u"u"_ustr);
37 pConversion->RecodeString(aStr, 0, 1);
38 CPPUNIT_ASSERT_EQUAL(u""_ustr, aStr);
39 #endif
42 CPPUNIT_TEST_SUITE_REGISTRATION(Test);
43 CPPUNIT_PLUGIN_IMPLEMENT();
45 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */