1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
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
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
35 ConvertChar
const* pConversion
= ConvertChar::GetRecodeData(u
"starbats", u
"opensymbol");
37 pConversion
->RecodeString(aStr
, 0, 1);
38 CPPUNIT_ASSERT_EQUAL(OUString(u
""), aStr
);
42 CPPUNIT_TEST_SUITE_REGISTRATION(Test
);
43 CPPUNIT_PLUGIN_IMPLEMENT();
45 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */