From 1f7e6bdd23600cf118b786bbeb869949c36297e7 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Mon, 8 Sep 2014 13:03:03 +0100 Subject: fdo#82854 - cleanup & review bits. Change-Id: Ia5b2628adb62013a22cf6c5e384154c54abc2294 --- unotools/qa/unit/testGetEnlishSearchName.cxx | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) (limited to 'unotools/qa/unit') diff --git a/unotools/qa/unit/testGetEnlishSearchName.cxx b/unotools/qa/unit/testGetEnlishSearchName.cxx index 38b10eafb516..1701215987a0 100644 --- a/unotools/qa/unit/testGetEnlishSearchName.cxx +++ b/unotools/qa/unit/testGetEnlishSearchName.cxx @@ -15,10 +15,8 @@ #include "cppunit/plugin/TestPlugIn.h" #include - class Test: public CppUnit::TestFixture { - public: virtual void setUp() SAL_OVERRIDE; void testSingleElement(); @@ -34,36 +32,23 @@ void Test::setUp() void Test::testSingleElement() { - { //lowercase - printf("GetEnglishSearchFontName( \"SYMBOL\" )"); + { // lowercase OUString test1 = GetEnglishSearchFontName( "SYMBOL" ); CPPUNIT_ASSERT_EQUAL(test1, OUString("symbol")); - printf("return %s",test1.getStr()); - //trailingWhitespaces - printf("GetEnglishSearchFontName( \"SYMBOL \" )"); + // trailingWhitespaces test1 = GetEnglishSearchFontName( "Symbol " ); CPPUNIT_ASSERT_EQUAL(test1, OUString("symbol")); - printf("return %s",test1.getStr()); - //removing Skripts - printf("GetEnglishSearchFontName( \"SYMBOL(skript)\" )"); + // removing Skripts test1 = GetEnglishSearchFontName( "Symbol(skript)" ); CPPUNIT_ASSERT_EQUAL(test1, OUString("symbol")); - printf("return %s",test1.getStr()); - //remove Whitespaces between - printf("GetEnglishSearchFontName( \"SYMBOL (skript)\" )"); + // remove Whitespaces between test1 = GetEnglishSearchFontName( "Symbol (skript)" ); CPPUNIT_ASSERT_EQUAL(test1, OUString("symbol")); - printf("return %s",test1.getStr()); - //trailingWhitespaces - + // trailingWhitespaces } - - } - - CPPUNIT_TEST_SUITE_REGISTRATION(Test); CPPUNIT_PLUGIN_IMPLEMENT(); -- cgit v1.2.3