LCOV - code coverage report
Current view: top level - sal/qa/OStringBuffer - rtl_OStringBuffer.cxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 8261 8261 100.0 %
Date: 2014-04-11 Functions: 998 1001 99.7 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       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/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #include <sal/types.h>
      21             : #include <rtl/string.hxx>
      22             : #include <rtl_String_Const.h>
      23             : #include <rtl/strbuf.hxx>
      24             : 
      25             : #include "cppunit/TestAssert.h"
      26             : #include "cppunit/TestFixture.h"
      27             : #include "cppunit/extensions/HelperMacros.h"
      28             : #include "cppunit/plugin/TestPlugIn.h"
      29             : #include <string.h>
      30             : 
      31             : using ::rtl::OStringBuffer;
      32             : using ::rtl::OString;
      33             : // This file contains cppunit tests for the
      34             : // OString and OStringBuffer classes
      35             : 
      36             : // testing constructors
      37             : 
      38             : namespace rtl_OStringBuffer
      39             : {
      40          21 :     class  ctors : public CppUnit::TestFixture
      41             :     {
      42             :     public:
      43             : 
      44           1 :         void ctor_001()
      45             :         {
      46           1 :             ::rtl::OStringBuffer aStrBuf;
      47           1 :             const sal_Char* pStr = aStrBuf.getStr();
      48             : 
      49           2 :             CPPUNIT_ASSERT_MESSAGE
      50             :             (
      51             :                 "New OStringBuffer containing no characters",
      52             :                 aStrBuf.isEmpty() &&
      53             :                 *pStr == '\0' && aStrBuf.getCapacity() == 16
      54           2 :             );
      55           1 :         }
      56             : 
      57           1 :         void ctor_002()
      58             :         {
      59           1 :             ::rtl::OString       aStrtmp( kTestStr1 );
      60           2 :             ::rtl::OStringBuffer aStrBuftmp( aStrtmp );
      61           2 :             ::rtl::OStringBuffer aStrBuf( aStrBuftmp );
      62             :             // sal_Bool res = cmpstr(aStrBuftmp.getStr(),aStrBuf.getStr());
      63             : 
      64           1 :             sal_Int32 nLenStrBuftmp = aStrBuftmp.getLength();
      65             : 
      66           2 :             rtl::OString sStr(aStrBuftmp.getStr());
      67           1 :             bool res = aStrtmp.equals( sStr );
      68             : 
      69           2 :             CPPUNIT_ASSERT_MESSAGE
      70             :             (
      71             :                 "New OStringBuffer from another OStringBuffer",
      72             :                 aStrBuf.getLength() == nLenStrBuftmp &&
      73             :                 aStrBuf.getCapacity() == aStrBuftmp.getCapacity() &&
      74             :                 res
      75           2 :             );
      76             : 
      77           1 :         }
      78             : 
      79           1 :         void ctor_003()
      80             :         {
      81           1 :             ::rtl::OStringBuffer aStrBuf1(kTestStr2Len);
      82           2 :             ::rtl::OStringBuffer aStrBuf2(0);
      83             : 
      84           1 :             const sal_Char* pStr1 = aStrBuf1.getStr();
      85           1 :             const sal_Char* pStr2 = aStrBuf2.getStr();
      86             : 
      87           2 :             CPPUNIT_ASSERT_MESSAGE
      88             :             (
      89             :                 "New OStringBuffer containing no characters and contain assigned capacity",
      90             :                 aStrBuf1.isEmpty() &&
      91             :                 *pStr1 == '\0' &&
      92             :                 aStrBuf1.getCapacity() == kTestStr2Len &&
      93             :                 aStrBuf2.isEmpty() &&
      94             :                 *pStr2 == '\0' &&
      95             :                 aStrBuf2.getCapacity() == 0
      96           2 :             );
      97             : 
      98           1 :         }
      99             : 
     100           1 :         void ctor_003_1()
     101             :         {
     102             :             // StringBuffer with created negative size are the
     103             :             // same as empty StringBuffers
     104           1 :             ::rtl::OStringBuffer aStrBuf3(kNonSInt32Max);
     105             : 
     106           1 :             const sal_Char* pStr = aStrBuf3.getStr();
     107             : 
     108           2 :             CPPUNIT_ASSERT_MESSAGE
     109             :             (
     110             :                 "New OStringBuffer containing no characters and contain assigned capacity",
     111             :                 aStrBuf3.isEmpty() &&
     112             :                 *pStr == '\0' &&
     113             :                 aStrBuf3.getCapacity() == kNonSInt32Max
     114           2 :             );
     115           1 :         }
     116             : 
     117           1 :         void ctor_004()
     118             :         {
     119           1 :             ::rtl::OString aStrtmp( kTestStr1 );
     120           2 :             ::rtl::OStringBuffer aStrBuf( aStrtmp );
     121           1 :             sal_Int32 leg = aStrBuf.getLength();
     122             : 
     123           2 :             CPPUNIT_ASSERT_MESSAGE
     124             :             (
     125             :                 "New OStringBuffer from OString",
     126             :                 aStrBuf.getStr() == aStrtmp &&
     127             :                 leg == aStrtmp.pData->length &&
     128             :                 aStrBuf.getCapacity() == leg+16
     129             : 
     130           2 :             );
     131           1 :         }
     132             : 
     133           1 :         void ctor_005() {
     134           1 :             rtl::OStringBuffer b1;
     135           1 :             b1.makeStringAndClear();
     136           1 :             rtl::OStringBuffer b2(b1);
     137           1 :             (void)b2;
     138           1 :         }
     139             : 
     140           1 :         void ctor_006()
     141             :         {
     142             :             //pass in a const char*, get a temp
     143             :             //OString
     144           1 :             ::rtl::OStringBuffer aStrBuf(kTestStr1);
     145           1 :             sal_Int32 leg = aStrBuf.getLength();
     146             : 
     147           2 :             CPPUNIT_ASSERT_MESSAGE
     148             :             (
     149             :                 "New OStringBuffer from const char*",
     150             :                 leg == rtl_str_getLength(kTestStr1) &&
     151             :                 aStrBuf.getCapacity() == leg+16
     152           2 :             );
     153           1 :         }
     154             : 
     155           2 :         CPPUNIT_TEST_SUITE(ctors);
     156           1 :         CPPUNIT_TEST(ctor_001);
     157           1 :         CPPUNIT_TEST(ctor_002);
     158           1 :         CPPUNIT_TEST(ctor_003);
     159           1 :         CPPUNIT_TEST(ctor_003_1);
     160           1 :         CPPUNIT_TEST(ctor_004);
     161           1 :         CPPUNIT_TEST(ctor_005);
     162           1 :         CPPUNIT_TEST(ctor_006);
     163           2 :         CPPUNIT_TEST_SUITE_END();
     164             :     };
     165             : 
     166          24 :     class  makeStringAndClear : public CppUnit::TestFixture
     167             :     {
     168             :         OString* arrOUS[6];
     169             : 
     170             :     public:
     171           8 :         void setUp() SAL_OVERRIDE
     172             :         {
     173           8 :             arrOUS[0] = new OString( kTestStr1 );
     174           8 :             arrOUS[1] = new OString( kTestStr14 );
     175           8 :             arrOUS[2] = new OString( kTestStr25 );
     176           8 :             arrOUS[3] = new OString( kTestStr27 );
     177           8 :             arrOUS[4] = new OString( kTestStr29 );
     178           8 :             arrOUS[5] = new OString( "\0", 1 );
     179             : 
     180           8 :         }
     181             : 
     182           8 :         void tearDown() SAL_OVERRIDE
     183             :         {
     184           8 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
     185           8 :             delete arrOUS[3]; delete arrOUS[4]; delete arrOUS[5];
     186           8 :         }
     187             : 
     188           1 :         void makeStringAndClear_001()
     189             :         {
     190           1 :             ::rtl::OStringBuffer   aStrBuf1;
     191           2 :             ::rtl::OString         aStr1;
     192             : 
     193           1 :             bool lastRes = (aStrBuf1.makeStringAndClear() ==  aStr1 );
     194             : 
     195           2 :             CPPUNIT_ASSERT_MESSAGE
     196             :             (
     197             :                 "two empty strings(def. constructor)",
     198             :                 lastRes && ( aStrBuf1.getCapacity() == 0 ) &&
     199             :                         ( *(aStrBuf1.getStr()) == '\0' )
     200           2 :             );
     201             : 
     202           1 :         }
     203             : 
     204           1 :         void makeStringAndClear_002()
     205             :         {
     206           1 :             ::rtl::OStringBuffer   aStrBuf2(26);
     207           2 :             ::rtl::OString         aStr2;
     208             : 
     209           1 :             bool lastRes = (aStrBuf2.makeStringAndClear() == aStr2 );
     210             : 
     211           2 :             CPPUNIT_ASSERT_MESSAGE
     212             :             (
     213             :                 "two empty strings(with a argu)",
     214             :                 lastRes && ( aStrBuf2.getCapacity() == 0 ) &&
     215             :                         ( *(aStrBuf2.getStr()) == '\0' )
     216           2 :             );
     217             : 
     218           1 :         }
     219             : 
     220           1 :         void makeStringAndClear_003()
     221             :         {
     222           1 :             ::rtl::OStringBuffer   aStrBuf3(*arrOUS[0]);
     223           2 :             ::rtl::OString        aStr3(*arrOUS[0]);
     224             : 
     225           1 :             bool lastRes = (aStrBuf3.makeStringAndClear() == aStr3 );
     226             : 
     227           2 :             CPPUNIT_ASSERT_MESSAGE
     228             :             (
     229             :                 "normal string",
     230             :                 lastRes && ( aStrBuf3.getCapacity() == 0 ) &&
     231             :                         ( *(aStrBuf3.getStr()) == '\0' )
     232           2 :             );
     233             : 
     234           1 :         }
     235             : 
     236           1 :         void makeStringAndClear_004()
     237             :         {
     238           1 :             ::rtl::OStringBuffer   aStrBuf4(*arrOUS[1]);
     239           2 :             ::rtl::OString         aStr4(*arrOUS[1]);
     240             : 
     241           1 :             bool lastRes = (aStrBuf4.makeStringAndClear() ==  aStr4 );
     242             : 
     243           2 :             CPPUNIT_ASSERT_MESSAGE
     244             :             (
     245             :                 "string with space ",
     246             :                 lastRes && ( aStrBuf4.getCapacity() == 0 ) &&
     247             :                         ( *(aStrBuf4.getStr()) == '\0' )
     248           2 :             );
     249           1 :         }
     250             : 
     251           1 :         void makeStringAndClear_005()
     252             :         {
     253           1 :             ::rtl::OStringBuffer   aStrBuf5(*arrOUS[2]);
     254           2 :             ::rtl::OString         aStr5(*arrOUS[2]);
     255             : 
     256           1 :             bool lastRes = (aStrBuf5.makeStringAndClear() ==  aStr5 );
     257             : 
     258           2 :             CPPUNIT_ASSERT_MESSAGE
     259             :             (
     260             :                 "empty string",
     261             :                 lastRes && ( aStrBuf5.getCapacity() == 0 ) &&
     262             :                         ( *(aStrBuf5.getStr()) == '\0' )
     263           2 :             );
     264           1 :         }
     265             : 
     266           1 :         void makeStringAndClear_006()
     267             :         {
     268           1 :             ::rtl::OStringBuffer   aStrBuf6(*arrOUS[3]);
     269           2 :             ::rtl::OString         aStr6(*arrOUS[3]);
     270             : 
     271           1 :             bool lastRes = (aStrBuf6.makeStringAndClear() == aStr6 );
     272             : 
     273           2 :             CPPUNIT_ASSERT_MESSAGE
     274             :             (
     275             :                 "string with a character",
     276             :                 lastRes && ( aStrBuf6.getCapacity() == 0 ) &&
     277             :                         ( *(aStrBuf6.getStr()) == '\0' )
     278           2 :             );
     279           1 :         }
     280             : 
     281           1 :         void makeStringAndClear_007()
     282             :         {
     283           1 :             ::rtl::OStringBuffer   aStrBuf7(*arrOUS[4]);
     284           2 :             ::rtl::OString         aStr7(*arrOUS[4]);
     285             : 
     286           1 :             bool lastRes = (aStrBuf7.makeStringAndClear() == aStr7 );
     287             : 
     288           2 :             CPPUNIT_ASSERT_MESSAGE
     289             :             (
     290             :                 "string with special characters",
     291             :                 lastRes && ( aStrBuf7.getCapacity() == 0 ) &&
     292             :                         ( *(aStrBuf7.getStr()) == '\0' )
     293           2 :             );
     294           1 :         }
     295             : 
     296           1 :         void makeStringAndClear_008()
     297             :         {
     298           1 :             ::rtl::OStringBuffer   aStrBuf8(*arrOUS[5]);
     299           2 :             ::rtl::OString         aStr8(*arrOUS[5]);
     300             : 
     301           1 :             bool lastRes = (aStrBuf8.makeStringAndClear() == aStr8 );
     302             : 
     303           2 :             CPPUNIT_ASSERT_MESSAGE
     304             :             (
     305             :                 "string only with (\0)",
     306             :                 lastRes && ( aStrBuf8.getCapacity() == 0 ) &&
     307             :                         ( *(aStrBuf8.getStr()) == '\0' )
     308           2 :             );
     309           1 :         }
     310             : 
     311           2 :         CPPUNIT_TEST_SUITE(makeStringAndClear);
     312           1 :         CPPUNIT_TEST(makeStringAndClear_001);
     313           1 :         CPPUNIT_TEST(makeStringAndClear_002);
     314           1 :         CPPUNIT_TEST(makeStringAndClear_003);
     315           1 :         CPPUNIT_TEST(makeStringAndClear_004);
     316           1 :         CPPUNIT_TEST(makeStringAndClear_005);
     317           1 :         CPPUNIT_TEST(makeStringAndClear_006);
     318           1 :         CPPUNIT_TEST(makeStringAndClear_007);
     319           1 :         CPPUNIT_TEST(makeStringAndClear_008);
     320           2 :         CPPUNIT_TEST_SUITE_END();
     321             :     };
     322             : 
     323           3 :     class  remove : public CppUnit::TestFixture
     324             :     {
     325             :     public:
     326           1 :         void setUp() SAL_OVERRIDE
     327             :         {
     328           1 :         }
     329             : 
     330           1 :         void tearDown() SAL_OVERRIDE
     331             :         {
     332           1 :         }
     333             : 
     334           1 :         void remove_001()
     335             :         {
     336             :             ::rtl::OStringBuffer sb(
     337           1 :                 RTL_CONSTASCII_STRINGPARAM("Red Hat, Inc."));
     338             : 
     339           1 :             sb.remove(0, 4);
     340           2 :             CPPUNIT_ASSERT(sb.toString().equalsL(
     341           1 :                 RTL_CONSTASCII_STRINGPARAM("Hat, Inc.")));
     342             : 
     343           1 :             sb.remove(3, 6);
     344           2 :             CPPUNIT_ASSERT(sb.toString().equalsL(
     345           1 :                 RTL_CONSTASCII_STRINGPARAM("Hat")));
     346             : 
     347           1 :             sb.remove(0, 100);
     348             : 
     349           1 :             CPPUNIT_ASSERT(sb.toString().isEmpty());
     350             : 
     351           1 :             sb.append(RTL_CONSTASCII_STRINGPARAM("Red Hat, Inc."));
     352             : 
     353           1 :             sb.remove(3, 100);
     354             : 
     355           2 :             CPPUNIT_ASSERT(sb.toString().equalsL(
     356           1 :                 RTL_CONSTASCII_STRINGPARAM("Red")));
     357             : 
     358           1 :             sb.remove(0, sb.getLength());
     359             : 
     360           1 :             CPPUNIT_ASSERT(sb.toString().isEmpty());
     361           1 :         }
     362             : 
     363           2 :         CPPUNIT_TEST_SUITE(remove);
     364           1 :         CPPUNIT_TEST(remove_001);
     365           2 :         CPPUNIT_TEST_SUITE_END();
     366             :     };
     367             : 
     368          24 :     class  getLength : public CppUnit::TestFixture
     369             :     {
     370             :         OString* arrOUS[6];
     371             : 
     372             :     public:
     373           8 :         void setUp() SAL_OVERRIDE
     374             :         {
     375           8 :             arrOUS[0] = new OString( kTestStr1 );
     376           8 :             arrOUS[1] = new OString( "1" );
     377           8 :             arrOUS[2] = new OString( );
     378           8 :             arrOUS[3] = new OString( "" );
     379           8 :             arrOUS[4] = new OString( "\0", 1 );
     380           8 :             arrOUS[5] = new OString( kTestStr2 );
     381             : 
     382           8 :         }
     383             : 
     384           8 :         void tearDown() SAL_OVERRIDE
     385             :         {
     386           8 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
     387           8 :             delete arrOUS[3]; delete arrOUS[4]; delete arrOUS[5];
     388           8 :         }
     389             : 
     390           1 :         void getLength_001()
     391             :         {
     392           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
     393           1 :             sal_Int32              expVal = kTestStr1Len;
     394             : 
     395           2 :             CPPUNIT_ASSERT_MESSAGE
     396             :             (
     397             :                 "length of ascii string",
     398             :                 aStrBuf.getLength() == expVal
     399           2 :             );
     400             : 
     401           1 :         }
     402             : 
     403           1 :         void getLength_002()
     404             :         {
     405           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
     406           1 :             sal_Int32              expVal = 1;
     407             : 
     408           2 :             CPPUNIT_ASSERT_MESSAGE
     409             :             (
     410             :                 "length of ascci string of size 1",
     411             :                 aStrBuf.getLength() == expVal
     412           2 :             );
     413           1 :         }
     414             : 
     415           1 :         void getLength_003()
     416             :         {
     417           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
     418           1 :             sal_Int32              expVal = 0;
     419             : 
     420           2 :             CPPUNIT_ASSERT_MESSAGE
     421             :             (
     422             :                 "length of empty string",
     423             :                 aStrBuf.getLength() == expVal
     424           2 :             );
     425           1 :         }
     426             : 
     427           1 :         void getLength_004()
     428             :         {
     429           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
     430           1 :             sal_Int32              expVal = 0;
     431             : 
     432           2 :             CPPUNIT_ASSERT_MESSAGE
     433             :             (
     434             :                 "length of empty string (empty ascii string arg)",
     435             :                 aStrBuf.getLength() == expVal
     436           2 :             );
     437           1 :         }
     438             : 
     439           1 :         void getLength_005()
     440             :         {
     441           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
     442           1 :             sal_Int32              expVal = 1;
     443             : 
     444           2 :             CPPUNIT_ASSERT_MESSAGE
     445             :             (
     446             :                 "length of string with \\0 embedded",
     447             :                 aStrBuf.getLength() == expVal
     448           2 :             );
     449           1 :         }
     450             : 
     451           1 :         void getLength_006()
     452             :         {
     453           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[5] );
     454           1 :             sal_Int32              expVal = kTestStr2Len;
     455             : 
     456           2 :             CPPUNIT_ASSERT_MESSAGE
     457             :             (
     458             :                 "length(>16) of ascii string",
     459             :                 aStrBuf.getLength() == expVal
     460           2 :             );
     461           1 :         }
     462             : 
     463           1 :         void getLength_007()
     464             :         {
     465           1 :             ::rtl::OStringBuffer   aStrBuf;
     466           1 :             sal_Int32              expVal = 0;
     467             : 
     468           2 :             CPPUNIT_ASSERT_MESSAGE
     469             :             (
     470             :                 "length of empty string (default constructor)",
     471             :                 aStrBuf.getLength()== expVal
     472           2 :             );
     473           1 :         }
     474             : 
     475           1 :         void getLength_008()
     476             :         {
     477           1 :             ::rtl::OStringBuffer   aStrBuf( 26 );
     478           1 :             sal_Int32               expVal   = 0;
     479             : 
     480           2 :             CPPUNIT_ASSERT_MESSAGE
     481             :             (
     482             :                 "length of empty string (with capacity)",
     483             :                 aStrBuf.getLength()== expVal
     484           2 :             );
     485           1 :         }
     486             : 
     487           2 :         CPPUNIT_TEST_SUITE( getLength );
     488           1 :         CPPUNIT_TEST( getLength_001 );
     489           1 :         CPPUNIT_TEST( getLength_002 );
     490           1 :         CPPUNIT_TEST( getLength_003 );
     491           1 :         CPPUNIT_TEST( getLength_004 );
     492           1 :         CPPUNIT_TEST( getLength_005 );
     493           1 :         CPPUNIT_TEST( getLength_006 );
     494           1 :         CPPUNIT_TEST( getLength_007 );
     495           1 :         CPPUNIT_TEST( getLength_008 );
     496           2 :         CPPUNIT_TEST_SUITE_END();
     497             :     };
     498             : 
     499          36 :     class  getCapacity : public CppUnit::TestFixture
     500             :     {
     501             :         OString* arrOUS[6];
     502             : 
     503             :     public:
     504          12 :         void setUp() SAL_OVERRIDE
     505             :         {
     506          12 :             arrOUS[0] = new OString( kTestStr1 );
     507          12 :             arrOUS[1] = new OString( "1" );
     508          12 :             arrOUS[2] = new OString( );
     509          12 :             arrOUS[3] = new OString( "" );
     510          12 :             arrOUS[4] = new OString( "\0", 1 );
     511          12 :             arrOUS[5] = new OString( kTestStr2 );
     512             : 
     513          12 :         }
     514             : 
     515          12 :         void tearDown() SAL_OVERRIDE
     516             :         {
     517          12 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
     518          12 :             delete arrOUS[3]; delete arrOUS[4]; delete arrOUS[5];
     519          12 :         }
     520             : 
     521           1 :         void getCapacity_001()
     522             :         {
     523           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
     524           1 :             sal_Int32              expVal = kTestStr1Len+16;
     525             : 
     526           2 :             CPPUNIT_ASSERT_MESSAGE
     527             :             (
     528             :                 "capacity of ascii string",
     529             :                 aStrBuf.getCapacity()== expVal
     530           2 :             );
     531             : 
     532           1 :         }
     533             : 
     534           1 :         void getCapacity_002()
     535             :         {
     536           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
     537           1 :             sal_Int32              expVal = 1+16;
     538             : 
     539           2 :             CPPUNIT_ASSERT_MESSAGE
     540             :             (
     541             :                 "capacity of ascci string of size 1",
     542             :                 aStrBuf.getCapacity() == expVal
     543           2 :             );
     544           1 :         }
     545             : 
     546           1 :         void getCapacity_003()
     547             :         {
     548           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
     549           1 :             sal_Int32              expVal = 0+16;
     550             : 
     551           2 :             CPPUNIT_ASSERT_MESSAGE
     552             :             (
     553             :                 "capacity of empty string",
     554             :                 aStrBuf.getCapacity() == expVal
     555           2 :             );
     556           1 :         }
     557             : 
     558           1 :         void getCapacity_004()
     559             :         {
     560           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
     561           1 :             sal_Int32              expVal = 0+16;
     562             : 
     563           2 :             CPPUNIT_ASSERT_MESSAGE
     564             :             (
     565             :                 "capacity of empty string (empty ascii string arg)",
     566             :                 aStrBuf.getCapacity()== expVal
     567           2 :             );
     568           1 :         }
     569             : 
     570           1 :         void getCapacity_005()
     571             :         {
     572           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
     573           1 :             sal_Int32              expVal = 1+16;
     574             : 
     575           2 :             CPPUNIT_ASSERT_MESSAGE
     576             :             (
     577             :                 "capacity of string with \\0 embedded",
     578             :                 aStrBuf.getCapacity() == expVal
     579           2 :             );
     580           1 :         }
     581             : 
     582           1 :         void getCapacity_006()
     583             :         {
     584           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[5] );
     585           1 :             sal_Int32              expVal = kTestStr2Len+16;
     586             : 
     587           2 :             CPPUNIT_ASSERT_MESSAGE
     588             :             (
     589             :                 "capacity(>16) of ascii string",
     590             :                 aStrBuf.getCapacity() == expVal
     591           2 :             );
     592           1 :         }
     593             : 
     594           1 :         void getCapacity_007()
     595             :         {
     596           1 :             ::rtl::OStringBuffer   aStrBuf;
     597           1 :             sal_Int32              expVal = 16;
     598             : 
     599           2 :             CPPUNIT_ASSERT_MESSAGE
     600             :             (
     601             :                 "capacity of empty string (default constructor)",
     602             :                 aStrBuf.getCapacity() == expVal
     603           2 :             );
     604           1 :         }
     605             : 
     606           1 :         void getCapacity_009()
     607             :         {
     608           1 :             ::rtl::OStringBuffer   aStrBuf( kNonSInt32Max );
     609           1 :             sal_Int32              expVal = kNonSInt32Max;
     610             : 
     611           2 :             CPPUNIT_ASSERT_MESSAGE
     612             :             (
     613             :                 "capacity of empty string (with capacity -2147483648)",
     614             :                 aStrBuf.getCapacity() == expVal
     615           2 :             );
     616           1 :         }
     617             : 
     618           1 :         void getCapacity_010()
     619             :         {
     620           1 :             ::rtl::OStringBuffer   aStrBuf( 16 );
     621           1 :             sal_Int32              expVal = 16;
     622             : 
     623           2 :             CPPUNIT_ASSERT_MESSAGE
     624             :             (
     625             :                 "capacity of empty string (with capacity 16)",
     626             :                 aStrBuf.getCapacity() == expVal
     627           2 :             );
     628           1 :         }
     629             : 
     630           1 :         void getCapacity_011()
     631             :         {
     632           1 :             ::rtl::OStringBuffer   aStrBuf( 6 );
     633           1 :             sal_Int32              expVal = 6;
     634             : 
     635           2 :             CPPUNIT_ASSERT_MESSAGE
     636             :             (
     637             :                 "capacity of empty string (with capacity 6)",
     638             :                 aStrBuf.getCapacity() == expVal
     639           2 :             );
     640           1 :         }
     641             : 
     642           1 :         void getCapacity_012()
     643             :         {
     644           1 :             ::rtl::OStringBuffer   aStrBuf( 0 );
     645           1 :             sal_Int32              expVal = 0;
     646             : 
     647           2 :             CPPUNIT_ASSERT_MESSAGE
     648             :             (
     649             :                 "capacity of empty string (with capacity 0)",
     650             :                 aStrBuf.getCapacity() == expVal
     651           2 :             );
     652           1 :         }
     653             : 
     654           1 :         void getCapacity_013()
     655             :         {
     656           1 :             ::rtl::OStringBuffer   aStrBuf( -2 );
     657           1 :             sal_Int32              expVal = -2;
     658             : 
     659           2 :             CPPUNIT_ASSERT_MESSAGE
     660             :             (
     661             :                 "capacity of empty string (with capacity -2)",
     662             :                 aStrBuf.getCapacity() == expVal
     663           2 :             );
     664           1 :         }
     665             : 
     666           2 :         CPPUNIT_TEST_SUITE( getCapacity );
     667           1 :         CPPUNIT_TEST( getCapacity_001 );
     668           1 :         CPPUNIT_TEST( getCapacity_002 );
     669           1 :         CPPUNIT_TEST( getCapacity_003 );
     670           1 :         CPPUNIT_TEST( getCapacity_004 );
     671           1 :         CPPUNIT_TEST( getCapacity_005 );
     672           1 :         CPPUNIT_TEST( getCapacity_006 );
     673           1 :         CPPUNIT_TEST( getCapacity_007 );
     674           1 :         CPPUNIT_TEST( getCapacity_009 );
     675           1 :         CPPUNIT_TEST( getCapacity_010 );
     676           1 :         CPPUNIT_TEST( getCapacity_011 );
     677           1 :         CPPUNIT_TEST( getCapacity_012 );
     678           1 :         CPPUNIT_TEST( getCapacity_013 );
     679           2 :         CPPUNIT_TEST_SUITE_END();
     680             :     };
     681             : 
     682          48 :     class  ensureCapacity : public CppUnit::TestFixture
     683             :     {
     684           1 :         void ensureCapacity_001()
     685             :         {
     686           1 :             sal_Int32          expVal = 16;
     687           1 :             ::rtl::OStringBuffer   aStrBuf;
     688           1 :             sal_Int32              input = 5;
     689             : 
     690           1 :             aStrBuf.ensureCapacity( input );
     691             : 
     692           2 :             CPPUNIT_ASSERT_MESSAGE
     693             :             (
     694             :                 "capacity equal to 16, minimum is 5",
     695             :                 aStrBuf.getCapacity() == expVal
     696           2 :             );
     697             : 
     698           1 :         }
     699             : 
     700           1 :         void ensureCapacity_002()
     701             :         {
     702           1 :             sal_Int32          expVal = 16;
     703           1 :             ::rtl::OStringBuffer   aStrBuf;
     704           1 :             sal_Int32              input = -5;
     705             : 
     706           1 :             aStrBuf.ensureCapacity( input );
     707             : 
     708           2 :             CPPUNIT_ASSERT_MESSAGE
     709             :             (
     710             :                 "capacity equal to 16, minimum is -5",
     711             :                 aStrBuf.getCapacity() == expVal
     712           2 :             );
     713             : 
     714           1 :         }
     715             : 
     716           1 :         void ensureCapacity_003()
     717             :         {
     718           1 :             sal_Int32          expVal = 16;
     719           1 :             ::rtl::OStringBuffer   aStrBuf;
     720           1 :             sal_Int32              input = 0;
     721             : 
     722           1 :             aStrBuf.ensureCapacity( input );
     723             : 
     724           2 :             CPPUNIT_ASSERT_MESSAGE
     725             :             (
     726             :                 "capacity equal to 16, minimum is 0",
     727             :                 aStrBuf.getCapacity() == expVal
     728           2 :             );
     729             : 
     730           1 :         }
     731             : 
     732           1 :         void ensureCapacity_004()           //the testcase is based on comments
     733             :         {
     734           1 :             sal_Int32          expVal = 20;
     735           1 :             ::rtl::OStringBuffer   aStrBuf;
     736           1 :             sal_Int32              input = 20;
     737             : 
     738           1 :             aStrBuf.ensureCapacity( input );
     739             : 
     740           2 :             CPPUNIT_ASSERT_MESSAGE
     741             :             (
     742             :                 "capacity equal to 16, minimum is 20",
     743             :                 aStrBuf.getCapacity() == expVal
     744           2 :             );
     745             : 
     746           1 :         }
     747             : 
     748           1 :         void ensureCapacity_005()
     749             :         {
     750           1 :             sal_Int32          expVal = 50;
     751           1 :             ::rtl::OStringBuffer   aStrBuf;
     752           1 :             sal_Int32              input = 50;
     753             : 
     754           1 :             aStrBuf.ensureCapacity( input );
     755             : 
     756           2 :             CPPUNIT_ASSERT_MESSAGE
     757             :             (
     758             :                 "capacity equal to 16, minimum is 50",
     759             :                 aStrBuf.getCapacity() == expVal
     760           2 :             );
     761             : 
     762           1 :         }
     763             : 
     764           1 :         void ensureCapacity_006()
     765             :         {
     766           1 :             sal_Int32          expVal = 20;
     767           1 :             ::rtl::OStringBuffer   aStrBuf( 6 );
     768           1 :             sal_Int32              input = 20;
     769             : 
     770           1 :             aStrBuf.ensureCapacity( input );
     771             : 
     772           2 :             CPPUNIT_ASSERT_MESSAGE
     773             :             (
     774             :                 "capacity equal to 6, minimum is 20",
     775             :                 aStrBuf.getCapacity() == expVal
     776           2 :             );
     777             : 
     778           1 :         }
     779             : 
     780           1 :         void ensureCapacity_007()
     781             :         {
     782           1 :             sal_Int32          expVal = 6;
     783           1 :             ::rtl::OStringBuffer   aStrBuf( 6 );
     784           1 :             sal_Int32              input = 2;
     785             : 
     786           1 :             aStrBuf.ensureCapacity( input );
     787             : 
     788           2 :             CPPUNIT_ASSERT_MESSAGE
     789             :             (
     790             :                 "capacity equal to 6, minimum is 2",
     791             :                 aStrBuf.getCapacity() == expVal
     792           2 :             );
     793             : 
     794           1 :         }
     795             : 
     796           1 :         void ensureCapacity_008()
     797             :         {
     798           1 :             sal_Int32          expVal = 6;
     799           1 :             ::rtl::OStringBuffer   aStrBuf( 6 );
     800           1 :             sal_Int32              input = -6;
     801             : 
     802           1 :             aStrBuf.ensureCapacity( input );
     803             : 
     804           2 :             CPPUNIT_ASSERT_MESSAGE
     805             :             (
     806             :                 "capacity equal to 6, minimum is -6",
     807             :                 aStrBuf.getCapacity() == expVal
     808           2 :             );
     809             : 
     810           1 :         }
     811             : 
     812           1 :         void ensureCapacity_009()      //the testcase is based on comments
     813             :         {
     814           1 :             sal_Int32          expVal = 10;
     815           1 :             ::rtl::OStringBuffer   aStrBuf( 6 );
     816           1 :             sal_Int32              input = 10;
     817             : 
     818           1 :             aStrBuf.ensureCapacity( input );
     819             : 
     820           2 :             CPPUNIT_ASSERT_MESSAGE
     821             :             (
     822             :                 "capacity equal to 6, minimum is -6",
     823             :                 aStrBuf.getCapacity() == expVal
     824           2 :             );
     825             : 
     826           1 :         }
     827             : 
     828           1 :         void ensureCapacity_010()
     829             :         {
     830           1 :             sal_Int32          expVal = 6;
     831           1 :             ::rtl::OStringBuffer   aStrBuf( 0 );
     832           1 :             sal_Int32              input = 6;
     833             : 
     834           1 :             aStrBuf.ensureCapacity( input );
     835             : 
     836           2 :             CPPUNIT_ASSERT_MESSAGE
     837             :             (
     838             :                 "capacity equal to 0, minimum is 6",
     839             :                 aStrBuf.getCapacity() == expVal
     840           2 :             );
     841             : 
     842           1 :         }
     843             : 
     844           1 :         void ensureCapacity_011()       //the testcase is based on comments
     845             :         {
     846           1 :             sal_Int32          expVal = 2;  // capacity is x = (str->length + 1) * 2; minimum < x ? x : minimum
     847           1 :             ::rtl::OStringBuffer   aStrBuf( 0 );
     848           1 :             sal_Int32              input = 1;
     849             : 
     850           1 :             aStrBuf.ensureCapacity( input );
     851             : 
     852           2 :             CPPUNIT_ASSERT_MESSAGE
     853             :             (
     854             :                 "capacity equal to 0, minimum is 1",
     855             :                 aStrBuf.getCapacity() == expVal
     856           2 :             );
     857             : 
     858           1 :         }
     859             : 
     860           1 :         void ensureCapacity_012()
     861             :         {
     862           1 :             sal_Int32          expVal = 0;
     863           1 :             ::rtl::OStringBuffer   aStrBuf( 0 );
     864           1 :             sal_Int32              input = -1;
     865             : 
     866           1 :             aStrBuf.ensureCapacity( input );
     867             : 
     868           2 :             CPPUNIT_ASSERT_MESSAGE
     869             :             (
     870             :                 "capacity equal to 0, minimum is -1",
     871             :                 aStrBuf.getCapacity() == expVal
     872           2 :             );
     873             : 
     874           1 :         }
     875             : 
     876           1 :         void ensureCapacity_018()
     877             :         {
     878           1 :             sal_Int32          expVal = 65535;
     879           1 :             ::rtl::OStringBuffer   aStrBuf( kNonSInt32Max );
     880           1 :             sal_Int32              input = 65535;
     881             : 
     882           1 :             aStrBuf.ensureCapacity( input );
     883             : 
     884           2 :             CPPUNIT_ASSERT_MESSAGE
     885             :             (
     886             :                 "capacity equal to -2147483648, minimum is 65535",
     887             :                 aStrBuf.getCapacity() == expVal
     888           2 :             );
     889             : 
     890           1 :         }
     891             : 
     892           1 :         void ensureCapacity_020()
     893             :         {
     894           1 :             sal_Int32          expVal = 2;
     895           1 :             ::rtl::OStringBuffer   aStrBuf( kNonSInt32Max );
     896           1 :             sal_Int32              input = -1;
     897             : 
     898           1 :             aStrBuf.ensureCapacity( input );
     899             : 
     900           2 :             CPPUNIT_ASSERT_MESSAGE
     901             :             (
     902             :                 "capacity equal to -2147483648, minimum is -1",
     903             :                 aStrBuf.getCapacity() == expVal
     904           2 :             );
     905             : 
     906           1 :         }
     907             : 
     908           1 :         void ensureCapacity_021()
     909             :         {
     910           1 :             sal_Int32          expVal = 2;
     911           1 :             ::rtl::OStringBuffer   aStrBuf( kNonSInt32Max );
     912           1 :             sal_Int32              input = 0;
     913             : 
     914           1 :             aStrBuf.ensureCapacity( input );
     915             : 
     916           2 :             CPPUNIT_ASSERT_MESSAGE
     917             :             (
     918             :                 "capacity equal to -2147483648, minimum is 0",
     919             :                 aStrBuf.getCapacity() == expVal
     920           2 :             );
     921             : 
     922           1 :         }
     923             : 
     924           1 :         void ensureCapacity_022()
     925             :         {
     926           1 :             sal_Int32          expVal = kNonSInt32Max;
     927           1 :             ::rtl::OStringBuffer   aStrBuf( kNonSInt32Max );
     928           1 :             sal_Int32              input = kNonSInt32Max;
     929             : 
     930           1 :             aStrBuf.ensureCapacity( input );
     931             : 
     932           2 :             CPPUNIT_ASSERT_MESSAGE
     933             :             (
     934             :                 "capacity equal to -2147483648, minimum is -2147483648",
     935             :                 aStrBuf.getCapacity() == expVal
     936           2 :             );
     937             : 
     938           1 :         }
     939             : 
     940           2 :         CPPUNIT_TEST_SUITE( ensureCapacity );
     941           1 :         CPPUNIT_TEST( ensureCapacity_001 );
     942           1 :         CPPUNIT_TEST( ensureCapacity_002 );
     943           1 :         CPPUNIT_TEST( ensureCapacity_003 );
     944           1 :         CPPUNIT_TEST( ensureCapacity_004 );
     945           1 :         CPPUNIT_TEST( ensureCapacity_005 );
     946           1 :         CPPUNIT_TEST( ensureCapacity_006 );
     947           1 :         CPPUNIT_TEST( ensureCapacity_007 );
     948           1 :         CPPUNIT_TEST( ensureCapacity_008 );
     949           1 :         CPPUNIT_TEST( ensureCapacity_009 );
     950           1 :         CPPUNIT_TEST( ensureCapacity_010 );
     951           1 :         CPPUNIT_TEST( ensureCapacity_011 );
     952           1 :         CPPUNIT_TEST( ensureCapacity_012 );
     953           1 :         CPPUNIT_TEST( ensureCapacity_018 );
     954           1 :         CPPUNIT_TEST( ensureCapacity_020 );
     955           1 :         CPPUNIT_TEST( ensureCapacity_021 );
     956           1 :         CPPUNIT_TEST( ensureCapacity_022 );
     957           2 :         CPPUNIT_TEST_SUITE_END();
     958             :     };
     959             : 
     960          66 :     class  setLength : public CppUnit::TestFixture
     961             :     {
     962             :         OString* arrOUS[6];
     963             : 
     964             :     public:
     965          22 :         void setUp() SAL_OVERRIDE
     966             :         {
     967          22 :             arrOUS[0] = new OString( kTestStr1 );
     968          22 :             arrOUS[1] = new OString( "1" );
     969          22 :             arrOUS[2] = new OString( );
     970          22 :             arrOUS[3] = new OString( "" );
     971          22 :             arrOUS[4] = new OString( "\0", 1 );
     972          22 :             arrOUS[5] = new OString( kTestStr2 );
     973             : 
     974          22 :         }
     975             : 
     976          22 :         void tearDown() SAL_OVERRIDE
     977             :         {
     978          22 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
     979          22 :             delete arrOUS[3]; delete arrOUS[4]; delete arrOUS[5];
     980          22 :         }
     981             : 
     982           1 :         void setLength_001()
     983             :         {
     984           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
     985           1 :             sal_Int32              expVal1 = 50;
     986           2 :             ::rtl::OString         expVal2( kTestStr1 );
     987           1 :             sal_Int32              expVal3 = 50;
     988           1 :             sal_Int32              input   = 50;
     989             : 
     990           1 :             aStrBuf.setLength( input );
     991             : 
     992           2 :             CPPUNIT_ASSERT_MESSAGE
     993             :             (
     994             :                 "newLength more than the capacity of OStringBuffer(kTestStr1)",
     995             :                 aStrBuf.getStr() == expVal2 &&
     996             :                     aStrBuf.getLength() == expVal1 &&
     997             :                     aStrBuf.getCapacity() == expVal3
     998           2 :             );
     999             : 
    1000           1 :         }
    1001             : 
    1002           1 :         void setLength_002()
    1003             :         {
    1004           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    1005           1 :             sal_Int32              expVal1 = kTestStr13Len;
    1006           2 :             ::rtl::OString         expVal2( kTestStr1 );
    1007           1 :             sal_Int32              expVal3 = 32;
    1008           1 :             sal_Int32              input   = kTestStr13Len;
    1009             : 
    1010           1 :             aStrBuf.setLength( input );
    1011             : 
    1012           2 :             CPPUNIT_ASSERT_MESSAGE
    1013             :             (
    1014             :                 "newLength more than the length of OStringBuffer(kTestStr1)",
    1015             :                 aStrBuf.getStr() == expVal2 &&
    1016             :                     aStrBuf.getLength() == expVal1 &&
    1017             :                     aStrBuf.getCapacity() == expVal3
    1018           2 :             );
    1019             : 
    1020           1 :         }
    1021             : 
    1022           1 :         void setLength_003()
    1023             :         {
    1024           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    1025           1 :             sal_Int32              expVal1 = kTestStr1Len;
    1026           2 :             ::rtl::OString         expVal2( kTestStr1 );
    1027           1 :             sal_Int32              expVal3 = 32;
    1028           1 :             sal_Int32              input   = kTestStr1Len;
    1029             : 
    1030           1 :             aStrBuf.setLength( input );
    1031             : 
    1032           2 :             CPPUNIT_ASSERT_MESSAGE
    1033             :             (
    1034             :                 "newLength equal to the length of OStringBuffer(kTestStr1)",
    1035             :                 aStrBuf.getStr() == expVal2 &&
    1036             :                     aStrBuf.getLength() == expVal1 &&
    1037             :                     aStrBuf.getCapacity() == expVal3
    1038           2 :             );
    1039             : 
    1040           1 :         }
    1041             : 
    1042           1 :         void setLength_004()
    1043             :         {
    1044           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    1045           1 :             sal_Int32              expVal1 = kTestStr7Len;
    1046           2 :             ::rtl::OString         expVal2( kTestStr7 );
    1047           1 :             sal_Int32              expVal3 = 32;
    1048           1 :             sal_Int32              input   = kTestStr7Len;
    1049             : 
    1050           1 :             aStrBuf.setLength( input );
    1051             : 
    1052           2 :             CPPUNIT_ASSERT_MESSAGE
    1053             :             (
    1054             :                 "newLength less than the length of OStringBuffer(kTestStr1)",
    1055             :                 aStrBuf.getStr() == expVal2 &&
    1056             :                     aStrBuf.getLength() == expVal1 &&
    1057             :                     aStrBuf.getCapacity() == expVal3
    1058           2 :             );
    1059             : 
    1060           1 :         }
    1061             : 
    1062           1 :         void setLength_005()
    1063             :         {
    1064           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    1065           1 :             sal_Int32              expVal1 = 0;
    1066           2 :             ::rtl::OString         expVal2;
    1067           1 :             sal_Int32              expVal3 = 32;
    1068           1 :             sal_Int32              input   = 0;
    1069             : 
    1070           1 :             aStrBuf.setLength( input );
    1071             : 
    1072           2 :             CPPUNIT_ASSERT_MESSAGE
    1073             :             (
    1074             :                 "newLength equal to 0",
    1075             :                 aStrBuf.getStr() == expVal2 &&
    1076             :                     aStrBuf.getLength() == expVal1 &&
    1077             :                     aStrBuf.getCapacity() == expVal3
    1078           2 :             );
    1079             : 
    1080           1 :         }
    1081             : 
    1082           1 :         void setLength_006()
    1083             :         {
    1084           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    1085           1 :             sal_Int32              expVal1 = 25;
    1086           2 :             ::rtl::OString         expVal2( *arrOUS[1] );
    1087           1 :             sal_Int32              expVal3 = 25;
    1088           1 :             sal_Int32              input   = 25;
    1089             : 
    1090           1 :             aStrBuf.setLength( input );
    1091             : 
    1092           2 :             CPPUNIT_ASSERT_MESSAGE
    1093             :             (
    1094             :                 "newLength more than the capacity of OStringBuffer(1)",
    1095             :                 aStrBuf.getStr() == expVal2 &&
    1096             :                     aStrBuf.getLength() == expVal1 &&
    1097             :                     aStrBuf.getCapacity() == expVal3
    1098           2 :             );
    1099             : 
    1100           1 :         }
    1101             : 
    1102           1 :         void setLength_007()
    1103             :         {
    1104           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    1105           1 :             sal_Int32              expVal1 = kTestStr27Len;
    1106           2 :             ::rtl::OString         expVal2( *arrOUS[1] );
    1107           1 :             sal_Int32              expVal3 = 17;
    1108           1 :             sal_Int32              input   = kTestStr27Len;
    1109             : 
    1110           1 :             aStrBuf.setLength( input );
    1111             : 
    1112           2 :             CPPUNIT_ASSERT_MESSAGE
    1113             :             (
    1114             :                 "newLength equal to the length of OStringBuffer(1)",
    1115             :                 aStrBuf.getStr() == expVal2 &&
    1116             :                     aStrBuf.getLength() == expVal1 &&
    1117             :                     aStrBuf.getCapacity() == expVal3
    1118           2 :             );
    1119             : 
    1120           1 :         }
    1121             : 
    1122           1 :         void setLength_008()
    1123             :         {
    1124           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    1125           1 :             sal_Int32              expVal1 = 0;
    1126           2 :             ::rtl::OString         expVal2;
    1127           1 :             sal_Int32              expVal3 = 17;
    1128           1 :             sal_Int32              input   = 0;
    1129             : 
    1130           1 :             aStrBuf.setLength( input );
    1131             : 
    1132           2 :             CPPUNIT_ASSERT_MESSAGE
    1133             :             (
    1134             :                 "newLength less than the length of OUStringBuffer(1)",
    1135             :                 aStrBuf.getStr() == expVal2 &&
    1136             :                     aStrBuf.getLength() == expVal1 &&
    1137             :                     aStrBuf.getCapacity() == expVal3
    1138           2 :             );
    1139             : 
    1140           1 :         }
    1141             : 
    1142           1 :         void setLength_009()
    1143             :         {
    1144           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    1145           1 :             sal_Int32              expVal1 = 20;
    1146           2 :             ::rtl::OString         expVal2;
    1147           1 :             sal_Int32              expVal3 = 20;
    1148           1 :             sal_Int32              input   = 20;
    1149             : 
    1150           1 :             aStrBuf.setLength( input );
    1151             : 
    1152           2 :             CPPUNIT_ASSERT_MESSAGE
    1153             :             (
    1154             :                 "newLength more than the capacity of OStringBuffer()",
    1155             :                 aStrBuf.getStr() == expVal2 &&
    1156             :                     aStrBuf.getLength() == expVal1 &&
    1157             :                     aStrBuf.getCapacity() == expVal3
    1158           2 :             );
    1159             : 
    1160           1 :         }
    1161             : 
    1162           1 :         void setLength_010()
    1163             :         {
    1164           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    1165           1 :             sal_Int32              expVal1 = 3;
    1166           2 :             ::rtl::OString         expVal2;
    1167           1 :             sal_Int32              expVal3 = 16;
    1168           1 :             sal_Int32              input   = 3;
    1169             : 
    1170           1 :             aStrBuf.setLength( input );
    1171             : 
    1172           2 :             CPPUNIT_ASSERT_MESSAGE
    1173             :             (
    1174             :                 "newLength more than the length of OStringBuffer()",
    1175             :                 aStrBuf.getStr() == expVal2 &&
    1176             :                     aStrBuf.getLength() == expVal1 &&
    1177             :                     aStrBuf.getCapacity() == expVal3
    1178           2 :             );
    1179             : 
    1180           1 :         }
    1181             : 
    1182           1 :         void setLength_011()
    1183             :         {
    1184           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    1185           1 :             sal_Int32              expVal1 = 0;
    1186           2 :             ::rtl::OString         expVal2;
    1187           1 :             sal_Int32              expVal3 = 16;
    1188           1 :             sal_Int32              input   = 0;
    1189             : 
    1190           1 :             aStrBuf.setLength( input );
    1191             : 
    1192           2 :             CPPUNIT_ASSERT_MESSAGE
    1193             :             (
    1194             :                 "newLength more than the length of OStringBuffer()",
    1195             :                 aStrBuf.getStr() == expVal2 &&
    1196             :                     aStrBuf.getLength() == expVal1 &&
    1197             :                     aStrBuf.getCapacity() == expVal3
    1198           2 :             );
    1199             : 
    1200           1 :         }
    1201             : 
    1202           1 :         void setLength_012()
    1203             :         {
    1204           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    1205           1 :             sal_Int32              expVal1 = 20;
    1206           2 :             ::rtl::OString         expVal2;
    1207           1 :             sal_Int32              expVal3 = 20;
    1208           1 :             sal_Int32              input   = 20;
    1209             : 
    1210           1 :             aStrBuf.setLength( input );
    1211             : 
    1212           2 :             CPPUNIT_ASSERT_MESSAGE
    1213             :             (
    1214             :                 "newLength more than the capacity of OStringBuffer("")",
    1215             :                 aStrBuf.getStr() == expVal2 &&
    1216             :                     aStrBuf.getLength() == expVal1 &&
    1217             :                     aStrBuf.getCapacity() == expVal3
    1218           2 :             );
    1219             : 
    1220           1 :         }
    1221             : 
    1222           1 :         void setLength_013()
    1223             :         {
    1224           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    1225           1 :             sal_Int32              expVal1 = 5;
    1226           2 :             ::rtl::OString         expVal2;
    1227           1 :             sal_Int32              expVal3 = 16;
    1228           1 :             sal_Int32              input   = 5;
    1229             : 
    1230           1 :             aStrBuf.setLength( input );
    1231             : 
    1232           2 :             CPPUNIT_ASSERT_MESSAGE
    1233             :             (
    1234             :                 "newLength more than the length of OStringBuffer("")",
    1235             :                 aStrBuf.getStr() == expVal2 &&
    1236             :                     aStrBuf.getLength() == expVal1 &&
    1237             :                     aStrBuf.getCapacity() == expVal3
    1238           2 :             );
    1239             : 
    1240           1 :         }
    1241             : 
    1242           1 :         void setLength_014()
    1243             :         {
    1244           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    1245           1 :             sal_Int32              expVal1 = 0;
    1246           2 :             ::rtl::OString         expVal2;
    1247           1 :             sal_Int32              expVal3 = 16;
    1248           1 :             sal_Int32              input   = 0;
    1249             : 
    1250           1 :             aStrBuf.setLength( input );
    1251             : 
    1252           2 :             CPPUNIT_ASSERT_MESSAGE
    1253             :             (
    1254             :                 "newLength less than the length of OStringBuffer("")",
    1255             :                 aStrBuf.getStr() == expVal2 &&
    1256             :                     aStrBuf.getLength() == expVal1 &&
    1257             :                     aStrBuf.getCapacity() == expVal3
    1258           2 :             );
    1259             : 
    1260           1 :         }
    1261             : 
    1262           1 :         void setLength_015()
    1263             :         {
    1264           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    1265           1 :             sal_Int32              expVal1 = 20;
    1266           2 :             ::rtl::OString         expVal2;
    1267           1 :             sal_Int32              expVal3 = 20;
    1268           1 :             sal_Int32              input   = 20;
    1269             : 
    1270           1 :             aStrBuf.setLength( input );
    1271             : 
    1272           2 :             CPPUNIT_ASSERT_MESSAGE
    1273             :             (
    1274             :                 "newLength more than the length of OStringBuffer(\0)",
    1275             :                 aStrBuf.getStr() == expVal2 &&
    1276             :                     aStrBuf.getLength() == expVal1 &&
    1277             :                     aStrBuf.getCapacity() == expVal3
    1278           2 :             );
    1279             : 
    1280           1 :         }
    1281             : 
    1282           1 :         void setLength_016()
    1283             :         {
    1284           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    1285           1 :             sal_Int32              expVal1 = 5;
    1286           2 :             ::rtl::OString         expVal2;
    1287           1 :             sal_Int32              expVal3 = 17;
    1288           1 :             sal_Int32              input   = 5;
    1289             : 
    1290           1 :             aStrBuf.setLength( input );
    1291             : 
    1292           2 :             CPPUNIT_ASSERT_MESSAGE
    1293             :             (
    1294             :                 "newLength more than the length of OStringBuffer(\0)",
    1295             :                 aStrBuf.getStr() == expVal2 &&
    1296             :                     aStrBuf.getLength() == expVal1 &&
    1297             :                     aStrBuf.getCapacity() == expVal3
    1298           2 :             );
    1299             : 
    1300           1 :         }
    1301             : 
    1302           1 :         void setLength_017()
    1303             :         {
    1304           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    1305           1 :             sal_Int32              expVal1 = 0;
    1306           2 :             ::rtl::OString         expVal2;
    1307           1 :             sal_Int32              expVal3 = 17;
    1308           1 :             sal_Int32              input   = 0;
    1309             : 
    1310           1 :             aStrBuf.setLength( input );
    1311             : 
    1312           2 :             CPPUNIT_ASSERT_MESSAGE
    1313             :             (
    1314             :                 "newLength less than the length of OStringBuffer(\0)",
    1315             :                 aStrBuf.getStr() == expVal2 &&
    1316             :                     aStrBuf.getLength() == expVal1 &&
    1317             :                     aStrBuf.getCapacity() == expVal3
    1318           2 :             );
    1319             : 
    1320           1 :         }
    1321             : 
    1322           1 :         void setLength_018()
    1323             :         {
    1324           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[5] );
    1325           1 :             sal_Int32              expVal1 = 50;
    1326           2 :             ::rtl::OString         expVal2( kTestStr2 );
    1327           1 :             sal_Int32              expVal3 = 66;
    1328           1 :             sal_Int32              input   = 50;
    1329             : 
    1330           1 :             aStrBuf.setLength( input );
    1331             : 
    1332           2 :             CPPUNIT_ASSERT_MESSAGE
    1333             :             (
    1334             :                 "newLength more than the capacity of OStringBuffer(kTestStr2)",
    1335             :                 aStrBuf.getStr() == expVal2 &&
    1336             :                     aStrBuf.getLength() == expVal1 &&
    1337             :                     aStrBuf.getCapacity() == expVal3
    1338           2 :             );
    1339             : 
    1340           1 :         }
    1341             : 
    1342           1 :         void setLength_019()
    1343             :         {
    1344           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[5] );
    1345           1 :             sal_Int32              expVal1 = 40;
    1346           2 :             ::rtl::OString         expVal2(kTestStr2);
    1347           1 :             sal_Int32              expVal3 = 48;
    1348           1 :             sal_Int32              input   = 40;
    1349             : 
    1350           1 :             aStrBuf.setLength( input );
    1351             : 
    1352           2 :             CPPUNIT_ASSERT_MESSAGE
    1353             :             (
    1354             :                 "newLength more than the length of OStringBuffer(kTestStr2)",
    1355             :                 aStrBuf.getStr() == expVal2 &&
    1356             :                     aStrBuf.getLength() == expVal1 &&
    1357             :                     aStrBuf.getCapacity() == expVal3
    1358           2 :             );
    1359             : 
    1360           1 :         }
    1361             : 
    1362           1 :         void setLength_020()
    1363             :         {
    1364           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[5] );
    1365           1 :             sal_Int32              expVal1 = kTestStr2Len;
    1366           2 :             ::rtl::OString         expVal2(kTestStr2);
    1367           1 :             sal_Int32              expVal3 = 48;
    1368           1 :             sal_Int32              input   = kTestStr2Len;
    1369             : 
    1370           1 :             aStrBuf.setLength( input );
    1371             : 
    1372           2 :             CPPUNIT_ASSERT_MESSAGE
    1373             :             (
    1374             :                 "newLength equal to the length of OUStringBuffer(kTestStr2)",
    1375             :                 aStrBuf.getStr() == expVal2 &&
    1376             :                     aStrBuf.getLength() == expVal1 &&
    1377             :                     aStrBuf.getCapacity() == expVal3
    1378           2 :             );
    1379             : 
    1380           1 :         }
    1381             : 
    1382           1 :         void setLength_021()
    1383             :         {
    1384           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[5] );
    1385           1 :             sal_Int32              expVal1 = kTestStr7Len;
    1386           2 :             ::rtl::OString         expVal2(kTestStr7);
    1387           1 :             sal_Int32              expVal3 = 48;
    1388           1 :             sal_Int32              input   = kTestStr7Len;
    1389             : 
    1390           1 :             aStrBuf.setLength( input );
    1391             : 
    1392           2 :             CPPUNIT_ASSERT_MESSAGE
    1393             :             (
    1394             :                 "newLength less than the length of OUStringBuffer(TestStr2)",
    1395             :                 aStrBuf.getStr() == expVal2 &&
    1396             :                     aStrBuf.getLength() == expVal1 &&
    1397             :                     aStrBuf.getCapacity() == expVal3
    1398           2 :             );
    1399             : 
    1400           1 :         }
    1401             : 
    1402           1 :         void setLength_022()
    1403             :         {
    1404           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[5] );
    1405           1 :             sal_Int32              expVal1 = 0;
    1406           2 :             ::rtl::OString         expVal2;
    1407           1 :             sal_Int32              expVal3 = 48;
    1408           1 :             sal_Int32              input   = 0;
    1409             : 
    1410           1 :             aStrBuf.setLength( input );
    1411             : 
    1412           2 :             CPPUNIT_ASSERT_MESSAGE
    1413             :             (
    1414             :                 "newLength equal to 0",
    1415             :                 aStrBuf.getStr() == expVal2 &&
    1416             :                     aStrBuf.getLength() == expVal1 &&
    1417             :                     aStrBuf.getCapacity() == expVal3
    1418           2 :             );
    1419             : 
    1420           1 :         }
    1421             : 
    1422           2 :         CPPUNIT_TEST_SUITE( setLength );
    1423           1 :         CPPUNIT_TEST( setLength_001 );
    1424           1 :         CPPUNIT_TEST( setLength_002 );
    1425           1 :         CPPUNIT_TEST( setLength_003 );
    1426           1 :         CPPUNIT_TEST( setLength_004 );
    1427           1 :         CPPUNIT_TEST( setLength_005 );
    1428           1 :         CPPUNIT_TEST( setLength_006 );
    1429           1 :         CPPUNIT_TEST( setLength_007 );
    1430           1 :         CPPUNIT_TEST( setLength_008 );
    1431           1 :         CPPUNIT_TEST( setLength_009 );
    1432           1 :         CPPUNIT_TEST( setLength_010 );
    1433           1 :         CPPUNIT_TEST( setLength_011 );
    1434           1 :         CPPUNIT_TEST( setLength_012 );
    1435           1 :         CPPUNIT_TEST( setLength_013 );
    1436           1 :         CPPUNIT_TEST( setLength_014 );
    1437           1 :         CPPUNIT_TEST( setLength_015 );
    1438           1 :         CPPUNIT_TEST( setLength_016 );
    1439           1 :         CPPUNIT_TEST( setLength_017 );
    1440           1 :         CPPUNIT_TEST( setLength_018 );
    1441           1 :         CPPUNIT_TEST( setLength_019 );
    1442           1 :         CPPUNIT_TEST( setLength_020 );
    1443           1 :         CPPUNIT_TEST( setLength_021 );
    1444           1 :         CPPUNIT_TEST( setLength_022 );
    1445           2 :         CPPUNIT_TEST_SUITE_END();
    1446             :     };
    1447             : 
    1448           6 :     class  csuc : public CppUnit::TestFixture
    1449             :     {
    1450           1 :         void csuc_001()
    1451             :         {
    1452           1 :             const sal_Char*        expVal = kTestStr1;
    1453           1 :             ::rtl::OStringBuffer   aStrBuf( kTestStr1 );
    1454           1 :             sal_Int32              cmpLen = kTestStr1Len;
    1455             : 
    1456             :             // LLA: wrong access! const sal_Char* pstr = *&aStrBuf;
    1457           1 :             const sal_Char* pstr = aStrBuf.getStr();
    1458           1 :             int nEqual = strncmp(pstr, expVal, cmpLen);
    1459             : 
    1460           2 :             CPPUNIT_ASSERT_MESSAGE
    1461             :             (
    1462             :                 "test normal string",
    1463             :                 /* cmpstr( pstr, expVal, cmpLen ) */
    1464             :                 nEqual == 0
    1465           2 :             );
    1466             : 
    1467           1 :         }
    1468             : 
    1469           1 :         void csuc_002()
    1470             :         {
    1471           1 :             ::rtl::OStringBuffer   aStrBuf;
    1472             : 
    1473             :             // LLA: wrong access! const sal_Char* pstr = *&aStrBuf;
    1474           1 :             const sal_Char* pstr = aStrBuf.getStr();
    1475           1 :             sal_Int32 nLen = strlen(pstr);
    1476             : 
    1477           2 :             CPPUNIT_ASSERT_MESSAGE
    1478             :             (
    1479             :                 "test empty string",
    1480             :                 // cmpstr( pstr, &expVal, cmpLen )
    1481             :                 nLen == 0
    1482           2 :                 );
    1483             : 
    1484           1 :         }
    1485             : 
    1486           2 :         CPPUNIT_TEST_SUITE( csuc );
    1487           1 :         CPPUNIT_TEST( csuc_001 );
    1488           1 :         CPPUNIT_TEST( csuc_002 );
    1489           2 :         CPPUNIT_TEST_SUITE_END();
    1490             :     };
    1491             : 
    1492           6 :     class  getStr : public CppUnit::TestFixture
    1493             :     {
    1494           1 :         void getStr_001()
    1495             :         {
    1496           1 :             const sal_Char*        expVal = kTestStr1;
    1497           1 :             ::rtl::OStringBuffer   aStrBuf( kTestStr1 );
    1498           1 :             sal_Int32              cmpLen = kTestStr1Len;
    1499             : 
    1500           1 :             const sal_Char* pstr = aStrBuf.getStr();
    1501           1 :             int nEqual = strncmp(pstr, expVal, cmpLen);
    1502             : 
    1503           2 :             CPPUNIT_ASSERT_MESSAGE
    1504             :             (
    1505             :                 "test normal string",
    1506             :                 nEqual == 0
    1507           2 :             );
    1508             : 
    1509           1 :         }
    1510             : 
    1511           1 :         void getStr_002()
    1512             :         {
    1513             :             // const sal_Char         tmpUC=0x0;
    1514             :             // const sal_Char*        expVal=&tmpUC;
    1515           1 :             ::rtl::OStringBuffer   aStrBuf;
    1516             :             // sal_Int32              cmpLen = 1;
    1517             : 
    1518           1 :             const sal_Char* pstr = aStrBuf.getStr();
    1519           1 :             sal_Int32 nLen = strlen(pstr);
    1520             : 
    1521           2 :             CPPUNIT_ASSERT_MESSAGE
    1522             :             (
    1523             :                 "test empty string",
    1524             :                 pstr != 0 &&
    1525             :                 nLen == 0
    1526           2 :             );
    1527             : 
    1528           1 :         }
    1529             : 
    1530           2 :         CPPUNIT_TEST_SUITE( getStr );
    1531           1 :         CPPUNIT_TEST( getStr_001 );
    1532           1 :         CPPUNIT_TEST( getStr_002 );
    1533           2 :         CPPUNIT_TEST_SUITE_END();
    1534             :     };
    1535             : 
    1536          63 :     class  append_001 : public CppUnit::TestFixture
    1537             :     {
    1538             :         OString* arrOUS[5];
    1539             : 
    1540             :     public:
    1541          21 :         void setUp() SAL_OVERRIDE
    1542             :         {
    1543          21 :             arrOUS[0] = new OString( kTestStr7 );
    1544          21 :             arrOUS[1] = new OString(  );
    1545          21 :             arrOUS[2] = new OString( kTestStr25 );
    1546          21 :             arrOUS[3] = new OString( "" );
    1547          21 :             arrOUS[4] = new OString( kTestStr28 );
    1548             : 
    1549          21 :         }
    1550             : 
    1551          21 :         void tearDown() SAL_OVERRIDE
    1552             :         {
    1553          21 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
    1554          21 :             delete arrOUS[3]; delete arrOUS[4];
    1555          21 :         }
    1556             : 
    1557           1 :         void append_001_001()
    1558             :         {
    1559           1 :             OString                expVal( kTestStr1 );
    1560           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    1561           2 :             OString                input2( kTestStr8 );
    1562             : 
    1563           1 :             aStrBuf.append( input2 );
    1564             : 
    1565           2 :             CPPUNIT_ASSERT_MESSAGE
    1566             :             (
    1567             :                 "Appends the string(length less than 16) to the string buffer arrOUS[0]",
    1568             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    1569           2 :             );
    1570             : 
    1571           1 :         }
    1572             : 
    1573           1 :         void append_001_002()
    1574             :         {
    1575           1 :             OString                expVal( kTestStr2 );
    1576           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    1577           2 :             OString                input2( kTestStr36 );
    1578             : 
    1579           1 :             aStrBuf.append( input2 );
    1580             : 
    1581           2 :             CPPUNIT_ASSERT_MESSAGE
    1582             :             (
    1583             :                 "Appends the string(length more than 16) to the string buffer arrOUS[0]",
    1584             :                 aStrBuf.getStr()== expVal &&
    1585             :                     aStrBuf.getLength() == expVal.getLength()
    1586           2 :             );
    1587             : 
    1588           1 :         }
    1589             : 
    1590           1 :         void append_001_003()
    1591             :         {
    1592           1 :             OString                expVal( kTestStr37 );
    1593           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    1594           2 :             OString                input2( kTestStr23 );
    1595             : 
    1596           1 :             aStrBuf.append( input2 );
    1597             : 
    1598           2 :             CPPUNIT_ASSERT_MESSAGE
    1599             :             (
    1600             :                 "Appends the string(length equal to 16) to the string buffer arrOUS[0]",
    1601             :                 aStrBuf.getStr()== expVal &&
    1602             :                     aStrBuf.getLength() == expVal.getLength()
    1603           2 :             );
    1604             : 
    1605           1 :         }
    1606             : 
    1607           1 :         void append_001_004()
    1608             :         {
    1609           1 :             OString                expVal( kTestStr7 );
    1610           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    1611           2 :             OString                input2;
    1612             : 
    1613           1 :             aStrBuf.append( input2 );
    1614             : 
    1615           2 :             CPPUNIT_ASSERT_MESSAGE
    1616             :             (
    1617             :                 "Appends the string(length equal to 0) to the string buffer arrOUS[0]",
    1618             :                 aStrBuf.getStr()== expVal &&
    1619             :                     aStrBuf.getLength() == expVal.getLength()
    1620           2 :             );
    1621             : 
    1622           1 :         }
    1623             : 
    1624           1 :         void append_001_005()
    1625             :         {
    1626           1 :             OString                expVal( kTestStr7 );
    1627           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    1628           2 :             OString                input2( kTestStr7 );
    1629             : 
    1630           1 :             aStrBuf.append( input2 );
    1631             : 
    1632           2 :             CPPUNIT_ASSERT_MESSAGE
    1633             :             (
    1634             :                 "Appends the string(length less than 16) to the string buffer arrOUS[1]",
    1635             :                 aStrBuf.getStr()== expVal &&
    1636             :                     aStrBuf.getLength() == expVal.getLength()
    1637           2 :             );
    1638             : 
    1639           1 :         }
    1640             : 
    1641           1 :         void append_001_006()
    1642             :         {
    1643           1 :             OString                expVal( kTestStr2 );
    1644           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    1645           2 :             OString                input2( kTestStr2 );
    1646             : 
    1647           1 :             aStrBuf.append( input2 );
    1648             : 
    1649           2 :             CPPUNIT_ASSERT_MESSAGE
    1650             :             (
    1651             :                 "Appends the string(length more than 16) to the string buffer arrOUS[1]",
    1652             :                 aStrBuf.getStr()== expVal &&
    1653             :                     aStrBuf.getLength() == expVal.getLength()
    1654           2 :             );
    1655             : 
    1656           1 :         }
    1657             : 
    1658           1 :         void append_001_007()
    1659             :         {
    1660           1 :             OString                expVal( kTestStr1 );
    1661           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    1662           2 :             OString                input2( kTestStr1 );
    1663             : 
    1664           1 :             aStrBuf.append( input2 );
    1665             : 
    1666           2 :             CPPUNIT_ASSERT_MESSAGE
    1667             :             (
    1668             :                 "Appends the string(length equal to 16) to the string buffer arrOUS[1]",
    1669             :                 aStrBuf.getStr()== expVal &&
    1670             :                     aStrBuf.getLength() == expVal.getLength()
    1671           2 :             );
    1672             : 
    1673           1 :         }
    1674             : 
    1675           1 :         void append_001_008()
    1676             :         {
    1677           1 :             OString                expVal;
    1678           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    1679           2 :             OString                input2;
    1680             : 
    1681           1 :             aStrBuf.append( input2 );
    1682             : 
    1683           2 :             CPPUNIT_ASSERT_MESSAGE
    1684             :             (
    1685             :                 "Appends the string(length equal to 0) to the string buffer arrOUS[1]",
    1686             :                 aStrBuf.getStr()== expVal &&
    1687             :                     aStrBuf.getLength() == expVal.getLength()
    1688           2 :             );
    1689             : 
    1690           1 :         }
    1691             : 
    1692           1 :         void append_001_009()
    1693             :         {
    1694           1 :             OString                expVal( kTestStr7 );
    1695           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    1696           2 :             OString                input2( kTestStr7 );
    1697             : 
    1698           1 :             aStrBuf.append( input2 );
    1699             : 
    1700           2 :             CPPUNIT_ASSERT_MESSAGE
    1701             :             (
    1702             :                 "Appends the string(length less than 16) to the string buffer arrOUS[2]",
    1703             :                 aStrBuf.getStr()== expVal &&
    1704             :                     aStrBuf.getLength() == expVal.getLength()
    1705           2 :             );
    1706             : 
    1707           1 :         }
    1708             : 
    1709           1 :         void append_001_010()
    1710             :         {
    1711           1 :             OString                expVal( kTestStr2 );
    1712           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    1713           2 :             OString                input2( kTestStr2 );
    1714             : 
    1715           1 :             aStrBuf.append( input2 );
    1716             : 
    1717           2 :             CPPUNIT_ASSERT_MESSAGE
    1718             :             (
    1719             :                 "Appends the string(length more than 16) to the string buffer arrOUS[2]",
    1720             :                 aStrBuf.getStr()== expVal &&
    1721             :                     aStrBuf.getLength() == expVal.getLength()
    1722           2 :             );
    1723             : 
    1724           1 :         }
    1725             : 
    1726           1 :         void append_001_011()
    1727             :         {
    1728           1 :             OString                expVal( kTestStr1 );
    1729           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    1730           2 :             OString                input2( kTestStr1 );
    1731             : 
    1732           1 :             aStrBuf.append( input2 );
    1733             : 
    1734           2 :             CPPUNIT_ASSERT_MESSAGE
    1735             :             (
    1736             :                 "Appends the string(length equal to 16) to the string buffer arrOUS[2]",
    1737             :                 aStrBuf.getStr()== expVal &&
    1738             :                     aStrBuf.getLength() == expVal.getLength()
    1739           2 :             );
    1740             : 
    1741           1 :         }
    1742             : 
    1743           1 :         void append_001_012()
    1744             :         {
    1745           1 :             OString                expVal;
    1746           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    1747           2 :             OString                input2;
    1748             : 
    1749           1 :             aStrBuf.append( input2 );
    1750             : 
    1751           2 :             CPPUNIT_ASSERT_MESSAGE
    1752             :             (
    1753             :                 "Appends the string(length equal to 0) to the string buffer arrOUS[2]",
    1754             :                 aStrBuf.getStr()== expVal &&
    1755             :                     aStrBuf.getLength() == expVal.getLength()
    1756           2 :             );
    1757             : 
    1758           1 :         }
    1759             : 
    1760           1 :         void append_001_013()
    1761             :         {
    1762           1 :             OString                expVal( kTestStr7 );
    1763           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    1764           2 :             OString                input2( kTestStr7 );
    1765             : 
    1766           1 :             aStrBuf.append( input2 );
    1767             : 
    1768           2 :             CPPUNIT_ASSERT_MESSAGE
    1769             :             (
    1770             :                 "Appends the string(length less than 16) to the string buffer arrOUS[3]",
    1771             :                 aStrBuf.getStr()== expVal &&
    1772             :                     aStrBuf.getLength() == expVal.getLength()
    1773           2 :             );
    1774             : 
    1775           1 :         }
    1776             : 
    1777           1 :         void append_001_014()
    1778             :         {
    1779           1 :             OString                expVal( kTestStr2 );
    1780           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    1781           2 :             OString                input2( kTestStr2 );
    1782             : 
    1783           1 :             aStrBuf.append( input2 );
    1784             : 
    1785           2 :             CPPUNIT_ASSERT_MESSAGE
    1786             :             (
    1787             :                 "Appends the string(length more than 16) to the string buffer arrOUS[3]",
    1788             :                 aStrBuf.getStr()== expVal &&
    1789             :                     aStrBuf.getLength() == expVal.getLength()
    1790           2 :             );
    1791             : 
    1792           1 :         }
    1793             : 
    1794           1 :         void append_001_015()
    1795             :         {
    1796           1 :             OString                expVal( kTestStr1 );
    1797           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    1798           2 :             OString                input2( kTestStr1 );
    1799             : 
    1800           1 :             aStrBuf.append( input2 );
    1801             : 
    1802           2 :             CPPUNIT_ASSERT_MESSAGE
    1803             :             (
    1804             :                 "Appends the string(length equal to 16) to the string buffer arrOUS[3]",
    1805             :                 aStrBuf.getStr()== expVal &&
    1806             :                     aStrBuf.getLength() == expVal.getLength()
    1807           2 :             );
    1808             : 
    1809           1 :         }
    1810             : 
    1811           1 :         void append_001_016()
    1812             :         {
    1813           1 :             OString                expVal;
    1814           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    1815           2 :             OString                input2;
    1816             : 
    1817           1 :             aStrBuf.append( input2 );
    1818             : 
    1819           2 :             CPPUNIT_ASSERT_MESSAGE
    1820             :             (
    1821             :                 "Appends the string(length equal to 0) to the string buffer arrOUS[3]",
    1822             :                 aStrBuf.getStr()== expVal &&
    1823             :                     aStrBuf.getLength() == expVal.getLength()
    1824           2 :             );
    1825             : 
    1826           1 :         }
    1827             : 
    1828           1 :         void append_001_017()
    1829             :         {
    1830           1 :             OString                expVal( kTestStr29 );
    1831           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    1832           2 :             OString                input2( kTestStr38 );
    1833             : 
    1834           1 :             aStrBuf.append( input2 );
    1835             : 
    1836           2 :             CPPUNIT_ASSERT_MESSAGE
    1837             :             (
    1838             :                 "Appends the string(length less than 16) to the string buffer arrOUS[4]",
    1839             :                 aStrBuf.getStr()== expVal &&
    1840             :                     aStrBuf.getLength() == expVal.getLength()
    1841           2 :             );
    1842             : 
    1843           1 :         }
    1844             : 
    1845           1 :         void append_001_018()
    1846             :         {
    1847           1 :             OString                expVal( kTestStr39 );
    1848           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    1849           2 :             OString                input2( kTestStr17 );
    1850             : 
    1851           1 :             aStrBuf.append( input2 );
    1852             : 
    1853           2 :             CPPUNIT_ASSERT_MESSAGE
    1854             :             (
    1855             :                 "Appends the string(length more than 16) to the string buffer arrOUS[4]",
    1856             :                 aStrBuf.getStr()== expVal &&
    1857             :                     aStrBuf.getLength() == expVal.getLength()
    1858           2 :             );
    1859             : 
    1860           1 :         }
    1861             : 
    1862           1 :         void append_001_019()
    1863             :         {
    1864           1 :             OString                expVal( kTestStr40 );
    1865           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    1866           2 :             OString                input2( kTestStr31 );
    1867             : 
    1868           1 :             aStrBuf.append( input2 );
    1869             : 
    1870           2 :             CPPUNIT_ASSERT_MESSAGE
    1871             :             (
    1872             :                 "Appends the string(length equal to 16) to the string buffer arrOUS[4]",
    1873             :                 aStrBuf.getStr()== expVal &&
    1874             :                     aStrBuf.getLength() == expVal.getLength()
    1875           2 :             );
    1876             : 
    1877           1 :         }
    1878             : 
    1879           1 :         void append_001_020()
    1880             :         {
    1881           1 :             OString                expVal( kTestStr28 );
    1882           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    1883           2 :             OString                input2;
    1884             : 
    1885           1 :             aStrBuf.append( input2 );
    1886             : 
    1887           2 :             CPPUNIT_ASSERT_MESSAGE
    1888             :             (
    1889             :                 "Appends the string(length equal to 0) to the string buffer arrOUS[4]",
    1890             :                 aStrBuf.getStr()== expVal &&
    1891             :                     aStrBuf.getLength() == expVal.getLength()
    1892           2 :             );
    1893             : 
    1894           1 :         }
    1895             : 
    1896           1 :         void append_null()
    1897             :         {
    1898           1 :             ::rtl::OStringBuffer   aStrBuf("hello world");
    1899             : 
    1900           1 :             aStrBuf.append('\0');
    1901           1 :             aStrBuf.append('\1');
    1902           1 :             aStrBuf.append('\2');
    1903             : 
    1904           1 :             aStrBuf.append("hello world");
    1905             : 
    1906           2 :             CPPUNIT_ASSERT_MESSAGE
    1907             :             (
    1908             :                 "should be able to append nulls",
    1909             :                 aStrBuf.getLength() ==
    1910             :                     2 * RTL_CONSTASCII_LENGTH("hello world") + 3 &&
    1911             :                 aStrBuf[RTL_CONSTASCII_LENGTH("hello world")] == 0 &&
    1912             :                 aStrBuf[RTL_CONSTASCII_LENGTH("hello world")]+1 == 1 &&
    1913             :                 aStrBuf[RTL_CONSTASCII_LENGTH("hello world")]+2 == 2
    1914           2 :             );
    1915             : 
    1916           1 :         }
    1917             : 
    1918           2 :         CPPUNIT_TEST_SUITE( append_001 );
    1919           1 :         CPPUNIT_TEST( append_001_001 );
    1920           1 :         CPPUNIT_TEST( append_001_002 );
    1921           1 :         CPPUNIT_TEST( append_001_003 );
    1922           1 :         CPPUNIT_TEST( append_001_004 );
    1923           1 :         CPPUNIT_TEST( append_001_005 );
    1924           1 :         CPPUNIT_TEST( append_001_006 );
    1925           1 :         CPPUNIT_TEST( append_001_007 );
    1926           1 :         CPPUNIT_TEST( append_001_008 );
    1927           1 :         CPPUNIT_TEST( append_001_009 );
    1928           1 :         CPPUNIT_TEST( append_001_010 );
    1929           1 :         CPPUNIT_TEST( append_001_011 );
    1930           1 :         CPPUNIT_TEST( append_001_012 );
    1931           1 :         CPPUNIT_TEST( append_001_013 );
    1932           1 :         CPPUNIT_TEST( append_001_014 );
    1933           1 :         CPPUNIT_TEST( append_001_015 );
    1934           1 :         CPPUNIT_TEST( append_001_016 );
    1935           1 :         CPPUNIT_TEST( append_001_017 );
    1936           1 :         CPPUNIT_TEST( append_001_018 );
    1937           1 :         CPPUNIT_TEST( append_001_019 );
    1938           1 :         CPPUNIT_TEST( append_001_020 );
    1939           1 :         CPPUNIT_TEST( append_null );
    1940           2 :         CPPUNIT_TEST_SUITE_END();
    1941             :     };
    1942             : 
    1943          60 :     class  append_002 : public CppUnit::TestFixture
    1944             :     {
    1945             :         OString* arrOUS[5];
    1946             : 
    1947             :     public:
    1948          20 :         void setUp() SAL_OVERRIDE
    1949             :         {
    1950          20 :             arrOUS[0] = new OString( kTestStr7 );
    1951          20 :             arrOUS[1] = new OString(  );
    1952          20 :             arrOUS[2] = new OString( kTestStr25 );
    1953          20 :             arrOUS[3] = new OString( "" );
    1954          20 :             arrOUS[4] = new OString( kTestStr28 );
    1955             : 
    1956          20 :         }
    1957             : 
    1958          20 :         void tearDown() SAL_OVERRIDE
    1959             :         {
    1960          20 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
    1961          20 :             delete arrOUS[3]; delete arrOUS[4];
    1962          20 :         }
    1963             : 
    1964           1 :         void append_002_001()
    1965             :         {
    1966           1 :             OString                expVal( kTestStr1 );
    1967           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    1968           1 :             const sal_Char*        input = kTestStr8;
    1969             : 
    1970           1 :             aStrBuf.append( input );
    1971             : 
    1972           2 :             CPPUNIT_ASSERT_MESSAGE
    1973             :             (
    1974             :                 "Appends the string(length less than 16) to the string buffer arrOUS[0]",
    1975             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    1976           2 :             );
    1977             : 
    1978           1 :         }
    1979             : 
    1980           1 :         void append_002_002()
    1981             :         {
    1982           1 :             OString                expVal( kTestStr2 );
    1983           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    1984           1 :             const sal_Char*        input = kTestStr36;
    1985             : 
    1986           1 :             aStrBuf.append( input );
    1987             : 
    1988           2 :             CPPUNIT_ASSERT_MESSAGE
    1989             :             (
    1990             :                 "Appends the string(length more than 16) to the string buffer arrOUS[0]",
    1991             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    1992           2 :             );
    1993             : 
    1994           1 :         }
    1995             : 
    1996           1 :         void append_002_003()
    1997             :         {
    1998           1 :             OString                expVal( kTestStr37 );
    1999           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    2000           1 :             const sal_Char*        input = kTestStr23;
    2001             : 
    2002           1 :             aStrBuf.append( input );
    2003             : 
    2004           2 :             CPPUNIT_ASSERT_MESSAGE
    2005             :             (
    2006             :                 "Appends the string(length equal to 16) to the string buffer arrOUS[0]",
    2007             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2008           2 :             );
    2009             : 
    2010           1 :         }
    2011             : 
    2012           1 :         void append_002_004()
    2013             :         {
    2014           1 :             OString                expVal( kTestStr7 );
    2015           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    2016           1 :             const sal_Char*        input = kTestStr25;
    2017             : 
    2018           1 :             aStrBuf.append( input );
    2019             : 
    2020           2 :             CPPUNIT_ASSERT_MESSAGE
    2021             :             (
    2022             :                 "Appends the string(length equal to 0) to the string buffer arrOUS[0]",
    2023             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2024           2 :             );
    2025             : 
    2026           1 :         }
    2027             : 
    2028           1 :         void append_002_005()
    2029             :         {
    2030           1 :             OString                expVal( kTestStr7 );
    2031           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    2032           1 :             const sal_Char*        input = kTestStr7;
    2033             : 
    2034           1 :             aStrBuf.append( input );
    2035             : 
    2036           2 :             CPPUNIT_ASSERT_MESSAGE
    2037             :             (
    2038             :                 "Appends the string(length less than 16) to the string buffer arrOUS[1]",
    2039             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2040           2 :             );
    2041             : 
    2042           1 :         }
    2043             : 
    2044           1 :         void append_002_006()
    2045             :         {
    2046           1 :             OString                expVal( kTestStr2 );
    2047           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    2048           1 :             const sal_Char*        input = kTestStr2;
    2049             : 
    2050           1 :             aStrBuf.append( input );
    2051             : 
    2052           2 :             CPPUNIT_ASSERT_MESSAGE
    2053             :             (
    2054             :                 "Appends the string(length more than 16) to the string buffer arrOUS[1]",
    2055             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2056           2 :             );
    2057             : 
    2058           1 :         }
    2059             : 
    2060           1 :         void append_002_007()
    2061             :         {
    2062           1 :             OString                expVal( kTestStr1 );
    2063           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    2064           1 :             const sal_Char*        input = kTestStr1;
    2065             : 
    2066           1 :             aStrBuf.append( input );
    2067             : 
    2068           2 :             CPPUNIT_ASSERT_MESSAGE
    2069             :             (
    2070             :                 "Appends the string(length equal to 16) to the string buffer arrOUS[1]",
    2071             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2072           2 :             );
    2073             : 
    2074           1 :         }
    2075             : 
    2076           1 :         void append_002_008()
    2077             :         {
    2078           1 :             OString                expVal;
    2079           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    2080           1 :             const sal_Char*        input = kTestStr25;
    2081             : 
    2082           1 :             aStrBuf.append( input );
    2083             : 
    2084           2 :             CPPUNIT_ASSERT_MESSAGE
    2085             :             (
    2086             :                 "Appends the string(length equal to 0) to the string buffer arrOUS[1]",
    2087             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2088           2 :             );
    2089             : 
    2090           1 :         }
    2091             : 
    2092           1 :         void append_002_009()
    2093             :         {
    2094           1 :             OString                expVal( kTestStr7 );
    2095           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    2096           1 :             const sal_Char*        input = kTestStr7;
    2097             : 
    2098           1 :             aStrBuf.append( input );
    2099             : 
    2100           2 :             CPPUNIT_ASSERT_MESSAGE
    2101             :             (
    2102             :                 "Appends the string(length less than 16) to the string buffer arrOUS[2]",
    2103             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2104           2 :             );
    2105             : 
    2106           1 :         }
    2107             : 
    2108           1 :         void append_002_010()
    2109             :         {
    2110           1 :             OString                expVal( kTestStr2 );
    2111           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    2112           1 :             const sal_Char*        input = kTestStr2;
    2113             : 
    2114           1 :             aStrBuf.append( input );
    2115             : 
    2116           2 :             CPPUNIT_ASSERT_MESSAGE
    2117             :             (
    2118             :                 "Appends the string(length more than 16) to the string buffer arrOUS[2]",
    2119             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2120           2 :             );
    2121             : 
    2122           1 :         }
    2123             : 
    2124           1 :         void append_002_011()
    2125             :         {
    2126           1 :             OString                expVal( kTestStr1 );
    2127           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    2128           1 :             const sal_Char*        input = kTestStr1;
    2129             : 
    2130           1 :             aStrBuf.append( input );
    2131             : 
    2132           2 :             CPPUNIT_ASSERT_MESSAGE
    2133             :             (
    2134             :                 "Appends the string(length equal to 16) to the string buffer arrOUS[2]",
    2135             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2136           2 :             );
    2137             : 
    2138           1 :         }
    2139             : 
    2140           1 :         void append_002_012()
    2141             :         {
    2142           1 :             OString                expVal;
    2143           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    2144           1 :             const sal_Char*        input = kTestStr25;
    2145             : 
    2146           1 :             aStrBuf.append( input );
    2147             : 
    2148           2 :             CPPUNIT_ASSERT_MESSAGE
    2149             :             (
    2150             :                 "Appends the string(length equal to 0) to the string buffer arrOUS[2]",
    2151             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2152           2 :             );
    2153             : 
    2154           1 :         }
    2155             : 
    2156           1 :         void append_002_013()
    2157             :         {
    2158           1 :             OString                expVal( kTestStr7 );
    2159           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    2160           1 :             const sal_Char*        input = kTestStr7;
    2161             : 
    2162           1 :             aStrBuf.append( input );
    2163             : 
    2164           2 :             CPPUNIT_ASSERT_MESSAGE
    2165             :             (
    2166             :                 "Appends the string(length less than 16) to the string buffer arrOUS[3]",
    2167             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2168           2 :             );
    2169             : 
    2170           1 :         }
    2171             : 
    2172           1 :         void append_002_014()
    2173             :         {
    2174           1 :             OString                expVal( kTestStr2 );
    2175           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    2176           1 :             const sal_Char*        input = kTestStr2;
    2177             : 
    2178           1 :             aStrBuf.append( input );
    2179             : 
    2180           2 :             CPPUNIT_ASSERT_MESSAGE
    2181             :             (
    2182             :                 "Appends the string(length more than 16) to the string buffer arrOUS[3]",
    2183             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2184           2 :             );
    2185             : 
    2186           1 :         }
    2187             : 
    2188           1 :         void append_002_015()
    2189             :         {
    2190           1 :             OString                expVal( kTestStr1 );
    2191           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    2192           1 :             const sal_Char*        input = kTestStr1;
    2193             : 
    2194           1 :             aStrBuf.append( input );
    2195             : 
    2196           2 :             CPPUNIT_ASSERT_MESSAGE
    2197             :             (
    2198             :                 "Appends the string(length equal to 16) to the string buffer arrOUS[3]",
    2199             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2200           2 :             );
    2201             : 
    2202           1 :         }
    2203             : 
    2204           1 :         void append_002_016()
    2205             :         {
    2206           1 :             OString                expVal;
    2207           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    2208           1 :             const sal_Char*        input = kTestStr25;
    2209             : 
    2210           1 :             aStrBuf.append( input );
    2211             : 
    2212           2 :             CPPUNIT_ASSERT_MESSAGE
    2213             :             (
    2214             :                 "Appends the string(length equal to 0) to the string buffer arrOUS[3]",
    2215             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2216           2 :             );
    2217             : 
    2218           1 :         }
    2219             : 
    2220           1 :         void append_002_017()
    2221             :         {
    2222           1 :             OString                expVal( kTestStr29 );
    2223           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    2224           1 :             const sal_Char*        input = kTestStr38;
    2225             : 
    2226           1 :             aStrBuf.append( input );
    2227             : 
    2228           2 :             CPPUNIT_ASSERT_MESSAGE
    2229             :             (
    2230             :                 "Appends the string(length less than 16) to the string buffer arrOUS[4]",
    2231             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2232           2 :             );
    2233             : 
    2234           1 :         }
    2235             : 
    2236           1 :         void append_002_018()
    2237             :         {
    2238           1 :             OString                expVal( kTestStr39 );
    2239           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    2240           1 :             const sal_Char*        input = kTestStr17;
    2241             : 
    2242           1 :             aStrBuf.append( input );
    2243             : 
    2244           2 :             CPPUNIT_ASSERT_MESSAGE
    2245             :             (
    2246             :                 "Appends the string(length more than 16) to the string buffer arrOUS[4]",
    2247             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2248           2 :             );
    2249             : 
    2250           1 :         }
    2251             : 
    2252           1 :         void append_002_019()
    2253             :         {
    2254           1 :             OString                expVal( kTestStr40 );
    2255           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    2256           1 :             const sal_Char*        input = kTestStr31;
    2257             : 
    2258           1 :             aStrBuf.append( input );
    2259             : 
    2260           2 :             CPPUNIT_ASSERT_MESSAGE
    2261             :             (
    2262             :                 "Appends the string(length equal to 16) to the string buffer arrOUS[4]",
    2263             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2264           2 :             );
    2265             : 
    2266           1 :         }
    2267             : 
    2268           1 :         void append_002_020()
    2269             :         {
    2270           1 :             OString                expVal( kTestStr28 );
    2271           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    2272           1 :             const sal_Char*        input = kTestStr25;
    2273             : 
    2274           1 :             aStrBuf.append( input );
    2275             : 
    2276           2 :             CPPUNIT_ASSERT_MESSAGE
    2277             :             (
    2278             :                 "Appends the string(length equal to 0) to the string buffer arrOUS[4]",
    2279             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2280           2 :             );
    2281             : 
    2282           1 :         }
    2283             : 
    2284             : #ifdef WITH_CORE
    2285             :         void append_002_021()
    2286             :         {
    2287             :             OString                expVal;
    2288             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
    2289             :             const sal_Char*        input = kTestStr25;
    2290             : 
    2291             :             aStrBuf.append( input );
    2292             : 
    2293             :             CPPUNIT_ASSERT_MESSAGE
    2294             :             (
    2295             :                 "Appends the string(length equal to 0) to the string buffer(with INT_MAX)",
    2296             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2297             :             );
    2298             : 
    2299             :         }
    2300             : #endif
    2301             : 
    2302           2 :         CPPUNIT_TEST_SUITE( append_002 );
    2303           1 :         CPPUNIT_TEST( append_002_001 );
    2304           1 :         CPPUNIT_TEST( append_002_002 );
    2305           1 :         CPPUNIT_TEST( append_002_003 );
    2306           1 :         CPPUNIT_TEST( append_002_004 );
    2307           1 :         CPPUNIT_TEST( append_002_005 );
    2308           1 :         CPPUNIT_TEST( append_002_006 );
    2309           1 :         CPPUNIT_TEST( append_002_007 );
    2310           1 :         CPPUNIT_TEST( append_002_008 );
    2311           1 :         CPPUNIT_TEST( append_002_009 );
    2312           1 :         CPPUNIT_TEST( append_002_010 );
    2313           1 :         CPPUNIT_TEST( append_002_011 );
    2314           1 :         CPPUNIT_TEST( append_002_012 );
    2315           1 :         CPPUNIT_TEST( append_002_013 );
    2316           1 :         CPPUNIT_TEST( append_002_014 );
    2317           1 :         CPPUNIT_TEST( append_002_015 );
    2318           1 :         CPPUNIT_TEST( append_002_016 );
    2319           1 :         CPPUNIT_TEST( append_002_017 );
    2320           1 :         CPPUNIT_TEST( append_002_018 );
    2321           1 :         CPPUNIT_TEST( append_002_019 );
    2322           1 :         CPPUNIT_TEST( append_002_020 );
    2323             : #ifdef WITH_CORE
    2324             :         CPPUNIT_TEST( append_002_021 );
    2325             : #endif
    2326           2 :         CPPUNIT_TEST_SUITE_END();
    2327             :     };
    2328             : 
    2329          60 :     class  append_003 : public CppUnit::TestFixture
    2330             :     {
    2331             :         OString* arrOUS[5];
    2332             : 
    2333             :     public:
    2334          20 :         void setUp() SAL_OVERRIDE
    2335             :         {
    2336          20 :             arrOUS[0] = new OString( kTestStr7 );
    2337          20 :             arrOUS[1] = new OString(  );
    2338          20 :             arrOUS[2] = new OString( kTestStr25 );
    2339          20 :             arrOUS[3] = new OString( "" );
    2340          20 :             arrOUS[4] = new OString( kTestStr28 );
    2341             : 
    2342          20 :         }
    2343             : 
    2344          20 :         void tearDown() SAL_OVERRIDE
    2345             :         {
    2346          20 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
    2347          20 :             delete arrOUS[3]; delete arrOUS[4];
    2348          20 :         }
    2349             : 
    2350           1 :         void append_003_001()
    2351             :         {
    2352           1 :             OString                expVal( kTestStr1 );
    2353           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    2354           1 :             const sal_Char*        input1 = kTestStr36;
    2355           1 :             sal_Int32              input2 = 12;
    2356             : 
    2357           1 :             aStrBuf.append( input1, input2 );
    2358             : 
    2359           2 :             CPPUNIT_ASSERT_MESSAGE
    2360             :             (
    2361             :                 "Appends the string(length less than 16) to the string buffer arrOUS[0]",
    2362             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2363           2 :             );
    2364             : 
    2365           1 :         }
    2366             : 
    2367           1 :         void append_003_002()
    2368             :         {
    2369           1 :             OString                expVal( kTestStr2 );
    2370           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    2371           1 :             const sal_Char*        input1 = kTestStr36;
    2372           1 :             sal_Int32              input2 = 28;
    2373             : 
    2374           1 :             aStrBuf.append( input1, input2 );
    2375             : 
    2376           2 :             CPPUNIT_ASSERT_MESSAGE
    2377             :             (
    2378             :                 "Appends the string(length more than 16) to the string buffer arrOUS[0]",
    2379             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2380           2 :             );
    2381             : 
    2382           1 :         }
    2383             : 
    2384           1 :         void append_003_003()
    2385             :         {
    2386           1 :             OString                expVal( kTestStr37 );
    2387           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    2388           1 :             const sal_Char*        input1 = kTestStr23;
    2389           1 :             sal_Int32              input2 = 16;
    2390             : 
    2391           1 :             aStrBuf.append( input1, input2 );
    2392             : 
    2393           2 :             CPPUNIT_ASSERT_MESSAGE
    2394             :             (
    2395             :                 "Appends the string(length equal to 16) to the string buffer arrOUS[0]",
    2396             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2397           2 :             );
    2398             : 
    2399           1 :         }
    2400             : 
    2401           1 :         void append_003_004()
    2402             :         {
    2403           1 :             OString                expVal( kTestStr7 );
    2404           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    2405           1 :             const sal_Char*        input1 = kTestStr2;
    2406           1 :             sal_Int32              input2 = 0;
    2407             : 
    2408           1 :             aStrBuf.append( input1, input2 );
    2409             : 
    2410           2 :             CPPUNIT_ASSERT_MESSAGE
    2411             :             (
    2412             :                 "Appends the string(length equal to 0) to the string buffer arrOUS[0]",
    2413             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2414           2 :             );
    2415             : 
    2416           1 :         }
    2417             : 
    2418           1 :         void append_003_006()
    2419             :         {
    2420           1 :             OString                expVal( kTestStr7 );
    2421           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    2422           1 :             const sal_Char*        input1 = kTestStr2;
    2423           1 :             sal_Int32              input2 = 4;
    2424             : 
    2425           1 :             aStrBuf.append( input1, input2 );
    2426             : 
    2427           2 :             CPPUNIT_ASSERT_MESSAGE
    2428             :             (
    2429             :                 "Appends the string(length less than 16) to the string buffer arrOUS[1]",
    2430             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2431           2 :             );
    2432             : 
    2433           1 :         }
    2434             : 
    2435           1 :         void append_003_007()
    2436             :         {
    2437           1 :             OString                expVal( kTestStr2 );
    2438           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    2439           1 :             const sal_Char*        input1 = kTestStr2;
    2440           1 :             sal_Int32              input2 = 32;
    2441             : 
    2442           1 :             aStrBuf.append( input1, input2 );
    2443             : 
    2444           2 :             CPPUNIT_ASSERT_MESSAGE
    2445             :             (
    2446             :                 "Appends the string(length more than 16) to the string buffer arrOUS[1]",
    2447             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2448           2 :             );
    2449             : 
    2450           1 :         }
    2451             : 
    2452           1 :         void append_003_008()
    2453             :         {
    2454           1 :             OString                expVal( kTestStr1 );
    2455           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    2456           1 :             const sal_Char*        input1 = kTestStr2;
    2457           1 :             sal_Int32              input2 = 16;
    2458             : 
    2459           1 :             aStrBuf.append( input1, input2 );
    2460             : 
    2461           2 :             CPPUNIT_ASSERT_MESSAGE
    2462             :             (
    2463             :                 "Appends the string(length equal to 16) to the string buffer arrOUS[1]",
    2464             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2465           2 :             );
    2466             : 
    2467           1 :         }
    2468             : 
    2469           1 :         void append_003_009()
    2470             :         {
    2471           1 :             OString                expVal;
    2472           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    2473           1 :             const sal_Char*        input1 = kTestStr2;
    2474           1 :             sal_Int32              input2 = 0;
    2475             : 
    2476           1 :             aStrBuf.append( input1, input2 );
    2477             : 
    2478           2 :             CPPUNIT_ASSERT_MESSAGE
    2479             :             (
    2480             :                 "Appends the string(length equal to 0) to the string buffer arrOUS[1]",
    2481             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2482           2 :             );
    2483             : 
    2484           1 :         }
    2485             : 
    2486           1 :         void append_003_011()
    2487             :         {
    2488           1 :             OString                expVal( kTestStr7 );
    2489           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    2490           1 :             const sal_Char*        input1 = kTestStr2;
    2491           1 :             sal_Int32              input2 = 4;
    2492             : 
    2493           1 :             aStrBuf.append( input1, input2 );
    2494             : 
    2495           2 :             CPPUNIT_ASSERT_MESSAGE
    2496             :             (
    2497             :                 "Appends the string(length less than 16) to the string buffer arrOUS[2]",
    2498             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2499           2 :             );
    2500             : 
    2501           1 :         }
    2502             : 
    2503           1 :         void append_003_012()
    2504             :         {
    2505           1 :             OString                expVal( kTestStr2 );
    2506           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    2507           1 :             const sal_Char*        input1 = kTestStr2;
    2508           1 :             sal_Int32              input2 = 32;
    2509             : 
    2510           1 :             aStrBuf.append( input1, input2 );
    2511             : 
    2512           2 :             CPPUNIT_ASSERT_MESSAGE
    2513             :             (
    2514             :                 "Appends the string(length more than 16) to the string buffer arrOUS[2]",
    2515             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2516           2 :             );
    2517             : 
    2518           1 :         }
    2519             : 
    2520           1 :         void append_003_013()
    2521             :         {
    2522           1 :             OString                expVal( kTestStr1 );
    2523           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    2524           1 :             const sal_Char*        input1 = kTestStr2;
    2525           1 :             sal_Int32              input2 = 16;
    2526             : 
    2527           1 :             aStrBuf.append( input1, input2 );
    2528             : 
    2529           2 :             CPPUNIT_ASSERT_MESSAGE
    2530             :             (
    2531             :                 "Appends the string(length equal to 16) to the string buffer arrOUS[2]",
    2532             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2533           2 :             );
    2534             : 
    2535           1 :         }
    2536             : 
    2537           1 :         void append_003_014()
    2538             :         {
    2539           1 :             OString                expVal;
    2540           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    2541           1 :             const sal_Char*        input1 = kTestStr2;
    2542           1 :             sal_Int32              input2 = 0;
    2543             : 
    2544           1 :             aStrBuf.append( input1, input2 );
    2545             : 
    2546           2 :             CPPUNIT_ASSERT_MESSAGE
    2547             :             (
    2548             :                 "Appends the string(length equal to 0) to the string buffer arrOUS[2]",
    2549             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2550           2 :             );
    2551             : 
    2552           1 :         }
    2553             : 
    2554           1 :         void append_003_016()
    2555             :         {
    2556           1 :             OString                expVal( kTestStr7 );
    2557           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    2558           1 :             const sal_Char*        input1 = kTestStr2;
    2559           1 :             sal_Int32              input2 = 4;
    2560             : 
    2561           1 :             aStrBuf.append( input1, input2 );
    2562             : 
    2563           2 :             CPPUNIT_ASSERT_MESSAGE
    2564             :             (
    2565             :                 "Appends the string(length less than 16) to the string buffer arrOUS[3]",
    2566             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2567           2 :             );
    2568             : 
    2569           1 :         }
    2570             : 
    2571           1 :         void append_003_017()
    2572             :         {
    2573           1 :             OString                expVal( kTestStr2 );
    2574           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    2575           1 :             const sal_Char*        input1 = kTestStr2;
    2576           1 :             sal_Int32              input2 = 32;
    2577             : 
    2578           1 :             aStrBuf.append( input1, input2 );
    2579             : 
    2580           2 :             CPPUNIT_ASSERT_MESSAGE
    2581             :             (
    2582             :                 "Appends the string(length more than 16) to the string buffer arrOUS[3]",
    2583             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2584           2 :             );
    2585             : 
    2586           1 :         }
    2587             : 
    2588           1 :         void append_003_018()
    2589             :         {
    2590           1 :             OString                expVal( kTestStr1 );
    2591           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    2592           1 :             const sal_Char*        input1 = kTestStr2;
    2593           1 :             sal_Int32              input2 = 16;
    2594             : 
    2595           1 :             aStrBuf.append( input1, input2 );
    2596             : 
    2597           2 :             CPPUNIT_ASSERT_MESSAGE
    2598             :             (
    2599             :                 "Appends the string(length equal to 16) to the string buffer arrOUS[3]",
    2600             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2601           2 :             );
    2602             : 
    2603           1 :         }
    2604             : 
    2605           1 :         void append_003_019()
    2606             :         {
    2607           1 :             OString                expVal;
    2608           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    2609           1 :             const sal_Char*        input1 = kTestStr2;
    2610           1 :             sal_Int32              input2 = 0;
    2611             : 
    2612           1 :             aStrBuf.append( input1, input2 );
    2613             : 
    2614           2 :             CPPUNIT_ASSERT_MESSAGE
    2615             :             (
    2616             :                 "Appends the string(length equal to 0) to the string buffer arrOUS[3]",
    2617             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2618           2 :             );
    2619             : 
    2620           1 :         }
    2621             : 
    2622           1 :         void append_003_021()
    2623             :         {
    2624           1 :             OString                expVal( kTestStr29 );
    2625           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    2626           1 :             const sal_Char*        input1 = kTestStr38;
    2627           1 :             sal_Int32              input2 = 7;
    2628             : 
    2629           1 :             aStrBuf.append( input1, input2 );
    2630             : 
    2631           2 :             CPPUNIT_ASSERT_MESSAGE
    2632             :             (
    2633             :                 "Appends the string(length less than 16) to the string buffer arrOUS[4]",
    2634             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2635           2 :             );
    2636             : 
    2637           1 :         }
    2638             : 
    2639           1 :         void append_003_022()
    2640             :         {
    2641           1 :             OString                expVal( kTestStr39 );
    2642           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    2643           1 :             const sal_Char*        input1 = kTestStr17;
    2644           1 :             sal_Int32              input2 = 22;
    2645             : 
    2646           1 :             aStrBuf.append( input1, input2 );
    2647             : 
    2648           2 :             CPPUNIT_ASSERT_MESSAGE
    2649             :             (
    2650             :                 "Appends the string(length more than 16) to the string buffer arrOUS[4]",
    2651             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2652           2 :             );
    2653             : 
    2654           1 :         }
    2655             : 
    2656           1 :         void append_003_023()
    2657             :         {
    2658           1 :             OString                expVal( kTestStr40 );
    2659           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    2660           1 :             const sal_Char*        input1 = kTestStr31;
    2661           1 :             sal_Int32              input2 = 16;
    2662             : 
    2663           1 :             aStrBuf.append( input1, input2 );
    2664             : 
    2665           2 :             CPPUNIT_ASSERT_MESSAGE
    2666             :             (
    2667             :                 "Appends the string(length equal to 16) to the string buffer arrOUS[4]",
    2668             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2669           2 :             );
    2670             : 
    2671           1 :         }
    2672             : 
    2673           1 :         void append_003_024()
    2674             :         {
    2675           1 :             OString                expVal( kTestStr28 );
    2676           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    2677           1 :             const sal_Char*        input1 = kTestStr2;
    2678           1 :             sal_Int32              input2 = 0;
    2679             : 
    2680           1 :             aStrBuf.append( input1, input2 );
    2681             : 
    2682           2 :             CPPUNIT_ASSERT_MESSAGE
    2683             :             (
    2684             :                 "Appends the string(length equal to 0) to the string buffer arrOUS[4]",
    2685             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2686           2 :             );
    2687             : 
    2688           1 :         }
    2689             : 
    2690           2 :         CPPUNIT_TEST_SUITE( append_003 );
    2691           1 :         CPPUNIT_TEST( append_003_001 );
    2692           1 :         CPPUNIT_TEST( append_003_002 );
    2693           1 :         CPPUNIT_TEST( append_003_003 );
    2694           1 :         CPPUNIT_TEST( append_003_004 );
    2695           1 :         CPPUNIT_TEST( append_003_006 );
    2696           1 :         CPPUNIT_TEST( append_003_007 );
    2697           1 :         CPPUNIT_TEST( append_003_008 );
    2698           1 :         CPPUNIT_TEST( append_003_009 );
    2699           1 :         CPPUNIT_TEST( append_003_011 );
    2700           1 :         CPPUNIT_TEST( append_003_012 );
    2701           1 :         CPPUNIT_TEST( append_003_013 );
    2702           1 :         CPPUNIT_TEST( append_003_014 );
    2703           1 :         CPPUNIT_TEST( append_003_016 );
    2704           1 :         CPPUNIT_TEST( append_003_017 );
    2705           1 :         CPPUNIT_TEST( append_003_018 );
    2706           1 :         CPPUNIT_TEST( append_003_019 );
    2707           1 :         CPPUNIT_TEST( append_003_021 );
    2708           1 :         CPPUNIT_TEST( append_003_022 );
    2709           1 :         CPPUNIT_TEST( append_003_023 );
    2710           1 :         CPPUNIT_TEST( append_003_024 );
    2711           2 :         CPPUNIT_TEST_SUITE_END();
    2712             :     };
    2713             : 
    2714          30 :     class  append_004 : public CppUnit::TestFixture
    2715             :     {
    2716             :         OString* arrOUS[5];
    2717             : 
    2718             :     public:
    2719          10 :         void setUp() SAL_OVERRIDE
    2720             :         {
    2721          10 :             arrOUS[0] = new OString( kTestStr7 );
    2722          10 :             arrOUS[1] = new OString(  );
    2723          10 :             arrOUS[2] = new OString( kTestStr25 );
    2724          10 :             arrOUS[3] = new OString( "" );
    2725          10 :             arrOUS[4] = new OString( kTestStr28 );
    2726             : 
    2727          10 :         }
    2728             : 
    2729          10 :         void tearDown() SAL_OVERRIDE
    2730             :         {
    2731          10 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
    2732          10 :             delete arrOUS[3]; delete arrOUS[4];
    2733          10 :         }
    2734             : 
    2735           1 :         void append_004_001()
    2736             :         {
    2737           1 :             OString                expVal( kTestStr45 );
    2738           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    2739           1 :             bool               input = true;
    2740             : 
    2741           1 :             aStrBuf.append( input );
    2742             : 
    2743           2 :             CPPUNIT_ASSERT_MESSAGE
    2744             :             (
    2745             :                 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[0]",
    2746             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2747           2 :             );
    2748             : 
    2749           1 :         }
    2750             : 
    2751           1 :         void append_004_002()
    2752             :         {
    2753           1 :             OString                expVal( kTestStr46 );
    2754           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    2755           1 :             bool               input = false;
    2756             : 
    2757           1 :             aStrBuf.append( input );
    2758             : 
    2759           2 :             CPPUNIT_ASSERT_MESSAGE
    2760             :             (
    2761             :                 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[0]",
    2762             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2763           2 :             );
    2764             : 
    2765           1 :         }
    2766             : 
    2767           1 :         void append_004_003()
    2768             :         {
    2769           1 :             OString                expVal( kTestStr47 );
    2770           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    2771           1 :             bool               input = true;
    2772             : 
    2773           1 :             aStrBuf.append( input );
    2774             : 
    2775           2 :             CPPUNIT_ASSERT_MESSAGE
    2776             :             (
    2777             :                 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[1]",
    2778             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2779           2 :             );
    2780             : 
    2781           1 :         }
    2782             : 
    2783           1 :         void append_004_004()
    2784             :         {
    2785           1 :             OString                expVal( kTestStr48 );
    2786           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    2787           1 :             bool               input = false;
    2788             : 
    2789           1 :             aStrBuf.append( input );
    2790             : 
    2791           2 :             CPPUNIT_ASSERT_MESSAGE
    2792             :             (
    2793             :                 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[1]",
    2794             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2795           2 :             );
    2796             : 
    2797           1 :         }
    2798             : 
    2799           1 :         void append_004_005()
    2800             :         {
    2801           1 :             OString                expVal( kTestStr47 );
    2802           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    2803           1 :             bool               input = true;
    2804             : 
    2805           1 :             aStrBuf.append( input );
    2806             : 
    2807           2 :             CPPUNIT_ASSERT_MESSAGE
    2808             :             (
    2809             :                 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[2]",
    2810             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2811           2 :             );
    2812             : 
    2813           1 :         }
    2814             : 
    2815           1 :         void append_004_006()
    2816             :         {
    2817           1 :             OString                expVal( kTestStr48 );
    2818           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    2819           1 :             bool               input = false;
    2820             : 
    2821           1 :             aStrBuf.append( input );
    2822             : 
    2823           2 :             CPPUNIT_ASSERT_MESSAGE
    2824             :             (
    2825             :                 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[2]",
    2826             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2827           2 :             );
    2828             : 
    2829           1 :         }
    2830             : 
    2831           1 :         void append_004_007()
    2832             :         {
    2833           1 :             OString                expVal( kTestStr47 );
    2834           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    2835           1 :             bool               input = true;
    2836             : 
    2837           1 :             aStrBuf.append( input );
    2838             : 
    2839           2 :             CPPUNIT_ASSERT_MESSAGE
    2840             :             (
    2841             :                 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[3]",
    2842             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2843           2 :             );
    2844             : 
    2845           1 :         }
    2846             : 
    2847           1 :         void append_004_008()
    2848             :         {
    2849           1 :             OString                expVal( kTestStr48 );
    2850           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    2851           1 :             bool               input = false;
    2852             : 
    2853           1 :             aStrBuf.append( input );
    2854             : 
    2855           2 :             CPPUNIT_ASSERT_MESSAGE
    2856             :             (
    2857             :                 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[3]",
    2858             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2859           2 :             );
    2860             : 
    2861           1 :         }
    2862             : 
    2863           1 :         void append_004_009()
    2864             :         {
    2865           1 :             OString                expVal( kTestStr49 );
    2866           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    2867           1 :             bool               input = true;
    2868             : 
    2869           1 :             aStrBuf.append( input );
    2870             : 
    2871           2 :             CPPUNIT_ASSERT_MESSAGE
    2872             :             (
    2873             :                 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[4]",
    2874             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2875           2 :             );
    2876             : 
    2877           1 :         }
    2878             : 
    2879           1 :         void append_004_010()
    2880             :         {
    2881           1 :             OString                expVal( kTestStr50 );
    2882           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    2883           1 :             bool               input = false;
    2884             : 
    2885           1 :             aStrBuf.append( input );
    2886             : 
    2887           2 :             CPPUNIT_ASSERT_MESSAGE
    2888             :             (
    2889             :                 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[4]",
    2890             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2891           2 :             );
    2892             : 
    2893           1 :         }
    2894             : 
    2895             : #ifdef WITH_CORE
    2896             :         void append_004_011()
    2897             :         {
    2898             :             OString                expVal( kTestStr47 );
    2899             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
    2900             :             sal_Bool               input = sal_True;
    2901             : 
    2902             :             aStrBuf.append( input );
    2903             : 
    2904             :             CPPUNIT_ASSERT_MESSAGE
    2905             :             (
    2906             :                 "Appends the sal_Bool(sal_True) to the string buffer(with INT_MAX)",
    2907             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2908             :             );
    2909             : 
    2910             :         }
    2911             : 
    2912             :         void append_004_012()
    2913             :         {
    2914             :             OString                expVal( kTestStr48 );
    2915             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
    2916             :             sal_Bool               input = sal_False;
    2917             : 
    2918             :             aStrBuf.append( input );
    2919             : 
    2920             :             CPPUNIT_ASSERT_MESSAGE
    2921             :             (
    2922             :                 "Appends the sal_Bool(sal_False) to the string buffer(with INT_MAX)",
    2923             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2924             :             );
    2925             : 
    2926             :         }
    2927             : #endif
    2928             : 
    2929           2 :         CPPUNIT_TEST_SUITE( append_004 );
    2930           1 :         CPPUNIT_TEST( append_004_001 );
    2931           1 :         CPPUNIT_TEST( append_004_002 );
    2932           1 :         CPPUNIT_TEST( append_004_003 );
    2933           1 :         CPPUNIT_TEST( append_004_004 );
    2934           1 :         CPPUNIT_TEST( append_004_005 );
    2935           1 :         CPPUNIT_TEST( append_004_006 );
    2936           1 :         CPPUNIT_TEST( append_004_007 );
    2937           1 :         CPPUNIT_TEST( append_004_008 );
    2938           1 :         CPPUNIT_TEST( append_004_009 );
    2939           1 :         CPPUNIT_TEST( append_004_010 );
    2940             : #ifdef WITH_CORE
    2941             :         CPPUNIT_TEST( append_004_011 );
    2942             :         CPPUNIT_TEST( append_004_012 );
    2943             : #endif
    2944           2 :         CPPUNIT_TEST_SUITE_END();
    2945             :     };
    2946             : 
    2947             : // testing the method append(sal_Char c)
    2948             : 
    2949          30 :     class  append_005 : public CppUnit::TestFixture
    2950             :     {
    2951             :         OString* arrOUS[5];
    2952             : 
    2953             :     public:
    2954          10 :         void setUp() SAL_OVERRIDE
    2955             :         {
    2956          10 :             arrOUS[0] = new OString( kTestStr7 );
    2957          10 :             arrOUS[1] = new OString(  );
    2958          10 :             arrOUS[2] = new OString( kTestStr25 );
    2959          10 :             arrOUS[3] = new OString( "" );
    2960          10 :             arrOUS[4] = new OString( kTestStr28 );
    2961             : 
    2962          10 :         }
    2963             : 
    2964          10 :         void tearDown() SAL_OVERRIDE
    2965             :         {
    2966          10 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
    2967          10 :             delete arrOUS[3]; delete arrOUS[4];
    2968          10 :         }
    2969             : 
    2970           1 :         void append_001()
    2971             :         {
    2972           1 :             OString                expVal( kTestStr51 );
    2973           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    2974           1 :             sal_Char               input = 'M';
    2975             : 
    2976           1 :             aStrBuf.append( input );
    2977             : 
    2978           2 :             CPPUNIT_ASSERT_MESSAGE
    2979             :             (
    2980             :                 "Appends the sal_Char(M) to the string buffer arrOUS[0]",
    2981             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2982           2 :             );
    2983             : 
    2984           1 :         }
    2985             : 
    2986           1 :         void append_002()
    2987             :         {
    2988           1 :             OString                expVal( kTestStr143 );
    2989           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    2990           1 :             sal_Char               input = static_cast<sal_Char>(SAL_MAX_UINT8);
    2991             : 
    2992           1 :             aStrBuf.append( input );
    2993             : 
    2994           2 :             CPPUNIT_ASSERT_MESSAGE
    2995             :             (
    2996             :                 "Appends the sal_Unicode(kSInt8Max) to the string buffer arrOUS[0]",
    2997             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2998           2 :             );
    2999             : 
    3000           1 :         }
    3001             : 
    3002           1 :         void append_003()
    3003             :         {
    3004           1 :             OString                expVal( kTestStr27 );
    3005           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3006           1 :             sal_Char               input = 's';
    3007             : 
    3008           1 :             aStrBuf.append( input );
    3009             : 
    3010           2 :             CPPUNIT_ASSERT_MESSAGE
    3011             :             (
    3012             :                 "Appends the sal_Char(s) to the string buffer arrOUS[1]",
    3013             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    3014           2 :             );
    3015             : 
    3016           1 :         }
    3017             : 
    3018           1 :         void append_004()
    3019             :         {
    3020           1 :             OString                expVal( kTestStr144 );
    3021           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3022           1 :             sal_Char               input = static_cast<sal_Char>(SAL_MAX_UINT8);
    3023             : 
    3024           1 :             aStrBuf.append( input );
    3025             : 
    3026           2 :             CPPUNIT_ASSERT_MESSAGE
    3027             :             (
    3028             :                 "Appends the sal_Char(kSInt8Max) to the string buffer arrOUS[1]",
    3029             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    3030           2 :             );
    3031             : 
    3032           1 :         }
    3033             : 
    3034           1 :         void append_005_005()
    3035             :         {
    3036           1 :             OString                expVal( kTestStr27 );
    3037           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    3038           1 :             sal_Char               input = 's';
    3039             : 
    3040           1 :             aStrBuf.append( input );
    3041             : 
    3042           2 :             CPPUNIT_ASSERT_MESSAGE
    3043             :             (
    3044             :                 "Appends the sal_Char(s) to the string buffer arrOUS[2]",
    3045             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    3046           2 :             );
    3047             : 
    3048           1 :         }
    3049             : 
    3050           1 :         void append_006()
    3051             :         {
    3052           1 :             OString                expVal( kTestStr144 );
    3053           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    3054           1 :             sal_Char               input = static_cast<sal_Char>(SAL_MAX_UINT8);
    3055             : 
    3056           1 :             aStrBuf.append( input );
    3057             : 
    3058           2 :             CPPUNIT_ASSERT_MESSAGE
    3059             :             (
    3060             :                 "Appends the sal_Char(kSInt8Max) to the string buffer arrOUS[2]",
    3061             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    3062           2 :             );
    3063             : 
    3064           1 :         }
    3065             : 
    3066           1 :         void append_007()
    3067             :         {
    3068           1 :             OString                expVal( kTestStr27 );
    3069           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    3070           1 :             sal_Char               input = 's';
    3071             : 
    3072           1 :             aStrBuf.append( input );
    3073             : 
    3074           2 :             CPPUNIT_ASSERT_MESSAGE
    3075             :             (
    3076             :                 "Appends the sal_Char(s) to the string buffer arrOUS[3]",
    3077             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    3078           2 :             );
    3079             : 
    3080           1 :         }
    3081             : 
    3082           1 :         void append_008()
    3083             :         {
    3084           1 :             OString                expVal( kTestStr144 );
    3085           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    3086           1 :             sal_Char               input = static_cast<sal_Char>(SAL_MAX_UINT8);
    3087             : 
    3088           1 :             aStrBuf.append( input );
    3089             : 
    3090           2 :             CPPUNIT_ASSERT_MESSAGE
    3091             :             (
    3092             :                 "Appends the sal_Char(kSInt8Max) to the string buffer arrOUS[3]",
    3093             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    3094           2 :             );
    3095             : 
    3096           1 :         }
    3097             : 
    3098           1 :         void append_009()
    3099             :         {
    3100           1 :             OString                expVal( kTestStr56 );
    3101           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    3102           1 :             sal_Char               input = 's';
    3103             : 
    3104           1 :             aStrBuf.append( input );
    3105             : 
    3106           2 :             CPPUNIT_ASSERT_MESSAGE
    3107             :             (
    3108             :                 "Appends the sal_Char(s) to the string buffer arrOUS[4]",
    3109             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    3110           2 :             );
    3111             : 
    3112           1 :         }
    3113             : 
    3114           1 :         void append_010()
    3115             :         {
    3116           1 :             OString                expVal( kTestStr145 );
    3117           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    3118           1 :             sal_Char               input = static_cast<sal_Char>(SAL_MAX_UINT8);
    3119             : 
    3120           1 :             aStrBuf.append( input );
    3121             : 
    3122           2 :             CPPUNIT_ASSERT_MESSAGE
    3123             :             (
    3124             :                 "Appends the sal_Char(kSInt8Max) to the string buffer arrOUS[4]",
    3125             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    3126           2 :             );
    3127             : 
    3128           1 :         }
    3129             : 
    3130             : #ifdef WITH_CORE
    3131             :         void append_011()
    3132             :         {
    3133             :             OString                expVal( kTestStr27 );
    3134             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
    3135             :             sal_Char               input = 's';
    3136             : 
    3137             :             aStrBuf.append( input );
    3138             : 
    3139             :             CPPUNIT_ASSERT_MESSAGE
    3140             :             (
    3141             :                 "Appends the sal_Char(s) to the string buffer(with INT_MAX)",
    3142             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    3143             :             );
    3144             : 
    3145             :         }
    3146             : 
    3147             :         void append_012()
    3148             :         {
    3149             :             OString                expVal( kTestStr144 );
    3150             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
    3151             :             sal_Char               input = static_cast<sal_Char>(SAL_MAX_UINT8);
    3152             : 
    3153             :             aStrBuf.append( input );
    3154             : 
    3155             :             CPPUNIT_ASSERT_MESSAGE
    3156             :             (
    3157             :                 "Appends the sal_Char(kSInt8Max) to the string buffer with INT_MAX)",
    3158             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    3159             :             );
    3160             : 
    3161             :         }
    3162             : #endif
    3163             : 
    3164           2 :         CPPUNIT_TEST_SUITE( append_005 );
    3165           1 :         CPPUNIT_TEST( append_001 );
    3166           1 :         CPPUNIT_TEST( append_002 );
    3167           1 :         CPPUNIT_TEST( append_003 );
    3168           1 :         CPPUNIT_TEST( append_004 );
    3169           1 :         CPPUNIT_TEST( append_005_005 );
    3170           1 :         CPPUNIT_TEST( append_006 );
    3171           1 :         CPPUNIT_TEST( append_007 );
    3172           1 :         CPPUNIT_TEST( append_008 );
    3173           1 :         CPPUNIT_TEST( append_009 );
    3174           1 :         CPPUNIT_TEST( append_010 );
    3175             : #ifdef WITH_CORE
    3176             :         CPPUNIT_TEST( append_011 );
    3177             :         CPPUNIT_TEST( append_012 );
    3178             : #endif
    3179           2 :         CPPUNIT_TEST_SUITE_END();
    3180             :     };
    3181             : 
    3182         300 :     class  append_006_Int32 : public CppUnit::TestFixture
    3183             :     {
    3184             :         OString* arrOUS[5];
    3185             : 
    3186             :     public:
    3187         100 :         void setUp() SAL_OVERRIDE
    3188             :         {
    3189         100 :             arrOUS[0] = new OString( kTestStr7 );
    3190         100 :             arrOUS[1] = new OString(  );
    3191         100 :             arrOUS[2] = new OString( kTestStr25 );
    3192         100 :             arrOUS[3] = new OString( "" );
    3193         100 :             arrOUS[4] = new OString( kTestStr28 );
    3194             : 
    3195         100 :         }
    3196             : 
    3197         100 :         void tearDown() SAL_OVERRIDE
    3198             :         {
    3199         100 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
    3200         100 :             delete arrOUS[3]; delete arrOUS[4];
    3201         100 :         }
    3202             : 
    3203           1 :         void append_001()
    3204             :         {
    3205           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3206           2 :             OString                expVal( aStrBuf.getStr() );
    3207           1 :             sal_Int32              input = 0;
    3208           1 :             sal_Int16              radix = 2;
    3209             : 
    3210           1 :             expVal += OString( "0" );
    3211           1 :             aStrBuf.append( input, radix );
    3212             : 
    3213           2 :             CPPUNIT_ASSERT_MESSAGE
    3214             :             (
    3215             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
    3216             :                 aStrBuf.getStr()== expVal &&
    3217             :                     aStrBuf.getLength() == expVal.getLength()
    3218           2 :             );
    3219             : 
    3220           1 :         }
    3221             : 
    3222           1 :         void append_002()
    3223             :         {
    3224           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3225           2 :             OString                expVal( aStrBuf.getStr() );
    3226           1 :             sal_Int32              input = 4;
    3227           1 :             sal_Int16              radix = 2;
    3228             : 
    3229           1 :             expVal += OString( "100" );
    3230           1 :             aStrBuf.append( input, radix );
    3231             : 
    3232           2 :             CPPUNIT_ASSERT_MESSAGE
    3233             :             (
    3234             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
    3235             :                 aStrBuf.getStr()== expVal &&
    3236             :                     aStrBuf.getLength() == expVal.getLength()
    3237           2 :             );
    3238             : 
    3239           1 :         }
    3240             : 
    3241           1 :         void append_003()
    3242             :         {
    3243           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3244           2 :             OString                expVal( aStrBuf.getStr() );
    3245           1 :             sal_Int32              input = 8;
    3246           1 :             sal_Int16              radix = 2;
    3247             : 
    3248           1 :             expVal += OString( "1000" );
    3249           1 :             aStrBuf.append( input, radix );
    3250             : 
    3251           2 :             CPPUNIT_ASSERT_MESSAGE
    3252             :             (
    3253             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
    3254             :                 aStrBuf.getStr()== expVal &&
    3255             :                     aStrBuf.getLength() == expVal.getLength()
    3256           2 :             );
    3257             : 
    3258           1 :         }
    3259             : 
    3260           1 :         void append_004()
    3261             :         {
    3262           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3263           2 :             OString                expVal( aStrBuf.getStr() );
    3264           1 :             sal_Int32              input = 15;
    3265           1 :             sal_Int16              radix = 2;
    3266             : 
    3267           1 :             expVal += OString( "1111" );
    3268           1 :             aStrBuf.append( input, radix );
    3269             : 
    3270           2 :             CPPUNIT_ASSERT_MESSAGE
    3271             :             (
    3272             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
    3273             :                 aStrBuf.getStr()== expVal &&
    3274             :                     aStrBuf.getLength() == expVal.getLength()
    3275           2 :             );
    3276             : 
    3277           1 :         }
    3278             : 
    3279           1 :         void append_005()
    3280             :         {
    3281           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3282           2 :             OString                expVal( aStrBuf.getStr() );
    3283           1 :             sal_Int32              input = 0;
    3284           1 :             sal_Int16              radix = 8;
    3285             : 
    3286           1 :             expVal += OString( "0" );
    3287           1 :             aStrBuf.append( input, radix );
    3288             : 
    3289           2 :             CPPUNIT_ASSERT_MESSAGE
    3290             :             (
    3291             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
    3292             :                 aStrBuf.getStr()== expVal &&
    3293             :                     aStrBuf.getLength() == expVal.getLength()
    3294           2 :             );
    3295             : 
    3296           1 :         }
    3297             : 
    3298           1 :         void append_006()
    3299             :         {
    3300           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3301           2 :             OString                expVal( aStrBuf.getStr() );
    3302           1 :             sal_Int32              input = 4;
    3303           1 :             sal_Int16              radix = 8;
    3304             : 
    3305           1 :             expVal += OString( "4" );
    3306           1 :             aStrBuf.append( input, radix );
    3307             : 
    3308           2 :             CPPUNIT_ASSERT_MESSAGE
    3309             :             (
    3310             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
    3311             :                 aStrBuf.getStr()== expVal &&
    3312             :                     aStrBuf.getLength() == expVal.getLength()
    3313           2 :             );
    3314             : 
    3315           1 :         }
    3316             : 
    3317           1 :         void append_007()
    3318             :         {
    3319           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3320           2 :             OString                expVal( aStrBuf.getStr() );
    3321           1 :             sal_Int32              input = 8;
    3322           1 :             sal_Int16              radix = 8;
    3323             : 
    3324           1 :             expVal += OString( "10" );
    3325           1 :             aStrBuf.append( input, radix );
    3326             : 
    3327           2 :             CPPUNIT_ASSERT_MESSAGE
    3328             :             (
    3329             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
    3330             :                 aStrBuf.getStr()== expVal &&
    3331             :                     aStrBuf.getLength() == expVal.getLength()
    3332           2 :             );
    3333             : 
    3334           1 :         }
    3335             : 
    3336           1 :         void append_008()
    3337             :         {
    3338           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3339           2 :             OString                expVal( aStrBuf.getStr() );
    3340           1 :             sal_Int32              input = 15;
    3341           1 :             sal_Int16              radix = 8;
    3342             : 
    3343           1 :             expVal += OString( "17" );
    3344           1 :             aStrBuf.append( input, radix );
    3345             : 
    3346           2 :             CPPUNIT_ASSERT_MESSAGE
    3347             :             (
    3348             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
    3349             :                 aStrBuf.getStr()== expVal &&
    3350             :                     aStrBuf.getLength() == expVal.getLength()
    3351           2 :             );
    3352             : 
    3353           1 :         }
    3354             : 
    3355           1 :         void append_009()
    3356             :         {
    3357           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3358           2 :             OString                expVal( aStrBuf.getStr() );
    3359           1 :             sal_Int32              input = 0;
    3360           1 :             sal_Int16              radix = 10;
    3361             : 
    3362           1 :             expVal += OString( "0" );
    3363           1 :             aStrBuf.append( input, radix );
    3364             : 
    3365           2 :             CPPUNIT_ASSERT_MESSAGE
    3366             :             (
    3367             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
    3368             :                 aStrBuf.getStr()== expVal &&
    3369             :                     aStrBuf.getLength() == expVal.getLength()
    3370           2 :             );
    3371             : 
    3372           1 :         }
    3373             : 
    3374           1 :         void append_010()
    3375             :         {
    3376           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3377           2 :             OString                expVal( aStrBuf.getStr() );
    3378           1 :             sal_Int32              input = 4;
    3379           1 :             sal_Int16              radix = 10;
    3380             : 
    3381           1 :             expVal += OString( "4" );
    3382           1 :             aStrBuf.append( input, radix );
    3383             : 
    3384           2 :             CPPUNIT_ASSERT_MESSAGE
    3385             :             (
    3386             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
    3387             :                 aStrBuf.getStr()== expVal &&
    3388             :                     aStrBuf.getLength() == expVal.getLength()
    3389           2 :             );
    3390             : 
    3391           1 :         }
    3392             : 
    3393           1 :         void append_011()
    3394             :         {
    3395           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3396           2 :             OString                expVal( aStrBuf.getStr() );
    3397           1 :             sal_Int32              input = 8;
    3398           1 :             sal_Int16              radix = 10;
    3399             : 
    3400           1 :             expVal += OString( "8" );
    3401           1 :             aStrBuf.append( input, radix );
    3402             : 
    3403           2 :             CPPUNIT_ASSERT_MESSAGE
    3404             :             (
    3405             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
    3406             :                 aStrBuf.getStr()== expVal &&
    3407             :                     aStrBuf.getLength() == expVal.getLength()
    3408           2 :             );
    3409             : 
    3410           1 :         }
    3411             : 
    3412           1 :         void append_012()
    3413             :         {
    3414           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3415           2 :             OString                expVal( aStrBuf.getStr() );
    3416           1 :             sal_Int32              input = 15;
    3417           1 :             sal_Int16              radix = 10;
    3418             : 
    3419           1 :             expVal += OString( "15" );
    3420           1 :             aStrBuf.append( input, radix );
    3421             : 
    3422           2 :             CPPUNIT_ASSERT_MESSAGE
    3423             :             (
    3424             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
    3425             :                 aStrBuf.getStr()== expVal &&
    3426             :                     aStrBuf.getLength() == expVal.getLength()
    3427           2 :             );
    3428             : 
    3429           1 :         }
    3430             : 
    3431           1 :         void append_013()
    3432             :         {
    3433           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3434           2 :             OString                expVal( aStrBuf.getStr() );
    3435           1 :             sal_Int32              input = 0;
    3436           1 :             sal_Int16              radix = 16;
    3437             : 
    3438           1 :             expVal += OString( "0" );
    3439           1 :             aStrBuf.append( input, radix );
    3440             : 
    3441           2 :             CPPUNIT_ASSERT_MESSAGE
    3442             :             (
    3443             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
    3444             :                 aStrBuf.getStr()== expVal &&
    3445             :                     aStrBuf.getLength() == expVal.getLength()
    3446           2 :             );
    3447             : 
    3448           1 :         }
    3449             : 
    3450           1 :         void append_014()
    3451             :         {
    3452           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3453           2 :             OString                expVal( aStrBuf.getStr() );
    3454           1 :             sal_Int32              input = 4;
    3455           1 :             sal_Int16              radix = 16;
    3456             : 
    3457           1 :             expVal += OString( "4" );
    3458           1 :             aStrBuf.append( input, radix );
    3459             : 
    3460           2 :             CPPUNIT_ASSERT_MESSAGE
    3461             :             (
    3462             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
    3463             :                 aStrBuf.getStr()== expVal &&
    3464             :                     aStrBuf.getLength() == expVal.getLength()
    3465           2 :             );
    3466             : 
    3467           1 :         }
    3468             : 
    3469           1 :         void append_015()
    3470             :         {
    3471           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3472           2 :             OString                expVal( aStrBuf.getStr() );
    3473           1 :             sal_Int32              input = 8;
    3474           1 :             sal_Int16              radix = 16;
    3475             : 
    3476           1 :             expVal += OString( "8" );
    3477           1 :             aStrBuf.append( input, radix );
    3478             : 
    3479           2 :             CPPUNIT_ASSERT_MESSAGE
    3480             :             (
    3481             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
    3482             :                 aStrBuf.getStr()== expVal &&
    3483             :                     aStrBuf.getLength() == expVal.getLength()
    3484           2 :             );
    3485             : 
    3486           1 :         }
    3487             : 
    3488           1 :         void append_016()
    3489             :         {
    3490           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3491           2 :             OString                expVal( aStrBuf.getStr() );
    3492           1 :             sal_Int32              input = 15;
    3493           1 :             sal_Int16              radix = 16;
    3494             : 
    3495           1 :             expVal += OString( "f" );
    3496           1 :             aStrBuf.append( input, radix );
    3497             : 
    3498           2 :             CPPUNIT_ASSERT_MESSAGE
    3499             :             (
    3500             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
    3501             :                 aStrBuf.getStr()== expVal &&
    3502             :                     aStrBuf.getLength() == expVal.getLength()
    3503           2 :             );
    3504             : 
    3505           1 :         }
    3506             : 
    3507           1 :         void append_017()
    3508             :         {
    3509           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3510           2 :             OString                expVal( aStrBuf.getStr() );
    3511           1 :             sal_Int32              input = 0;
    3512           1 :             sal_Int16              radix = 36;
    3513             : 
    3514           1 :             expVal += OString( "0" );
    3515           1 :             aStrBuf.append( input, radix );
    3516             : 
    3517           2 :             CPPUNIT_ASSERT_MESSAGE
    3518             :             (
    3519             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
    3520             :                 aStrBuf.getStr()== expVal &&
    3521             :                     aStrBuf.getLength() == expVal.getLength()
    3522           2 :             );
    3523             : 
    3524           1 :         }
    3525             : 
    3526           1 :         void append_018()
    3527             :         {
    3528           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3529           2 :             OString                expVal( aStrBuf.getStr() );
    3530           1 :             sal_Int32              input = 4;
    3531           1 :             sal_Int16              radix = 36;
    3532             : 
    3533           1 :             expVal += OString( "4" );
    3534           1 :             aStrBuf.append( input, radix );
    3535             : 
    3536           2 :             CPPUNIT_ASSERT_MESSAGE
    3537             :             (
    3538             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
    3539             :                 aStrBuf.getStr()== expVal &&
    3540             :                     aStrBuf.getLength() == expVal.getLength()
    3541           2 :             );
    3542             : 
    3543           1 :         }
    3544             : 
    3545           1 :         void append_019()
    3546             :         {
    3547           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3548           2 :             OString                expVal( aStrBuf.getStr() );
    3549           1 :             sal_Int32              input = 8;
    3550           1 :             sal_Int16              radix = 36;
    3551             : 
    3552           1 :             expVal += OString( "8" );
    3553           1 :             aStrBuf.append( input, radix );
    3554             : 
    3555           2 :             CPPUNIT_ASSERT_MESSAGE
    3556             :             (
    3557             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
    3558             :                 aStrBuf.getStr()== expVal &&
    3559             :                     aStrBuf.getLength() == expVal.getLength()
    3560           2 :             );
    3561             : 
    3562           1 :         }
    3563             : 
    3564           1 :         void append_020()
    3565             :         {
    3566           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3567           2 :             OString                expVal( aStrBuf.getStr() );
    3568           1 :             sal_Int32              input = 35;
    3569           1 :             sal_Int16              radix = 36;
    3570             : 
    3571           1 :             expVal += OString( "z" );
    3572           1 :             aStrBuf.append( input, radix );
    3573             : 
    3574           2 :             CPPUNIT_ASSERT_MESSAGE
    3575             :             (
    3576             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
    3577             :                 aStrBuf.getStr()== expVal &&
    3578             :                     aStrBuf.getLength() == expVal.getLength()
    3579           2 :             );
    3580             : 
    3581           1 :         }
    3582             : 
    3583           1 :         void append_021()
    3584             :         {
    3585           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3586           2 :             OString                expVal( aStrBuf.getStr() );
    3587           1 :             sal_Int32              input = 0;
    3588           1 :             sal_Int16              radix = 2;
    3589             : 
    3590           1 :             expVal += OString( "0" );
    3591           1 :             aStrBuf.append( input, radix );
    3592             : 
    3593           2 :             CPPUNIT_ASSERT_MESSAGE
    3594             :             (
    3595             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
    3596             :                 aStrBuf.getStr()== expVal &&
    3597             :                     aStrBuf.getLength() == expVal.getLength()
    3598           2 :             );
    3599             : 
    3600           1 :         }
    3601             : 
    3602           1 :         void append_022()
    3603             :         {
    3604           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3605           2 :             OString                expVal( aStrBuf.getStr() );
    3606           1 :             sal_Int32              input = 4;
    3607           1 :             sal_Int16              radix = 2;
    3608             : 
    3609           1 :             expVal += OString( "100" );
    3610           1 :             aStrBuf.append( input, radix );
    3611             : 
    3612           2 :             CPPUNIT_ASSERT_MESSAGE
    3613             :             (
    3614             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
    3615             :                 aStrBuf.getStr()== expVal &&
    3616             :                     aStrBuf.getLength() == expVal.getLength()
    3617           2 :             );
    3618             : 
    3619           1 :         }
    3620             : 
    3621           1 :         void append_023()
    3622             :         {
    3623           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3624           2 :             OString                expVal( aStrBuf.getStr() );
    3625           1 :             sal_Int32              input = 8;
    3626           1 :             sal_Int16              radix = 2;
    3627             : 
    3628           1 :             expVal += OString( "1000" );
    3629           1 :             aStrBuf.append( input, radix );
    3630             : 
    3631           2 :             CPPUNIT_ASSERT_MESSAGE
    3632             :             (
    3633             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
    3634             :                 aStrBuf.getStr()== expVal &&
    3635             :                     aStrBuf.getLength() == expVal.getLength()
    3636           2 :             );
    3637             : 
    3638           1 :         }
    3639             : 
    3640           1 :         void append_024()
    3641             :         {
    3642           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3643           2 :             OString                expVal( aStrBuf.getStr() );
    3644           1 :             sal_Int32              input = 15;
    3645           1 :             sal_Int16              radix = 2;
    3646             : 
    3647           1 :             expVal += OString( "1111" );
    3648           1 :             aStrBuf.append( input, radix );
    3649             : 
    3650           2 :             CPPUNIT_ASSERT_MESSAGE
    3651             :             (
    3652             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
    3653             :                 aStrBuf.getStr()== expVal &&
    3654             :                     aStrBuf.getLength() == expVal.getLength()
    3655           2 :             );
    3656             : 
    3657           1 :         }
    3658             : 
    3659           1 :         void append_025()
    3660             :         {
    3661           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3662           2 :             OString                expVal( aStrBuf.getStr() );
    3663           1 :             sal_Int32              input = 0;
    3664           1 :             sal_Int16              radix = 8;
    3665             : 
    3666           1 :             expVal += OString( "0" );
    3667           1 :             aStrBuf.append( input, radix );
    3668             : 
    3669           2 :             CPPUNIT_ASSERT_MESSAGE
    3670             :             (
    3671             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
    3672             :                 aStrBuf.getStr()== expVal &&
    3673             :                     aStrBuf.getLength() == expVal.getLength()
    3674           2 :             );
    3675             : 
    3676           1 :         }
    3677             : 
    3678           1 :         void append_026()
    3679             :         {
    3680           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3681           2 :             OString                expVal( aStrBuf.getStr() );
    3682           1 :             sal_Int32              input = 4;
    3683           1 :             sal_Int16              radix = 8;
    3684             : 
    3685           1 :             expVal += OString( "4" );
    3686           1 :             aStrBuf.append( input, radix );
    3687             : 
    3688           2 :             CPPUNIT_ASSERT_MESSAGE
    3689             :             (
    3690             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
    3691             :                 aStrBuf.getStr()== expVal &&
    3692             :                     aStrBuf.getLength() == expVal.getLength()
    3693           2 :             );
    3694             : 
    3695           1 :         }
    3696             : 
    3697           1 :         void append_027()
    3698             :         {
    3699           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3700           2 :             OString                expVal( aStrBuf.getStr() );
    3701           1 :             sal_Int32              input = 8;
    3702           1 :             sal_Int16              radix = 8;
    3703             : 
    3704           1 :             expVal += OString( "10" );
    3705           1 :             aStrBuf.append( input, radix );
    3706             : 
    3707           2 :             CPPUNIT_ASSERT_MESSAGE
    3708             :             (
    3709             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
    3710             :                 aStrBuf.getStr()== expVal &&
    3711             :                     aStrBuf.getLength() == expVal.getLength()
    3712           2 :             );
    3713             : 
    3714           1 :         }
    3715             : 
    3716           1 :         void append_028()
    3717             :         {
    3718           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3719           2 :             OString                expVal( aStrBuf.getStr() );
    3720           1 :             sal_Int32              input = 15;
    3721           1 :             sal_Int16              radix = 8;
    3722             : 
    3723           1 :             expVal += OString( "17" );
    3724           1 :             aStrBuf.append( input, radix );
    3725             : 
    3726           2 :             CPPUNIT_ASSERT_MESSAGE
    3727             :             (
    3728             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
    3729             :                 aStrBuf.getStr()== expVal &&
    3730             :                     aStrBuf.getLength() == expVal.getLength()
    3731           2 :             );
    3732             : 
    3733           1 :         }
    3734             : 
    3735           1 :         void append_029()
    3736             :         {
    3737           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3738           2 :             OString                expVal( aStrBuf.getStr() );
    3739           1 :             sal_Int32              input = 0;
    3740           1 :             sal_Int16              radix = 10;
    3741             : 
    3742           1 :             expVal += OString( "0" );
    3743           1 :             aStrBuf.append( input, radix );
    3744             : 
    3745           2 :             CPPUNIT_ASSERT_MESSAGE
    3746             :             (
    3747             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
    3748             :                 aStrBuf.getStr()== expVal &&
    3749             :                     aStrBuf.getLength() == expVal.getLength()
    3750           2 :             );
    3751             : 
    3752           1 :         }
    3753             : 
    3754           1 :         void append_030()
    3755             :         {
    3756           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3757           2 :             OString                expVal( aStrBuf.getStr() );
    3758           1 :             sal_Int32              input = 4;
    3759           1 :             sal_Int16              radix = 10;
    3760             : 
    3761           1 :             expVal += OString( "4" );
    3762           1 :             aStrBuf.append( input, radix );
    3763             : 
    3764           2 :             CPPUNIT_ASSERT_MESSAGE
    3765             :             (
    3766             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
    3767             :                 aStrBuf.getStr()== expVal &&
    3768             :                     aStrBuf.getLength() == expVal.getLength()
    3769           2 :             );
    3770             : 
    3771           1 :         }
    3772             : 
    3773           1 :         void append_031()
    3774             :         {
    3775           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3776           2 :             OString                expVal( aStrBuf.getStr() );
    3777           1 :             sal_Int32              input = 8;
    3778           1 :             sal_Int16              radix = 10;
    3779             : 
    3780           1 :             expVal += OString( "8" );
    3781           1 :             aStrBuf.append( input, radix );
    3782             : 
    3783           2 :             CPPUNIT_ASSERT_MESSAGE
    3784             :             (
    3785             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
    3786             :                 aStrBuf.getStr()== expVal &&
    3787             :                     aStrBuf.getLength() == expVal.getLength()
    3788           2 :             );
    3789             : 
    3790           1 :         }
    3791             : 
    3792           1 :         void append_032()
    3793             :         {
    3794           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3795           2 :             OString                expVal( aStrBuf.getStr() );
    3796           1 :             sal_Int32              input = 15;
    3797           1 :             sal_Int16              radix = 10;
    3798             : 
    3799           1 :             expVal += OString( "15" );
    3800           1 :             aStrBuf.append( input, radix );
    3801             : 
    3802           2 :             CPPUNIT_ASSERT_MESSAGE
    3803             :             (
    3804             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
    3805             :                 aStrBuf.getStr()== expVal &&
    3806             :                     aStrBuf.getLength() == expVal.getLength()
    3807           2 :             );
    3808             : 
    3809           1 :         }
    3810             : 
    3811           1 :         void append_033()
    3812             :         {
    3813           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3814           2 :             OString                expVal( aStrBuf.getStr() );
    3815           1 :             sal_Int32              input = 0;
    3816           1 :             sal_Int16              radix = 16;
    3817             : 
    3818           1 :             expVal += OString( "0" );
    3819           1 :             aStrBuf.append( input, radix );
    3820             : 
    3821           2 :             CPPUNIT_ASSERT_MESSAGE
    3822             :             (
    3823             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
    3824             :                 aStrBuf.getStr()== expVal &&
    3825             :                     aStrBuf.getLength() == expVal.getLength()
    3826           2 :             );
    3827             : 
    3828           1 :         }
    3829             : 
    3830           1 :         void append_034()
    3831             :         {
    3832           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3833           2 :             OString                expVal( aStrBuf.getStr() );
    3834           1 :             sal_Int32              input = 4;
    3835           1 :             sal_Int16              radix = 16;
    3836             : 
    3837           1 :             expVal += OString( "4" );
    3838           1 :             aStrBuf.append( input, radix );
    3839             : 
    3840           2 :             CPPUNIT_ASSERT_MESSAGE
    3841             :             (
    3842             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
    3843             :                 aStrBuf.getStr()== expVal &&
    3844             :                     aStrBuf.getLength() == expVal.getLength()
    3845           2 :             );
    3846             : 
    3847           1 :         }
    3848             : 
    3849           1 :         void append_035()
    3850             :         {
    3851           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3852           2 :             OString                expVal( aStrBuf.getStr() );
    3853           1 :             sal_Int32              input = 8;
    3854           1 :             sal_Int16              radix = 16;
    3855             : 
    3856           1 :             expVal += OString( "8" );
    3857           1 :             aStrBuf.append( input, radix );
    3858             : 
    3859           2 :             CPPUNIT_ASSERT_MESSAGE
    3860             :             (
    3861             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
    3862             :                 aStrBuf.getStr()== expVal &&
    3863             :                     aStrBuf.getLength() == expVal.getLength()
    3864           2 :             );
    3865             : 
    3866           1 :         }
    3867             : 
    3868           1 :         void append_036()
    3869             :         {
    3870           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3871           2 :             OString                expVal( aStrBuf.getStr() );
    3872           1 :             sal_Int32              input = 15;
    3873           1 :             sal_Int16              radix = 16;
    3874             : 
    3875           1 :             expVal += OString( "f" );
    3876           1 :             aStrBuf.append( input, radix );
    3877             : 
    3878           2 :             CPPUNIT_ASSERT_MESSAGE
    3879             :             (
    3880             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
    3881             :                 aStrBuf.getStr()== expVal &&
    3882             :                     aStrBuf.getLength() == expVal.getLength()
    3883           2 :             );
    3884             : 
    3885           1 :         }
    3886             : 
    3887           1 :         void append_037()
    3888             :         {
    3889           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3890           2 :             OString                expVal( aStrBuf.getStr() );
    3891           1 :             sal_Int32              input = 0;
    3892           1 :             sal_Int16              radix = 36;
    3893             : 
    3894           1 :             expVal += OString( "0" );
    3895           1 :             aStrBuf.append( input, radix );
    3896             : 
    3897           2 :             CPPUNIT_ASSERT_MESSAGE
    3898             :             (
    3899             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
    3900             :                 aStrBuf.getStr()== expVal &&
    3901             :                     aStrBuf.getLength() == expVal.getLength()
    3902           2 :             );
    3903             : 
    3904           1 :         }
    3905             : 
    3906           1 :         void append_038()
    3907             :         {
    3908           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3909           2 :             OString                expVal( aStrBuf.getStr() );
    3910           1 :             sal_Int32              input = 4;
    3911           1 :             sal_Int16              radix = 36;
    3912             : 
    3913           1 :             expVal += OString( "4" );
    3914           1 :             aStrBuf.append( input, radix );
    3915             : 
    3916           2 :             CPPUNIT_ASSERT_MESSAGE
    3917             :             (
    3918             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
    3919             :                 aStrBuf.getStr()== expVal &&
    3920             :                     aStrBuf.getLength() == expVal.getLength()
    3921           2 :             );
    3922             : 
    3923           1 :         }
    3924             : 
    3925           1 :         void append_039()
    3926             :         {
    3927           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3928           2 :             OString                expVal( aStrBuf.getStr() );
    3929           1 :             sal_Int32              input = 8;
    3930           1 :             sal_Int16              radix = 36;
    3931             : 
    3932           1 :             expVal += OString( "8" );
    3933           1 :             aStrBuf.append( input, radix );
    3934             : 
    3935           2 :             CPPUNIT_ASSERT_MESSAGE
    3936             :             (
    3937             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
    3938             :                 aStrBuf.getStr()== expVal &&
    3939             :                     aStrBuf.getLength() == expVal.getLength()
    3940           2 :             );
    3941             : 
    3942           1 :         }
    3943             : 
    3944           1 :         void append_040()
    3945             :         {
    3946           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3947           2 :             OString                expVal( aStrBuf.getStr() );
    3948           1 :             sal_Int32              input = 35;
    3949           1 :             sal_Int16              radix = 36;
    3950             : 
    3951           1 :             expVal += OString( "z" );
    3952           1 :             aStrBuf.append( input, radix );
    3953             : 
    3954           2 :             CPPUNIT_ASSERT_MESSAGE
    3955             :             (
    3956             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
    3957             :                 aStrBuf.getStr()== expVal &&
    3958             :                     aStrBuf.getLength() == expVal.getLength()
    3959           2 :             );
    3960             : 
    3961           1 :         }
    3962             : 
    3963           1 :         void append_041()
    3964             :         {
    3965           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    3966           2 :             OString                expVal( aStrBuf.getStr() );
    3967           1 :             sal_Int32              input = 0;
    3968           1 :             sal_Int16              radix = 2;
    3969             : 
    3970           1 :             expVal += OString( "0" );
    3971           1 :             aStrBuf.append( input, radix );
    3972             : 
    3973           2 :             CPPUNIT_ASSERT_MESSAGE
    3974             :             (
    3975             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
    3976             :                 aStrBuf.getStr()== expVal &&
    3977             :                     aStrBuf.getLength() == expVal.getLength()
    3978           2 :             );
    3979             : 
    3980           1 :         }
    3981             : 
    3982           1 :         void append_042()
    3983             :         {
    3984           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    3985           2 :             OString                expVal( aStrBuf.getStr() );
    3986           1 :             sal_Int32              input = 4;
    3987           1 :             sal_Int16              radix = 2;
    3988             : 
    3989           1 :             expVal += OString( "100" );
    3990           1 :             aStrBuf.append( input, radix );
    3991             : 
    3992           2 :             CPPUNIT_ASSERT_MESSAGE
    3993             :             (
    3994             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
    3995             :                 aStrBuf.getStr()== expVal &&
    3996             :                     aStrBuf.getLength() == expVal.getLength()
    3997           2 :             );
    3998             : 
    3999           1 :         }
    4000             : 
    4001           1 :         void append_043()
    4002             :         {
    4003           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4004           2 :             OString                expVal( aStrBuf.getStr() );
    4005           1 :             sal_Int32              input = 8;
    4006           1 :             sal_Int16              radix = 2;
    4007             : 
    4008           1 :             expVal += OString( "1000" );
    4009           1 :             aStrBuf.append( input, radix );
    4010             : 
    4011           2 :             CPPUNIT_ASSERT_MESSAGE
    4012             :             (
    4013             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
    4014             :                 aStrBuf.getStr()== expVal &&
    4015             :                     aStrBuf.getLength() == expVal.getLength()
    4016           2 :             );
    4017             : 
    4018           1 :         }
    4019             : 
    4020           1 :         void append_044()
    4021             :         {
    4022           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4023           2 :             OString                expVal( aStrBuf.getStr() );
    4024           1 :             sal_Int32              input = 15;
    4025           1 :             sal_Int16              radix = 2;
    4026             : 
    4027           1 :             expVal += OString( "1111" );
    4028           1 :             aStrBuf.append( input, radix );
    4029             : 
    4030           2 :             CPPUNIT_ASSERT_MESSAGE
    4031             :             (
    4032             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
    4033             :                 aStrBuf.getStr()== expVal &&
    4034             :                     aStrBuf.getLength() == expVal.getLength()
    4035           2 :             );
    4036             : 
    4037           1 :         }
    4038             : 
    4039           1 :         void append_045()
    4040             :         {
    4041           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4042           2 :             OString                expVal( aStrBuf.getStr() );
    4043           1 :             sal_Int32              input = 0;
    4044           1 :             sal_Int16              radix = 8;
    4045             : 
    4046           1 :             expVal += OString( "0" );
    4047           1 :             aStrBuf.append( input, radix );
    4048             : 
    4049           2 :             CPPUNIT_ASSERT_MESSAGE
    4050             :             (
    4051             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
    4052             :                 aStrBuf.getStr()== expVal &&
    4053             :                     aStrBuf.getLength() == expVal.getLength()
    4054           2 :             );
    4055             : 
    4056           1 :         }
    4057             : 
    4058           1 :         void append_046()
    4059             :         {
    4060           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4061           2 :             OString                expVal( aStrBuf.getStr() );
    4062           1 :             sal_Int32              input = 4;
    4063           1 :             sal_Int16              radix = 8;
    4064             : 
    4065           1 :             expVal += OString( "4" );
    4066           1 :             aStrBuf.append( input, radix );
    4067             : 
    4068           2 :             CPPUNIT_ASSERT_MESSAGE
    4069             :             (
    4070             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
    4071             :                 aStrBuf.getStr()== expVal &&
    4072             :                     aStrBuf.getLength() == expVal.getLength()
    4073           2 :             );
    4074             : 
    4075           1 :         }
    4076             : 
    4077           1 :         void append_047()
    4078             :         {
    4079           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4080           2 :             OString                expVal( aStrBuf.getStr() );
    4081           1 :             sal_Int32              input = 8;
    4082           1 :             sal_Int16              radix = 8;
    4083             : 
    4084           1 :             expVal += OString( "10" );
    4085           1 :             aStrBuf.append( input, radix );
    4086             : 
    4087           2 :             CPPUNIT_ASSERT_MESSAGE
    4088             :             (
    4089             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
    4090             :                 aStrBuf.getStr()== expVal &&
    4091             :                     aStrBuf.getLength() == expVal.getLength()
    4092           2 :             );
    4093             : 
    4094           1 :         }
    4095             : 
    4096           1 :         void append_048()
    4097             :         {
    4098           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4099           2 :             OString                expVal( aStrBuf.getStr() );
    4100           1 :             sal_Int32              input = 15;
    4101           1 :             sal_Int16              radix = 8;
    4102             : 
    4103           1 :             expVal += OString( "17" );
    4104           1 :             aStrBuf.append( input, radix );
    4105             : 
    4106           2 :             CPPUNIT_ASSERT_MESSAGE
    4107             :             (
    4108             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
    4109             :                 aStrBuf.getStr()== expVal &&
    4110             :                     aStrBuf.getLength() == expVal.getLength()
    4111           2 :             );
    4112             : 
    4113           1 :         }
    4114             : 
    4115           1 :         void append_049()
    4116             :         {
    4117           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4118           2 :             OString                expVal( aStrBuf.getStr() );
    4119           1 :             sal_Int32              input = 0;
    4120           1 :             sal_Int16              radix = 10;
    4121             : 
    4122           1 :             expVal += OString( "0" );
    4123           1 :             aStrBuf.append( input, radix );
    4124             : 
    4125           2 :             CPPUNIT_ASSERT_MESSAGE
    4126             :             (
    4127             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
    4128             :                 aStrBuf.getStr()== expVal &&
    4129             :                     aStrBuf.getLength() == expVal.getLength()
    4130           2 :             );
    4131             : 
    4132           1 :         }
    4133             : 
    4134           1 :         void append_050()
    4135             :         {
    4136           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4137           2 :             OString                expVal( aStrBuf.getStr() );
    4138           1 :             sal_Int32              input = 4;
    4139           1 :             sal_Int16              radix = 10;
    4140             : 
    4141           1 :             expVal += OString( "4" );
    4142           1 :             aStrBuf.append( input, radix );
    4143             : 
    4144           2 :             CPPUNIT_ASSERT_MESSAGE
    4145             :             (
    4146             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
    4147             :                 aStrBuf.getStr()== expVal &&
    4148             :                     aStrBuf.getLength() == expVal.getLength()
    4149           2 :             );
    4150             : 
    4151           1 :         }
    4152             : 
    4153           1 :         void append_051()
    4154             :         {
    4155           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4156           2 :             OString                expVal( aStrBuf.getStr() );
    4157           1 :             sal_Int32              input = 8;
    4158           1 :             sal_Int16              radix = 10;
    4159             : 
    4160           1 :             expVal += OString( "8" );
    4161           1 :             aStrBuf.append( input, radix );
    4162             : 
    4163           2 :             CPPUNIT_ASSERT_MESSAGE
    4164             :             (
    4165             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
    4166             :                 aStrBuf.getStr()== expVal &&
    4167             :                     aStrBuf.getLength() == expVal.getLength()
    4168           2 :             );
    4169             : 
    4170           1 :         }
    4171             : 
    4172           1 :         void append_052()
    4173             :         {
    4174           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4175           2 :             OString                expVal( aStrBuf.getStr() );
    4176           1 :             sal_Int32              input = 15;
    4177           1 :             sal_Int16              radix = 10;
    4178             : 
    4179           1 :             expVal += OString( "15" );
    4180           1 :             aStrBuf.append( input, radix );
    4181             : 
    4182           2 :             CPPUNIT_ASSERT_MESSAGE
    4183             :             (
    4184             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
    4185             :                 aStrBuf.getStr()== expVal &&
    4186             :                     aStrBuf.getLength() == expVal.getLength()
    4187           2 :             );
    4188             : 
    4189           1 :         }
    4190             : 
    4191           1 :         void append_053()
    4192             :         {
    4193           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4194           2 :             OString                expVal( aStrBuf.getStr() );
    4195           1 :             sal_Int32              input = 0;
    4196           1 :             sal_Int16              radix = 16;
    4197             : 
    4198           1 :             expVal += OString( "0" );
    4199           1 :             aStrBuf.append( input, radix );
    4200             : 
    4201           2 :             CPPUNIT_ASSERT_MESSAGE
    4202             :             (
    4203             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
    4204             :                 aStrBuf.getStr()== expVal &&
    4205             :                     aStrBuf.getLength() == expVal.getLength()
    4206           2 :             );
    4207             : 
    4208           1 :         }
    4209             : 
    4210           1 :         void append_054()
    4211             :         {
    4212           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4213           2 :             OString                expVal( aStrBuf.getStr() );
    4214           1 :             sal_Int32              input = 4;
    4215           1 :             sal_Int16              radix = 16;
    4216             : 
    4217           1 :             expVal += OString( "4" );
    4218           1 :             aStrBuf.append( input, radix );
    4219             : 
    4220           2 :             CPPUNIT_ASSERT_MESSAGE
    4221             :             (
    4222             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
    4223             :                 aStrBuf.getStr()== expVal &&
    4224             :                     aStrBuf.getLength() == expVal.getLength()
    4225           2 :             );
    4226             : 
    4227           1 :         }
    4228             : 
    4229           1 :         void append_055()
    4230             :         {
    4231           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4232           2 :             OString                expVal( aStrBuf.getStr() );
    4233           1 :             sal_Int32              input = 8;
    4234           1 :             sal_Int16              radix = 16;
    4235             : 
    4236           1 :             expVal += OString( "8" );
    4237           1 :             aStrBuf.append( input, radix );
    4238             : 
    4239           2 :             CPPUNIT_ASSERT_MESSAGE
    4240             :             (
    4241             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
    4242             :                 aStrBuf.getStr()== expVal &&
    4243             :                     aStrBuf.getLength() == expVal.getLength()
    4244           2 :             );
    4245             : 
    4246           1 :         }
    4247             : 
    4248           1 :         void append_056()
    4249             :         {
    4250           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4251           2 :             OString                expVal( aStrBuf.getStr() );
    4252           1 :             sal_Int32              input = 15;
    4253           1 :             sal_Int16              radix = 16;
    4254             : 
    4255           1 :             expVal += OString( "f" );
    4256           1 :             aStrBuf.append( input, radix );
    4257             : 
    4258           2 :             CPPUNIT_ASSERT_MESSAGE
    4259             :             (
    4260             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
    4261             :                 aStrBuf.getStr()== expVal &&
    4262             :                     aStrBuf.getLength() == expVal.getLength()
    4263           2 :             );
    4264             : 
    4265           1 :         }
    4266             : 
    4267           1 :         void append_057()
    4268             :         {
    4269           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4270           2 :             OString                expVal( aStrBuf.getStr() );
    4271           1 :             sal_Int32              input = 0;
    4272           1 :             sal_Int16              radix = 36;
    4273             : 
    4274           1 :             expVal += OString( "0" );
    4275           1 :             aStrBuf.append( input, radix );
    4276             : 
    4277           2 :             CPPUNIT_ASSERT_MESSAGE
    4278             :             (
    4279             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
    4280             :                 aStrBuf.getStr()== expVal &&
    4281             :                     aStrBuf.getLength() == expVal.getLength()
    4282           2 :             );
    4283             : 
    4284           1 :         }
    4285             : 
    4286           1 :         void append_058()
    4287             :         {
    4288           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4289           2 :             OString                expVal( aStrBuf.getStr() );
    4290           1 :             sal_Int32              input = 4;
    4291           1 :             sal_Int16              radix = 36;
    4292             : 
    4293           1 :             expVal += OString( "4" );
    4294           1 :             aStrBuf.append( input, radix );
    4295             : 
    4296           2 :             CPPUNIT_ASSERT_MESSAGE
    4297             :             (
    4298             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
    4299             :                 aStrBuf.getStr()== expVal &&
    4300             :                     aStrBuf.getLength() == expVal.getLength()
    4301           2 :             );
    4302             : 
    4303           1 :         }
    4304             : 
    4305           1 :         void append_059()
    4306             :         {
    4307           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4308           2 :             OString                expVal( aStrBuf.getStr() );
    4309           1 :             sal_Int32              input = 8;
    4310           1 :             sal_Int16              radix = 36;
    4311             : 
    4312           1 :             expVal += OString( "8" );
    4313           1 :             aStrBuf.append( input, radix );
    4314             : 
    4315           2 :             CPPUNIT_ASSERT_MESSAGE
    4316             :             (
    4317             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
    4318             :                 aStrBuf.getStr()== expVal &&
    4319             :                     aStrBuf.getLength() == expVal.getLength()
    4320           2 :             );
    4321             : 
    4322           1 :         }
    4323             : 
    4324           1 :         void append_060()
    4325             :         {
    4326           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4327           2 :             OString                expVal( aStrBuf.getStr() );
    4328           1 :             sal_Int32              input = 35;
    4329           1 :             sal_Int16              radix = 36;
    4330             : 
    4331           1 :             expVal += OString( "z" );
    4332           1 :             aStrBuf.append( input, radix );
    4333             : 
    4334           2 :             CPPUNIT_ASSERT_MESSAGE
    4335             :             (
    4336             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
    4337             :                 aStrBuf.getStr()== expVal &&
    4338             :                     aStrBuf.getLength() == expVal.getLength()
    4339           2 :             );
    4340             : 
    4341           1 :         }
    4342             : 
    4343           1 :         void append_061()
    4344             :         {
    4345           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4346           2 :             OString                expVal( aStrBuf.getStr() );
    4347           1 :             sal_Int32              input = 0;
    4348           1 :             sal_Int16              radix = 2;
    4349             : 
    4350           1 :             expVal += OString( "0" );
    4351           1 :             aStrBuf.append( input, radix );
    4352             : 
    4353           2 :             CPPUNIT_ASSERT_MESSAGE
    4354             :             (
    4355             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
    4356             :                 aStrBuf.getStr()== expVal &&
    4357             :                     aStrBuf.getLength() == expVal.getLength()
    4358           2 :             );
    4359             : 
    4360           1 :         }
    4361             : 
    4362           1 :         void append_062()
    4363             :         {
    4364           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4365           2 :             OString                expVal( aStrBuf.getStr() );
    4366           1 :             sal_Int32              input = 4;
    4367           1 :             sal_Int16              radix = 2;
    4368             : 
    4369           1 :             expVal += OString( "100" );
    4370           1 :             aStrBuf.append( input, radix );
    4371             : 
    4372           2 :             CPPUNIT_ASSERT_MESSAGE
    4373             :             (
    4374             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
    4375             :                 aStrBuf.getStr()== expVal &&
    4376             :                     aStrBuf.getLength() == expVal.getLength()
    4377           2 :             );
    4378             : 
    4379           1 :         }
    4380             : 
    4381           1 :         void append_063()
    4382             :         {
    4383           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4384           2 :             OString                expVal( aStrBuf.getStr() );
    4385           1 :             sal_Int32              input = 8;
    4386           1 :             sal_Int16              radix = 2;
    4387             : 
    4388           1 :             expVal += OString( "1000" );
    4389           1 :             aStrBuf.append( input, radix );
    4390             : 
    4391           2 :             CPPUNIT_ASSERT_MESSAGE
    4392             :             (
    4393             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
    4394             :                 aStrBuf.getStr()== expVal &&
    4395             :                     aStrBuf.getLength() == expVal.getLength()
    4396           2 :             );
    4397             : 
    4398           1 :         }
    4399             : 
    4400           1 :         void append_064()
    4401             :         {
    4402           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4403           2 :             OString                expVal( aStrBuf.getStr() );
    4404           1 :             sal_Int32              input = 15;
    4405           1 :             sal_Int16              radix = 2;
    4406             : 
    4407           1 :             expVal += OString( "1111" );
    4408           1 :             aStrBuf.append( input, radix );
    4409             : 
    4410           2 :             CPPUNIT_ASSERT_MESSAGE
    4411             :             (
    4412             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
    4413             :                 aStrBuf.getStr()== expVal &&
    4414             :                     aStrBuf.getLength() == expVal.getLength()
    4415           2 :             );
    4416             : 
    4417           1 :         }
    4418             : 
    4419           1 :         void append_065()
    4420             :         {
    4421           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4422           2 :             OString                expVal( aStrBuf.getStr() );
    4423           1 :             sal_Int32              input = 0;
    4424           1 :             sal_Int16              radix = 8;
    4425             : 
    4426           1 :             expVal += OString( "0" );
    4427           1 :             aStrBuf.append( input, radix );
    4428             : 
    4429           2 :             CPPUNIT_ASSERT_MESSAGE
    4430             :             (
    4431             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
    4432             :                 aStrBuf.getStr()== expVal &&
    4433             :                     aStrBuf.getLength() == expVal.getLength()
    4434           2 :             );
    4435             : 
    4436           1 :         }
    4437             : 
    4438           1 :         void append_066()
    4439             :         {
    4440           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4441           2 :             OString                expVal( aStrBuf.getStr() );
    4442           1 :             sal_Int32              input = 4;
    4443           1 :             sal_Int16              radix = 8;
    4444             : 
    4445           1 :             expVal += OString( "4" );
    4446           1 :             aStrBuf.append( input, radix );
    4447             : 
    4448           2 :             CPPUNIT_ASSERT_MESSAGE
    4449             :             (
    4450             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
    4451             :                 aStrBuf.getStr()== expVal &&
    4452             :                     aStrBuf.getLength() == expVal.getLength()
    4453           2 :             );
    4454             : 
    4455           1 :         }
    4456             : 
    4457           1 :         void append_067()
    4458             :         {
    4459           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4460           2 :             OString                expVal( aStrBuf.getStr() );
    4461           1 :             sal_Int32              input = 8;
    4462           1 :             sal_Int16              radix = 8;
    4463             : 
    4464           1 :             expVal += OString( "10" );
    4465           1 :             aStrBuf.append( input, radix );
    4466             : 
    4467           2 :             CPPUNIT_ASSERT_MESSAGE
    4468             :             (
    4469             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
    4470             :                 aStrBuf.getStr()== expVal &&
    4471             :                     aStrBuf.getLength() == expVal.getLength()
    4472           2 :             );
    4473             : 
    4474           1 :         }
    4475             : 
    4476           1 :         void append_068()
    4477             :         {
    4478           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4479           2 :             OString                expVal( aStrBuf.getStr() );
    4480           1 :             sal_Int32              input = 15;
    4481           1 :             sal_Int16              radix = 8;
    4482             : 
    4483           1 :             expVal += OString( "17" );
    4484           1 :             aStrBuf.append( input, radix );
    4485             : 
    4486           2 :             CPPUNIT_ASSERT_MESSAGE
    4487             :             (
    4488             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
    4489             :                 aStrBuf.getStr()== expVal &&
    4490             :                     aStrBuf.getLength() == expVal.getLength()
    4491           2 :             );
    4492             : 
    4493           1 :         }
    4494             : 
    4495           1 :         void append_069()
    4496             :         {
    4497           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4498           2 :             OString                expVal( aStrBuf.getStr() );
    4499           1 :             sal_Int32              input = 0;
    4500           1 :             sal_Int16              radix = 10;
    4501             : 
    4502           1 :             expVal += OString( "0" );
    4503           1 :             aStrBuf.append( input, radix );
    4504             : 
    4505           2 :             CPPUNIT_ASSERT_MESSAGE
    4506             :             (
    4507             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
    4508             :                 aStrBuf.getStr()== expVal &&
    4509             :                     aStrBuf.getLength() == expVal.getLength()
    4510           2 :             );
    4511             : 
    4512           1 :         }
    4513             : 
    4514           1 :         void append_070()
    4515             :         {
    4516           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4517           2 :             OString                expVal( aStrBuf.getStr() );
    4518           1 :             sal_Int32              input = 4;
    4519           1 :             sal_Int16              radix = 10;
    4520             : 
    4521           1 :             expVal += OString( "4" );
    4522           1 :             aStrBuf.append( input, radix );
    4523             : 
    4524           2 :             CPPUNIT_ASSERT_MESSAGE
    4525             :             (
    4526             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
    4527             :                 aStrBuf.getStr()== expVal &&
    4528             :                     aStrBuf.getLength() == expVal.getLength()
    4529           2 :             );
    4530             : 
    4531           1 :         }
    4532             : 
    4533           1 :         void append_071()
    4534             :         {
    4535           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4536           2 :             OString                expVal( aStrBuf.getStr() );
    4537           1 :             sal_Int32              input = 8;
    4538           1 :             sal_Int16              radix = 10;
    4539             : 
    4540           1 :             expVal += OString( "8" );
    4541           1 :             aStrBuf.append( input, radix );
    4542             : 
    4543           2 :             CPPUNIT_ASSERT_MESSAGE
    4544             :             (
    4545             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
    4546             :                 aStrBuf.getStr()== expVal &&
    4547             :                     aStrBuf.getLength() == expVal.getLength()
    4548           2 :             );
    4549             : 
    4550           1 :         }
    4551             : 
    4552           1 :         void append_072()
    4553             :         {
    4554           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4555           2 :             OString                expVal( aStrBuf.getStr() );
    4556           1 :             sal_Int32              input = 15;
    4557           1 :             sal_Int16              radix = 10;
    4558             : 
    4559           1 :             expVal += OString( "15" );
    4560           1 :             aStrBuf.append( input, radix );
    4561             : 
    4562           2 :             CPPUNIT_ASSERT_MESSAGE
    4563             :             (
    4564             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
    4565             :                 aStrBuf.getStr()== expVal &&
    4566             :                     aStrBuf.getLength() == expVal.getLength()
    4567           2 :             );
    4568             : 
    4569           1 :         }
    4570             : 
    4571           1 :         void append_073()
    4572             :         {
    4573           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4574           2 :             OString                expVal( aStrBuf.getStr() );
    4575           1 :             sal_Int32              input = 0;
    4576           1 :             sal_Int16              radix = 16;
    4577             : 
    4578           1 :             expVal += OString( "0" );
    4579           1 :             aStrBuf.append( input, radix );
    4580             : 
    4581           2 :             CPPUNIT_ASSERT_MESSAGE
    4582             :             (
    4583             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
    4584             :                 aStrBuf.getStr()== expVal &&
    4585             :                     aStrBuf.getLength() == expVal.getLength()
    4586           2 :             );
    4587             : 
    4588           1 :         }
    4589             : 
    4590           1 :         void append_074()
    4591             :         {
    4592           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4593           2 :             OString                expVal( aStrBuf.getStr() );
    4594           1 :             sal_Int32              input = 4;
    4595           1 :             sal_Int16              radix = 16;
    4596             : 
    4597           1 :             expVal += OString( "4" );
    4598           1 :             aStrBuf.append( input, radix );
    4599             : 
    4600           2 :             CPPUNIT_ASSERT_MESSAGE
    4601             :             (
    4602             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
    4603             :                 aStrBuf.getStr()== expVal &&
    4604             :                     aStrBuf.getLength() == expVal.getLength()
    4605           2 :             );
    4606             : 
    4607           1 :         }
    4608             : 
    4609           1 :         void append_075()
    4610             :         {
    4611           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4612           2 :             OString                expVal( aStrBuf.getStr() );
    4613           1 :             sal_Int32              input = 8;
    4614           1 :             sal_Int16              radix = 16;
    4615             : 
    4616           1 :             expVal += OString( "8" );
    4617           1 :             aStrBuf.append( input, radix );
    4618             : 
    4619           2 :             CPPUNIT_ASSERT_MESSAGE
    4620             :             (
    4621             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
    4622             :                 aStrBuf.getStr()== expVal &&
    4623             :                     aStrBuf.getLength() == expVal.getLength()
    4624           2 :             );
    4625             : 
    4626           1 :         }
    4627             : 
    4628           1 :         void append_076()
    4629             :         {
    4630           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4631           2 :             OString                expVal( aStrBuf.getStr() );
    4632           1 :             sal_Int32              input = 15;
    4633           1 :             sal_Int16              radix = 16;
    4634             : 
    4635           1 :             expVal += OString( "f" );
    4636           1 :             aStrBuf.append( input, radix );
    4637             : 
    4638           2 :             CPPUNIT_ASSERT_MESSAGE
    4639             :             (
    4640             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
    4641             :                 aStrBuf.getStr()== expVal &&
    4642             :                     aStrBuf.getLength() == expVal.getLength()
    4643           2 :             );
    4644             : 
    4645           1 :         }
    4646             : 
    4647           1 :         void append_077()
    4648             :         {
    4649           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4650           2 :             OString                expVal( aStrBuf.getStr() );
    4651           1 :             sal_Int32              input = 0;
    4652           1 :             sal_Int16              radix = 36;
    4653             : 
    4654           1 :             expVal += OString( "0" );
    4655           1 :             aStrBuf.append( input, radix );
    4656             : 
    4657           2 :             CPPUNIT_ASSERT_MESSAGE
    4658             :             (
    4659             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
    4660             :                 aStrBuf.getStr()== expVal &&
    4661             :                     aStrBuf.getLength() == expVal.getLength()
    4662           2 :             );
    4663             : 
    4664           1 :         }
    4665             : 
    4666           1 :         void append_078()
    4667             :         {
    4668           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4669           2 :             OString                expVal( aStrBuf.getStr() );
    4670           1 :             sal_Int32              input = 4;
    4671           1 :             sal_Int16              radix = 36;
    4672             : 
    4673           1 :             expVal += OString( "4" );
    4674           1 :             aStrBuf.append( input, radix );
    4675             : 
    4676           2 :             CPPUNIT_ASSERT_MESSAGE
    4677             :             (
    4678             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
    4679             :                 aStrBuf.getStr()== expVal &&
    4680             :                     aStrBuf.getLength() == expVal.getLength()
    4681           2 :             );
    4682             : 
    4683           1 :         }
    4684             : 
    4685           1 :         void append_079()
    4686             :         {
    4687           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4688           2 :             OString                expVal( aStrBuf.getStr() );
    4689           1 :             sal_Int32              input = 8;
    4690           1 :             sal_Int16              radix = 36;
    4691             : 
    4692           1 :             expVal += OString( "8" );
    4693           1 :             aStrBuf.append( input, radix );
    4694             : 
    4695           2 :             CPPUNIT_ASSERT_MESSAGE
    4696             :             (
    4697             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
    4698             :                 aStrBuf.getStr()== expVal &&
    4699             :                     aStrBuf.getLength() == expVal.getLength()
    4700           2 :             );
    4701             : 
    4702           1 :         }
    4703             : 
    4704           1 :         void append_080()
    4705             :         {
    4706           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4707           2 :             OString                expVal( aStrBuf.getStr() );
    4708           1 :             sal_Int32              input = 35;
    4709           1 :             sal_Int16              radix = 36;
    4710             : 
    4711           1 :             expVal += OString( "z" );
    4712           1 :             aStrBuf.append( input, radix );
    4713             : 
    4714           2 :             CPPUNIT_ASSERT_MESSAGE
    4715             :             (
    4716             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
    4717             :                 aStrBuf.getStr()== expVal &&
    4718             :                     aStrBuf.getLength() == expVal.getLength()
    4719           2 :             );
    4720             : 
    4721           1 :         }
    4722             : 
    4723           1 :         void append_081()
    4724             :         {
    4725           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    4726           2 :             OString                expVal( aStrBuf.getStr() );
    4727           1 :             sal_Int32              input = 0;
    4728           1 :             sal_Int16              radix = 2;
    4729             : 
    4730           1 :             expVal += OString( "0" );
    4731           1 :             aStrBuf.append( input, radix );
    4732             : 
    4733           2 :             CPPUNIT_ASSERT_MESSAGE
    4734             :             (
    4735             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
    4736             :                 aStrBuf.getStr()== expVal &&
    4737             :                     aStrBuf.getLength() == expVal.getLength()
    4738           2 :             );
    4739             : 
    4740           1 :         }
    4741             : 
    4742           1 :         void append_082()
    4743             :         {
    4744           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    4745           2 :             OString                expVal( aStrBuf.getStr() );
    4746           1 :             sal_Int32              input = 4;
    4747           1 :             sal_Int16              radix = 2;
    4748             : 
    4749           1 :             expVal += OString( "100" );
    4750           1 :             aStrBuf.append( input, radix );
    4751             : 
    4752           2 :             CPPUNIT_ASSERT_MESSAGE
    4753             :             (
    4754             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
    4755             :                 aStrBuf.getStr()== expVal &&
    4756             :                     aStrBuf.getLength() == expVal.getLength()
    4757           2 :             );
    4758             : 
    4759           1 :         }
    4760             : 
    4761           1 :         void append_083()
    4762             :         {
    4763           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    4764           2 :             OString                expVal( aStrBuf.getStr() );
    4765           1 :             sal_Int32              input = 8;
    4766           1 :             sal_Int16              radix = 2;
    4767             : 
    4768           1 :             expVal += OString( "1000" );
    4769           1 :             aStrBuf.append( input, radix );
    4770             : 
    4771           2 :             CPPUNIT_ASSERT_MESSAGE
    4772             :             (
    4773             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
    4774             :                 aStrBuf.getStr()== expVal &&
    4775             :                     aStrBuf.getLength() == expVal.getLength()
    4776           2 :             );
    4777             : 
    4778           1 :         }
    4779             : 
    4780           1 :         void append_084()
    4781             :         {
    4782           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    4783           2 :             OString                expVal( aStrBuf.getStr() );
    4784           1 :             sal_Int32              input = 15;
    4785           1 :             sal_Int16              radix = 2;
    4786             : 
    4787           1 :             expVal += OString( "1111" );
    4788           1 :             aStrBuf.append( input, radix );
    4789             : 
    4790           2 :             CPPUNIT_ASSERT_MESSAGE
    4791             :             (
    4792             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
    4793             :                 aStrBuf.getStr()== expVal &&
    4794             :                     aStrBuf.getLength() == expVal.getLength()
    4795           2 :             );
    4796             : 
    4797           1 :         }
    4798             : 
    4799           1 :         void append_085()
    4800             :         {
    4801           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    4802           2 :             OString                expVal( aStrBuf.getStr() );
    4803           1 :             sal_Int32              input = 0;
    4804           1 :             sal_Int16              radix = 8;
    4805             : 
    4806           1 :             expVal += OString( "0" );
    4807           1 :             aStrBuf.append( input, radix );
    4808             : 
    4809           2 :             CPPUNIT_ASSERT_MESSAGE
    4810             :             (
    4811             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
    4812             :                 aStrBuf.getStr()== expVal &&
    4813             :                     aStrBuf.getLength() == expVal.getLength()
    4814           2 :             );
    4815             : 
    4816           1 :         }
    4817             : 
    4818           1 :         void append_086()
    4819             :         {
    4820           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    4821           2 :             OString                expVal( aStrBuf.getStr() );
    4822           1 :             sal_Int32              input = 4;
    4823           1 :             sal_Int16              radix = 8;
    4824             : 
    4825           1 :             expVal += OString( "4" );
    4826           1 :             aStrBuf.append( input, radix );
    4827             : 
    4828           2 :             CPPUNIT_ASSERT_MESSAGE
    4829             :             (
    4830             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
    4831             :                 aStrBuf.getStr()== expVal &&
    4832             :                     aStrBuf.getLength() == expVal.getLength()
    4833           2 :             );
    4834             : 
    4835           1 :         }
    4836             : 
    4837           1 :         void append_087()
    4838             :         {
    4839           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    4840           2 :             OString                expVal( aStrBuf.getStr() );
    4841           1 :             sal_Int32              input = 8;
    4842           1 :             sal_Int16              radix = 8;
    4843             : 
    4844           1 :             expVal += OString( "10" );
    4845           1 :             aStrBuf.append( input, radix );
    4846             : 
    4847           2 :             CPPUNIT_ASSERT_MESSAGE
    4848             :             (
    4849             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
    4850             :                 aStrBuf.getStr()== expVal &&
    4851             :                     aStrBuf.getLength() == expVal.getLength()
    4852           2 :             );
    4853             : 
    4854           1 :         }
    4855             : 
    4856           1 :         void append_088()
    4857             :         {
    4858           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    4859           2 :             OString                expVal( aStrBuf.getStr() );
    4860           1 :             sal_Int32              input = 15;
    4861           1 :             sal_Int16              radix = 8;
    4862             : 
    4863           1 :             expVal += OString( "17" );
    4864           1 :             aStrBuf.append( input, radix );
    4865             : 
    4866           2 :             CPPUNIT_ASSERT_MESSAGE
    4867             :             (
    4868             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
    4869             :                 aStrBuf.getStr()== expVal &&
    4870             :                     aStrBuf.getLength() == expVal.getLength()
    4871           2 :             );
    4872             : 
    4873           1 :         }
    4874             : 
    4875           1 :         void append_089()
    4876             :         {
    4877           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    4878           2 :             OString                expVal( aStrBuf.getStr() );
    4879           1 :             sal_Int32              input = 0;
    4880           1 :             sal_Int16              radix = 10;
    4881             : 
    4882           1 :             expVal += OString( "0" );
    4883           1 :             aStrBuf.append( input, radix );
    4884             : 
    4885           2 :             CPPUNIT_ASSERT_MESSAGE
    4886             :             (
    4887             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
    4888             :                 aStrBuf.getStr()== expVal &&
    4889             :                     aStrBuf.getLength() == expVal.getLength()
    4890           2 :             );
    4891             : 
    4892           1 :         }
    4893             : 
    4894           1 :         void append_090()
    4895             :         {
    4896           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    4897           2 :             OString                expVal( aStrBuf.getStr() );
    4898           1 :             sal_Int32              input = 4;
    4899           1 :             sal_Int16              radix = 10;
    4900             : 
    4901           1 :             expVal += OString( "4" );
    4902           1 :             aStrBuf.append( input, radix );
    4903             : 
    4904           2 :             CPPUNIT_ASSERT_MESSAGE
    4905             :             (
    4906             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
    4907             :                 aStrBuf.getStr()== expVal &&
    4908             :                     aStrBuf.getLength() == expVal.getLength()
    4909           2 :             );
    4910             : 
    4911           1 :         }
    4912             : 
    4913           1 :         void append_091()
    4914             :         {
    4915           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    4916           2 :             OString                expVal( aStrBuf.getStr() );
    4917           1 :             sal_Int32              input = 8;
    4918           1 :             sal_Int16              radix = 10;
    4919             : 
    4920           1 :             expVal += OString( "8" );
    4921           1 :             aStrBuf.append( input, radix );
    4922             : 
    4923           2 :             CPPUNIT_ASSERT_MESSAGE
    4924             :             (
    4925             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
    4926             :                 aStrBuf.getStr()== expVal &&
    4927             :                     aStrBuf.getLength() == expVal.getLength()
    4928           2 :             );
    4929             : 
    4930           1 :         }
    4931             : 
    4932           1 :         void append_092()
    4933             :         {
    4934           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    4935           2 :             OString                expVal( aStrBuf.getStr() );
    4936           1 :             sal_Int32              input = 15;
    4937           1 :             sal_Int16              radix = 10;
    4938             : 
    4939           1 :             expVal += OString( "15" );
    4940           1 :             aStrBuf.append( input, radix );
    4941             : 
    4942           2 :             CPPUNIT_ASSERT_MESSAGE
    4943             :             (
    4944             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
    4945             :                 aStrBuf.getStr()== expVal &&
    4946             :                     aStrBuf.getLength() == expVal.getLength()
    4947           2 :             );
    4948             : 
    4949           1 :         }
    4950             : 
    4951           1 :         void append_093()
    4952             :         {
    4953           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    4954           2 :             OString                expVal( aStrBuf.getStr() );
    4955           1 :             sal_Int32              input = 0;
    4956           1 :             sal_Int16              radix = 16;
    4957             : 
    4958           1 :             expVal += OString( "0" );
    4959           1 :             aStrBuf.append( input, radix );
    4960             : 
    4961           2 :             CPPUNIT_ASSERT_MESSAGE
    4962             :             (
    4963             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
    4964             :                 aStrBuf.getStr()== expVal &&
    4965             :                     aStrBuf.getLength() == expVal.getLength()
    4966           2 :             );
    4967             : 
    4968           1 :         }
    4969             : 
    4970           1 :         void append_094()
    4971             :         {
    4972           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    4973           2 :             OString                expVal( aStrBuf.getStr() );
    4974           1 :             sal_Int32              input = 4;
    4975           1 :             sal_Int16              radix = 16;
    4976             : 
    4977           1 :             expVal += OString( "4" );
    4978           1 :             aStrBuf.append( input, radix );
    4979             : 
    4980           2 :             CPPUNIT_ASSERT_MESSAGE
    4981             :             (
    4982             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
    4983             :                 aStrBuf.getStr()== expVal &&
    4984             :                     aStrBuf.getLength() == expVal.getLength()
    4985           2 :             );
    4986             : 
    4987           1 :         }
    4988             : 
    4989           1 :         void append_095()
    4990             :         {
    4991           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    4992           2 :             OString                expVal( aStrBuf.getStr() );
    4993           1 :             sal_Int32              input = 8;
    4994           1 :             sal_Int16              radix = 16;
    4995             : 
    4996           1 :             expVal += OString( "8" );
    4997           1 :             aStrBuf.append( input, radix );
    4998             : 
    4999           2 :             CPPUNIT_ASSERT_MESSAGE
    5000             :             (
    5001             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
    5002             :                 aStrBuf.getStr()== expVal &&
    5003             :                     aStrBuf.getLength() == expVal.getLength()
    5004           2 :             );
    5005             : 
    5006           1 :         }
    5007             : 
    5008           1 :         void append_096()
    5009             :         {
    5010           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    5011           2 :             OString                expVal( aStrBuf.getStr() );
    5012           1 :             sal_Int32              input = 15;
    5013           1 :             sal_Int16              radix = 16;
    5014             : 
    5015           1 :             expVal += OString( "f" );
    5016           1 :             aStrBuf.append( input, radix );
    5017             : 
    5018           2 :             CPPUNIT_ASSERT_MESSAGE
    5019             :             (
    5020             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
    5021             :                 aStrBuf.getStr()== expVal &&
    5022             :                     aStrBuf.getLength() == expVal.getLength()
    5023           2 :             );
    5024             : 
    5025           1 :         }
    5026             : 
    5027           1 :         void append_097()
    5028             :         {
    5029           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    5030           2 :             OString                expVal( aStrBuf.getStr() );
    5031           1 :             sal_Int32              input = 0;
    5032           1 :             sal_Int16              radix = 36;
    5033             : 
    5034           1 :             expVal += OString( "0" );
    5035           1 :             aStrBuf.append( input, radix );
    5036             : 
    5037           2 :             CPPUNIT_ASSERT_MESSAGE
    5038             :             (
    5039             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
    5040             :                 aStrBuf.getStr()== expVal &&
    5041             :                     aStrBuf.getLength() == expVal.getLength()
    5042           2 :             );
    5043             : 
    5044           1 :         }
    5045             : 
    5046           1 :         void append_098()
    5047             :         {
    5048           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    5049           2 :             OString                expVal( aStrBuf.getStr() );
    5050           1 :             sal_Int32              input = 4;
    5051           1 :             sal_Int16              radix = 36;
    5052             : 
    5053           1 :             expVal += OString( "4" );
    5054           1 :             aStrBuf.append( input, radix );
    5055             : 
    5056           2 :             CPPUNIT_ASSERT_MESSAGE
    5057             :             (
    5058             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
    5059             :                 aStrBuf.getStr()== expVal &&
    5060             :                     aStrBuf.getLength() == expVal.getLength()
    5061           2 :             );
    5062             : 
    5063           1 :         }
    5064             : 
    5065           1 :         void append_099()
    5066             :         {
    5067           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    5068           2 :             OString                expVal( aStrBuf.getStr() );
    5069           1 :             sal_Int32              input = 8;
    5070           1 :             sal_Int16              radix = 36;
    5071             : 
    5072           1 :             expVal += OString( "8" );
    5073           1 :             aStrBuf.append( input, radix );
    5074             : 
    5075           2 :             CPPUNIT_ASSERT_MESSAGE
    5076             :             (
    5077             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
    5078             :                 aStrBuf.getStr()== expVal &&
    5079             :                     aStrBuf.getLength() == expVal.getLength()
    5080           2 :             );
    5081             : 
    5082           1 :         }
    5083             : 
    5084           1 :         void append_100()
    5085             :         {
    5086           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    5087           2 :             OString                expVal( aStrBuf.getStr() );
    5088           1 :             sal_Int32              input = 35;
    5089           1 :             sal_Int16              radix = 36;
    5090             : 
    5091           1 :             expVal += OString( "z" );
    5092           1 :             aStrBuf.append( input, radix );
    5093             : 
    5094           2 :             CPPUNIT_ASSERT_MESSAGE
    5095             :             (
    5096             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
    5097             :                 aStrBuf.getStr()== expVal &&
    5098             :                     aStrBuf.getLength() == expVal.getLength()
    5099           2 :             );
    5100             : 
    5101           1 :         }
    5102             : 
    5103           2 :         CPPUNIT_TEST_SUITE( append_006_Int32 );
    5104           1 :         CPPUNIT_TEST( append_001 ); CPPUNIT_TEST( append_002 );
    5105           1 :         CPPUNIT_TEST( append_003 ); CPPUNIT_TEST( append_004 );
    5106           1 :         CPPUNIT_TEST( append_005 ); CPPUNIT_TEST( append_006 );
    5107           1 :         CPPUNIT_TEST( append_007 ); CPPUNIT_TEST( append_008 );
    5108           1 :         CPPUNIT_TEST( append_009 ); CPPUNIT_TEST( append_010 );
    5109           1 :         CPPUNIT_TEST( append_011 ); CPPUNIT_TEST( append_012 );
    5110           1 :         CPPUNIT_TEST( append_013 ); CPPUNIT_TEST( append_014 );
    5111           1 :         CPPUNIT_TEST( append_015 ); CPPUNIT_TEST( append_016 );
    5112           1 :         CPPUNIT_TEST( append_017 ); CPPUNIT_TEST( append_018 );
    5113           1 :         CPPUNIT_TEST( append_019 ); CPPUNIT_TEST( append_020 );
    5114           1 :         CPPUNIT_TEST( append_021 ); CPPUNIT_TEST( append_022 );
    5115           1 :         CPPUNIT_TEST( append_023 ); CPPUNIT_TEST( append_024 );
    5116           1 :         CPPUNIT_TEST( append_025 ); CPPUNIT_TEST( append_026 );
    5117           1 :         CPPUNIT_TEST( append_027 ); CPPUNIT_TEST( append_028 );
    5118           1 :         CPPUNIT_TEST( append_029 ); CPPUNIT_TEST( append_030 );
    5119           1 :         CPPUNIT_TEST( append_031 ); CPPUNIT_TEST( append_032 );
    5120           1 :         CPPUNIT_TEST( append_033 ); CPPUNIT_TEST( append_034 );
    5121           1 :         CPPUNIT_TEST( append_035 ); CPPUNIT_TEST( append_036 );
    5122           1 :         CPPUNIT_TEST( append_037 ); CPPUNIT_TEST( append_038 );
    5123           1 :         CPPUNIT_TEST( append_039 ); CPPUNIT_TEST( append_040 );
    5124           1 :         CPPUNIT_TEST( append_041 ); CPPUNIT_TEST( append_042 );
    5125           1 :         CPPUNIT_TEST( append_043 ); CPPUNIT_TEST( append_044 );
    5126           1 :         CPPUNIT_TEST( append_045 ); CPPUNIT_TEST( append_046 );
    5127           1 :         CPPUNIT_TEST( append_047 ); CPPUNIT_TEST( append_048 );
    5128           1 :         CPPUNIT_TEST( append_049 ); CPPUNIT_TEST( append_050 );
    5129           1 :         CPPUNIT_TEST( append_051 ); CPPUNIT_TEST( append_052 );
    5130           1 :         CPPUNIT_TEST( append_053 ); CPPUNIT_TEST( append_054 );
    5131           1 :         CPPUNIT_TEST( append_055 ); CPPUNIT_TEST( append_056 );
    5132           1 :         CPPUNIT_TEST( append_057 ); CPPUNIT_TEST( append_058 );
    5133           1 :         CPPUNIT_TEST( append_059 ); CPPUNIT_TEST( append_060 );
    5134           1 :         CPPUNIT_TEST( append_061 ); CPPUNIT_TEST( append_062 );
    5135           1 :         CPPUNIT_TEST( append_063 ); CPPUNIT_TEST( append_064 );
    5136           1 :         CPPUNIT_TEST( append_065 ); CPPUNIT_TEST( append_066 );
    5137           1 :         CPPUNIT_TEST( append_067 ); CPPUNIT_TEST( append_068 );
    5138           1 :         CPPUNIT_TEST( append_069 ); CPPUNIT_TEST( append_070 );
    5139           1 :         CPPUNIT_TEST( append_071 ); CPPUNIT_TEST( append_072 );
    5140           1 :         CPPUNIT_TEST( append_073 ); CPPUNIT_TEST( append_074 );
    5141           1 :         CPPUNIT_TEST( append_075 ); CPPUNIT_TEST( append_076 );
    5142           1 :         CPPUNIT_TEST( append_077 ); CPPUNIT_TEST( append_078 );
    5143           1 :         CPPUNIT_TEST( append_079 ); CPPUNIT_TEST( append_080 );
    5144           1 :         CPPUNIT_TEST( append_081 ); CPPUNIT_TEST( append_082 );
    5145           1 :         CPPUNIT_TEST( append_083 ); CPPUNIT_TEST( append_084 );
    5146           1 :         CPPUNIT_TEST( append_085 ); CPPUNIT_TEST( append_086 );
    5147           1 :         CPPUNIT_TEST( append_087 ); CPPUNIT_TEST( append_088 );
    5148           1 :         CPPUNIT_TEST( append_089 ); CPPUNIT_TEST( append_090 );
    5149           1 :         CPPUNIT_TEST( append_091 ); CPPUNIT_TEST( append_092 );
    5150           1 :         CPPUNIT_TEST( append_093 ); CPPUNIT_TEST( append_094 );
    5151           1 :         CPPUNIT_TEST( append_095 ); CPPUNIT_TEST( append_096 );
    5152           1 :         CPPUNIT_TEST( append_097 ); CPPUNIT_TEST( append_098 );
    5153           1 :         CPPUNIT_TEST( append_099 ); CPPUNIT_TEST( append_100 );
    5154           2 :         CPPUNIT_TEST_SUITE_END();
    5155             :     };
    5156             : 
    5157             : // testing the method append( sal_Int32 i, sal_Int16 radix=2 )
    5158             : // where i = large constants
    5159             : // testing the method append( sal_Int32 i, sal_Int16 radix=8 )
    5160             : // where i = large constants
    5161             : // testing the method append( sal_Int32 i, sal_Int16 radix=10 )
    5162             : // where i = large constants
    5163             : // testing the method append( sal_Int32 i, sal_Int16 radix=16 )
    5164             : // where i = large constants
    5165             : // testing the method append( sal_Int32 i, sal_Int16 radix=36 )
    5166             : // where i = large constants
    5167             : 
    5168         150 :     class  append_006_Int32_Bounderies : public CppUnit::TestFixture
    5169             :     {
    5170             :         OString* arrOUS[5];
    5171             : 
    5172             :     public:
    5173          50 :         void setUp() SAL_OVERRIDE
    5174             :         {
    5175          50 :             arrOUS[0] = new OString( kTestStr7 );
    5176          50 :             arrOUS[1] = new OString(  );
    5177          50 :             arrOUS[2] = new OString( kTestStr25 );
    5178          50 :             arrOUS[3] = new OString( "" );
    5179          50 :             arrOUS[4] = new OString( kTestStr28 );
    5180             : 
    5181          50 :         }
    5182             : 
    5183          50 :         void tearDown() SAL_OVERRIDE
    5184             :         {
    5185          50 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
    5186          50 :             delete arrOUS[3]; delete arrOUS[4];
    5187          50 :         }
    5188             : 
    5189           1 :         void append_001()
    5190             :         {
    5191           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    5192           2 :             OString                expVal( aStrBuf.getStr() );
    5193           1 :             sal_Int32              input = kSInt8Max;
    5194           1 :             sal_Int16              radix = 2;
    5195             : 
    5196           1 :             expVal += OString( "1111111" );
    5197           1 :             aStrBuf.append( input, radix );
    5198             : 
    5199           2 :             CPPUNIT_ASSERT_MESSAGE
    5200             :             (
    5201             :                 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
    5202             :                 aStrBuf.getStr()== expVal &&
    5203             :                     aStrBuf.getLength() == expVal.getLength()
    5204           2 :             );
    5205             : 
    5206           1 :         }
    5207             : 
    5208           1 :         void append_002()
    5209             :         {
    5210           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    5211           2 :             OString                expVal( aStrBuf.getStr() );
    5212           1 :             sal_Int32              input = kSInt32Max;
    5213           1 :             sal_Int16              radix = 2;
    5214             : 
    5215           1 :             expVal += OString( "1111111111111111111111111111111" );
    5216           1 :             aStrBuf.append( input, radix );
    5217             : 
    5218           2 :             CPPUNIT_ASSERT_MESSAGE
    5219             :             (
    5220             :                 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
    5221             :                 aStrBuf.getStr()== expVal &&
    5222             :                     aStrBuf.getLength() == expVal.getLength()
    5223           2 :             );
    5224             : 
    5225           1 :         }
    5226             : 
    5227           1 :         void append_003()
    5228             :         {
    5229           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    5230           2 :             OString                expVal( aStrBuf.getStr() );
    5231           1 :             sal_Int32              input = kSInt8Max;
    5232           1 :             sal_Int16              radix = 8;
    5233             : 
    5234           1 :             expVal += OString( "177" );
    5235           1 :             aStrBuf.append( input, radix );
    5236             : 
    5237           2 :             CPPUNIT_ASSERT_MESSAGE
    5238             :             (
    5239             :                 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
    5240             :                 aStrBuf.getStr()== expVal &&
    5241             :                     aStrBuf.getLength() == expVal.getLength()
    5242           2 :             );
    5243             : 
    5244           1 :         }
    5245             : 
    5246           1 :         void append_004()
    5247             :         {
    5248           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    5249           2 :             OString                expVal( aStrBuf.getStr() );
    5250           1 :             sal_Int32              input = kSInt32Max;
    5251           1 :             sal_Int16              radix = 8;
    5252             : 
    5253           1 :             expVal += OString( "17777777777" );
    5254           1 :             aStrBuf.append( input, radix );
    5255             : 
    5256           2 :             CPPUNIT_ASSERT_MESSAGE
    5257             :             (
    5258             :                 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
    5259             :                 aStrBuf.getStr()== expVal &&
    5260             :                     aStrBuf.getLength() == expVal.getLength()
    5261           2 :             );
    5262             : 
    5263           1 :         }
    5264             : 
    5265           1 :         void append_005()
    5266             :         {
    5267           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    5268           2 :             OString                expVal( aStrBuf.getStr() );
    5269           1 :             sal_Int32              input = kSInt8Max;
    5270           1 :             sal_Int16              radix = 10;
    5271             : 
    5272           1 :             expVal += OString( "127" );
    5273           1 :             aStrBuf.append( input, radix );
    5274             : 
    5275           2 :             CPPUNIT_ASSERT_MESSAGE
    5276             :             (
    5277             :                 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
    5278             :                 aStrBuf.getStr()== expVal &&
    5279             :                     aStrBuf.getLength() == expVal.getLength()
    5280           2 :             );
    5281             : 
    5282           1 :         }
    5283             : 
    5284           1 :         void append_006()
    5285             :         {
    5286           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    5287           2 :             OString                expVal( aStrBuf.getStr() );
    5288           1 :             sal_Int32              input = kSInt32Max;
    5289           1 :             sal_Int16              radix = 10;
    5290             : 
    5291           1 :             expVal += OString( "2147483647" );
    5292           1 :             aStrBuf.append( input, radix );
    5293             : 
    5294           2 :             CPPUNIT_ASSERT_MESSAGE
    5295             :             (
    5296             :                 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
    5297             :                 aStrBuf.getStr()== expVal &&
    5298             :                     aStrBuf.getLength() == expVal.getLength()
    5299           2 :             );
    5300             : 
    5301           1 :         }
    5302             : 
    5303           1 :         void append_007()
    5304             :         {
    5305           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    5306           2 :             OString                expVal( aStrBuf.getStr() );
    5307           1 :             sal_Int32              input = kSInt8Max;
    5308           1 :             sal_Int16              radix = 16;
    5309             : 
    5310           1 :             expVal += OString( "7f" );
    5311           1 :             aStrBuf.append( input, radix );
    5312             : 
    5313           2 :             CPPUNIT_ASSERT_MESSAGE
    5314             :             (
    5315             :                 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
    5316             :                 aStrBuf.getStr()== expVal &&
    5317             :                     aStrBuf.getLength() == expVal.getLength()
    5318           2 :             );
    5319             : 
    5320           1 :         }
    5321             : 
    5322           1 :         void append_008()
    5323             :         {
    5324           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    5325           2 :             OString                expVal( aStrBuf.getStr() );
    5326           1 :             sal_Int32              input = kSInt32Max;
    5327           1 :             sal_Int16              radix = 16;
    5328             : 
    5329           1 :             expVal += OString( "7fffffff" );
    5330           1 :             aStrBuf.append( input, radix );
    5331             : 
    5332           2 :             CPPUNIT_ASSERT_MESSAGE
    5333             :             (
    5334             :                 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
    5335             :                 aStrBuf.getStr()== expVal &&
    5336             :                     aStrBuf.getLength() == expVal.getLength()
    5337           2 :             );
    5338             : 
    5339           1 :         }
    5340             : 
    5341           1 :         void append_009()
    5342             :         {
    5343           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    5344           2 :             OString                expVal( aStrBuf.getStr() );
    5345           1 :             sal_Int32              input = kSInt8Max;
    5346           1 :             sal_Int16              radix = 36;
    5347             : 
    5348           1 :             expVal += OString( "3j" );
    5349           1 :             aStrBuf.append( input, radix );
    5350             : 
    5351           2 :             CPPUNIT_ASSERT_MESSAGE
    5352             :             (
    5353             :                 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
    5354             :                 aStrBuf.getStr()== expVal &&
    5355             :                     aStrBuf.getLength() == expVal.getLength()
    5356           2 :             );
    5357             : 
    5358           1 :         }
    5359             : 
    5360           1 :         void append_010()
    5361             :         {
    5362           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    5363           2 :             OString                expVal( aStrBuf.getStr() );
    5364           1 :             sal_Int32              input = kSInt32Max;
    5365           1 :             sal_Int16              radix = 36;
    5366             : 
    5367           1 :             expVal += OString( "zik0zj" );
    5368           1 :             aStrBuf.append( input, radix );
    5369             : 
    5370           2 :             CPPUNIT_ASSERT_MESSAGE
    5371             :             (
    5372             :                 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
    5373             :                 aStrBuf.getStr()== expVal &&
    5374             :                     aStrBuf.getLength() == expVal.getLength()
    5375           2 :             );
    5376             : 
    5377           1 :         }
    5378             : 
    5379           1 :         void append_011()
    5380             :         {
    5381           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    5382           2 :             OString                expVal( aStrBuf.getStr() );
    5383           1 :             sal_Int32              input = kSInt8Max;
    5384           1 :             sal_Int16              radix = 2;
    5385             : 
    5386           1 :             expVal += OString( "1111111" );
    5387           1 :             aStrBuf.append( input, radix );
    5388             : 
    5389           2 :             CPPUNIT_ASSERT_MESSAGE
    5390             :             (
    5391             :                 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
    5392             :                 aStrBuf.getStr()== expVal &&
    5393             :                     aStrBuf.getLength() == expVal.getLength()
    5394           2 :             );
    5395             : 
    5396           1 :         }
    5397             : 
    5398           1 :         void append_012()
    5399             :         {
    5400           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    5401           2 :             OString                expVal( aStrBuf.getStr() );
    5402           1 :             sal_Int32              input = kSInt32Max;
    5403           1 :             sal_Int16              radix = 2;
    5404             : 
    5405           1 :             expVal += OString( "1111111111111111111111111111111" );
    5406           1 :             aStrBuf.append( input, radix );
    5407             : 
    5408           2 :             CPPUNIT_ASSERT_MESSAGE
    5409             :             (
    5410             :                 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
    5411             :                 aStrBuf.getStr()== expVal &&
    5412             :                     aStrBuf.getLength() == expVal.getLength()
    5413           2 :             );
    5414             : 
    5415           1 :         }
    5416             : 
    5417           1 :         void append_013()
    5418             :         {
    5419           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    5420           2 :             OString                expVal( aStrBuf.getStr() );
    5421           1 :             sal_Int32              input = kSInt8Max;
    5422           1 :             sal_Int16              radix = 8;
    5423             : 
    5424           1 :             expVal += OString( "177" );
    5425           1 :             aStrBuf.append( input, radix );
    5426             : 
    5427           2 :             CPPUNIT_ASSERT_MESSAGE
    5428             :             (
    5429             :                 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
    5430             :                 aStrBuf.getStr()== expVal &&
    5431             :                     aStrBuf.getLength() == expVal.getLength()
    5432           2 :             );
    5433             : 
    5434           1 :         }
    5435             : 
    5436           1 :         void append_014()
    5437             :         {
    5438           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    5439           2 :             OString                expVal( aStrBuf.getStr() );
    5440           1 :             sal_Int32              input = kSInt32Max;
    5441           1 :             sal_Int16              radix = 8;
    5442             : 
    5443           1 :             expVal += OString( "17777777777" );
    5444           1 :             aStrBuf.append( input, radix );
    5445             : 
    5446           2 :             CPPUNIT_ASSERT_MESSAGE
    5447             :             (
    5448             :                 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
    5449             :                 aStrBuf.getStr()== expVal &&
    5450             :                     aStrBuf.getLength() == expVal.getLength()
    5451           2 :             );
    5452             : 
    5453           1 :         }
    5454             : 
    5455           1 :         void append_015()
    5456             :         {
    5457           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    5458           2 :             OString                expVal( aStrBuf.getStr() );
    5459           1 :             sal_Int32              input = kSInt8Max;
    5460           1 :             sal_Int16              radix = 10;
    5461             : 
    5462           1 :             expVal += OString( "127" );
    5463           1 :             aStrBuf.append( input, radix );
    5464             : 
    5465           2 :             CPPUNIT_ASSERT_MESSAGE
    5466             :             (
    5467             :                 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
    5468             :                 aStrBuf.getStr()== expVal &&
    5469             :                     aStrBuf.getLength() == expVal.getLength()
    5470           2 :             );
    5471             : 
    5472           1 :         }
    5473             : 
    5474           1 :         void append_016()
    5475             :         {
    5476           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    5477           2 :             OString                expVal( aStrBuf.getStr() );
    5478           1 :             sal_Int32              input = kSInt32Max;
    5479           1 :             sal_Int16              radix = 10;
    5480             : 
    5481           1 :             expVal += OString( "2147483647" );
    5482           1 :             aStrBuf.append( input, radix );
    5483             : 
    5484           2 :             CPPUNIT_ASSERT_MESSAGE
    5485             :             (
    5486             :                 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
    5487             :                 aStrBuf.getStr()== expVal &&
    5488             :                     aStrBuf.getLength() == expVal.getLength()
    5489           2 :             );
    5490             : 
    5491           1 :         }
    5492             : 
    5493           1 :         void append_017()
    5494             :         {
    5495           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    5496           2 :             OString                expVal( aStrBuf.getStr() );
    5497           1 :             sal_Int32              input = kSInt8Max;
    5498           1 :             sal_Int16              radix = 16;
    5499             : 
    5500           1 :             expVal += OString( "7f" );
    5501           1 :             aStrBuf.append( input, radix );
    5502             : 
    5503           2 :             CPPUNIT_ASSERT_MESSAGE
    5504             :             (
    5505             :                 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
    5506             :                 aStrBuf.getStr()== expVal &&
    5507             :                     aStrBuf.getLength() == expVal.getLength()
    5508           2 :             );
    5509             : 
    5510           1 :         }
    5511             : 
    5512           1 :         void append_018()
    5513             :         {
    5514           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    5515           2 :             OString                expVal( aStrBuf.getStr() );
    5516           1 :             sal_Int32              input = kSInt32Max;
    5517           1 :             sal_Int16              radix = 16;
    5518             : 
    5519           1 :             expVal += OString( "7fffffff" );
    5520           1 :             aStrBuf.append( input, radix );
    5521             : 
    5522           2 :             CPPUNIT_ASSERT_MESSAGE
    5523             :             (
    5524             :                 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
    5525             :                 aStrBuf.getStr()== expVal &&
    5526             :                     aStrBuf.getLength() == expVal.getLength()
    5527           2 :             );
    5528             : 
    5529           1 :         }
    5530             : 
    5531           1 :         void append_019()
    5532             :         {
    5533           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    5534           2 :             OString                expVal( aStrBuf.getStr() );
    5535           1 :             sal_Int32              input = kSInt8Max;
    5536           1 :             sal_Int16              radix = 36;
    5537             : 
    5538           1 :             expVal += OString( "3j" );
    5539           1 :             aStrBuf.append( input, radix );
    5540             : 
    5541           2 :             CPPUNIT_ASSERT_MESSAGE
    5542             :             (
    5543             :                 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
    5544             :                 aStrBuf.getStr()== expVal &&
    5545             :                     aStrBuf.getLength() == expVal.getLength()
    5546           2 :             );
    5547             : 
    5548           1 :         }
    5549             : 
    5550           1 :         void append_020()
    5551             :         {
    5552           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    5553           2 :             OString                expVal( aStrBuf.getStr() );
    5554           1 :             sal_Int32              input = kSInt32Max;
    5555           1 :             sal_Int16              radix = 36;
    5556             : 
    5557           1 :             expVal += OString( "zik0zj" );
    5558           1 :             aStrBuf.append( input, radix );
    5559             : 
    5560           2 :             CPPUNIT_ASSERT_MESSAGE
    5561             :             (
    5562             :                 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
    5563             :                 aStrBuf.getStr()== expVal &&
    5564             :                     aStrBuf.getLength() == expVal.getLength()
    5565           2 :             );
    5566             : 
    5567           1 :         }
    5568             : 
    5569           1 :         void append_021()
    5570             :         {
    5571           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    5572           2 :             OString                expVal( aStrBuf.getStr() );
    5573           1 :             sal_Int32              input = kSInt8Max;
    5574           1 :             sal_Int16              radix = 2;
    5575             : 
    5576           1 :             expVal += OString( "1111111" );
    5577           1 :             aStrBuf.append( input, radix );
    5578             : 
    5579           2 :             CPPUNIT_ASSERT_MESSAGE
    5580             :             (
    5581             :                 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
    5582             :                 aStrBuf.getStr()== expVal &&
    5583             :                     aStrBuf.getLength() == expVal.getLength()
    5584           2 :             );
    5585             : 
    5586           1 :         }
    5587             : 
    5588           1 :         void append_022()
    5589             :         {
    5590           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    5591           2 :             OString                expVal( aStrBuf.getStr() );
    5592           1 :             sal_Int32              input = kSInt32Max;
    5593           1 :             sal_Int16              radix = 2;
    5594             : 
    5595           1 :             expVal += OString( "1111111111111111111111111111111" );
    5596           1 :             aStrBuf.append( input, radix );
    5597             : 
    5598           2 :             CPPUNIT_ASSERT_MESSAGE
    5599             :             (
    5600             :                 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
    5601             :                 aStrBuf.getStr()== expVal &&
    5602             :                     aStrBuf.getLength() == expVal.getLength()
    5603           2 :             );
    5604             : 
    5605           1 :         }
    5606             : 
    5607           1 :         void append_023()
    5608             :         {
    5609           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    5610           2 :             OString                expVal( aStrBuf.getStr() );
    5611           1 :             sal_Int32              input = kSInt8Max;
    5612           1 :             sal_Int16              radix = 8;
    5613             : 
    5614           1 :             expVal += OString( "177" );
    5615           1 :             aStrBuf.append( input, radix );
    5616             : 
    5617           2 :             CPPUNIT_ASSERT_MESSAGE
    5618             :             (
    5619             :                 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
    5620             :                 aStrBuf.getStr()== expVal &&
    5621             :                     aStrBuf.getLength() == expVal.getLength()
    5622           2 :             );
    5623             : 
    5624           1 :         }
    5625             : 
    5626           1 :         void append_024()
    5627             :         {
    5628           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    5629           2 :             OString                expVal( aStrBuf.getStr() );
    5630           1 :             sal_Int32              input = kSInt32Max;
    5631           1 :             sal_Int16              radix = 8;
    5632             : 
    5633           1 :             expVal += OString( "17777777777" );
    5634           1 :             aStrBuf.append( input, radix );
    5635             : 
    5636           2 :             CPPUNIT_ASSERT_MESSAGE
    5637             :             (
    5638             :                 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
    5639             :                 aStrBuf.getStr()== expVal &&
    5640             :                     aStrBuf.getLength() == expVal.getLength()
    5641           2 :             );
    5642             : 
    5643           1 :         }
    5644             : 
    5645           1 :         void append_025()
    5646             :         {
    5647           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    5648           2 :             OString                expVal( aStrBuf.getStr() );
    5649           1 :             sal_Int32              input = kSInt8Max;
    5650           1 :             sal_Int16              radix = 10;
    5651             : 
    5652           1 :             expVal += OString( "127" );
    5653           1 :             aStrBuf.append( input, radix );
    5654             : 
    5655           2 :             CPPUNIT_ASSERT_MESSAGE
    5656             :             (
    5657             :                 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
    5658             :                 aStrBuf.getStr()== expVal &&
    5659             :                     aStrBuf.getLength() == expVal.getLength()
    5660           2 :             );
    5661             : 
    5662           1 :         }
    5663             : 
    5664           1 :         void append_026()
    5665             :         {
    5666           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    5667           2 :             OString                expVal( aStrBuf.getStr() );
    5668           1 :             sal_Int32              input = kSInt32Max;
    5669           1 :             sal_Int16              radix = 10;
    5670             : 
    5671           1 :             expVal += OString( "2147483647" );
    5672           1 :             aStrBuf.append( input, radix );
    5673             : 
    5674           2 :             CPPUNIT_ASSERT_MESSAGE
    5675             :             (
    5676             :                 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
    5677             :                 aStrBuf.getStr()== expVal &&
    5678             :                     aStrBuf.getLength() == expVal.getLength()
    5679           2 :             );
    5680             : 
    5681           1 :         }
    5682             : 
    5683           1 :         void append_027()
    5684             :         {
    5685           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    5686           2 :             OString                expVal( aStrBuf.getStr() );
    5687           1 :             sal_Int32              input = kSInt8Max;
    5688           1 :             sal_Int16              radix = 16;
    5689             : 
    5690           1 :             expVal += OString( "7f" );
    5691           1 :             aStrBuf.append( input, radix );
    5692             : 
    5693           2 :             CPPUNIT_ASSERT_MESSAGE
    5694             :             (
    5695             :                 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
    5696             :                 aStrBuf.getStr()== expVal &&
    5697             :                     aStrBuf.getLength() == expVal.getLength()
    5698           2 :             );
    5699             : 
    5700           1 :         }
    5701             : 
    5702           1 :         void append_028()
    5703             :         {
    5704           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    5705           2 :             OString                expVal( aStrBuf.getStr() );
    5706           1 :             sal_Int32              input = kSInt32Max;
    5707           1 :             sal_Int16              radix = 16;
    5708             : 
    5709           1 :             expVal += OString( "7fffffff" );
    5710           1 :             aStrBuf.append( input, radix );
    5711             : 
    5712           2 :             CPPUNIT_ASSERT_MESSAGE
    5713             :             (
    5714             :                 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
    5715             :                 aStrBuf.getStr()== expVal &&
    5716             :                     aStrBuf.getLength() == expVal.getLength()
    5717           2 :             );
    5718             : 
    5719           1 :         }
    5720             : 
    5721           1 :         void append_029()
    5722             :         {
    5723           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    5724           2 :             OString                expVal( aStrBuf.getStr() );
    5725           1 :             sal_Int32              input = kSInt8Max;
    5726           1 :             sal_Int16              radix = 36;
    5727             : 
    5728           1 :             expVal += OString( "3j" );
    5729           1 :             aStrBuf.append( input, radix );
    5730             : 
    5731           2 :             CPPUNIT_ASSERT_MESSAGE
    5732             :             (
    5733             :                 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
    5734             :                 aStrBuf.getStr()== expVal &&
    5735             :                     aStrBuf.getLength() == expVal.getLength()
    5736           2 :             );
    5737             : 
    5738           1 :         }
    5739             : 
    5740           1 :         void append_030()
    5741             :         {
    5742           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    5743           2 :             OString                expVal( aStrBuf.getStr() );
    5744           1 :             sal_Int32              input = kSInt32Max;
    5745           1 :             sal_Int16              radix = 36;
    5746             : 
    5747           1 :             expVal += OString( "zik0zj" );
    5748           1 :             aStrBuf.append( input, radix );
    5749             : 
    5750           2 :             CPPUNIT_ASSERT_MESSAGE
    5751             :             (
    5752             :                 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
    5753             :                 aStrBuf.getStr()== expVal &&
    5754             :                     aStrBuf.getLength() == expVal.getLength()
    5755           2 :             );
    5756             : 
    5757           1 :         }
    5758             : 
    5759           1 :         void append_031()
    5760             :         {
    5761           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    5762           2 :             OString                expVal( aStrBuf.getStr() );
    5763           1 :             sal_Int32              input = kSInt8Max;
    5764           1 :             sal_Int16              radix = 2;
    5765             : 
    5766           1 :             expVal += OString( "1111111" );
    5767           1 :             aStrBuf.append( input, radix );
    5768             : 
    5769           2 :             CPPUNIT_ASSERT_MESSAGE
    5770             :             (
    5771             :                 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
    5772             :                 aStrBuf.getStr()== expVal &&
    5773             :                     aStrBuf.getLength() == expVal.getLength()
    5774           2 :             );
    5775             : 
    5776           1 :         }
    5777             : 
    5778           1 :         void append_032()
    5779             :         {
    5780           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    5781           2 :             OString                expVal( aStrBuf.getStr() );
    5782           1 :             sal_Int32              input = kSInt32Max;
    5783           1 :             sal_Int16              radix = 2;
    5784             : 
    5785           1 :             expVal += OString( "1111111111111111111111111111111" );
    5786           1 :             aStrBuf.append( input, radix );
    5787             : 
    5788           2 :             CPPUNIT_ASSERT_MESSAGE
    5789             :             (
    5790             :                 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
    5791             :                 aStrBuf.getStr()== expVal &&
    5792             :                     aStrBuf.getLength() == expVal.getLength()
    5793           2 :             );
    5794             : 
    5795           1 :         }
    5796             : 
    5797           1 :         void append_033()
    5798             :         {
    5799           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    5800           2 :             OString                expVal( aStrBuf.getStr() );
    5801           1 :             sal_Int32              input = kSInt8Max;
    5802           1 :             sal_Int16              radix = 8;
    5803             : 
    5804           1 :             expVal += OString( "177" );
    5805           1 :             aStrBuf.append( input, radix );
    5806             : 
    5807           2 :             CPPUNIT_ASSERT_MESSAGE
    5808             :             (
    5809             :                 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
    5810             :                 aStrBuf.getStr()== expVal &&
    5811             :                     aStrBuf.getLength() == expVal.getLength()
    5812           2 :             );
    5813             : 
    5814           1 :         }
    5815             : 
    5816           1 :         void append_034()
    5817             :         {
    5818           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    5819           2 :             OString                expVal( aStrBuf.getStr() );
    5820           1 :             sal_Int32              input = kSInt32Max;
    5821           1 :             sal_Int16              radix = 8;
    5822             : 
    5823           1 :             expVal += OString( "17777777777" );
    5824           1 :             aStrBuf.append( input, radix );
    5825             : 
    5826           2 :             CPPUNIT_ASSERT_MESSAGE
    5827             :             (
    5828             :                 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
    5829             :                 aStrBuf.getStr()== expVal &&
    5830             :                     aStrBuf.getLength() == expVal.getLength()
    5831           2 :             );
    5832             : 
    5833           1 :         }
    5834             : 
    5835           1 :         void append_035()
    5836             :         {
    5837           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    5838           2 :             OString                expVal( aStrBuf.getStr() );
    5839           1 :             sal_Int32              input = kSInt8Max;
    5840           1 :             sal_Int16              radix = 10;
    5841             : 
    5842           1 :             expVal += OString( "127" );
    5843           1 :             aStrBuf.append( input, radix );
    5844             : 
    5845           2 :             CPPUNIT_ASSERT_MESSAGE
    5846             :             (
    5847             :                 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
    5848             :                 aStrBuf.getStr()== expVal &&
    5849             :                     aStrBuf.getLength() == expVal.getLength()
    5850           2 :             );
    5851             : 
    5852           1 :         }
    5853             : 
    5854           1 :         void append_036()
    5855             :         {
    5856           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    5857           2 :             OString                expVal( aStrBuf.getStr() );
    5858           1 :             sal_Int32              input = kSInt32Max;
    5859           1 :             sal_Int16              radix = 10;
    5860             : 
    5861           1 :             expVal += OString( "2147483647" );
    5862           1 :             aStrBuf.append( input, radix );
    5863             : 
    5864           2 :             CPPUNIT_ASSERT_MESSAGE
    5865             :             (
    5866             :                 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
    5867             :                 aStrBuf.getStr()== expVal &&
    5868             :                     aStrBuf.getLength() == expVal.getLength()
    5869           2 :             );
    5870             : 
    5871           1 :         }
    5872             : 
    5873           1 :         void append_037()
    5874             :         {
    5875           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    5876           2 :             OString                expVal( aStrBuf.getStr() );
    5877           1 :             sal_Int32              input = kSInt8Max;
    5878           1 :             sal_Int16              radix = 16;
    5879             : 
    5880           1 :             expVal += OString( "7f" );
    5881           1 :             aStrBuf.append( input, radix );
    5882             : 
    5883           2 :             CPPUNIT_ASSERT_MESSAGE
    5884             :             (
    5885             :                 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
    5886             :                 aStrBuf.getStr()== expVal &&
    5887             :                     aStrBuf.getLength() == expVal.getLength()
    5888           2 :             );
    5889             : 
    5890           1 :         }
    5891             : 
    5892           1 :         void append_038()
    5893             :         {
    5894           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    5895           2 :             OString                expVal( aStrBuf.getStr() );
    5896           1 :             sal_Int32              input = kSInt32Max;
    5897           1 :             sal_Int16              radix = 16;
    5898             : 
    5899           1 :             expVal += OString( "7fffffff" );
    5900           1 :             aStrBuf.append( input, radix );
    5901             : 
    5902           2 :             CPPUNIT_ASSERT_MESSAGE
    5903             :             (
    5904             :                 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
    5905             :                 aStrBuf.getStr()== expVal &&
    5906             :                     aStrBuf.getLength() == expVal.getLength()
    5907           2 :             );
    5908             : 
    5909           1 :         }
    5910             : 
    5911           1 :         void append_039()
    5912             :         {
    5913           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    5914           2 :             OString                expVal( aStrBuf.getStr() );
    5915           1 :             sal_Int32              input = kSInt8Max;
    5916           1 :             sal_Int16              radix = 36;
    5917             : 
    5918           1 :             expVal += OString( "3j" );
    5919           1 :             aStrBuf.append( input, radix );
    5920             : 
    5921           2 :             CPPUNIT_ASSERT_MESSAGE
    5922             :             (
    5923             :                 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
    5924             :                 aStrBuf.getStr()== expVal &&
    5925             :                     aStrBuf.getLength() == expVal.getLength()
    5926           2 :             );
    5927             : 
    5928           1 :         }
    5929             : 
    5930           1 :         void append_040()
    5931             :         {
    5932           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    5933           2 :             OString                expVal( aStrBuf.getStr() );
    5934           1 :             sal_Int32              input = kSInt32Max;
    5935           1 :             sal_Int16              radix = 36;
    5936             : 
    5937           1 :             expVal += OString( "zik0zj" );
    5938           1 :             aStrBuf.append( input, radix );
    5939             : 
    5940           2 :             CPPUNIT_ASSERT_MESSAGE
    5941             :             (
    5942             :                 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
    5943             :                 aStrBuf.getStr()== expVal &&
    5944             :                     aStrBuf.getLength() == expVal.getLength()
    5945           2 :             );
    5946             : 
    5947           1 :         }
    5948             : 
    5949           1 :         void append_041()
    5950             :         {
    5951           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    5952           2 :             OString                expVal( aStrBuf.getStr() );
    5953           1 :             sal_Int32              input = kSInt8Max;
    5954           1 :             sal_Int16              radix = 2;
    5955             : 
    5956           1 :             expVal += OString( "1111111" );
    5957           1 :             aStrBuf.append( input, radix );
    5958             : 
    5959           2 :             CPPUNIT_ASSERT_MESSAGE
    5960             :             (
    5961             :                 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
    5962             :                 aStrBuf.getStr()== expVal &&
    5963             :                     aStrBuf.getLength() == expVal.getLength()
    5964           2 :             );
    5965             : 
    5966           1 :         }
    5967             : 
    5968           1 :         void append_042()
    5969             :         {
    5970           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    5971           2 :             OString                expVal( aStrBuf.getStr() );
    5972           1 :             sal_Int32              input = kSInt32Max;
    5973           1 :             sal_Int16              radix = 2;
    5974             : 
    5975           1 :             expVal += OString( "1111111111111111111111111111111" );
    5976           1 :             aStrBuf.append( input, radix );
    5977             : 
    5978           2 :             CPPUNIT_ASSERT_MESSAGE
    5979             :             (
    5980             :                 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
    5981             :                 aStrBuf.getStr()== expVal &&
    5982             :                     aStrBuf.getLength() == expVal.getLength()
    5983           2 :             );
    5984             : 
    5985           1 :         }
    5986             : 
    5987           1 :         void append_043()
    5988             :         {
    5989           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    5990           2 :             OString                expVal( aStrBuf.getStr() );
    5991           1 :             sal_Int32              input = kSInt8Max;
    5992           1 :             sal_Int16              radix = 8;
    5993             : 
    5994           1 :             expVal += OString( "177" );
    5995           1 :             aStrBuf.append( input, radix );
    5996             : 
    5997           2 :             CPPUNIT_ASSERT_MESSAGE
    5998             :             (
    5999             :                 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
    6000             :                 aStrBuf.getStr()== expVal &&
    6001             :                     aStrBuf.getLength() == expVal.getLength()
    6002           2 :             );
    6003             : 
    6004           1 :         }
    6005             : 
    6006           1 :         void append_044()
    6007             :         {
    6008           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    6009           2 :             OString                expVal( aStrBuf.getStr() );
    6010           1 :             sal_Int32              input = kSInt32Max;
    6011           1 :             sal_Int16              radix = 8;
    6012             : 
    6013           1 :             expVal += OString( "17777777777" );
    6014           1 :             aStrBuf.append( input, radix );
    6015             : 
    6016           2 :             CPPUNIT_ASSERT_MESSAGE
    6017             :             (
    6018             :                 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
    6019             :                 aStrBuf.getStr()== expVal &&
    6020             :                     aStrBuf.getLength() == expVal.getLength()
    6021           2 :             );
    6022             : 
    6023           1 :         }
    6024             : 
    6025           1 :         void append_045()
    6026             :         {
    6027           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    6028           2 :             OString                expVal( aStrBuf.getStr() );
    6029           1 :             sal_Int32              input = kSInt8Max;
    6030           1 :             sal_Int16              radix = 10;
    6031             : 
    6032           1 :             expVal += OString( "127" );
    6033           1 :             aStrBuf.append( input, radix );
    6034             : 
    6035           2 :             CPPUNIT_ASSERT_MESSAGE
    6036             :             (
    6037             :                 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
    6038             :                 aStrBuf.getStr()== expVal &&
    6039             :                     aStrBuf.getLength() == expVal.getLength()
    6040           2 :             );
    6041             : 
    6042           1 :         }
    6043             : 
    6044           1 :         void append_046()
    6045             :         {
    6046           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    6047           2 :             OString                expVal( aStrBuf.getStr() );
    6048           1 :             sal_Int32              input = kSInt32Max;
    6049           1 :             sal_Int16              radix = 10;
    6050             : 
    6051           1 :             expVal += OString( "2147483647" );
    6052           1 :             aStrBuf.append( input, radix );
    6053             : 
    6054           2 :             CPPUNIT_ASSERT_MESSAGE
    6055             :             (
    6056             :                 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
    6057             :                 aStrBuf.getStr()== expVal &&
    6058             :                     aStrBuf.getLength() == expVal.getLength()
    6059           2 :             );
    6060             : 
    6061           1 :         }
    6062             : 
    6063           1 :         void append_047()
    6064             :         {
    6065           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    6066           2 :             OString                expVal( aStrBuf.getStr() );
    6067           1 :             sal_Int32              input = kSInt8Max;
    6068           1 :             sal_Int16              radix = 16;
    6069             : 
    6070           1 :             expVal += OString( "7f" );
    6071           1 :             aStrBuf.append( input, radix );
    6072             : 
    6073           2 :             CPPUNIT_ASSERT_MESSAGE
    6074             :             (
    6075             :                 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
    6076             :                 aStrBuf.getStr()== expVal &&
    6077             :                     aStrBuf.getLength() == expVal.getLength()
    6078           2 :             );
    6079             : 
    6080           1 :         }
    6081             : 
    6082           1 :         void append_048()
    6083             :         {
    6084           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    6085           2 :             OString                expVal( aStrBuf.getStr() );
    6086           1 :             sal_Int32              input = kSInt32Max;
    6087           1 :             sal_Int16              radix = 16;
    6088             : 
    6089           1 :             expVal += OString( "7fffffff" );
    6090           1 :             aStrBuf.append( input, radix );
    6091             : 
    6092           2 :             CPPUNIT_ASSERT_MESSAGE
    6093             :             (
    6094             :                 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
    6095             :                 aStrBuf.getStr()== expVal &&
    6096             :                     aStrBuf.getLength() == expVal.getLength()
    6097           2 :             );
    6098             : 
    6099           1 :         }
    6100             : 
    6101           1 :         void append_049()
    6102             :         {
    6103           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    6104           2 :             OString                expVal( aStrBuf.getStr() );
    6105           1 :             sal_Int32              input = kSInt8Max;
    6106           1 :             sal_Int16              radix = 36;
    6107             : 
    6108           1 :             expVal += OString( "3j" );
    6109           1 :             aStrBuf.append( input, radix );
    6110             : 
    6111           2 :             CPPUNIT_ASSERT_MESSAGE
    6112             :             (
    6113             :                 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
    6114             :                 aStrBuf.getStr()== expVal &&
    6115             :                     aStrBuf.getLength() == expVal.getLength()
    6116           2 :             );
    6117             : 
    6118           1 :         }
    6119             : 
    6120           1 :         void append_050()
    6121             :         {
    6122           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    6123           2 :             OString                expVal( aStrBuf.getStr() );
    6124           1 :             sal_Int32              input = kSInt32Max;
    6125           1 :             sal_Int16              radix = 36;
    6126             : 
    6127           1 :             expVal += OString( "zik0zj" );
    6128           1 :             aStrBuf.append( input, radix );
    6129             : 
    6130           2 :             CPPUNIT_ASSERT_MESSAGE
    6131             :             (
    6132             :                 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
    6133             :                 aStrBuf.getStr()== expVal &&
    6134             :                     aStrBuf.getLength() == expVal.getLength()
    6135           2 :             );
    6136             : 
    6137           1 :         }
    6138             : 
    6139           2 :         CPPUNIT_TEST_SUITE( append_006_Int32_Bounderies );
    6140           1 :         CPPUNIT_TEST( append_001 ); CPPUNIT_TEST( append_002 );
    6141           1 :         CPPUNIT_TEST( append_003 ); CPPUNIT_TEST( append_004 );
    6142           1 :         CPPUNIT_TEST( append_005 ); CPPUNIT_TEST( append_006 );
    6143           1 :         CPPUNIT_TEST( append_007 ); CPPUNIT_TEST( append_008 );
    6144           1 :         CPPUNIT_TEST( append_009 ); CPPUNIT_TEST( append_010 );
    6145           1 :         CPPUNIT_TEST( append_011 ); CPPUNIT_TEST( append_012 );
    6146           1 :         CPPUNIT_TEST( append_013 ); CPPUNIT_TEST( append_014 );
    6147           1 :         CPPUNIT_TEST( append_015 ); CPPUNIT_TEST( append_016 );
    6148           1 :         CPPUNIT_TEST( append_017 ); CPPUNIT_TEST( append_018 );
    6149           1 :         CPPUNIT_TEST( append_019 ); CPPUNIT_TEST( append_020 );
    6150           1 :         CPPUNIT_TEST( append_021 ); CPPUNIT_TEST( append_022 );
    6151           1 :         CPPUNIT_TEST( append_023 ); CPPUNIT_TEST( append_024 );
    6152           1 :         CPPUNIT_TEST( append_025 ); CPPUNIT_TEST( append_026 );
    6153           1 :         CPPUNIT_TEST( append_027 ); CPPUNIT_TEST( append_028 );
    6154           1 :         CPPUNIT_TEST( append_029 ); CPPUNIT_TEST( append_030 );
    6155           1 :         CPPUNIT_TEST( append_031 ); CPPUNIT_TEST( append_032 );
    6156           1 :         CPPUNIT_TEST( append_033 ); CPPUNIT_TEST( append_034 );
    6157           1 :         CPPUNIT_TEST( append_035 ); CPPUNIT_TEST( append_036 );
    6158           1 :         CPPUNIT_TEST( append_037 ); CPPUNIT_TEST( append_038 );
    6159           1 :         CPPUNIT_TEST( append_039 ); CPPUNIT_TEST( append_040 );
    6160           1 :         CPPUNIT_TEST( append_041 ); CPPUNIT_TEST( append_042 );
    6161           1 :         CPPUNIT_TEST( append_043 ); CPPUNIT_TEST( append_044 );
    6162           1 :         CPPUNIT_TEST( append_045 ); CPPUNIT_TEST( append_046 );
    6163           1 :         CPPUNIT_TEST( append_047 ); CPPUNIT_TEST( append_048 );
    6164           1 :         CPPUNIT_TEST( append_049 ); CPPUNIT_TEST( append_050 );
    6165           2 :         CPPUNIT_TEST_SUITE_END();
    6166             :     };
    6167             : 
    6168             : // testing the method append( sal_Int32 i, sal_Int16 radix=2 )
    6169             : // for negative value
    6170             : // testing the method append( sal_Int32 i, sal_Int16 radix=8 )
    6171             : // for negative value
    6172             : // testing the method append( sal_Int32 i, sal_Int16 radix=10 )
    6173             : // for negative value
    6174             : // testing the method append( sal_Int32 i, sal_Int16 radix=16 )
    6175             : // for negative value
    6176             : // testing the method append( sal_Int32 i, sal_Int16 radix=36 )
    6177             : // for negative value
    6178             : 
    6179         300 :     class  append_006_Int32_Negative : public CppUnit::TestFixture
    6180             :     {
    6181             :         OString* arrOUS[5];
    6182             : 
    6183             :     public:
    6184         100 :         void setUp() SAL_OVERRIDE
    6185             :         {
    6186         100 :             arrOUS[0] = new OString( kTestStr7 );
    6187         100 :             arrOUS[1] = new OString(  );
    6188         100 :             arrOUS[2] = new OString( kTestStr25 );
    6189         100 :             arrOUS[3] = new OString( "" );
    6190         100 :             arrOUS[4] = new OString( kTestStr28 );
    6191             : 
    6192         100 :         }
    6193             : 
    6194         100 :         void tearDown() SAL_OVERRIDE
    6195             :         {
    6196         100 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
    6197         100 :             delete arrOUS[3]; delete arrOUS[4];
    6198         100 :         }
    6199             : 
    6200           1 :         void append_001()
    6201             :         {
    6202           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6203           2 :             OString                expVal( aStrBuf.getStr() );
    6204           1 :             sal_Int32              input = -0;
    6205           1 :             sal_Int16              radix = 2;
    6206             : 
    6207           1 :             expVal += OString( "0" );
    6208           1 :             aStrBuf.append( input, radix );
    6209             : 
    6210           2 :             CPPUNIT_ASSERT_MESSAGE
    6211             :             (
    6212             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
    6213             :                 aStrBuf.getStr()== expVal &&
    6214             :                     aStrBuf.getLength() == expVal.getLength()
    6215           2 :             );
    6216             : 
    6217           1 :         }
    6218             : 
    6219           1 :         void append_002()
    6220             :         {
    6221           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6222           2 :             OString                expVal( aStrBuf.getStr() );
    6223           1 :             sal_Int32              input = -4;
    6224           1 :             sal_Int16              radix = 2;
    6225             : 
    6226           1 :             expVal += OString( "-" );
    6227           1 :             expVal += OString( "100" );
    6228           1 :             aStrBuf.append( input, radix );
    6229             : 
    6230           2 :             CPPUNIT_ASSERT_MESSAGE
    6231             :             (
    6232             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
    6233             :                 aStrBuf.getStr()== expVal &&
    6234             :                     aStrBuf.getLength() == expVal.getLength()
    6235           2 :             );
    6236             : 
    6237           1 :         }
    6238             : 
    6239           1 :         void append_003()
    6240             :         {
    6241           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6242           2 :             OString                expVal( aStrBuf.getStr() );
    6243           1 :             sal_Int32              input = -8;
    6244           1 :             sal_Int16              radix = 2;
    6245             : 
    6246           1 :             expVal += OString( "-" );
    6247           1 :             expVal += OString( "1000" );
    6248           1 :             aStrBuf.append( input, radix );
    6249             : 
    6250           2 :             CPPUNIT_ASSERT_MESSAGE
    6251             :             (
    6252             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
    6253             :                 aStrBuf.getStr()== expVal &&
    6254             :                     aStrBuf.getLength() == expVal.getLength()
    6255           2 :             );
    6256             : 
    6257           1 :         }
    6258             : 
    6259           1 :         void append_004()
    6260             :         {
    6261           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6262           2 :             OString                expVal( aStrBuf.getStr() );
    6263           1 :             sal_Int32              input = -15;
    6264           1 :             sal_Int16              radix = 2;
    6265             : 
    6266           1 :             expVal += OString( "-" );
    6267           1 :             expVal += OString( "1111" );
    6268           1 :             aStrBuf.append( input, radix );
    6269             : 
    6270           2 :             CPPUNIT_ASSERT_MESSAGE
    6271             :             (
    6272             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
    6273             :                 aStrBuf.getStr()== expVal &&
    6274             :                     aStrBuf.getLength() == expVal.getLength()
    6275           2 :             );
    6276             : 
    6277           1 :         }
    6278             : 
    6279           1 :         void append_005()
    6280             :         {
    6281           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6282           2 :             OString                expVal( aStrBuf.getStr() );
    6283           1 :             sal_Int32              input = -0;
    6284           1 :             sal_Int16              radix = 8;
    6285             : 
    6286           1 :             expVal += OString( "0" );
    6287           1 :             aStrBuf.append( input, radix );
    6288             : 
    6289           2 :             CPPUNIT_ASSERT_MESSAGE
    6290             :             (
    6291             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
    6292             :                 aStrBuf.getStr()== expVal &&
    6293             :                     aStrBuf.getLength() == expVal.getLength()
    6294           2 :             );
    6295             : 
    6296           1 :         }
    6297             : 
    6298           1 :         void append_006()
    6299             :         {
    6300           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6301           2 :             OString                expVal( aStrBuf.getStr() );
    6302           1 :             sal_Int32              input = -4;
    6303           1 :             sal_Int16              radix = 8;
    6304             : 
    6305           1 :             expVal += OString( "-" );
    6306           1 :             expVal += OString( "4" );
    6307           1 :             aStrBuf.append( input, radix );
    6308             : 
    6309           2 :             CPPUNIT_ASSERT_MESSAGE
    6310             :             (
    6311             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
    6312             :                 aStrBuf.getStr()== expVal &&
    6313             :                     aStrBuf.getLength() == expVal.getLength()
    6314           2 :             );
    6315             : 
    6316           1 :         }
    6317             : 
    6318           1 :         void append_007()
    6319             :         {
    6320           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6321           2 :             OString                expVal( aStrBuf.getStr() );
    6322           1 :             sal_Int32              input = -8;
    6323           1 :             sal_Int16              radix = 8;
    6324             : 
    6325           1 :             expVal += OString( "-" );
    6326           1 :             expVal += OString( "10" );
    6327           1 :             aStrBuf.append( input, radix );
    6328             : 
    6329           2 :             CPPUNIT_ASSERT_MESSAGE
    6330             :             (
    6331             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
    6332             :                 aStrBuf.getStr()== expVal &&
    6333             :                     aStrBuf.getLength() == expVal.getLength()
    6334           2 :             );
    6335             : 
    6336           1 :         }
    6337             : 
    6338           1 :         void append_008()
    6339             :         {
    6340           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6341           2 :             OString                expVal( aStrBuf.getStr() );
    6342           1 :             sal_Int32              input = -15;
    6343           1 :             sal_Int16              radix = 8;
    6344             : 
    6345           1 :             expVal += OString( "-" );
    6346           1 :             expVal += OString( "17" );
    6347           1 :             aStrBuf.append( input, radix );
    6348             : 
    6349           2 :             CPPUNIT_ASSERT_MESSAGE
    6350             :             (
    6351             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
    6352             :                 aStrBuf.getStr()== expVal &&
    6353             :                     aStrBuf.getLength() == expVal.getLength()
    6354           2 :             );
    6355             : 
    6356           1 :         }
    6357             : 
    6358           1 :         void append_009()
    6359             :         {
    6360           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6361           2 :             OString                expVal( aStrBuf.getStr() );
    6362           1 :             sal_Int32              input = -0;
    6363           1 :             sal_Int16              radix = 10;
    6364             : 
    6365           1 :             expVal += OString( "0" );
    6366           1 :             aStrBuf.append( input, radix );
    6367             : 
    6368           2 :             CPPUNIT_ASSERT_MESSAGE
    6369             :             (
    6370             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
    6371             :                 aStrBuf.getStr()== expVal &&
    6372             :                     aStrBuf.getLength() == expVal.getLength()
    6373           2 :             );
    6374             : 
    6375           1 :         }
    6376             : 
    6377           1 :         void append_010()
    6378             :         {
    6379           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6380           2 :             OString                expVal( aStrBuf.getStr() );
    6381           1 :             sal_Int32              input = -4;
    6382           1 :             sal_Int16              radix = 10;
    6383             : 
    6384           1 :             expVal += OString( "-" );
    6385           1 :             expVal += OString( "4" );
    6386           1 :             aStrBuf.append( input, radix );
    6387             : 
    6388           2 :             CPPUNIT_ASSERT_MESSAGE
    6389             :             (
    6390             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
    6391             :                 aStrBuf.getStr()== expVal &&
    6392             :                     aStrBuf.getLength() == expVal.getLength()
    6393           2 :             );
    6394             : 
    6395           1 :         }
    6396             : 
    6397           1 :         void append_011()
    6398             :         {
    6399           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6400           2 :             OString                expVal( aStrBuf.getStr() );
    6401           1 :             sal_Int32              input = -8;
    6402           1 :             sal_Int16              radix = 10;
    6403             : 
    6404           1 :             expVal += OString( "-" );
    6405           1 :             expVal += OString( "8" );
    6406           1 :             aStrBuf.append( input, radix );
    6407             : 
    6408           2 :             CPPUNIT_ASSERT_MESSAGE
    6409             :             (
    6410             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
    6411             :                 aStrBuf.getStr()== expVal &&
    6412             :                     aStrBuf.getLength() == expVal.getLength()
    6413           2 :             );
    6414             : 
    6415           1 :         }
    6416             : 
    6417           1 :         void append_012()
    6418             :         {
    6419           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6420           2 :             OString                expVal( aStrBuf.getStr() );
    6421           1 :             sal_Int32              input = -15;
    6422           1 :             sal_Int16              radix = 10;
    6423             : 
    6424           1 :             expVal += OString( "-" );
    6425           1 :             expVal += OString( "15" );
    6426           1 :             aStrBuf.append( input, radix );
    6427             : 
    6428           2 :             CPPUNIT_ASSERT_MESSAGE
    6429             :             (
    6430             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
    6431             :                 aStrBuf.getStr()== expVal &&
    6432             :                     aStrBuf.getLength() == expVal.getLength()
    6433           2 :             );
    6434             : 
    6435           1 :         }
    6436             : 
    6437           1 :         void append_013()
    6438             :         {
    6439           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6440           2 :             OString                expVal( aStrBuf.getStr() );
    6441           1 :             sal_Int32              input = -0;
    6442           1 :             sal_Int16              radix = 16;
    6443             : 
    6444           1 :             expVal += OString( "0" );
    6445           1 :             aStrBuf.append( input, radix );
    6446             : 
    6447           2 :             CPPUNIT_ASSERT_MESSAGE
    6448             :             (
    6449             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
    6450             :                 aStrBuf.getStr()== expVal &&
    6451             :                     aStrBuf.getLength() == expVal.getLength()
    6452           2 :             );
    6453             : 
    6454           1 :         }
    6455             : 
    6456           1 :         void append_014()
    6457             :         {
    6458           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6459           2 :             OString                expVal( aStrBuf.getStr() );
    6460           1 :             sal_Int32              input = -4;
    6461           1 :             sal_Int16              radix = 16;
    6462             : 
    6463           1 :             expVal += OString( "-" );
    6464           1 :             expVal += OString( "4" );
    6465           1 :             aStrBuf.append( input, radix );
    6466             : 
    6467           2 :             CPPUNIT_ASSERT_MESSAGE
    6468             :             (
    6469             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
    6470             :                 aStrBuf.getStr()== expVal &&
    6471             :                     aStrBuf.getLength() == expVal.getLength()
    6472           2 :             );
    6473             : 
    6474           1 :         }
    6475             : 
    6476           1 :         void append_015()
    6477             :         {
    6478           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6479           2 :             OString                expVal( aStrBuf.getStr() );
    6480           1 :             sal_Int32              input = -8;
    6481           1 :             sal_Int16              radix = 16;
    6482             : 
    6483           1 :             expVal += OString( "-" );
    6484           1 :             expVal += OString( "8" );
    6485           1 :             aStrBuf.append( input, radix );
    6486             : 
    6487           2 :             CPPUNIT_ASSERT_MESSAGE
    6488             :             (
    6489             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
    6490             :                 aStrBuf.getStr()== expVal &&
    6491             :                     aStrBuf.getLength() == expVal.getLength()
    6492           2 :             );
    6493             : 
    6494           1 :         }
    6495             : 
    6496           1 :         void append_016()
    6497             :         {
    6498           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6499           2 :             OString                expVal( aStrBuf.getStr() );
    6500           1 :             sal_Int32              input = -15;
    6501           1 :             sal_Int16              radix = 16;
    6502             : 
    6503           1 :             expVal += OString( "-" );
    6504           1 :             expVal += OString( "f" );
    6505           1 :             aStrBuf.append( input, radix );
    6506             : 
    6507           2 :             CPPUNIT_ASSERT_MESSAGE
    6508             :             (
    6509             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
    6510             :                 aStrBuf.getStr()== expVal &&
    6511             :                     aStrBuf.getLength() == expVal.getLength()
    6512           2 :             );
    6513             : 
    6514           1 :         }
    6515             : 
    6516           1 :         void append_017()
    6517             :         {
    6518           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6519           2 :             OString                expVal( aStrBuf.getStr() );
    6520           1 :             sal_Int32              input = -0;
    6521           1 :             sal_Int16              radix = 36;
    6522             : 
    6523           1 :             expVal += OString( "0" );
    6524           1 :             aStrBuf.append( input, radix );
    6525             : 
    6526           2 :             CPPUNIT_ASSERT_MESSAGE
    6527             :             (
    6528             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
    6529             :                 aStrBuf.getStr()== expVal &&
    6530             :                     aStrBuf.getLength() == expVal.getLength()
    6531           2 :             );
    6532             : 
    6533           1 :         }
    6534             : 
    6535           1 :         void append_018()
    6536             :         {
    6537           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6538           2 :             OString                expVal( aStrBuf.getStr() );
    6539           1 :             sal_Int32              input = -4;
    6540           1 :             sal_Int16              radix = 36;
    6541             : 
    6542           1 :             expVal += OString( "-" );
    6543           1 :             expVal += OString( "4" );
    6544           1 :             aStrBuf.append( input, radix );
    6545             : 
    6546           2 :             CPPUNIT_ASSERT_MESSAGE
    6547             :             (
    6548             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
    6549             :                 aStrBuf.getStr()== expVal &&
    6550             :                     aStrBuf.getLength() == expVal.getLength()
    6551           2 :             );
    6552             : 
    6553           1 :         }
    6554             : 
    6555           1 :         void append_019()
    6556             :         {
    6557           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6558           2 :             OString                expVal( aStrBuf.getStr() );
    6559           1 :             sal_Int32              input = -8;
    6560           1 :             sal_Int16              radix = 36;
    6561             : 
    6562           1 :             expVal += OString( "-" );
    6563           1 :             expVal += OString( "8" );
    6564           1 :             aStrBuf.append( input, radix );
    6565             : 
    6566           2 :             CPPUNIT_ASSERT_MESSAGE
    6567             :             (
    6568             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
    6569             :                 aStrBuf.getStr()== expVal &&
    6570             :                     aStrBuf.getLength() == expVal.getLength()
    6571           2 :             );
    6572             : 
    6573           1 :         }
    6574             : 
    6575           1 :         void append_020()
    6576             :         {
    6577           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6578           2 :             OString                expVal( aStrBuf.getStr() );
    6579           1 :             sal_Int32              input = -35;
    6580           1 :             sal_Int16              radix = 36;
    6581             : 
    6582           1 :             expVal += OString( "-" );
    6583           1 :             expVal += OString( "z" );
    6584           1 :             aStrBuf.append( input, radix );
    6585             : 
    6586           2 :             CPPUNIT_ASSERT_MESSAGE
    6587             :             (
    6588             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
    6589             :                 aStrBuf.getStr()== expVal &&
    6590             :                     aStrBuf.getLength() == expVal.getLength()
    6591           2 :             );
    6592             : 
    6593           1 :         }
    6594             : 
    6595           1 :         void append_021()
    6596             :         {
    6597           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6598           2 :             OString                expVal( aStrBuf.getStr() );
    6599           1 :             sal_Int32              input = -0;
    6600           1 :             sal_Int16              radix = 2;
    6601             : 
    6602           1 :             expVal += OString( "0" );
    6603           1 :             aStrBuf.append( input, radix );
    6604             : 
    6605           2 :             CPPUNIT_ASSERT_MESSAGE
    6606             :             (
    6607             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
    6608             :                 aStrBuf.getStr()== expVal &&
    6609             :                     aStrBuf.getLength() == expVal.getLength()
    6610           2 :             );
    6611             : 
    6612           1 :         }
    6613             : 
    6614           1 :         void append_022()
    6615             :         {
    6616           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6617           2 :             OString                expVal( aStrBuf.getStr() );
    6618           1 :             sal_Int32              input = -4;
    6619           1 :             sal_Int16              radix = 2;
    6620             : 
    6621           1 :             expVal += OString( "-" );
    6622           1 :             expVal += OString( "100" );
    6623           1 :             aStrBuf.append( input, radix );
    6624             : 
    6625           2 :             CPPUNIT_ASSERT_MESSAGE
    6626             :             (
    6627             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
    6628             :                 aStrBuf.getStr()== expVal &&
    6629             :                     aStrBuf.getLength() == expVal.getLength()
    6630           2 :             );
    6631             : 
    6632           1 :         }
    6633             : 
    6634           1 :         void append_023()
    6635             :         {
    6636           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6637           2 :             OString                expVal( aStrBuf.getStr() );
    6638           1 :             sal_Int32              input = -8;
    6639           1 :             sal_Int16              radix = 2;
    6640             : 
    6641           1 :             expVal += OString( "-" );
    6642           1 :             expVal += OString( "1000" );
    6643           1 :             aStrBuf.append( input, radix );
    6644             : 
    6645           2 :             CPPUNIT_ASSERT_MESSAGE
    6646             :             (
    6647             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
    6648             :                 aStrBuf.getStr()== expVal &&
    6649             :                     aStrBuf.getLength() == expVal.getLength()
    6650           2 :             );
    6651             : 
    6652           1 :         }
    6653             : 
    6654           1 :         void append_024()
    6655             :         {
    6656           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6657           2 :             OString                expVal( aStrBuf.getStr() );
    6658           1 :             sal_Int32              input = -15;
    6659           1 :             sal_Int16              radix = 2;
    6660             : 
    6661           1 :             expVal += OString( "-" );
    6662           1 :             expVal += OString( "1111" );
    6663           1 :             aStrBuf.append( input, radix );
    6664             : 
    6665           2 :             CPPUNIT_ASSERT_MESSAGE
    6666             :             (
    6667             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
    6668             :                 aStrBuf.getStr()== expVal &&
    6669             :                     aStrBuf.getLength() == expVal.getLength()
    6670           2 :             );
    6671             : 
    6672           1 :         }
    6673             : 
    6674           1 :         void append_025()
    6675             :         {
    6676           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6677           2 :             OString                expVal( aStrBuf.getStr() );
    6678           1 :             sal_Int32              input = -0;
    6679           1 :             sal_Int16              radix = 8;
    6680             : 
    6681           1 :             expVal += OString( "0" );
    6682           1 :             aStrBuf.append( input, radix );
    6683             : 
    6684           2 :             CPPUNIT_ASSERT_MESSAGE
    6685             :             (
    6686             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
    6687             :                 aStrBuf.getStr()== expVal &&
    6688             :                     aStrBuf.getLength() == expVal.getLength()
    6689           2 :             );
    6690             : 
    6691           1 :         }
    6692             : 
    6693           1 :         void append_026()
    6694             :         {
    6695           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6696           2 :             OString                expVal( aStrBuf.getStr() );
    6697           1 :             sal_Int32              input = -4;
    6698           1 :             sal_Int16              radix = 8;
    6699             : 
    6700           1 :             expVal += OString( "-" );
    6701           1 :             expVal += OString( "4" );
    6702           1 :             aStrBuf.append( input, radix );
    6703             : 
    6704           2 :             CPPUNIT_ASSERT_MESSAGE
    6705             :             (
    6706             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
    6707             :                 aStrBuf.getStr()== expVal &&
    6708             :                     aStrBuf.getLength() == expVal.getLength()
    6709           2 :             );
    6710             : 
    6711           1 :         }
    6712             : 
    6713           1 :         void append_027()
    6714             :         {
    6715           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6716           2 :             OString                expVal( aStrBuf.getStr() );
    6717           1 :             sal_Int32              input = -8;
    6718           1 :             sal_Int16              radix = 8;
    6719             : 
    6720           1 :             expVal += OString( "-" );
    6721           1 :             expVal += OString( "10" );
    6722           1 :             aStrBuf.append( input, radix );
    6723             : 
    6724           2 :             CPPUNIT_ASSERT_MESSAGE
    6725             :             (
    6726             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
    6727             :                 aStrBuf.getStr()== expVal &&
    6728             :                     aStrBuf.getLength() == expVal.getLength()
    6729           2 :             );
    6730             : 
    6731           1 :         }
    6732             : 
    6733           1 :         void append_028()
    6734             :         {
    6735           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6736           2 :             OString                expVal( aStrBuf.getStr() );
    6737           1 :             sal_Int32              input = -15;
    6738           1 :             sal_Int16              radix = 8;
    6739             : 
    6740           1 :             expVal += OString( "-" );
    6741           1 :             expVal += OString( "17" );
    6742           1 :             aStrBuf.append( input, radix );
    6743             : 
    6744           2 :             CPPUNIT_ASSERT_MESSAGE
    6745             :             (
    6746             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
    6747             :                 aStrBuf.getStr()== expVal &&
    6748             :                     aStrBuf.getLength() == expVal.getLength()
    6749           2 :             );
    6750             : 
    6751           1 :         }
    6752             : 
    6753           1 :         void append_029()
    6754             :         {
    6755           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6756           2 :             OString                expVal( aStrBuf.getStr() );
    6757           1 :             sal_Int32              input = -0;
    6758           1 :             sal_Int16              radix = 10;
    6759             : 
    6760           1 :             expVal += OString( "0" );
    6761           1 :             aStrBuf.append( input, radix );
    6762             : 
    6763           2 :             CPPUNIT_ASSERT_MESSAGE
    6764             :             (
    6765             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
    6766             :                 aStrBuf.getStr()== expVal &&
    6767             :                     aStrBuf.getLength() == expVal.getLength()
    6768           2 :             );
    6769             : 
    6770           1 :         }
    6771             : 
    6772           1 :         void append_030()
    6773             :         {
    6774           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6775           2 :             OString                expVal( aStrBuf.getStr() );
    6776           1 :             sal_Int32              input = -4;
    6777           1 :             sal_Int16              radix = 10;
    6778             : 
    6779           1 :             expVal += OString( "-" );
    6780           1 :             expVal += OString( "4" );
    6781           1 :             aStrBuf.append( input, radix );
    6782             : 
    6783           2 :             CPPUNIT_ASSERT_MESSAGE
    6784             :             (
    6785             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
    6786             :                 aStrBuf.getStr()== expVal &&
    6787             :                     aStrBuf.getLength() == expVal.getLength()
    6788           2 :             );
    6789             : 
    6790           1 :         }
    6791             : 
    6792           1 :         void append_031()
    6793             :         {
    6794           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6795           2 :             OString                expVal( aStrBuf.getStr() );
    6796           1 :             sal_Int32              input = -8;
    6797           1 :             sal_Int16              radix = 10;
    6798             : 
    6799           1 :             expVal += OString( "-" );
    6800           1 :             expVal += OString( "8" );
    6801           1 :             aStrBuf.append( input, radix );
    6802             : 
    6803           2 :             CPPUNIT_ASSERT_MESSAGE
    6804             :             (
    6805             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
    6806             :                 aStrBuf.getStr()== expVal &&
    6807             :                     aStrBuf.getLength() == expVal.getLength()
    6808           2 :             );
    6809             : 
    6810           1 :         }
    6811             : 
    6812           1 :         void append_032()
    6813             :         {
    6814           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6815           2 :             OString                expVal( aStrBuf.getStr() );
    6816           1 :             sal_Int32              input = -15;
    6817           1 :             sal_Int16              radix = 10;
    6818             : 
    6819           1 :             expVal += OString( "-" );
    6820           1 :             expVal += OString( "15" );
    6821           1 :             aStrBuf.append( input, radix );
    6822             : 
    6823           2 :             CPPUNIT_ASSERT_MESSAGE
    6824             :             (
    6825             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
    6826             :                 aStrBuf.getStr()== expVal &&
    6827             :                     aStrBuf.getLength() == expVal.getLength()
    6828           2 :             );
    6829             : 
    6830           1 :         }
    6831             : 
    6832           1 :         void append_033()
    6833             :         {
    6834           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6835           2 :             OString                expVal( aStrBuf.getStr() );
    6836           1 :             sal_Int32              input = -0;
    6837           1 :             sal_Int16              radix = 16;
    6838             : 
    6839           1 :             expVal += OString( "0" );
    6840           1 :             aStrBuf.append( input, radix );
    6841             : 
    6842           2 :             CPPUNIT_ASSERT_MESSAGE
    6843             :             (
    6844             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
    6845             :                 aStrBuf.getStr()== expVal &&
    6846             :                     aStrBuf.getLength() == expVal.getLength()
    6847           2 :             );
    6848             : 
    6849           1 :         }
    6850             : 
    6851           1 :         void append_034()
    6852             :         {
    6853           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6854           2 :             OString                expVal( aStrBuf.getStr() );
    6855           1 :             sal_Int32              input = -4;
    6856           1 :             sal_Int16              radix = 16;
    6857             : 
    6858           1 :             expVal += OString( "-" );
    6859           1 :             expVal += OString( "4" );
    6860           1 :             aStrBuf.append( input, radix );
    6861             : 
    6862           2 :             CPPUNIT_ASSERT_MESSAGE
    6863             :             (
    6864             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
    6865             :                 aStrBuf.getStr()== expVal &&
    6866             :                     aStrBuf.getLength() == expVal.getLength()
    6867           2 :             );
    6868             : 
    6869           1 :         }
    6870             : 
    6871           1 :         void append_035()
    6872             :         {
    6873           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6874           2 :             OString                expVal( aStrBuf.getStr() );
    6875           1 :             sal_Int32              input = -8;
    6876           1 :             sal_Int16              radix = 16;
    6877             : 
    6878           1 :             expVal += OString( "-" );
    6879           1 :             expVal += OString( "8" );
    6880           1 :             aStrBuf.append( input, radix );
    6881             : 
    6882           2 :             CPPUNIT_ASSERT_MESSAGE
    6883             :             (
    6884             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
    6885             :                 aStrBuf.getStr()== expVal &&
    6886             :                     aStrBuf.getLength() == expVal.getLength()
    6887           2 :             );
    6888             : 
    6889           1 :         }
    6890             : 
    6891           1 :         void append_036()
    6892             :         {
    6893           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6894           2 :             OString                expVal( aStrBuf.getStr() );
    6895           1 :             sal_Int32              input = -15;
    6896           1 :             sal_Int16              radix = 16;
    6897             : 
    6898           1 :             expVal += OString( "-" );
    6899           1 :             expVal += OString( "f" );
    6900           1 :             aStrBuf.append( input, radix );
    6901             : 
    6902           2 :             CPPUNIT_ASSERT_MESSAGE
    6903             :             (
    6904             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
    6905             :                 aStrBuf.getStr()== expVal &&
    6906             :                     aStrBuf.getLength() == expVal.getLength()
    6907           2 :             );
    6908             : 
    6909           1 :         }
    6910             : 
    6911           1 :         void append_037()
    6912             :         {
    6913           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6914           2 :             OString                expVal( aStrBuf.getStr() );
    6915           1 :             sal_Int32              input = -0;
    6916           1 :             sal_Int16              radix = 36;
    6917             : 
    6918           1 :             expVal += OString( "0" );
    6919           1 :             aStrBuf.append( input, radix );
    6920             : 
    6921           2 :             CPPUNIT_ASSERT_MESSAGE
    6922             :             (
    6923             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
    6924             :                 aStrBuf.getStr()== expVal &&
    6925             :                     aStrBuf.getLength() == expVal.getLength()
    6926           2 :             );
    6927             : 
    6928           1 :         }
    6929             : 
    6930           1 :         void append_038()
    6931             :         {
    6932           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6933           2 :             OString                expVal( aStrBuf.getStr() );
    6934           1 :             sal_Int32              input = -4;
    6935           1 :             sal_Int16              radix = 36;
    6936             : 
    6937           1 :             expVal += OString( "-" );
    6938           1 :             expVal += OString( "4" );
    6939           1 :             aStrBuf.append( input, radix );
    6940             : 
    6941           2 :             CPPUNIT_ASSERT_MESSAGE
    6942             :             (
    6943             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
    6944             :                 aStrBuf.getStr()== expVal &&
    6945             :                     aStrBuf.getLength() == expVal.getLength()
    6946           2 :             );
    6947             : 
    6948           1 :         }
    6949             : 
    6950           1 :         void append_039()
    6951             :         {
    6952           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6953           2 :             OString                expVal( aStrBuf.getStr() );
    6954           1 :             sal_Int32              input = -8;
    6955           1 :             sal_Int16              radix = 36;
    6956             : 
    6957           1 :             expVal += OString( "-" );
    6958           1 :             expVal += OString( "8" );
    6959           1 :             aStrBuf.append( input, radix );
    6960             : 
    6961           2 :             CPPUNIT_ASSERT_MESSAGE
    6962             :             (
    6963             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
    6964             :                 aStrBuf.getStr()== expVal &&
    6965             :                     aStrBuf.getLength() == expVal.getLength()
    6966           2 :             );
    6967             : 
    6968           1 :         }
    6969             : 
    6970           1 :         void append_040()
    6971             :         {
    6972           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6973           2 :             OString                expVal( aStrBuf.getStr() );
    6974           1 :             sal_Int32              input = -35;
    6975           1 :             sal_Int16              radix = 36;
    6976             : 
    6977           1 :             expVal += OString( "-" );
    6978           1 :             expVal += OString( "z" );
    6979           1 :             aStrBuf.append( input, radix );
    6980             : 
    6981           2 :             CPPUNIT_ASSERT_MESSAGE
    6982             :             (
    6983             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
    6984             :                 aStrBuf.getStr()== expVal &&
    6985             :                     aStrBuf.getLength() == expVal.getLength()
    6986           2 :             );
    6987             : 
    6988           1 :         }
    6989             : 
    6990           1 :         void append_041()
    6991             :         {
    6992           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    6993           2 :             OString                expVal( aStrBuf.getStr() );
    6994           1 :             sal_Int32              input = -0;
    6995           1 :             sal_Int16              radix = 2;
    6996             : 
    6997           1 :             expVal += OString( "0" );
    6998           1 :             aStrBuf.append( input, radix );
    6999             : 
    7000           2 :             CPPUNIT_ASSERT_MESSAGE
    7001             :             (
    7002             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
    7003             :                 aStrBuf.getStr()== expVal &&
    7004             :                     aStrBuf.getLength() == expVal.getLength()
    7005           2 :             );
    7006             : 
    7007           1 :         }
    7008             : 
    7009           1 :         void append_042()
    7010             :         {
    7011           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7012           2 :             OString                expVal( aStrBuf.getStr() );
    7013           1 :             sal_Int32              input = -4;
    7014           1 :             sal_Int16              radix = 2;
    7015             : 
    7016           1 :             expVal += OString( "-" );
    7017           1 :             expVal += OString( "100" );
    7018           1 :             aStrBuf.append( input, radix );
    7019             : 
    7020           2 :             CPPUNIT_ASSERT_MESSAGE
    7021             :             (
    7022             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
    7023             :                 aStrBuf.getStr()== expVal &&
    7024             :                     aStrBuf.getLength() == expVal.getLength()
    7025           2 :             );
    7026             : 
    7027           1 :         }
    7028             : 
    7029           1 :         void append_043()
    7030             :         {
    7031           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7032           2 :             OString                expVal( aStrBuf.getStr() );
    7033           1 :             sal_Int32              input = -8;
    7034           1 :             sal_Int16              radix = 2;
    7035             : 
    7036           1 :             expVal += OString( "-" );
    7037           1 :             expVal += OString( "1000" );
    7038           1 :             aStrBuf.append( input, radix );
    7039             : 
    7040           2 :             CPPUNIT_ASSERT_MESSAGE
    7041             :             (
    7042             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
    7043             :                 aStrBuf.getStr()== expVal &&
    7044             :                     aStrBuf.getLength() == expVal.getLength()
    7045           2 :             );
    7046             : 
    7047           1 :         }
    7048             : 
    7049           1 :         void append_044()
    7050             :         {
    7051           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7052           2 :             OString                expVal( aStrBuf.getStr() );
    7053           1 :             sal_Int32              input = -15;
    7054           1 :             sal_Int16              radix = 2;
    7055             : 
    7056           1 :             expVal += OString( "-" );
    7057           1 :             expVal += OString( "1111" );
    7058           1 :             aStrBuf.append( input, radix );
    7059             : 
    7060           2 :             CPPUNIT_ASSERT_MESSAGE
    7061             :             (
    7062             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
    7063             :                 aStrBuf.getStr()== expVal &&
    7064             :                     aStrBuf.getLength() == expVal.getLength()
    7065           2 :             );
    7066             : 
    7067           1 :         }
    7068             : 
    7069           1 :         void append_045()
    7070             :         {
    7071           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7072           2 :             OString                expVal( aStrBuf.getStr() );
    7073           1 :             sal_Int32              input = -0;
    7074           1 :             sal_Int16              radix = 8;
    7075             : 
    7076           1 :             expVal += OString( "0" );
    7077           1 :             aStrBuf.append( input, radix );
    7078             : 
    7079           2 :             CPPUNIT_ASSERT_MESSAGE
    7080             :             (
    7081             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
    7082             :                 aStrBuf.getStr()== expVal &&
    7083             :                     aStrBuf.getLength() == expVal.getLength()
    7084           2 :             );
    7085             : 
    7086           1 :         }
    7087             : 
    7088           1 :         void append_046()
    7089             :         {
    7090           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7091           2 :             OString                expVal( aStrBuf.getStr() );
    7092           1 :             sal_Int32              input = -4;
    7093           1 :             sal_Int16              radix = 8;
    7094             : 
    7095           1 :             expVal += OString( "-" );
    7096           1 :             expVal += OString( "4" );
    7097           1 :             aStrBuf.append( input, radix );
    7098             : 
    7099           2 :             CPPUNIT_ASSERT_MESSAGE
    7100             :             (
    7101             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
    7102             :                 aStrBuf.getStr()== expVal &&
    7103             :                     aStrBuf.getLength() == expVal.getLength()
    7104           2 :             );
    7105             : 
    7106           1 :         }
    7107             : 
    7108           1 :         void append_047()
    7109             :         {
    7110           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7111           2 :             OString                expVal( aStrBuf.getStr() );
    7112           1 :             sal_Int32              input = -8;
    7113           1 :             sal_Int16              radix = 8;
    7114             : 
    7115           1 :             expVal += OString( "-" );
    7116           1 :             expVal += OString( "10" );
    7117           1 :             aStrBuf.append( input, radix );
    7118             : 
    7119           2 :             CPPUNIT_ASSERT_MESSAGE
    7120             :             (
    7121             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
    7122             :                 aStrBuf.getStr()== expVal &&
    7123             :                     aStrBuf.getLength() == expVal.getLength()
    7124           2 :             );
    7125             : 
    7126           1 :         }
    7127             : 
    7128           1 :         void append_048()
    7129             :         {
    7130           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7131           2 :             OString                expVal( aStrBuf.getStr() );
    7132           1 :             sal_Int32              input = -15;
    7133           1 :             sal_Int16              radix = 8;
    7134             : 
    7135           1 :             expVal += OString( "-" );
    7136           1 :             expVal += OString( "17" );
    7137           1 :             aStrBuf.append( input, radix );
    7138             : 
    7139           2 :             CPPUNIT_ASSERT_MESSAGE
    7140             :             (
    7141             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
    7142             :                 aStrBuf.getStr()== expVal &&
    7143             :                     aStrBuf.getLength() == expVal.getLength()
    7144           2 :             );
    7145             : 
    7146           1 :         }
    7147             : 
    7148           1 :         void append_049()
    7149             :         {
    7150           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7151           2 :             OString                expVal( aStrBuf.getStr() );
    7152           1 :             sal_Int32              input = -0;
    7153           1 :             sal_Int16              radix = 10;
    7154             : 
    7155           1 :             expVal += OString( "0" );
    7156           1 :             aStrBuf.append( input, radix );
    7157             : 
    7158           2 :             CPPUNIT_ASSERT_MESSAGE
    7159             :             (
    7160             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
    7161             :                 aStrBuf.getStr()== expVal &&
    7162             :                     aStrBuf.getLength() == expVal.getLength()
    7163           2 :             );
    7164             : 
    7165           1 :         }
    7166             : 
    7167           1 :         void append_050()
    7168             :         {
    7169           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7170           2 :             OString                expVal( aStrBuf.getStr() );
    7171           1 :             sal_Int32              input = -4;
    7172           1 :             sal_Int16              radix = 10;
    7173             : 
    7174           1 :             expVal += OString( "-" );
    7175           1 :             expVal += OString( "4" );
    7176           1 :             aStrBuf.append( input, radix );
    7177             : 
    7178           2 :             CPPUNIT_ASSERT_MESSAGE
    7179             :             (
    7180             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
    7181             :                 aStrBuf.getStr()== expVal &&
    7182             :                     aStrBuf.getLength() == expVal.getLength()
    7183           2 :             );
    7184             : 
    7185           1 :         }
    7186             : 
    7187           1 :         void append_051()
    7188             :         {
    7189           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7190           2 :             OString                expVal( aStrBuf.getStr() );
    7191           1 :             sal_Int32              input = -8;
    7192           1 :             sal_Int16              radix = 10;
    7193             : 
    7194           1 :             expVal += OString( "-" );
    7195           1 :             expVal += OString( "8" );
    7196           1 :             aStrBuf.append( input, radix );
    7197             : 
    7198           2 :             CPPUNIT_ASSERT_MESSAGE
    7199             :             (
    7200             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
    7201             :                 aStrBuf.getStr()== expVal &&
    7202             :                     aStrBuf.getLength() == expVal.getLength()
    7203           2 :             );
    7204             : 
    7205           1 :         }
    7206             : 
    7207           1 :         void append_052()
    7208             :         {
    7209           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7210           2 :             OString                expVal( aStrBuf.getStr() );
    7211           1 :             sal_Int32              input = -15;
    7212           1 :             sal_Int16              radix = 10;
    7213             : 
    7214           1 :             expVal += OString( "-" );
    7215           1 :             expVal += OString( "15" );
    7216           1 :             aStrBuf.append( input, radix );
    7217             : 
    7218           2 :             CPPUNIT_ASSERT_MESSAGE
    7219             :             (
    7220             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
    7221             :                 aStrBuf.getStr()== expVal &&
    7222             :                     aStrBuf.getLength() == expVal.getLength()
    7223           2 :             );
    7224             : 
    7225           1 :         }
    7226             : 
    7227           1 :         void append_053()
    7228             :         {
    7229           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7230           2 :             OString                expVal( aStrBuf.getStr() );
    7231           1 :             sal_Int32              input = -0;
    7232           1 :             sal_Int16              radix = 16;
    7233             : 
    7234           1 :             expVal += OString( "0" );
    7235           1 :             aStrBuf.append( input, radix );
    7236             : 
    7237           2 :             CPPUNIT_ASSERT_MESSAGE
    7238             :             (
    7239             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
    7240             :                 aStrBuf.getStr()== expVal &&
    7241             :                     aStrBuf.getLength() == expVal.getLength()
    7242           2 :             );
    7243             : 
    7244           1 :         }
    7245             : 
    7246           1 :         void append_054()
    7247             :         {
    7248           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7249           2 :             OString                expVal( aStrBuf.getStr() );
    7250           1 :             sal_Int32              input = -4;
    7251           1 :             sal_Int16              radix = 16;
    7252             : 
    7253           1 :             expVal += OString( "-" );
    7254           1 :             expVal += OString( "4" );
    7255           1 :             aStrBuf.append( input, radix );
    7256             : 
    7257           2 :             CPPUNIT_ASSERT_MESSAGE
    7258             :             (
    7259             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
    7260             :                 aStrBuf.getStr()== expVal &&
    7261             :                     aStrBuf.getLength() == expVal.getLength()
    7262           2 :             );
    7263             : 
    7264           1 :         }
    7265             : 
    7266           1 :         void append_055()
    7267             :         {
    7268           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7269           2 :             OString                expVal( aStrBuf.getStr() );
    7270           1 :             sal_Int32              input = -8;
    7271           1 :             sal_Int16              radix = 16;
    7272             : 
    7273           1 :             expVal += OString( "-" );
    7274           1 :             expVal += OString( "8" );
    7275           1 :             aStrBuf.append( input, radix );
    7276             : 
    7277           2 :             CPPUNIT_ASSERT_MESSAGE
    7278             :             (
    7279             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
    7280             :                 aStrBuf.getStr()== expVal &&
    7281             :                     aStrBuf.getLength() == expVal.getLength()
    7282           2 :             );
    7283             : 
    7284           1 :         }
    7285             : 
    7286           1 :         void append_056()
    7287             :         {
    7288           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7289           2 :             OString                expVal( aStrBuf.getStr() );
    7290           1 :             sal_Int32              input = -15;
    7291           1 :             sal_Int16              radix = 16;
    7292             : 
    7293           1 :             expVal += OString( "-" );
    7294           1 :             expVal += OString( "f" );
    7295           1 :             aStrBuf.append( input, radix );
    7296             : 
    7297           2 :             CPPUNIT_ASSERT_MESSAGE
    7298             :             (
    7299             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
    7300             :                 aStrBuf.getStr()== expVal &&
    7301             :                     aStrBuf.getLength() == expVal.getLength()
    7302           2 :             );
    7303             : 
    7304           1 :         }
    7305             : 
    7306           1 :         void append_057()
    7307             :         {
    7308           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7309           2 :             OString                expVal( aStrBuf.getStr() );
    7310           1 :             sal_Int32              input = -0;
    7311           1 :             sal_Int16              radix = 36;
    7312             : 
    7313           1 :             expVal += OString( "0" );
    7314           1 :             aStrBuf.append( input, radix );
    7315             : 
    7316           2 :             CPPUNIT_ASSERT_MESSAGE
    7317             :             (
    7318             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
    7319             :                 aStrBuf.getStr()== expVal &&
    7320             :                     aStrBuf.getLength() == expVal.getLength()
    7321           2 :             );
    7322             : 
    7323           1 :         }
    7324             : 
    7325           1 :         void append_058()
    7326             :         {
    7327           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7328           2 :             OString                expVal( aStrBuf.getStr() );
    7329           1 :             sal_Int32              input = -4;
    7330           1 :             sal_Int16              radix = 36;
    7331             : 
    7332           1 :             expVal += OString( "-" );
    7333           1 :             expVal += OString( "4" );
    7334           1 :             aStrBuf.append( input, radix );
    7335             : 
    7336           2 :             CPPUNIT_ASSERT_MESSAGE
    7337             :             (
    7338             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
    7339             :                 aStrBuf.getStr()== expVal &&
    7340             :                     aStrBuf.getLength() == expVal.getLength()
    7341           2 :             );
    7342             : 
    7343           1 :         }
    7344             : 
    7345           1 :         void append_059()
    7346             :         {
    7347           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7348           2 :             OString                expVal( aStrBuf.getStr() );
    7349           1 :             sal_Int32              input = -8;
    7350           1 :             sal_Int16              radix = 36;
    7351             : 
    7352           1 :             expVal += OString( "-" );
    7353           1 :             expVal += OString( "8" );
    7354           1 :             aStrBuf.append( input, radix );
    7355             : 
    7356           2 :             CPPUNIT_ASSERT_MESSAGE
    7357             :             (
    7358             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
    7359             :                 aStrBuf.getStr()== expVal &&
    7360             :                     aStrBuf.getLength() == expVal.getLength()
    7361           2 :             );
    7362             : 
    7363           1 :         }
    7364             : 
    7365           1 :         void append_060()
    7366             :         {
    7367           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7368           2 :             OString                expVal( aStrBuf.getStr() );
    7369           1 :             sal_Int32              input = -35;
    7370           1 :             sal_Int16              radix = 36;
    7371             : 
    7372           1 :             expVal += OString( "-" );
    7373           1 :             expVal += OString( "z" );
    7374           1 :             aStrBuf.append( input, radix );
    7375             : 
    7376           2 :             CPPUNIT_ASSERT_MESSAGE
    7377             :             (
    7378             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
    7379             :                 aStrBuf.getStr()== expVal &&
    7380             :                     aStrBuf.getLength() == expVal.getLength()
    7381           2 :             );
    7382             : 
    7383           1 :         }
    7384             : 
    7385           1 :         void append_061()
    7386             :         {
    7387           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7388           2 :             OString                expVal( aStrBuf.getStr() );
    7389           1 :             sal_Int32              input = -0;
    7390           1 :             sal_Int16              radix = 2;
    7391             : 
    7392           1 :             expVal += OString( "0" );
    7393           1 :             aStrBuf.append( input, radix );
    7394             : 
    7395           2 :             CPPUNIT_ASSERT_MESSAGE
    7396             :             (
    7397             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
    7398             :                 aStrBuf.getStr()== expVal &&
    7399             :                     aStrBuf.getLength() == expVal.getLength()
    7400           2 :             );
    7401             : 
    7402           1 :         }
    7403             : 
    7404           1 :         void append_062()
    7405             :         {
    7406           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7407           2 :             OString                expVal( aStrBuf.getStr() );
    7408           1 :             sal_Int32              input = -4;
    7409           1 :             sal_Int16              radix = 2;
    7410             : 
    7411           1 :             expVal += OString( "-" );
    7412           1 :             expVal += OString( "100" );
    7413           1 :             aStrBuf.append( input, radix );
    7414             : 
    7415           2 :             CPPUNIT_ASSERT_MESSAGE
    7416             :             (
    7417             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
    7418             :                 aStrBuf.getStr()== expVal &&
    7419             :                     aStrBuf.getLength() == expVal.getLength()
    7420           2 :             );
    7421             : 
    7422           1 :         }
    7423             : 
    7424           1 :         void append_063()
    7425             :         {
    7426           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7427           2 :             OString                expVal( aStrBuf.getStr() );
    7428           1 :             sal_Int32              input = -8;
    7429           1 :             sal_Int16              radix = 2;
    7430             : 
    7431           1 :             expVal += OString( "-" );
    7432           1 :             expVal += OString( "1000" );
    7433           1 :             aStrBuf.append( input, radix );
    7434             : 
    7435           2 :             CPPUNIT_ASSERT_MESSAGE
    7436             :             (
    7437             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
    7438             :                 aStrBuf.getStr()== expVal &&
    7439             :                     aStrBuf.getLength() == expVal.getLength()
    7440           2 :             );
    7441             : 
    7442           1 :         }
    7443             : 
    7444           1 :         void append_064()
    7445             :         {
    7446           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7447           2 :             OString                expVal( aStrBuf.getStr() );
    7448           1 :             sal_Int32              input = -15;
    7449           1 :             sal_Int16              radix = 2;
    7450             : 
    7451           1 :             expVal += OString( "-" );
    7452           1 :             expVal += OString( "1111" );
    7453           1 :             aStrBuf.append( input, radix );
    7454             : 
    7455           2 :             CPPUNIT_ASSERT_MESSAGE
    7456             :             (
    7457             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
    7458             :                 aStrBuf.getStr()== expVal &&
    7459             :                     aStrBuf.getLength() == expVal.getLength()
    7460           2 :             );
    7461             : 
    7462           1 :         }
    7463             : 
    7464           1 :         void append_065()
    7465             :         {
    7466           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7467           2 :             OString                expVal( aStrBuf.getStr() );
    7468           1 :             sal_Int32              input = -0;
    7469           1 :             sal_Int16              radix = 8;
    7470             : 
    7471           1 :             expVal += OString( "0" );
    7472           1 :             aStrBuf.append( input, radix );
    7473             : 
    7474           2 :             CPPUNIT_ASSERT_MESSAGE
    7475             :             (
    7476             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
    7477             :                 aStrBuf.getStr()== expVal &&
    7478             :                     aStrBuf.getLength() == expVal.getLength()
    7479           2 :             );
    7480             : 
    7481           1 :         }
    7482             : 
    7483           1 :         void append_066()
    7484             :         {
    7485           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7486           2 :             OString                expVal( aStrBuf.getStr() );
    7487           1 :             sal_Int32              input = -4;
    7488           1 :             sal_Int16              radix = 8;
    7489             : 
    7490           1 :             expVal += OString( "-" );
    7491           1 :             expVal += OString( "4" );
    7492           1 :             aStrBuf.append( input, radix );
    7493             : 
    7494           2 :             CPPUNIT_ASSERT_MESSAGE
    7495             :             (
    7496             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
    7497             :                 aStrBuf.getStr()== expVal &&
    7498             :                     aStrBuf.getLength() == expVal.getLength()
    7499           2 :             );
    7500             : 
    7501           1 :         }
    7502             : 
    7503           1 :         void append_067()
    7504             :         {
    7505           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7506           2 :             OString                expVal( aStrBuf.getStr() );
    7507           1 :             sal_Int32              input = -8;
    7508           1 :             sal_Int16              radix = 8;
    7509             : 
    7510           1 :             expVal += OString( "-" );
    7511           1 :             expVal += OString( "10" );
    7512           1 :             aStrBuf.append( input, radix );
    7513             : 
    7514           2 :             CPPUNIT_ASSERT_MESSAGE
    7515             :             (
    7516             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
    7517             :                 aStrBuf.getStr()== expVal &&
    7518             :                     aStrBuf.getLength() == expVal.getLength()
    7519           2 :             );
    7520             : 
    7521           1 :         }
    7522             : 
    7523           1 :         void append_068()
    7524             :         {
    7525           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7526           2 :             OString                expVal( aStrBuf.getStr() );
    7527           1 :             sal_Int32              input = -15;
    7528           1 :             sal_Int16              radix = 8;
    7529             : 
    7530           1 :             expVal += OString( "-" );
    7531           1 :             expVal += OString( "17" );
    7532           1 :             aStrBuf.append( input, radix );
    7533             : 
    7534           2 :             CPPUNIT_ASSERT_MESSAGE
    7535             :             (
    7536             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
    7537             :                 aStrBuf.getStr()== expVal &&
    7538             :                     aStrBuf.getLength() == expVal.getLength()
    7539           2 :             );
    7540             : 
    7541           1 :         }
    7542             : 
    7543           1 :         void append_069()
    7544             :         {
    7545           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7546           2 :             OString                expVal( aStrBuf.getStr() );
    7547           1 :             sal_Int32              input = -0;
    7548           1 :             sal_Int16              radix = 10;
    7549             : 
    7550           1 :             expVal += OString( "0" );
    7551           1 :             aStrBuf.append( input, radix );
    7552             : 
    7553           2 :             CPPUNIT_ASSERT_MESSAGE
    7554             :             (
    7555             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
    7556             :                 aStrBuf.getStr()== expVal &&
    7557             :                     aStrBuf.getLength() == expVal.getLength()
    7558           2 :             );
    7559             : 
    7560           1 :         }
    7561             : 
    7562           1 :         void append_070()
    7563             :         {
    7564           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7565           2 :             OString                expVal( aStrBuf.getStr() );
    7566           1 :             sal_Int32              input = -4;
    7567           1 :             sal_Int16              radix = 10;
    7568             : 
    7569           1 :             expVal += OString( "-" );
    7570           1 :             expVal += OString( "4" );
    7571           1 :             aStrBuf.append( input, radix );
    7572             : 
    7573           2 :             CPPUNIT_ASSERT_MESSAGE
    7574             :             (
    7575             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
    7576             :                 aStrBuf.getStr()== expVal &&
    7577             :                     aStrBuf.getLength() == expVal.getLength()
    7578           2 :             );
    7579             : 
    7580           1 :         }
    7581             : 
    7582           1 :         void append_071()
    7583             :         {
    7584           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7585           2 :             OString                expVal( aStrBuf.getStr() );
    7586           1 :             sal_Int32              input = -8;
    7587           1 :             sal_Int16              radix = 10;
    7588             : 
    7589           1 :             expVal += OString( "-" );
    7590           1 :             expVal += OString( "8" );
    7591           1 :             aStrBuf.append( input, radix );
    7592             : 
    7593           2 :             CPPUNIT_ASSERT_MESSAGE
    7594             :             (
    7595             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
    7596             :                 aStrBuf.getStr()== expVal &&
    7597             :                     aStrBuf.getLength() == expVal.getLength()
    7598           2 :             );
    7599             : 
    7600           1 :         }
    7601             : 
    7602           1 :         void append_072()
    7603             :         {
    7604           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7605           2 :             OString                expVal( aStrBuf.getStr() );
    7606           1 :             sal_Int32              input = -15;
    7607           1 :             sal_Int16              radix = 10;
    7608             : 
    7609           1 :             expVal += OString( "-" );
    7610           1 :             expVal += OString( "15" );
    7611           1 :             aStrBuf.append( input, radix );
    7612             : 
    7613           2 :             CPPUNIT_ASSERT_MESSAGE
    7614             :             (
    7615             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
    7616             :                 aStrBuf.getStr()== expVal &&
    7617             :                     aStrBuf.getLength() == expVal.getLength()
    7618           2 :             );
    7619             : 
    7620           1 :         }
    7621             : 
    7622           1 :         void append_073()
    7623             :         {
    7624           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7625           2 :             OString                expVal( aStrBuf.getStr() );
    7626           1 :             sal_Int32              input = -0;
    7627           1 :             sal_Int16              radix = 16;
    7628             : 
    7629           1 :             expVal += OString( "0" );
    7630           1 :             aStrBuf.append( input, radix );
    7631             : 
    7632           2 :             CPPUNIT_ASSERT_MESSAGE
    7633             :             (
    7634             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
    7635             :                 aStrBuf.getStr()== expVal &&
    7636             :                     aStrBuf.getLength() == expVal.getLength()
    7637           2 :             );
    7638             : 
    7639           1 :         }
    7640             : 
    7641           1 :         void append_074()
    7642             :         {
    7643           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7644           2 :             OString                expVal( aStrBuf.getStr() );
    7645           1 :             sal_Int32              input = -4;
    7646           1 :             sal_Int16              radix = 16;
    7647             : 
    7648           1 :             expVal += OString( "-" );
    7649           1 :             expVal += OString( "4" );
    7650           1 :             aStrBuf.append( input, radix );
    7651             : 
    7652           2 :             CPPUNIT_ASSERT_MESSAGE
    7653             :             (
    7654             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
    7655             :                 aStrBuf.getStr()== expVal &&
    7656             :                     aStrBuf.getLength() == expVal.getLength()
    7657           2 :             );
    7658             : 
    7659           1 :         }
    7660             : 
    7661           1 :         void append_075()
    7662             :         {
    7663           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7664           2 :             OString                expVal( aStrBuf.getStr() );
    7665           1 :             sal_Int32              input = -8;
    7666           1 :             sal_Int16              radix = 16;
    7667             : 
    7668           1 :             expVal += OString( "-" );
    7669           1 :             expVal += OString( "8" );
    7670           1 :             aStrBuf.append( input, radix );
    7671             : 
    7672           2 :             CPPUNIT_ASSERT_MESSAGE
    7673             :             (
    7674             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
    7675             :                 aStrBuf.getStr()== expVal &&
    7676             :                     aStrBuf.getLength() == expVal.getLength()
    7677           2 :             );
    7678             : 
    7679           1 :         }
    7680             : 
    7681           1 :         void append_076()
    7682             :         {
    7683           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7684           2 :             OString                expVal( aStrBuf.getStr() );
    7685           1 :             sal_Int32              input = -15;
    7686           1 :             sal_Int16              radix = 16;
    7687             : 
    7688           1 :             expVal += OString( "-" );
    7689           1 :             expVal += OString( "f" );
    7690           1 :             aStrBuf.append( input, radix );
    7691             : 
    7692           2 :             CPPUNIT_ASSERT_MESSAGE
    7693             :             (
    7694             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
    7695             :                 aStrBuf.getStr()== expVal &&
    7696             :                     aStrBuf.getLength() == expVal.getLength()
    7697           2 :             );
    7698             : 
    7699           1 :         }
    7700             : 
    7701           1 :         void append_077()
    7702             :         {
    7703           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7704           2 :             OString                expVal( aStrBuf.getStr() );
    7705           1 :             sal_Int32              input = -0;
    7706           1 :             sal_Int16              radix = 36;
    7707             : 
    7708           1 :             expVal += OString( "0" );
    7709           1 :             aStrBuf.append( input, radix );
    7710             : 
    7711           2 :             CPPUNIT_ASSERT_MESSAGE
    7712             :             (
    7713             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
    7714             :                 aStrBuf.getStr()== expVal &&
    7715             :                     aStrBuf.getLength() == expVal.getLength()
    7716           2 :             );
    7717             : 
    7718           1 :         }
    7719             : 
    7720           1 :         void append_078()
    7721             :         {
    7722           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7723           2 :             OString                expVal( aStrBuf.getStr() );
    7724           1 :             sal_Int32              input = -4;
    7725           1 :             sal_Int16              radix = 36;
    7726             : 
    7727           1 :             expVal += OString( "-" );
    7728           1 :             expVal += OString( "4" );
    7729           1 :             aStrBuf.append( input, radix );
    7730             : 
    7731           2 :             CPPUNIT_ASSERT_MESSAGE
    7732             :             (
    7733             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
    7734             :                 aStrBuf.getStr()== expVal &&
    7735             :                     aStrBuf.getLength() == expVal.getLength()
    7736           2 :             );
    7737             : 
    7738           1 :         }
    7739             : 
    7740           1 :         void append_079()
    7741             :         {
    7742           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7743           2 :             OString                expVal( aStrBuf.getStr() );
    7744           1 :             sal_Int32              input = -8;
    7745           1 :             sal_Int16              radix = 36;
    7746             : 
    7747           1 :             expVal += OString( "-" );
    7748           1 :             expVal += OString( "8" );
    7749           1 :             aStrBuf.append( input, radix );
    7750             : 
    7751           2 :             CPPUNIT_ASSERT_MESSAGE
    7752             :             (
    7753             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
    7754             :                 aStrBuf.getStr()== expVal &&
    7755             :                     aStrBuf.getLength() == expVal.getLength()
    7756           2 :             );
    7757             : 
    7758           1 :         }
    7759             : 
    7760           1 :         void append_080()
    7761             :         {
    7762           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7763           2 :             OString                expVal( aStrBuf.getStr() );
    7764           1 :             sal_Int32              input = -35;
    7765           1 :             sal_Int16              radix = 36;
    7766             : 
    7767           1 :             expVal += OString( "-" );
    7768           1 :             expVal += OString( "z" );
    7769           1 :             aStrBuf.append( input, radix );
    7770             : 
    7771           2 :             CPPUNIT_ASSERT_MESSAGE
    7772             :             (
    7773             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
    7774             :                 aStrBuf.getStr()== expVal &&
    7775             :                     aStrBuf.getLength() == expVal.getLength()
    7776           2 :             );
    7777             : 
    7778           1 :         }
    7779             : 
    7780           1 :         void append_081()
    7781             :         {
    7782           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    7783           2 :             OString                expVal( aStrBuf.getStr() );
    7784           1 :             sal_Int32              input = -0;
    7785           1 :             sal_Int16              radix = 2;
    7786             : 
    7787           1 :             expVal += OString( "0" );
    7788           1 :             aStrBuf.append( input, radix );
    7789             : 
    7790           2 :             CPPUNIT_ASSERT_MESSAGE
    7791             :             (
    7792             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
    7793             :                 aStrBuf.getStr()== expVal &&
    7794             :                     aStrBuf.getLength() == expVal.getLength()
    7795           2 :             );
    7796             : 
    7797           1 :         }
    7798             : 
    7799           1 :         void append_082()
    7800             :         {
    7801           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    7802           2 :             OString                expVal( aStrBuf.getStr() );
    7803           1 :             sal_Int32              input = -4;
    7804           1 :             sal_Int16              radix = 2;
    7805             : 
    7806           1 :             expVal += OString( "-" );
    7807           1 :             expVal += OString( "100" );
    7808           1 :             aStrBuf.append( input, radix );
    7809             : 
    7810           2 :             CPPUNIT_ASSERT_MESSAGE
    7811             :             (
    7812             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
    7813             :                 aStrBuf.getStr()== expVal &&
    7814             :                     aStrBuf.getLength() == expVal.getLength()
    7815           2 :             );
    7816             : 
    7817           1 :         }
    7818             : 
    7819           1 :         void append_083()
    7820             :         {
    7821           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    7822           2 :             OString                expVal( aStrBuf.getStr() );
    7823           1 :             sal_Int32              input = -8;
    7824           1 :             sal_Int16              radix = 2;
    7825             : 
    7826           1 :             expVal += OString( "-" );
    7827           1 :             expVal += OString( "1000" );
    7828           1 :             aStrBuf.append( input, radix );
    7829             : 
    7830           2 :             CPPUNIT_ASSERT_MESSAGE
    7831             :             (
    7832             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
    7833             :                 aStrBuf.getStr()== expVal &&
    7834             :                     aStrBuf.getLength() == expVal.getLength()
    7835           2 :             );
    7836             : 
    7837           1 :         }
    7838             : 
    7839           1 :         void append_084()
    7840             :         {
    7841           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    7842           2 :             OString                expVal( aStrBuf.getStr() );
    7843           1 :             sal_Int32              input = -15;
    7844           1 :             sal_Int16              radix = 2;
    7845             : 
    7846           1 :             expVal += OString( "-" );
    7847           1 :             expVal += OString( "1111" );
    7848           1 :             aStrBuf.append( input, radix );
    7849             : 
    7850           2 :             CPPUNIT_ASSERT_MESSAGE
    7851             :             (
    7852             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
    7853             :                 aStrBuf.getStr()== expVal &&
    7854             :                     aStrBuf.getLength() == expVal.getLength()
    7855           2 :             );
    7856             : 
    7857           1 :         }
    7858             : 
    7859           1 :         void append_085()
    7860             :         {
    7861           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    7862           2 :             OString                expVal( aStrBuf.getStr() );
    7863           1 :             sal_Int32              input = -0;
    7864           1 :             sal_Int16              radix = 8;
    7865             : 
    7866           1 :             expVal += OString( "0" );
    7867           1 :             aStrBuf.append( input, radix );
    7868             : 
    7869           2 :             CPPUNIT_ASSERT_MESSAGE
    7870             :             (
    7871             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
    7872             :                 aStrBuf.getStr()== expVal &&
    7873             :                     aStrBuf.getLength() == expVal.getLength()
    7874           2 :             );
    7875             : 
    7876           1 :         }
    7877             : 
    7878           1 :         void append_086()
    7879             :         {
    7880           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    7881           2 :             OString                expVal( aStrBuf.getStr() );
    7882           1 :             sal_Int32              input = -4;
    7883           1 :             sal_Int16              radix = 8;
    7884             : 
    7885           1 :             expVal += OString( "-" );
    7886           1 :             expVal += OString( "4" );
    7887           1 :             aStrBuf.append( input, radix );
    7888             : 
    7889           2 :             CPPUNIT_ASSERT_MESSAGE
    7890             :             (
    7891             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
    7892             :                 aStrBuf.getStr()== expVal &&
    7893             :                     aStrBuf.getLength() == expVal.getLength()
    7894           2 :             );
    7895             : 
    7896           1 :         }
    7897             : 
    7898           1 :         void append_087()
    7899             :         {
    7900           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    7901           2 :             OString                expVal( aStrBuf.getStr() );
    7902           1 :             sal_Int32              input = -8;
    7903           1 :             sal_Int16              radix = 8;
    7904             : 
    7905           1 :             expVal += OString( "-" );
    7906           1 :             expVal += OString( "10" );
    7907           1 :             aStrBuf.append( input, radix );
    7908             : 
    7909           2 :             CPPUNIT_ASSERT_MESSAGE
    7910             :             (
    7911             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
    7912             :                 aStrBuf.getStr()== expVal &&
    7913             :                     aStrBuf.getLength() == expVal.getLength()
    7914           2 :             );
    7915             : 
    7916           1 :         }
    7917             : 
    7918           1 :         void append_088()
    7919             :         {
    7920           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    7921           2 :             OString                expVal( aStrBuf.getStr() );
    7922           1 :             sal_Int32              input = -15;
    7923           1 :             sal_Int16              radix = 8;
    7924             : 
    7925           1 :             expVal += OString( "-" );
    7926           1 :             expVal += OString( "17" );
    7927           1 :             aStrBuf.append( input, radix );
    7928             : 
    7929           2 :             CPPUNIT_ASSERT_MESSAGE
    7930             :             (
    7931             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
    7932             :                 aStrBuf.getStr()== expVal &&
    7933             :                     aStrBuf.getLength() == expVal.getLength()
    7934           2 :             );
    7935             : 
    7936           1 :         }
    7937             : 
    7938           1 :         void append_089()
    7939             :         {
    7940           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    7941           2 :             OString                expVal( aStrBuf.getStr() );
    7942           1 :             sal_Int32              input = -0;
    7943           1 :             sal_Int16              radix = 10;
    7944             : 
    7945           1 :             expVal += OString( "0" );
    7946           1 :             aStrBuf.append( input, radix );
    7947             : 
    7948           2 :             CPPUNIT_ASSERT_MESSAGE
    7949             :             (
    7950             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
    7951             :                 aStrBuf.getStr()== expVal &&
    7952             :                     aStrBuf.getLength() == expVal.getLength()
    7953           2 :             );
    7954             : 
    7955           1 :         }
    7956             : 
    7957           1 :         void append_090()
    7958             :         {
    7959           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    7960           2 :             OString                expVal( aStrBuf.getStr() );
    7961           1 :             sal_Int32              input = -4;
    7962           1 :             sal_Int16              radix = 10;
    7963             : 
    7964           1 :             expVal += OString( "-" );
    7965           1 :             expVal += OString( "4" );
    7966           1 :             aStrBuf.append( input, radix );
    7967             : 
    7968           2 :             CPPUNIT_ASSERT_MESSAGE
    7969             :             (
    7970             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
    7971             :                 aStrBuf.getStr()== expVal &&
    7972             :                     aStrBuf.getLength() == expVal.getLength()
    7973           2 :             );
    7974             : 
    7975           1 :         }
    7976             : 
    7977           1 :         void append_091()
    7978             :         {
    7979           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    7980           2 :             OString                expVal( aStrBuf.getStr() );
    7981           1 :             sal_Int32              input = -8;
    7982           1 :             sal_Int16              radix = 10;
    7983             : 
    7984           1 :             expVal += OString( "-" );
    7985           1 :             expVal += OString( "8" );
    7986           1 :             aStrBuf.append( input, radix );
    7987             : 
    7988           2 :             CPPUNIT_ASSERT_MESSAGE
    7989             :             (
    7990             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
    7991             :                 aStrBuf.getStr()== expVal &&
    7992             :                     aStrBuf.getLength() == expVal.getLength()
    7993           2 :             );
    7994             : 
    7995           1 :         }
    7996             : 
    7997           1 :         void append_092()
    7998             :         {
    7999           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8000           2 :             OString                expVal( aStrBuf.getStr() );
    8001           1 :             sal_Int32              input = -15;
    8002           1 :             sal_Int16              radix = 10;
    8003             : 
    8004           1 :             expVal += OString( "-" );
    8005           1 :             expVal += OString( "15" );
    8006           1 :             aStrBuf.append( input, radix );
    8007             : 
    8008           2 :             CPPUNIT_ASSERT_MESSAGE
    8009             :             (
    8010             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
    8011             :                 aStrBuf.getStr()== expVal &&
    8012             :                     aStrBuf.getLength() == expVal.getLength()
    8013           2 :             );
    8014             : 
    8015           1 :         }
    8016             : 
    8017           1 :         void append_093()
    8018             :         {
    8019           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8020           2 :             OString                expVal( aStrBuf.getStr() );
    8021           1 :             sal_Int32              input = -0;
    8022           1 :             sal_Int16              radix = 16;
    8023             : 
    8024           1 :             expVal += OString( "0" );
    8025           1 :             aStrBuf.append( input, radix );
    8026             : 
    8027           2 :             CPPUNIT_ASSERT_MESSAGE
    8028             :             (
    8029             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
    8030             :                 aStrBuf.getStr()== expVal &&
    8031             :                     aStrBuf.getLength() == expVal.getLength()
    8032           2 :             );
    8033             : 
    8034           1 :         }
    8035             : 
    8036           1 :         void append_094()
    8037             :         {
    8038           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8039           2 :             OString                expVal( aStrBuf.getStr() );
    8040           1 :             sal_Int32              input = -4;
    8041           1 :             sal_Int16              radix = 16;
    8042             : 
    8043           1 :             expVal += OString( "-" );
    8044           1 :             expVal += OString( "4" );
    8045           1 :             aStrBuf.append( input, radix );
    8046             : 
    8047           2 :             CPPUNIT_ASSERT_MESSAGE
    8048             :             (
    8049             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
    8050             :                 aStrBuf.getStr()== expVal &&
    8051             :                     aStrBuf.getLength() == expVal.getLength()
    8052           2 :             );
    8053             : 
    8054           1 :         }
    8055             : 
    8056           1 :         void append_095()
    8057             :         {
    8058           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8059           2 :             OString                expVal( aStrBuf.getStr() );
    8060           1 :             sal_Int32              input = -8;
    8061           1 :             sal_Int16              radix = 16;
    8062             : 
    8063           1 :             expVal += OString( "-" );
    8064           1 :             expVal += OString( "8" );
    8065           1 :             aStrBuf.append( input, radix );
    8066             : 
    8067           2 :             CPPUNIT_ASSERT_MESSAGE
    8068             :             (
    8069             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
    8070             :                 aStrBuf.getStr()== expVal &&
    8071             :                     aStrBuf.getLength() == expVal.getLength()
    8072           2 :             );
    8073             : 
    8074           1 :         }
    8075             : 
    8076           1 :         void append_096()
    8077             :         {
    8078           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8079           2 :             OString                expVal( aStrBuf.getStr() );
    8080           1 :             sal_Int32              input = -15;
    8081           1 :             sal_Int16              radix = 16;
    8082             : 
    8083           1 :             expVal += OString( "-" );
    8084           1 :             expVal += OString( "f" );
    8085           1 :             aStrBuf.append( input, radix );
    8086             : 
    8087           2 :             CPPUNIT_ASSERT_MESSAGE
    8088             :             (
    8089             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
    8090             :                 aStrBuf.getStr()== expVal &&
    8091             :                     aStrBuf.getLength() == expVal.getLength()
    8092           2 :             );
    8093             : 
    8094           1 :         }
    8095             : 
    8096           1 :         void append_097()
    8097             :         {
    8098           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8099           2 :             OString                expVal( aStrBuf.getStr() );
    8100           1 :             sal_Int32              input = -0;
    8101           1 :             sal_Int16              radix = 36;
    8102             : 
    8103           1 :             expVal += OString( "0" );
    8104           1 :             aStrBuf.append( input, radix );
    8105             : 
    8106           2 :             CPPUNIT_ASSERT_MESSAGE
    8107             :             (
    8108             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
    8109             :                 aStrBuf.getStr()== expVal &&
    8110             :                     aStrBuf.getLength() == expVal.getLength()
    8111           2 :             );
    8112             : 
    8113           1 :         }
    8114             : 
    8115           1 :         void append_098()
    8116             :         {
    8117           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8118           2 :             OString                expVal( aStrBuf.getStr() );
    8119           1 :             sal_Int32              input = -4;
    8120           1 :             sal_Int16              radix = 36;
    8121             : 
    8122           1 :             expVal += OString( "-" );
    8123           1 :             expVal += OString( "4" );
    8124           1 :             aStrBuf.append( input, radix );
    8125             : 
    8126           2 :             CPPUNIT_ASSERT_MESSAGE
    8127             :             (
    8128             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
    8129             :                 aStrBuf.getStr()== expVal &&
    8130             :                     aStrBuf.getLength() == expVal.getLength()
    8131           2 :             );
    8132           1 :         }
    8133             : 
    8134           1 :         void append_099()
    8135             :         {
    8136           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8137           2 :             OString                expVal( aStrBuf.getStr() );
    8138           1 :             sal_Int32              input = -8;
    8139           1 :             sal_Int16              radix = 36;
    8140             : 
    8141           1 :             expVal += OString( "-" );
    8142           1 :             expVal += OString( "8" );
    8143           1 :             aStrBuf.append( input, radix );
    8144             : 
    8145           2 :             CPPUNIT_ASSERT_MESSAGE
    8146             :             (
    8147             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
    8148             :                 aStrBuf.getStr()== expVal &&
    8149             :                     aStrBuf.getLength() == expVal.getLength()
    8150           2 :             );
    8151           1 :         }
    8152             : 
    8153           1 :         void append_100()
    8154             :         {
    8155           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8156           2 :             OString                expVal( aStrBuf.getStr() );
    8157           1 :             sal_Int32              input = -35;
    8158           1 :             sal_Int16              radix = 36;
    8159             : 
    8160           1 :             expVal += OString( "-" );
    8161           1 :             expVal += OString( "z" );
    8162           1 :             aStrBuf.append( input, radix );
    8163             : 
    8164           2 :             CPPUNIT_ASSERT_MESSAGE
    8165             :             (
    8166             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
    8167             :                 aStrBuf.getStr()== expVal &&
    8168             :                     aStrBuf.getLength() == expVal.getLength()
    8169           2 :             );
    8170           1 :         }
    8171             : 
    8172           2 :         CPPUNIT_TEST_SUITE( append_006_Int32_Negative );
    8173           1 :         CPPUNIT_TEST( append_001 ); CPPUNIT_TEST( append_002 );
    8174           1 :         CPPUNIT_TEST( append_003 ); CPPUNIT_TEST( append_004 );
    8175           1 :         CPPUNIT_TEST( append_005 ); CPPUNIT_TEST( append_006 );
    8176           1 :         CPPUNIT_TEST( append_007 ); CPPUNIT_TEST( append_008 );
    8177           1 :         CPPUNIT_TEST( append_009 ); CPPUNIT_TEST( append_010 );
    8178           1 :         CPPUNIT_TEST( append_011 ); CPPUNIT_TEST( append_012 );
    8179           1 :         CPPUNIT_TEST( append_013 ); CPPUNIT_TEST( append_014 );
    8180           1 :         CPPUNIT_TEST( append_015 ); CPPUNIT_TEST( append_016 );
    8181           1 :         CPPUNIT_TEST( append_017 ); CPPUNIT_TEST( append_018 );
    8182           1 :         CPPUNIT_TEST( append_019 ); CPPUNIT_TEST( append_020 );
    8183           1 :         CPPUNIT_TEST( append_021 ); CPPUNIT_TEST( append_022 );
    8184           1 :         CPPUNIT_TEST( append_023 ); CPPUNIT_TEST( append_024 );
    8185           1 :         CPPUNIT_TEST( append_025 ); CPPUNIT_TEST( append_026 );
    8186           1 :         CPPUNIT_TEST( append_027 ); CPPUNIT_TEST( append_028 );
    8187           1 :         CPPUNIT_TEST( append_029 ); CPPUNIT_TEST( append_030 );
    8188           1 :         CPPUNIT_TEST( append_031 ); CPPUNIT_TEST( append_032 );
    8189           1 :         CPPUNIT_TEST( append_033 ); CPPUNIT_TEST( append_034 );
    8190           1 :         CPPUNIT_TEST( append_035 ); CPPUNIT_TEST( append_036 );
    8191           1 :         CPPUNIT_TEST( append_037 ); CPPUNIT_TEST( append_038 );
    8192           1 :         CPPUNIT_TEST( append_039 ); CPPUNIT_TEST( append_040 );
    8193           1 :         CPPUNIT_TEST( append_041 ); CPPUNIT_TEST( append_042 );
    8194           1 :         CPPUNIT_TEST( append_043 ); CPPUNIT_TEST( append_044 );
    8195           1 :         CPPUNIT_TEST( append_045 ); CPPUNIT_TEST( append_046 );
    8196           1 :         CPPUNIT_TEST( append_047 ); CPPUNIT_TEST( append_048 );
    8197           1 :         CPPUNIT_TEST( append_049 ); CPPUNIT_TEST( append_050 );
    8198           1 :         CPPUNIT_TEST( append_051 ); CPPUNIT_TEST( append_052 );
    8199           1 :         CPPUNIT_TEST( append_053 ); CPPUNIT_TEST( append_054 );
    8200           1 :         CPPUNIT_TEST( append_055 ); CPPUNIT_TEST( append_056 );
    8201           1 :         CPPUNIT_TEST( append_057 ); CPPUNIT_TEST( append_058 );
    8202           1 :         CPPUNIT_TEST( append_059 ); CPPUNIT_TEST( append_060 );
    8203           1 :         CPPUNIT_TEST( append_061 ); CPPUNIT_TEST( append_062 );
    8204           1 :         CPPUNIT_TEST( append_063 ); CPPUNIT_TEST( append_064 );
    8205           1 :         CPPUNIT_TEST( append_065 ); CPPUNIT_TEST( append_066 );
    8206           1 :         CPPUNIT_TEST( append_067 ); CPPUNIT_TEST( append_068 );
    8207           1 :         CPPUNIT_TEST( append_069 ); CPPUNIT_TEST( append_070 );
    8208           1 :         CPPUNIT_TEST( append_071 ); CPPUNIT_TEST( append_072 );
    8209           1 :         CPPUNIT_TEST( append_073 ); CPPUNIT_TEST( append_074 );
    8210           1 :         CPPUNIT_TEST( append_075 ); CPPUNIT_TEST( append_076 );
    8211           1 :         CPPUNIT_TEST( append_077 ); CPPUNIT_TEST( append_078 );
    8212           1 :         CPPUNIT_TEST( append_079 ); CPPUNIT_TEST( append_080 );
    8213           1 :         CPPUNIT_TEST( append_081 ); CPPUNIT_TEST( append_082 );
    8214           1 :         CPPUNIT_TEST( append_083 ); CPPUNIT_TEST( append_084 );
    8215           1 :         CPPUNIT_TEST( append_085 ); CPPUNIT_TEST( append_086 );
    8216           1 :         CPPUNIT_TEST( append_087 ); CPPUNIT_TEST( append_088 );
    8217           1 :         CPPUNIT_TEST( append_089 ); CPPUNIT_TEST( append_090 );
    8218           1 :         CPPUNIT_TEST( append_091 ); CPPUNIT_TEST( append_092 );
    8219           1 :         CPPUNIT_TEST( append_093 ); CPPUNIT_TEST( append_094 );
    8220           1 :         CPPUNIT_TEST( append_095 ); CPPUNIT_TEST( append_096 );
    8221           1 :         CPPUNIT_TEST( append_097 ); CPPUNIT_TEST( append_098 );
    8222           1 :         CPPUNIT_TEST( append_099 ); CPPUNIT_TEST( append_100 );
    8223           2 :         CPPUNIT_TEST_SUITE_END();
    8224             :     };
    8225             : 
    8226             : // testing the method append( sal_Int32 i, sal_Int16 radix ) where radix = -5
    8227             : 
    8228          15 :     class  append_006_Int32_WrongRadix : public CppUnit::TestFixture
    8229             :     {
    8230             :         OString* arrOUS[5];
    8231             :         sal_Int32 intVal;
    8232             : 
    8233             :     public:
    8234           5 :         void setUp() SAL_OVERRIDE
    8235             :         {
    8236           5 :             arrOUS[0] = new OString( kTestStr7 );
    8237           5 :             arrOUS[1] = new OString(  );
    8238           5 :             arrOUS[2] = new OString( kTestStr25 );
    8239           5 :             arrOUS[3] = new OString( "" );
    8240           5 :             arrOUS[4] = new OString( kTestStr28 );
    8241           5 :             intVal = 11;
    8242             : 
    8243           5 :         }
    8244             : 
    8245           5 :         void tearDown() SAL_OVERRIDE
    8246             :         {
    8247           5 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
    8248           5 :             delete arrOUS[3]; delete arrOUS[4];
    8249           5 :         }
    8250             : 
    8251           1 :         void append_001()
    8252             :         {
    8253           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    8254           2 :             OString                expVal( kTestStr59 );
    8255             : 
    8256           1 :             aStrBuf.append( intVal, -5 );
    8257             : 
    8258           2 :             CPPUNIT_ASSERT_MESSAGE
    8259             :             (
    8260             :                 "Appends the WrongRadix to the string buffer arrOUS[0]",
    8261             :                 aStrBuf.getStr()== expVal &&
    8262             :                     aStrBuf.getLength() == expVal.getLength()
    8263           2 :             );
    8264           1 :         }
    8265             : 
    8266           1 :         void append_002()
    8267             :         {
    8268           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    8269           2 :             OString                expVal( kTestStr60 );
    8270             : 
    8271           1 :             aStrBuf.append( intVal, -5 );
    8272             : 
    8273           2 :             CPPUNIT_ASSERT_MESSAGE
    8274             :             (
    8275             :                 "Appends the WrongRadix to the string buffer arrOUS[1]",
    8276             :                 aStrBuf.getStr()== expVal &&
    8277             :                     aStrBuf.getLength() == expVal.getLength()
    8278           2 :             );
    8279           1 :         }
    8280             : 
    8281           1 :         void append_003()
    8282             :         {
    8283           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    8284           2 :             OString                expVal( kTestStr60 );
    8285             : 
    8286           1 :             aStrBuf.append( intVal, -5 );
    8287             : 
    8288           2 :             CPPUNIT_ASSERT_MESSAGE
    8289             :             (
    8290             :                 "Appends the WrongRadix to the string buffer arrOUS[2]",
    8291             :                 aStrBuf.getStr()== expVal &&
    8292             :                     aStrBuf.getLength() == expVal.getLength()
    8293           2 :             );
    8294             : 
    8295           1 :         }
    8296             : 
    8297           1 :         void append_004()
    8298             :         {
    8299           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    8300           2 :             OString                expVal( kTestStr60 );
    8301             : 
    8302           1 :             aStrBuf.append( intVal, -5 );
    8303             : 
    8304           2 :             CPPUNIT_ASSERT_MESSAGE
    8305             :             (
    8306             :                 "Appends the WrongRadix to the string buffer arrOUS[3]",
    8307             :                 aStrBuf.getStr()== expVal &&
    8308             :                     aStrBuf.getLength() == expVal.getLength()
    8309           2 :             );
    8310             : 
    8311           1 :         }
    8312             : 
    8313           1 :         void append_005()
    8314             :         {
    8315           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8316           2 :             OString                expVal( kTestStr61 );
    8317             : 
    8318           1 :             aStrBuf.append( intVal, -5 );
    8319             : 
    8320           2 :             CPPUNIT_ASSERT_MESSAGE
    8321             :             (
    8322             :                 "Appends the WrongRadix to the string buffer arrOUS[4]",
    8323             :                 (aStrBuf.toString() == expVal &&
    8324             :                  aStrBuf.getLength() == expVal.getLength())
    8325           2 :             );
    8326           1 :         }
    8327             : #ifdef WITH_CORE
    8328             :         void append_006()
    8329             :         {
    8330             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
    8331             :             OString                expVal( kTestStr60 );
    8332             : 
    8333             :             aStrBuf.append( intVal, -5 );
    8334             : 
    8335             :             CPPUNIT_ASSERT_MESSAGE
    8336             :             (
    8337             :                 "Appends the WrongRadix to the string buffer(with INT_MAX)",
    8338             :                 aStrBuf.getStr()== expVal &&
    8339             :                     aStrBuf.getLength() == expVal.getLength()
    8340             :             );
    8341             : 
    8342             :         }
    8343             : #endif
    8344             : 
    8345           2 :         CPPUNIT_TEST_SUITE( append_006_Int32_WrongRadix );
    8346           1 :         CPPUNIT_TEST( append_001 );
    8347           1 :         CPPUNIT_TEST( append_002 );
    8348           1 :         CPPUNIT_TEST( append_003 );
    8349           1 :         CPPUNIT_TEST( append_004 );
    8350           1 :         CPPUNIT_TEST( append_005 );
    8351             : #ifdef WITH_CORE
    8352             :         CPPUNIT_TEST( append_006 );
    8353             : #endif
    8354           2 :         CPPUNIT_TEST_SUITE_END();
    8355             :     };
    8356             : 
    8357          75 :     class  append_006_Int32_defaultParam : public CppUnit::TestFixture
    8358             :     {
    8359             :         OString* arrOUS[5];
    8360             : 
    8361             :     public:
    8362          25 :         void setUp() SAL_OVERRIDE
    8363             :         {
    8364          25 :             arrOUS[0] = new OString( kTestStr7 );
    8365          25 :             arrOUS[1] = new OString(  );
    8366          25 :             arrOUS[2] = new OString( kTestStr25 );
    8367          25 :             arrOUS[3] = new OString( "" );
    8368          25 :             arrOUS[4] = new OString( kTestStr28 );
    8369             : 
    8370          25 :         }
    8371             : 
    8372          25 :         void tearDown() SAL_OVERRIDE
    8373             :         {
    8374          25 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
    8375          25 :             delete arrOUS[3]; delete arrOUS[4];
    8376          25 :         }
    8377             : 
    8378           1 :         void append_001()
    8379             :         {
    8380           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    8381           2 :             OString                expVal( kTestStr59 );
    8382           1 :             sal_Int32              input = 11;
    8383             : 
    8384           1 :             aStrBuf.append( input );
    8385             : 
    8386           2 :             CPPUNIT_ASSERT_MESSAGE
    8387             :             (
    8388             :                 "input Int32 11 and return OStringBuffer[0]+11",
    8389             :                 (aStrBuf.toString() == expVal &&
    8390             :                  aStrBuf.getLength() == expVal.getLength())
    8391           2 :             );
    8392             : 
    8393           1 :         }
    8394             : 
    8395           1 :         void append_002()
    8396             :         {
    8397           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    8398           2 :             OString                expVal( kTestStr62 );
    8399           1 :             sal_Int32              input = 0;
    8400             : 
    8401           1 :             aStrBuf.append( input );
    8402             : 
    8403           2 :             CPPUNIT_ASSERT_MESSAGE
    8404             :             (
    8405             :                 "input Int32 0 and return OStringBuffer[0]+0",
    8406             :                 (aStrBuf.toString() == expVal &&
    8407             :                  aStrBuf.getLength() == expVal.getLength())
    8408           2 :             );
    8409             : 
    8410           1 :         }
    8411             : 
    8412           1 :         void append_003()
    8413             :         {
    8414           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    8415           2 :             OString                expVal( kTestStr63 );
    8416           1 :             sal_Int32              input = -11;
    8417             : 
    8418           1 :             aStrBuf.append( input );
    8419             : 
    8420           2 :             CPPUNIT_ASSERT_MESSAGE
    8421             :             (
    8422             :                 "input Int32 -11 and return OStringBuffer[0]+(-11)",
    8423             :                 (aStrBuf.toString() == expVal &&
    8424             :                  aStrBuf.getLength() == expVal.getLength())
    8425           2 :             );
    8426             : 
    8427           1 :         }
    8428             : 
    8429           1 :         void append_004()
    8430             :         {
    8431           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    8432           2 :             OString                expVal( kTestStr64 );
    8433           1 :             sal_Int32              input = 2147483647;
    8434             : 
    8435           1 :             aStrBuf.append( input );
    8436             : 
    8437           2 :             CPPUNIT_ASSERT_MESSAGE
    8438             :             (
    8439             :                 "input Int32 2147483647 and return OStringBuffer[0]+2147483647",
    8440             :                 (aStrBuf.toString() == expVal &&
    8441             :                  aStrBuf.getLength() == expVal.getLength())
    8442           2 :             );
    8443             : 
    8444           1 :         }
    8445             : 
    8446           1 :         void append_005()
    8447             :         {
    8448           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    8449           2 :             OString                expVal( kTestStr65 );
    8450           1 :             sal_Int32              input = kNonSInt32Max;
    8451             : 
    8452           1 :             aStrBuf.append( input );
    8453             : 
    8454           2 :             CPPUNIT_ASSERT_MESSAGE
    8455             :             (
    8456             :                 "input Int32 -2147483648 and return OStringBuffer[0]+(-2147483648)",
    8457             :                 (aStrBuf.toString() == expVal &&
    8458             :                  aStrBuf.getLength() == expVal.getLength())
    8459           2 :             );
    8460             : 
    8461           1 :         }
    8462             : 
    8463           1 :         void append_006()
    8464             :         {
    8465           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    8466           2 :             OString                expVal( kTestStr60 );
    8467           1 :             sal_Int32              input = 11;
    8468             : 
    8469           1 :             aStrBuf.append( input );
    8470             : 
    8471           2 :             CPPUNIT_ASSERT_MESSAGE
    8472             :             (
    8473             :                 "input Int32 11 and return OStringBuffer[1]+11",
    8474             :                 (aStrBuf.toString() == expVal &&
    8475             :                  aStrBuf.getLength() == expVal.getLength())
    8476           2 :             );
    8477             : 
    8478           1 :         }
    8479             : 
    8480           1 :         void append_007()
    8481             :         {
    8482           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    8483           2 :             OString                expVal( kTestStr66 );
    8484           1 :             sal_Int32              input = 0;
    8485             : 
    8486           1 :             aStrBuf.append( input );
    8487             : 
    8488           2 :             CPPUNIT_ASSERT_MESSAGE
    8489             :             (
    8490             :                 "input Int32 0 and return OStringBuffer[1]+0",
    8491             :                 (aStrBuf.toString() == expVal &&
    8492             :                  aStrBuf.getLength() == expVal.getLength())
    8493           2 :             );
    8494             : 
    8495           1 :         }
    8496             : 
    8497           1 :         void append_008()
    8498             :         {
    8499           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    8500           2 :             OString                expVal( kTestStr67 );
    8501           1 :             sal_Int32              input = -11;
    8502             : 
    8503           1 :             aStrBuf.append( input );
    8504             : 
    8505           2 :             CPPUNIT_ASSERT_MESSAGE
    8506             :             (
    8507             :                 "input Int32 -11 and return OStringBuffer[1]+(-11)",
    8508             :                 (aStrBuf.toString() == expVal &&
    8509             :                  aStrBuf.getLength() == expVal.getLength())
    8510           2 :             );
    8511             : 
    8512           1 :         }
    8513             : 
    8514           1 :         void append_009()
    8515             :         {
    8516           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    8517           2 :             OString                expVal( kTestStr68 );
    8518           1 :             sal_Int32              input = 2147483647;
    8519             : 
    8520           1 :             aStrBuf.append( input );
    8521             : 
    8522           2 :             CPPUNIT_ASSERT_MESSAGE
    8523             :             (
    8524             :                 "input Int32 2147483647 and return OStringBuffer[1]+2147483647",
    8525             :                 (aStrBuf.toString() == expVal &&
    8526             :                  aStrBuf.getLength() == expVal.getLength())
    8527           2 :             );
    8528             : 
    8529           1 :         }
    8530             : 
    8531           1 :         void append_010()
    8532             :         {
    8533           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    8534           2 :             OString                expVal( kTestStr69 );
    8535           1 :             sal_Int32              input = SAL_MIN_INT32 /*-2147483648*/;
    8536             : 
    8537           1 :             aStrBuf.append( input );
    8538             : 
    8539           2 :             CPPUNIT_ASSERT_MESSAGE
    8540             :             (
    8541             :                 "input Int32 -2147483648 and return OStringBuffer[1]+(-2147483648)",
    8542             :                 (aStrBuf.toString() == expVal &&
    8543             :                  aStrBuf.getLength() == expVal.getLength())
    8544           2 :             );
    8545             : 
    8546           1 :         }
    8547             : 
    8548           1 :         void append_011()
    8549             :         {
    8550           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    8551           2 :             OString                expVal( kTestStr60 );
    8552           1 :             sal_Int32              input = 11;
    8553             : 
    8554           1 :             aStrBuf.append( input );
    8555             : 
    8556           2 :             CPPUNIT_ASSERT_MESSAGE
    8557             :             (
    8558             :                 "input Int32 11 and return OStringBuffer[2]+11",
    8559             :                 (aStrBuf.toString() == expVal &&
    8560             :                  aStrBuf.getLength() == expVal.getLength())
    8561           2 :             );
    8562             : 
    8563           1 :         }
    8564             : 
    8565           1 :         void append_012()
    8566             :         {
    8567           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    8568           2 :             OString                expVal( kTestStr66 );
    8569           1 :             sal_Int32              input = 0;
    8570             : 
    8571           1 :             aStrBuf.append( input );
    8572             : 
    8573           2 :             CPPUNIT_ASSERT_MESSAGE
    8574             :             (
    8575             :                 "input Int32 0 and return OUStringBuffer[2]+0",
    8576             :                 (aStrBuf.toString() == expVal &&
    8577             :                  aStrBuf.getLength() == expVal.getLength())
    8578           2 :             );
    8579             : 
    8580           1 :         }
    8581             : 
    8582           1 :         void append_013()
    8583             :         {
    8584           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    8585           2 :             OString                expVal( kTestStr67 );
    8586           1 :             sal_Int32              input = -11;
    8587             : 
    8588           1 :             aStrBuf.append( input );
    8589             : 
    8590           2 :             CPPUNIT_ASSERT_MESSAGE
    8591             :             (
    8592             :                 "input Int32 -11 and return OUStringBuffer[2]+(-11)",
    8593             :                 (aStrBuf.toString() == expVal &&
    8594             :                  aStrBuf.getLength() == expVal.getLength())
    8595           2 :             );
    8596             : 
    8597           1 :         }
    8598             : 
    8599           1 :         void append_014()
    8600             :         {
    8601           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    8602           2 :             OString                expVal( kTestStr68 );
    8603           1 :             sal_Int32              input = 2147483647;
    8604             : 
    8605           1 :             aStrBuf.append( input );
    8606             : 
    8607           2 :             CPPUNIT_ASSERT_MESSAGE
    8608             :             (
    8609             :                 "input Int32 2147483647 and return OStringBuffer[2]+2147483647",
    8610             :                 (aStrBuf.toString() == expVal &&
    8611             :                  aStrBuf.getLength() == expVal.getLength())
    8612           2 :             );
    8613             : 
    8614           1 :         }
    8615             : 
    8616           1 :         void append_015()
    8617             :         {
    8618           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    8619           2 :             OString                expVal( kTestStr69 );
    8620           1 :             sal_Int32              input = SAL_MIN_INT32;
    8621             : 
    8622           1 :             aStrBuf.append( input );
    8623             : 
    8624           2 :             CPPUNIT_ASSERT_MESSAGE
    8625             :             (
    8626             :                 "input Int32 -2147483648 and return OStringBuffer[2]+(-2147483648)",
    8627             :                 (aStrBuf.toString() == expVal &&
    8628             :                  aStrBuf.getLength() == expVal.getLength())
    8629           2 :             );
    8630             : 
    8631           1 :         }
    8632             : 
    8633           1 :         void append_016()
    8634             :         {
    8635           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    8636           2 :             OString                expVal( kTestStr60 );
    8637           1 :             sal_Int32              input = 11;
    8638             : 
    8639           1 :             aStrBuf.append( input );
    8640             : 
    8641           2 :             CPPUNIT_ASSERT_MESSAGE
    8642             :             (
    8643             :                 "input Int32 11 and return OStringBuffer[3]+11",
    8644             :                 (aStrBuf.toString() == expVal &&
    8645             :                  aStrBuf.getLength() == expVal.getLength())
    8646           2 :             );
    8647             : 
    8648           1 :         }
    8649             : 
    8650           1 :         void append_017()
    8651             :         {
    8652           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    8653           2 :             OString                expVal( kTestStr66 );
    8654           1 :             sal_Int32              input = 0;
    8655             : 
    8656           1 :             aStrBuf.append( input );
    8657             : 
    8658           2 :             CPPUNIT_ASSERT_MESSAGE
    8659             :             (
    8660             :                 "input Int32 0 and return OStringBuffer[3]+0",
    8661             :                 (aStrBuf.toString() == expVal &&
    8662             :                  aStrBuf.getLength() == expVal.getLength())
    8663           2 :             );
    8664             : 
    8665           1 :         }
    8666             : 
    8667           1 :         void append_018()
    8668             :         {
    8669           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    8670           2 :             OString                expVal( kTestStr67 );
    8671           1 :             sal_Int32              input = -11;
    8672             : 
    8673           1 :             aStrBuf.append( input );
    8674             : 
    8675           2 :             CPPUNIT_ASSERT_MESSAGE
    8676             :             (
    8677             :                 "input Int32 -11 and return OStringBuffer[3]+(-11)",
    8678             :                 (aStrBuf.toString() == expVal &&
    8679             :                  aStrBuf.getLength() == expVal.getLength())
    8680           2 :             );
    8681             : 
    8682           1 :         }
    8683             : 
    8684           1 :         void append_019()
    8685             :         {
    8686           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    8687           2 :             OString                expVal( kTestStr68 );
    8688           1 :             sal_Int32              input = 2147483647;
    8689             : 
    8690           1 :             aStrBuf.append( input );
    8691             : 
    8692           2 :             CPPUNIT_ASSERT_MESSAGE
    8693             :             (
    8694             :                 "input Int32 2147483647 and return OStringBuffer[3]+2147483647",
    8695             :                 (aStrBuf.toString() == expVal &&
    8696             :                  aStrBuf.getLength() == expVal.getLength())
    8697           2 :             );
    8698             : 
    8699           1 :         }
    8700             : 
    8701           1 :         void append_020()
    8702             :         {
    8703           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    8704           2 :             OString                expVal( kTestStr69 );
    8705           1 :             sal_Int32              input = SAL_MIN_INT32;
    8706             : 
    8707           1 :             aStrBuf.append( input );
    8708             : 
    8709           2 :             CPPUNIT_ASSERT_MESSAGE
    8710             :             (
    8711             :                 "input Int32 -2147483648 and return OStringBuffer[3]+(-2147483648)",
    8712             :                 (aStrBuf.toString() == expVal &&
    8713             :                  aStrBuf.getLength() == expVal.getLength())
    8714           2 :             );
    8715             : 
    8716           1 :         }
    8717             : 
    8718           1 :         void append_021()
    8719             :         {
    8720           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8721           2 :             OString                expVal( kTestStr61 );
    8722           1 :             sal_Int32              input = 11;
    8723             : 
    8724           1 :             aStrBuf.append( input );
    8725             : 
    8726           2 :             CPPUNIT_ASSERT_MESSAGE
    8727             :             (
    8728             :                 "input Int32 11 and return OStringBuffer[4]+11",
    8729             :                 (aStrBuf.toString() == expVal &&
    8730             :                  aStrBuf.getLength() == expVal.getLength())
    8731           2 :             );
    8732             : 
    8733           1 :         }
    8734             : 
    8735           1 :         void append_022()
    8736             :         {
    8737           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8738           2 :             OString                expVal( kTestStr70 );
    8739           1 :             sal_Int32              input = 0;
    8740             : 
    8741           1 :             aStrBuf.append( input );
    8742             : 
    8743           2 :             CPPUNIT_ASSERT_MESSAGE
    8744             :             (
    8745             :                 "input Int32 0 and return OStringBuffer[4]+0",
    8746             :                 (aStrBuf.toString() == expVal &&
    8747             :                  aStrBuf.getLength() == expVal.getLength())
    8748           2 :             );
    8749             : 
    8750           1 :         }
    8751             : 
    8752           1 :         void append_023()
    8753             :         {
    8754           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8755           2 :             OString                expVal( kTestStr71 );
    8756           1 :             sal_Int32              input = -11;
    8757             : 
    8758           1 :             aStrBuf.append( input );
    8759             : 
    8760           2 :             CPPUNIT_ASSERT_MESSAGE
    8761             :             (
    8762             :                 "input Int32 -11 and return OStringBuffer[4]+(-11)",
    8763             :                 (aStrBuf.toString() == expVal &&
    8764             :                  aStrBuf.getLength() == expVal.getLength())
    8765           2 :             );
    8766             : 
    8767           1 :         }
    8768             : 
    8769           1 :         void append_024()
    8770             :         {
    8771           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8772           2 :             OString                expVal( kTestStr72 );
    8773           1 :             sal_Int32              input = 2147483647;
    8774             : 
    8775           1 :             aStrBuf.append( input );
    8776             : 
    8777           2 :             CPPUNIT_ASSERT_MESSAGE
    8778             :             (
    8779             :                 "input Int32 2147483647 and return OStringBuffer[4]+2147483647",
    8780             :                 (aStrBuf.toString() == expVal &&
    8781             :                  aStrBuf.getLength() == expVal.getLength())
    8782           2 :             );
    8783             : 
    8784           1 :         }
    8785             : 
    8786           1 :         void append_025()
    8787             :         {
    8788           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8789           2 :             OString                expVal( kTestStr73 );
    8790           1 :             sal_Int32              input = SAL_MIN_INT32;
    8791             : 
    8792           1 :             aStrBuf.append( input );
    8793             : 
    8794           2 :             CPPUNIT_ASSERT_MESSAGE
    8795             :             (
    8796             :                 "input Int32 -2147483648 and return OStringBuffer[4]+(-2147483648)",
    8797             :                 (aStrBuf.toString() == expVal &&
    8798             :                  aStrBuf.getLength() == expVal.getLength())
    8799           2 :             );
    8800             : 
    8801           1 :         }
    8802             : #ifdef WITH_CORE
    8803             :         void append_026()
    8804             :         {
    8805             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
    8806             :             OString                expVal( kTestStr60 );
    8807             :             sal_Int32              input = 11;
    8808             : 
    8809             :             aStrBuf.append( input );
    8810             : 
    8811             :             CPPUNIT_ASSERT_MESSAGE
    8812             :             (
    8813             :                 "input Int32 11 and return OStringBuffer(kSInt32Max)+11",
    8814             :                 (aStrBuf.toString() == expVal &&
    8815             :                  aStrBuf.getLength() == expVal.getLength())
    8816             :             );
    8817             : 
    8818             :         }
    8819             : 
    8820             :         void append_027()
    8821             :         {
    8822             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
    8823             :             OString                expVal( kTestStr66 );
    8824             :             sal_Int32              input = 0;
    8825             : 
    8826             :             aStrBuf.append( input );
    8827             : 
    8828             :             CPPUNIT_ASSERT_MESSAGE
    8829             :             (
    8830             :                 "input Int32 0 and return OStringBuffer(kSInt32Max)+0",
    8831             :                 (aStrBuf.toString() == expVal &&
    8832             :                  aStrBuf.getLength() == expVal.getLength())
    8833             :             );
    8834             : 
    8835             :         }
    8836             : 
    8837             :         void append_028()
    8838             :         {
    8839             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
    8840             :             OString                expVal( kTestStr67 );
    8841             :             sal_Int32              input = -11;
    8842             : 
    8843             :             aStrBuf.append( input );
    8844             : 
    8845             :             CPPUNIT_ASSERT_MESSAGE
    8846             :             (
    8847             :                 "input Int32 -11 and return OStringBuffer(kSInt32Max)+(-11)",
    8848             :                 (aStrBuf.toString() == expVal &&
    8849             :                  aStrBuf.getLength() == expVal.getLength())
    8850             :             );
    8851             : 
    8852             :         }
    8853             : 
    8854             :         void append_029()
    8855             :         {
    8856             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
    8857             :             OString                expVal( kTestStr68 );
    8858             :             sal_Int32              input = 2147483647;
    8859             : 
    8860             :             aStrBuf.append( input );
    8861             : 
    8862             :             CPPUNIT_ASSERT_MESSAGE
    8863             :             (
    8864             :                 "input Int32 2147483647 and return OStringBuffer(kSInt32Max)+2147483647",
    8865             :                 (aStrBuf.toString() == expVal &&
    8866             :                  aStrBuf.getLength() == expVal.getLength())
    8867             :             );
    8868             : 
    8869             :         }
    8870             : 
    8871             :         void append_030()
    8872             :         {
    8873             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
    8874             :             OString                expVal( kTestStr69 );
    8875             :             sal_Int32              input = SAL_MIN_INT32;
    8876             : 
    8877             :             aStrBuf.append( input );
    8878             : 
    8879             :             CPPUNIT_ASSERT_MESSAGE
    8880             :             (
    8881             :                 "input Int32 -2147483648 and return OStringBuffer(kSInt32Max)+(-2147483648)",
    8882             :                 (aStrBuf.toString() == expVal &&
    8883             :                  aStrBuf.getLength() == expVal.getLength())
    8884             :             );
    8885             : 
    8886             :         }
    8887             : #endif
    8888             : 
    8889           2 :         CPPUNIT_TEST_SUITE( append_006_Int32_defaultParam );
    8890           1 :         CPPUNIT_TEST( append_001 );
    8891           1 :         CPPUNIT_TEST( append_002 );
    8892           1 :         CPPUNIT_TEST( append_003 );
    8893           1 :         CPPUNIT_TEST( append_004 );
    8894           1 :         CPPUNIT_TEST( append_005 );
    8895           1 :         CPPUNIT_TEST( append_006 );
    8896           1 :         CPPUNIT_TEST( append_007 );
    8897           1 :         CPPUNIT_TEST( append_008 );
    8898           1 :         CPPUNIT_TEST( append_009 );
    8899           1 :         CPPUNIT_TEST( append_010 );
    8900           1 :         CPPUNIT_TEST( append_011 );
    8901           1 :         CPPUNIT_TEST( append_012 );
    8902           1 :         CPPUNIT_TEST( append_013 );
    8903           1 :         CPPUNIT_TEST( append_014 );
    8904           1 :         CPPUNIT_TEST( append_015 );
    8905           1 :         CPPUNIT_TEST( append_016 );
    8906           1 :         CPPUNIT_TEST( append_017 );
    8907           1 :         CPPUNIT_TEST( append_018 );
    8908           1 :         CPPUNIT_TEST( append_019 );
    8909           1 :         CPPUNIT_TEST( append_020 );
    8910           1 :         CPPUNIT_TEST( append_021 );
    8911           1 :         CPPUNIT_TEST( append_022 );
    8912           1 :         CPPUNIT_TEST( append_023 );
    8913           1 :         CPPUNIT_TEST( append_024 );
    8914           1 :         CPPUNIT_TEST( append_025 );
    8915             : #ifdef WITH_CORE
    8916             :         CPPUNIT_TEST( append_026 );
    8917             :         CPPUNIT_TEST( append_027 );
    8918             :         CPPUNIT_TEST( append_028 );
    8919             :         CPPUNIT_TEST( append_029 );
    8920             :         CPPUNIT_TEST( append_030 );
    8921             : #endif
    8922           2 :         CPPUNIT_TEST_SUITE_END();
    8923             :     };
    8924             : 
    8925             : // testing the method append( sal_Int64 l, sal_Int16 radix=2 )
    8926             : // testing the method append( sal_Int64 l, sal_Int16 radix=8 )
    8927             : // testing the method append( sal_Int64 l, sal_Int16 radix=10 )
    8928             : // testing the method append( sal_Int64 l, sal_Int16 radix=16 )
    8929             : // testing the method append( sal_Int64 l, sal_Int16 radix=36 )
    8930             : 
    8931         300 :     class  append_007_Int64 : public CppUnit::TestFixture
    8932             :     {
    8933             :         OString* arrOUS[5];
    8934             : 
    8935             :     public:
    8936         100 :         void setUp() SAL_OVERRIDE
    8937             :         {
    8938         100 :             arrOUS[0] = new OString( kTestStr7 );
    8939         100 :             arrOUS[1] = new OString(  );
    8940         100 :             arrOUS[2] = new OString( kTestStr25 );
    8941         100 :             arrOUS[3] = new OString( "" );
    8942         100 :             arrOUS[4] = new OString( kTestStr28 );
    8943             : 
    8944         100 :         }
    8945             : 
    8946         100 :         void tearDown() SAL_OVERRIDE
    8947             :         {
    8948         100 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
    8949         100 :             delete arrOUS[3]; delete arrOUS[4];
    8950         100 :         }
    8951             : 
    8952           1 :         void append_001()
    8953             :         {
    8954           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    8955           2 :             OString                expVal( aStrBuf.getStr() );
    8956           1 :             sal_Int64              input = 0;
    8957           1 :             sal_Int16              radix = 2;
    8958             : 
    8959           1 :             expVal += OString( "0" );
    8960           1 :             aStrBuf.append( input, radix );
    8961             : 
    8962           2 :             CPPUNIT_ASSERT_MESSAGE
    8963             :             (
    8964             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
    8965             :                 aStrBuf.getStr()== expVal &&
    8966             :                     aStrBuf.getLength() == expVal.getLength()
    8967           2 :             );
    8968             : 
    8969           1 :         }
    8970             : 
    8971           1 :         void append_002()
    8972             :         {
    8973           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    8974           2 :             OString                expVal( aStrBuf.getStr() );
    8975           1 :             sal_Int64              input = 4;
    8976           1 :             sal_Int16              radix = 2;
    8977             : 
    8978           1 :             expVal += OString( "100" );
    8979           1 :             aStrBuf.append( input, radix );
    8980             : 
    8981           2 :             CPPUNIT_ASSERT_MESSAGE
    8982             :             (
    8983             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
    8984             :                 aStrBuf.getStr()== expVal &&
    8985             :                     aStrBuf.getLength() == expVal.getLength()
    8986           2 :             );
    8987             : 
    8988           1 :         }
    8989             : 
    8990           1 :         void append_003()
    8991             :         {
    8992           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    8993           2 :             OString                expVal( aStrBuf.getStr() );
    8994           1 :             sal_Int64              input = 8;
    8995           1 :             sal_Int16              radix = 2;
    8996             : 
    8997           1 :             expVal += OString( "1000" );
    8998           1 :             aStrBuf.append( input, radix );
    8999             : 
    9000           2 :             CPPUNIT_ASSERT_MESSAGE
    9001             :             (
    9002             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
    9003             :                 aStrBuf.getStr()== expVal &&
    9004             :                     aStrBuf.getLength() == expVal.getLength()
    9005           2 :             );
    9006             : 
    9007           1 :         }
    9008             : 
    9009           1 :         void append_004()
    9010             :         {
    9011           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9012           2 :             OString                expVal( aStrBuf.getStr() );
    9013           1 :             sal_Int64              input = 15;
    9014           1 :             sal_Int16              radix = 2;
    9015             : 
    9016           1 :             expVal += OString( "1111" );
    9017           1 :             aStrBuf.append( input, radix );
    9018             : 
    9019           2 :             CPPUNIT_ASSERT_MESSAGE
    9020             :             (
    9021             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
    9022             :                 aStrBuf.getStr()== expVal &&
    9023             :                     aStrBuf.getLength() == expVal.getLength()
    9024           2 :             );
    9025             : 
    9026           1 :         }
    9027             : 
    9028           1 :         void append_005()
    9029             :         {
    9030           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9031           2 :             OString                expVal( aStrBuf.getStr() );
    9032           1 :             sal_Int64              input = 0;
    9033           1 :             sal_Int16              radix = 8;
    9034             : 
    9035           1 :             expVal += OString( "0" );
    9036           1 :             aStrBuf.append( input, radix );
    9037             : 
    9038           2 :             CPPUNIT_ASSERT_MESSAGE
    9039             :             (
    9040             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
    9041             :                 aStrBuf.getStr()== expVal &&
    9042             :                     aStrBuf.getLength() == expVal.getLength()
    9043           2 :             );
    9044             : 
    9045           1 :         }
    9046             : 
    9047           1 :         void append_006()
    9048             :         {
    9049           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9050           2 :             OString                expVal( aStrBuf.getStr() );
    9051           1 :             sal_Int64              input = 4;
    9052           1 :             sal_Int16              radix = 8;
    9053             : 
    9054           1 :             expVal += OString( "4" );
    9055           1 :             aStrBuf.append( input, radix );
    9056             : 
    9057           2 :             CPPUNIT_ASSERT_MESSAGE
    9058             :             (
    9059             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
    9060             :                 aStrBuf.getStr()== expVal &&
    9061             :                     aStrBuf.getLength() == expVal.getLength()
    9062           2 :             );
    9063             : 
    9064           1 :         }
    9065             : 
    9066           1 :         void append_007()
    9067             :         {
    9068           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9069           2 :             OString                expVal( aStrBuf.getStr() );
    9070           1 :             sal_Int64              input = 8;
    9071           1 :             sal_Int16              radix = 8;
    9072             : 
    9073           1 :             expVal += OString( "10" );
    9074           1 :             aStrBuf.append( input, radix );
    9075             : 
    9076           2 :             CPPUNIT_ASSERT_MESSAGE
    9077             :             (
    9078             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
    9079             :                 aStrBuf.getStr()== expVal &&
    9080             :                     aStrBuf.getLength() == expVal.getLength()
    9081           2 :             );
    9082             : 
    9083           1 :         }
    9084             : 
    9085           1 :         void append_008()
    9086             :         {
    9087           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9088           2 :             OString                expVal( aStrBuf.getStr() );
    9089           1 :             sal_Int64              input = 15;
    9090           1 :             sal_Int16              radix = 8;
    9091             : 
    9092           1 :             expVal += OString( "17" );
    9093           1 :             aStrBuf.append( input, radix );
    9094             : 
    9095           2 :             CPPUNIT_ASSERT_MESSAGE
    9096             :             (
    9097             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
    9098             :                 aStrBuf.getStr()== expVal &&
    9099             :                     aStrBuf.getLength() == expVal.getLength()
    9100           2 :             );
    9101             : 
    9102           1 :         }
    9103             : 
    9104           1 :         void append_009()
    9105             :         {
    9106           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9107           2 :             OString                expVal( aStrBuf.getStr() );
    9108           1 :             sal_Int64             input = 0;
    9109           1 :             sal_Int16              radix = 10;
    9110             : 
    9111           1 :             expVal += OString( "0" );
    9112           1 :             aStrBuf.append( input, radix );
    9113             : 
    9114           2 :             CPPUNIT_ASSERT_MESSAGE
    9115             :             (
    9116             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
    9117             :                 aStrBuf.getStr()== expVal &&
    9118             :                     aStrBuf.getLength() == expVal.getLength()
    9119           2 :             );
    9120             : 
    9121           1 :         }
    9122             : 
    9123           1 :         void append_010()
    9124             :         {
    9125           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9126           2 :             OString                expVal( aStrBuf.getStr() );
    9127           1 :             sal_Int64              input = 4;
    9128           1 :             sal_Int16              radix = 10;
    9129             : 
    9130           1 :             expVal += OString( "4" );
    9131           1 :             aStrBuf.append( input, radix );
    9132             : 
    9133           2 :             CPPUNIT_ASSERT_MESSAGE
    9134             :             (
    9135             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
    9136             :                 aStrBuf.getStr()== expVal &&
    9137             :                     aStrBuf.getLength() == expVal.getLength()
    9138           2 :             );
    9139             : 
    9140           1 :         }
    9141             : 
    9142           1 :         void append_011()
    9143             :         {
    9144           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9145           2 :             OString                expVal( aStrBuf.getStr() );
    9146           1 :             sal_Int64              input = 8;
    9147           1 :             sal_Int16              radix = 10;
    9148             : 
    9149           1 :             expVal += OString( "8" );
    9150           1 :             aStrBuf.append( input, radix );
    9151             : 
    9152           2 :             CPPUNIT_ASSERT_MESSAGE
    9153             :             (
    9154             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
    9155             :                 aStrBuf.getStr()== expVal &&
    9156             :                     aStrBuf.getLength() == expVal.getLength()
    9157           2 :             );
    9158             : 
    9159           1 :         }
    9160             : 
    9161           1 :         void append_012()
    9162             :         {
    9163           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9164           2 :             OString                expVal( aStrBuf.getStr() );
    9165           1 :             sal_Int64              input = 15;
    9166           1 :             sal_Int16              radix = 10;
    9167             : 
    9168           1 :             expVal += OString( "15" );
    9169           1 :             aStrBuf.append( input, radix );
    9170             : 
    9171           2 :             CPPUNIT_ASSERT_MESSAGE
    9172             :             (
    9173             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
    9174             :                 aStrBuf.getStr()== expVal &&
    9175             :                     aStrBuf.getLength() == expVal.getLength()
    9176           2 :             );
    9177             : 
    9178           1 :         }
    9179             : 
    9180           1 :         void append_013()
    9181             :         {
    9182           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9183           2 :             OString                expVal( aStrBuf.getStr() );
    9184           1 :             sal_Int64              input = 0;
    9185           1 :             sal_Int16              radix = 16;
    9186             : 
    9187           1 :             expVal += OString( "0" );
    9188           1 :             aStrBuf.append( input, radix );
    9189             : 
    9190           2 :             CPPUNIT_ASSERT_MESSAGE
    9191             :             (
    9192             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
    9193             :                 aStrBuf.getStr()== expVal &&
    9194             :                     aStrBuf.getLength() == expVal.getLength()
    9195           2 :             );
    9196             : 
    9197           1 :         }
    9198             : 
    9199           1 :         void append_014()
    9200             :         {
    9201           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9202           2 :             OString                expVal( aStrBuf.getStr() );
    9203           1 :             sal_Int64              input = 4;
    9204           1 :             sal_Int16              radix = 16;
    9205             : 
    9206           1 :             expVal += OString( "4" );
    9207           1 :             aStrBuf.append( input, radix );
    9208             : 
    9209           2 :             CPPUNIT_ASSERT_MESSAGE
    9210             :             (
    9211             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
    9212             :                 aStrBuf.getStr()== expVal &&
    9213             :                     aStrBuf.getLength() == expVal.getLength()
    9214           2 :             );
    9215             : 
    9216           1 :         }
    9217             : 
    9218           1 :         void append_015()
    9219             :         {
    9220           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9221           2 :             OString                expVal( aStrBuf.getStr() );
    9222           1 :             sal_Int64              input = 8;
    9223           1 :             sal_Int16              radix = 16;
    9224             : 
    9225           1 :             expVal += OString( "8" );
    9226           1 :             aStrBuf.append( input, radix );
    9227             : 
    9228           2 :             CPPUNIT_ASSERT_MESSAGE
    9229             :             (
    9230             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
    9231             :                 aStrBuf.getStr()== expVal &&
    9232             :                     aStrBuf.getLength() == expVal.getLength()
    9233           2 :             );
    9234             : 
    9235           1 :         }
    9236             : 
    9237           1 :         void append_016()
    9238             :         {
    9239           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9240           2 :             OString                expVal( aStrBuf.getStr() );
    9241           1 :             sal_Int64              input = 15;
    9242           1 :             sal_Int16              radix = 16;
    9243             : 
    9244           1 :             expVal += OString( "f" );
    9245           1 :             aStrBuf.append( input, radix );
    9246             : 
    9247           2 :             CPPUNIT_ASSERT_MESSAGE
    9248             :             (
    9249             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
    9250             :                 aStrBuf.getStr()== expVal &&
    9251             :                     aStrBuf.getLength() == expVal.getLength()
    9252           2 :             );
    9253             : 
    9254           1 :         }
    9255             : 
    9256           1 :         void append_017()
    9257             :         {
    9258           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9259           2 :             OString                expVal( aStrBuf.getStr() );
    9260           1 :             sal_Int64              input = 0;
    9261           1 :             sal_Int16              radix = 36;
    9262             : 
    9263           1 :             expVal += OString( "0" );
    9264           1 :             aStrBuf.append( input, radix );
    9265             : 
    9266           2 :             CPPUNIT_ASSERT_MESSAGE
    9267             :             (
    9268             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
    9269             :                 aStrBuf.getStr()== expVal &&
    9270             :                     aStrBuf.getLength() == expVal.getLength()
    9271           2 :             );
    9272             : 
    9273           1 :         }
    9274             : 
    9275           1 :         void append_018()
    9276             :         {
    9277           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9278           2 :             OString                expVal( aStrBuf.getStr() );
    9279           1 :             sal_Int64              input = 4;
    9280           1 :             sal_Int16              radix = 36;
    9281             : 
    9282           1 :             expVal += OString( "4" );
    9283           1 :             aStrBuf.append( input, radix );
    9284             : 
    9285           2 :             CPPUNIT_ASSERT_MESSAGE
    9286             :             (
    9287             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
    9288             :                 aStrBuf.getStr()== expVal &&
    9289             :                     aStrBuf.getLength() == expVal.getLength()
    9290           2 :             );
    9291             : 
    9292           1 :         }
    9293             : 
    9294           1 :         void append_019()
    9295             :         {
    9296           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9297           2 :             OString                expVal( aStrBuf.getStr() );
    9298           1 :             sal_Int64              input = 8;
    9299           1 :             sal_Int16              radix = 36;
    9300             : 
    9301           1 :             expVal += OString( "8" );
    9302           1 :             aStrBuf.append( input, radix );
    9303             : 
    9304           2 :             CPPUNIT_ASSERT_MESSAGE
    9305             :             (
    9306             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
    9307             :                 aStrBuf.getStr()== expVal &&
    9308             :                     aStrBuf.getLength() == expVal.getLength()
    9309           2 :             );
    9310             : 
    9311           1 :         }
    9312             : 
    9313           1 :         void append_020()
    9314             :         {
    9315           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9316           2 :             OString                expVal( aStrBuf.getStr() );
    9317           1 :             sal_Int64              input = 35;
    9318           1 :             sal_Int16              radix = 36;
    9319             : 
    9320           1 :             expVal += OString( "z" );
    9321           1 :             aStrBuf.append( input, radix );
    9322             : 
    9323           2 :             CPPUNIT_ASSERT_MESSAGE
    9324             :             (
    9325             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
    9326             :                 aStrBuf.getStr()== expVal &&
    9327             :                     aStrBuf.getLength() == expVal.getLength()
    9328           2 :             );
    9329             : 
    9330           1 :         }
    9331             : 
    9332           1 :         void append_021()
    9333             :         {
    9334           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9335           2 :             OString                expVal( aStrBuf.getStr() );
    9336           1 :             sal_Int64              input = 0;
    9337           1 :             sal_Int16              radix = 2;
    9338             : 
    9339           1 :             expVal += OString( "0" );
    9340           1 :             aStrBuf.append( input, radix );
    9341             : 
    9342           2 :             CPPUNIT_ASSERT_MESSAGE
    9343             :             (
    9344             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
    9345             :                 aStrBuf.getStr()== expVal &&
    9346             :                     aStrBuf.getLength() == expVal.getLength()
    9347           2 :             );
    9348             : 
    9349           1 :         }
    9350             : 
    9351           1 :         void append_022()
    9352             :         {
    9353           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9354           2 :             OString                expVal( aStrBuf.getStr() );
    9355           1 :             sal_Int64              input = 4;
    9356           1 :             sal_Int16              radix = 2;
    9357             : 
    9358           1 :             expVal += OString( "100" );
    9359           1 :             aStrBuf.append( input, radix );
    9360             : 
    9361           2 :             CPPUNIT_ASSERT_MESSAGE
    9362             :             (
    9363             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
    9364             :                 aStrBuf.getStr()== expVal &&
    9365             :                     aStrBuf.getLength() == expVal.getLength()
    9366           2 :             );
    9367             : 
    9368           1 :         }
    9369             : 
    9370           1 :         void append_023()
    9371             :         {
    9372           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9373           2 :             OString                expVal( aStrBuf.getStr() );
    9374           1 :             sal_Int64              input = 8;
    9375           1 :             sal_Int16              radix = 2;
    9376             : 
    9377           1 :             expVal += OString( "1000" );
    9378           1 :             aStrBuf.append( input, radix );
    9379             : 
    9380           2 :             CPPUNIT_ASSERT_MESSAGE
    9381             :             (
    9382             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
    9383             :                 aStrBuf.getStr()== expVal &&
    9384             :                     aStrBuf.getLength() == expVal.getLength()
    9385           2 :             );
    9386             : 
    9387           1 :         }
    9388             : 
    9389           1 :         void append_024()
    9390             :         {
    9391           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9392           2 :             OString                expVal( aStrBuf.getStr() );
    9393           1 :             sal_Int64              input = 15;
    9394           1 :             sal_Int16              radix = 2;
    9395             : 
    9396           1 :             expVal += OString( "1111" );
    9397           1 :             aStrBuf.append( input, radix );
    9398             : 
    9399           2 :             CPPUNIT_ASSERT_MESSAGE
    9400             :             (
    9401             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
    9402             :                 aStrBuf.getStr()== expVal &&
    9403             :                     aStrBuf.getLength() == expVal.getLength()
    9404           2 :             );
    9405             : 
    9406           1 :         }
    9407             : 
    9408           1 :         void append_025()
    9409             :         {
    9410           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9411           2 :             OString                expVal( aStrBuf.getStr() );
    9412           1 :             sal_Int64              input = 0;
    9413           1 :             sal_Int16              radix = 8;
    9414             : 
    9415           1 :             expVal += OString( "0" );
    9416           1 :             aStrBuf.append( input, radix );
    9417             : 
    9418           2 :             CPPUNIT_ASSERT_MESSAGE
    9419             :             (
    9420             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
    9421             :                 aStrBuf.getStr()== expVal &&
    9422             :                     aStrBuf.getLength() == expVal.getLength()
    9423           2 :             );
    9424             : 
    9425           1 :         }
    9426             : 
    9427           1 :         void append_026()
    9428             :         {
    9429           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9430           2 :             OString                expVal( aStrBuf.getStr() );
    9431           1 :             sal_Int64              input = 4;
    9432           1 :             sal_Int16              radix = 8;
    9433             : 
    9434           1 :             expVal += OString( "4" );
    9435           1 :             aStrBuf.append( input, radix );
    9436             : 
    9437           2 :             CPPUNIT_ASSERT_MESSAGE
    9438             :             (
    9439             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
    9440             :                 aStrBuf.getStr()== expVal &&
    9441             :                     aStrBuf.getLength() == expVal.getLength()
    9442           2 :             );
    9443             : 
    9444           1 :         }
    9445             : 
    9446           1 :         void append_027()
    9447             :         {
    9448           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9449           2 :             OString                expVal( aStrBuf.getStr() );
    9450           1 :             sal_Int64              input = 8;
    9451           1 :             sal_Int16              radix = 8;
    9452             : 
    9453           1 :             expVal += OString( "10" );
    9454           1 :             aStrBuf.append( input, radix );
    9455             : 
    9456           2 :             CPPUNIT_ASSERT_MESSAGE
    9457             :             (
    9458             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
    9459             :                 aStrBuf.getStr()== expVal &&
    9460             :                     aStrBuf.getLength() == expVal.getLength()
    9461           2 :             );
    9462             : 
    9463           1 :         }
    9464             : 
    9465           1 :         void append_028()
    9466             :         {
    9467           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9468           2 :             OString                expVal( aStrBuf.getStr() );
    9469           1 :             sal_Int64              input = 15;
    9470           1 :             sal_Int16              radix = 8;
    9471             : 
    9472           1 :             expVal += OString( "17" );
    9473           1 :             aStrBuf.append( input, radix );
    9474             : 
    9475           2 :             CPPUNIT_ASSERT_MESSAGE
    9476             :             (
    9477             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
    9478             :                 aStrBuf.getStr()== expVal &&
    9479             :                     aStrBuf.getLength() == expVal.getLength()
    9480           2 :             );
    9481             : 
    9482           1 :         }
    9483             : 
    9484           1 :         void append_029()
    9485             :         {
    9486           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9487           2 :             OString                expVal( aStrBuf.getStr() );
    9488           1 :             sal_Int64              input = 0;
    9489           1 :             sal_Int16              radix = 10;
    9490             : 
    9491           1 :             expVal += OString( "0" );
    9492           1 :             aStrBuf.append( input, radix );
    9493             : 
    9494           2 :             CPPUNIT_ASSERT_MESSAGE
    9495             :             (
    9496             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
    9497             :                 aStrBuf.getStr()== expVal &&
    9498             :                     aStrBuf.getLength() == expVal.getLength()
    9499           2 :             );
    9500             : 
    9501           1 :         }
    9502             : 
    9503           1 :         void append_030()
    9504             :         {
    9505           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9506           2 :             OString                expVal( aStrBuf.getStr() );
    9507           1 :             sal_Int64              input = 4;
    9508           1 :             sal_Int16              radix = 10;
    9509             : 
    9510           1 :             expVal += OString( "4" );
    9511           1 :             aStrBuf.append( input, radix );
    9512             : 
    9513           2 :             CPPUNIT_ASSERT_MESSAGE
    9514             :             (
    9515             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
    9516             :                 aStrBuf.getStr()== expVal &&
    9517             :                     aStrBuf.getLength() == expVal.getLength()
    9518           2 :             );
    9519             : 
    9520           1 :         }
    9521             : 
    9522           1 :         void append_031()
    9523             :         {
    9524           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9525           2 :             OString                expVal( aStrBuf.getStr() );
    9526           1 :             sal_Int64              input = 8;
    9527           1 :             sal_Int16              radix = 10;
    9528             : 
    9529           1 :             expVal += OString( "8" );
    9530           1 :             aStrBuf.append( input, radix );
    9531             : 
    9532           2 :             CPPUNIT_ASSERT_MESSAGE
    9533             :             (
    9534             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
    9535             :                 aStrBuf.getStr()== expVal &&
    9536             :                     aStrBuf.getLength() == expVal.getLength()
    9537           2 :             );
    9538             : 
    9539           1 :         }
    9540             : 
    9541           1 :         void append_032()
    9542             :         {
    9543           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9544           2 :             OString                expVal( aStrBuf.getStr() );
    9545           1 :             sal_Int64              input = 15;
    9546           1 :             sal_Int16              radix = 10;
    9547             : 
    9548           1 :             expVal += OString( "15" );
    9549           1 :             aStrBuf.append( input, radix );
    9550             : 
    9551           2 :             CPPUNIT_ASSERT_MESSAGE
    9552             :             (
    9553             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
    9554             :                 aStrBuf.getStr()== expVal &&
    9555             :                     aStrBuf.getLength() == expVal.getLength()
    9556           2 :             );
    9557             : 
    9558           1 :         }
    9559             : 
    9560           1 :         void append_033()
    9561             :         {
    9562           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9563           2 :             OString                expVal( aStrBuf.getStr() );
    9564           1 :             sal_Int64              input = 0;
    9565           1 :             sal_Int16              radix = 16;
    9566             : 
    9567           1 :             expVal += OString( "0" );
    9568           1 :             aStrBuf.append( input, radix );
    9569             : 
    9570           2 :             CPPUNIT_ASSERT_MESSAGE
    9571             :             (
    9572             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
    9573             :                 aStrBuf.getStr()== expVal &&
    9574             :                     aStrBuf.getLength() == expVal.getLength()
    9575           2 :             );
    9576             : 
    9577           1 :         }
    9578             : 
    9579           1 :         void append_034()
    9580             :         {
    9581           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9582           2 :             OString                expVal( aStrBuf.getStr() );
    9583           1 :             sal_Int64              input = 4;
    9584           1 :             sal_Int16              radix = 16;
    9585             : 
    9586           1 :             expVal += OString( "4" );
    9587           1 :             aStrBuf.append( input, radix );
    9588             : 
    9589           2 :             CPPUNIT_ASSERT_MESSAGE
    9590             :             (
    9591             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
    9592             :                 aStrBuf.getStr()== expVal &&
    9593             :                     aStrBuf.getLength() == expVal.getLength()
    9594           2 :             );
    9595             : 
    9596           1 :         }
    9597             : 
    9598           1 :         void append_035()
    9599             :         {
    9600           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9601           2 :             OString                expVal( aStrBuf.getStr() );
    9602           1 :             sal_Int64              input = 8;
    9603           1 :             sal_Int16              radix = 16;
    9604             : 
    9605           1 :             expVal += OString( "8" );
    9606           1 :             aStrBuf.append( input, radix );
    9607             : 
    9608           2 :             CPPUNIT_ASSERT_MESSAGE
    9609             :             (
    9610             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
    9611             :                 aStrBuf.getStr()== expVal &&
    9612             :                     aStrBuf.getLength() == expVal.getLength()
    9613           2 :             );
    9614             : 
    9615           1 :         }
    9616             : 
    9617           1 :         void append_036()
    9618             :         {
    9619           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9620           2 :             OString                expVal( aStrBuf.getStr() );
    9621           1 :             sal_Int64              input = 15;
    9622           1 :             sal_Int16              radix = 16;
    9623             : 
    9624           1 :             expVal += OString( "f" );
    9625           1 :             aStrBuf.append( input, radix );
    9626             : 
    9627           2 :             CPPUNIT_ASSERT_MESSAGE
    9628             :             (
    9629             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
    9630             :                 aStrBuf.getStr()== expVal &&
    9631             :                     aStrBuf.getLength() == expVal.getLength()
    9632           2 :             );
    9633             : 
    9634           1 :         }
    9635             : 
    9636           1 :         void append_037()
    9637             :         {
    9638           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9639           2 :             OString                expVal( aStrBuf.getStr() );
    9640           1 :             sal_Int64              input = 0;
    9641           1 :             sal_Int16              radix = 36;
    9642             : 
    9643           1 :             expVal += OString( "0" );
    9644           1 :             aStrBuf.append( input, radix );
    9645             : 
    9646           2 :             CPPUNIT_ASSERT_MESSAGE
    9647             :             (
    9648             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
    9649             :                 aStrBuf.getStr()== expVal &&
    9650             :                     aStrBuf.getLength() == expVal.getLength()
    9651           2 :             );
    9652             : 
    9653           1 :         }
    9654             : 
    9655           1 :         void append_038()
    9656             :         {
    9657           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9658           2 :             OString                expVal( aStrBuf.getStr() );
    9659           1 :             sal_Int64              input = 4;
    9660           1 :             sal_Int16              radix = 36;
    9661             : 
    9662           1 :             expVal += OString( "4" );
    9663           1 :             aStrBuf.append( input, radix );
    9664             : 
    9665           2 :             CPPUNIT_ASSERT_MESSAGE
    9666             :             (
    9667             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
    9668             :                 aStrBuf.getStr()== expVal &&
    9669             :                     aStrBuf.getLength() == expVal.getLength()
    9670           2 :             );
    9671             : 
    9672           1 :         }
    9673             : 
    9674           1 :         void append_039()
    9675             :         {
    9676           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9677           2 :             OString                expVal( aStrBuf.getStr() );
    9678           1 :             sal_Int64              input = 8;
    9679           1 :             sal_Int16              radix = 36;
    9680             : 
    9681           1 :             expVal += OString( "8" );
    9682           1 :             aStrBuf.append( input, radix );
    9683             : 
    9684           2 :             CPPUNIT_ASSERT_MESSAGE
    9685             :             (
    9686             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
    9687             :                 aStrBuf.getStr()== expVal &&
    9688             :                     aStrBuf.getLength() == expVal.getLength()
    9689           2 :             );
    9690             : 
    9691           1 :         }
    9692             : 
    9693           1 :         void append_040()
    9694             :         {
    9695           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9696           2 :             OString                expVal( aStrBuf.getStr() );
    9697           1 :             sal_Int64              input = 35;
    9698           1 :             sal_Int16              radix = 36;
    9699             : 
    9700           1 :             expVal += OString( "z" );
    9701           1 :             aStrBuf.append( input, radix );
    9702             : 
    9703           2 :             CPPUNIT_ASSERT_MESSAGE
    9704             :             (
    9705             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
    9706             :                 aStrBuf.getStr()== expVal &&
    9707             :                     aStrBuf.getLength() == expVal.getLength()
    9708           2 :             );
    9709             : 
    9710           1 :         }
    9711             : 
    9712           1 :         void append_041()
    9713             :         {
    9714           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    9715           2 :             OString                expVal( aStrBuf.getStr() );
    9716           1 :             sal_Int64              input = 0;
    9717           1 :             sal_Int16              radix = 2;
    9718             : 
    9719           1 :             expVal += OString( "0" );
    9720           1 :             aStrBuf.append( input, radix );
    9721             : 
    9722           2 :             CPPUNIT_ASSERT_MESSAGE
    9723             :             (
    9724             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
    9725             :                 aStrBuf.getStr()== expVal &&
    9726             :                     aStrBuf.getLength() == expVal.getLength()
    9727           2 :             );
    9728             : 
    9729           1 :         }
    9730             : 
    9731           1 :         void append_042()
    9732             :         {
    9733           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    9734           2 :             OString                expVal( aStrBuf.getStr() );
    9735           1 :             sal_Int64              input = 4;
    9736           1 :             sal_Int16              radix = 2;
    9737             : 
    9738           1 :             expVal += OString( "100" );
    9739           1 :             aStrBuf.append( input, radix );
    9740             : 
    9741           2 :             CPPUNIT_ASSERT_MESSAGE
    9742             :             (
    9743             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
    9744             :                 aStrBuf.getStr()== expVal &&
    9745             :                     aStrBuf.getLength() == expVal.getLength()
    9746           2 :             );
    9747             : 
    9748           1 :         }
    9749             : 
    9750           1 :         void append_043()
    9751             :         {
    9752           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    9753           2 :             OString                expVal( aStrBuf.getStr() );
    9754           1 :             sal_Int64              input = 8;
    9755           1 :             sal_Int16              radix = 2;
    9756             : 
    9757           1 :             expVal += OString( "1000" );
    9758           1 :             aStrBuf.append( input, radix );
    9759             : 
    9760           2 :             CPPUNIT_ASSERT_MESSAGE
    9761             :             (
    9762             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
    9763             :                 aStrBuf.getStr()== expVal &&
    9764             :                     aStrBuf.getLength() == expVal.getLength()
    9765           2 :             );
    9766             : 
    9767           1 :         }
    9768             : 
    9769           1 :         void append_044()
    9770             :         {
    9771           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    9772           2 :             OString                expVal( aStrBuf.getStr() );
    9773           1 :             sal_Int64              input = 15;
    9774           1 :             sal_Int16              radix = 2;
    9775             : 
    9776           1 :             expVal += OString( "1111" );
    9777           1 :             aStrBuf.append( input, radix );
    9778             : 
    9779           2 :             CPPUNIT_ASSERT_MESSAGE
    9780             :             (
    9781             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
    9782             :                 aStrBuf.getStr()== expVal &&
    9783             :                     aStrBuf.getLength() == expVal.getLength()
    9784           2 :             );
    9785             : 
    9786           1 :         }
    9787             : 
    9788           1 :         void append_045()
    9789             :         {
    9790           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    9791           2 :             OString                expVal( aStrBuf.getStr() );
    9792           1 :             sal_Int64              input = 0;
    9793           1 :             sal_Int16              radix = 8;
    9794             : 
    9795           1 :             expVal += OString( "0" );
    9796           1 :             aStrBuf.append( input, radix );
    9797             : 
    9798           2 :             CPPUNIT_ASSERT_MESSAGE
    9799             :             (
    9800             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
    9801             :                 aStrBuf.getStr()== expVal &&
    9802             :                     aStrBuf.getLength() == expVal.getLength()
    9803           2 :             );
    9804             : 
    9805           1 :         }
    9806             : 
    9807           1 :         void append_046()
    9808             :         {
    9809           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    9810           2 :             OString                expVal( aStrBuf.getStr() );
    9811           1 :             sal_Int64              input = 4;
    9812           1 :             sal_Int16              radix = 8;
    9813             : 
    9814           1 :             expVal += OString( "4" );
    9815           1 :             aStrBuf.append( input, radix );
    9816             : 
    9817           2 :             CPPUNIT_ASSERT_MESSAGE
    9818             :             (
    9819             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
    9820             :                 aStrBuf.getStr()== expVal &&
    9821             :                     aStrBuf.getLength() == expVal.getLength()
    9822           2 :             );
    9823             : 
    9824           1 :         }
    9825             : 
    9826           1 :         void append_047()
    9827             :         {
    9828           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    9829           2 :             OString                expVal( aStrBuf.getStr() );
    9830           1 :             sal_Int64              input = 8;
    9831           1 :             sal_Int16              radix = 8;
    9832             : 
    9833           1 :             expVal += OString( "10" );
    9834           1 :             aStrBuf.append( input, radix );
    9835             : 
    9836           2 :             CPPUNIT_ASSERT_MESSAGE
    9837             :             (
    9838             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
    9839             :                 aStrBuf.getStr()== expVal &&
    9840             :                     aStrBuf.getLength() == expVal.getLength()
    9841           2 :             );
    9842             : 
    9843           1 :         }
    9844             : 
    9845           1 :         void append_048()
    9846             :         {
    9847           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    9848           2 :             OString                expVal( aStrBuf.getStr() );
    9849           1 :             sal_Int64              input = 15;
    9850           1 :             sal_Int16              radix = 8;
    9851             : 
    9852           1 :             expVal += OString( "17" );
    9853           1 :             aStrBuf.append( input, radix );
    9854             : 
    9855           2 :             CPPUNIT_ASSERT_MESSAGE
    9856             :             (
    9857             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
    9858             :                 aStrBuf.getStr()== expVal &&
    9859             :                     aStrBuf.getLength() == expVal.getLength()
    9860           2 :             );
    9861             : 
    9862           1 :         }
    9863             : 
    9864           1 :         void append_049()
    9865             :         {
    9866           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    9867           2 :             OString                expVal( aStrBuf.getStr() );
    9868           1 :             sal_Int64              input = 0;
    9869           1 :             sal_Int16              radix = 10;
    9870             : 
    9871           1 :             expVal += OString( "0" );
    9872           1 :             aStrBuf.append( input, radix );
    9873             : 
    9874           2 :             CPPUNIT_ASSERT_MESSAGE
    9875             :             (
    9876             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
    9877             :                 aStrBuf.getStr()== expVal &&
    9878             :                     aStrBuf.getLength() == expVal.getLength()
    9879           2 :             );
    9880             : 
    9881           1 :         }
    9882             : 
    9883           1 :         void append_050()
    9884             :         {
    9885           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    9886           2 :             OString                expVal( aStrBuf.getStr() );
    9887           1 :             sal_Int64              input = 4;
    9888           1 :             sal_Int16              radix = 10;
    9889             : 
    9890           1 :             expVal += OString( "4" );
    9891           1 :             aStrBuf.append( input, radix );
    9892             : 
    9893           2 :             CPPUNIT_ASSERT_MESSAGE
    9894             :             (
    9895             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
    9896             :                 aStrBuf.getStr()== expVal &&
    9897             :                     aStrBuf.getLength() == expVal.getLength()
    9898           2 :             );
    9899             : 
    9900           1 :         }
    9901             : 
    9902           1 :         void append_051()
    9903             :         {
    9904           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    9905           2 :             OString                expVal( aStrBuf.getStr() );
    9906           1 :             sal_Int64              input = 8;
    9907           1 :             sal_Int16              radix = 10;
    9908             : 
    9909           1 :             expVal += OString( "8" );
    9910           1 :             aStrBuf.append( input, radix );
    9911             : 
    9912           2 :             CPPUNIT_ASSERT_MESSAGE
    9913             :             (
    9914             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
    9915             :                 aStrBuf.getStr()== expVal &&
    9916             :                     aStrBuf.getLength() == expVal.getLength()
    9917           2 :             );
    9918             : 
    9919           1 :         }
    9920             : 
    9921           1 :         void append_052()
    9922             :         {
    9923           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    9924           2 :             OString                expVal( aStrBuf.getStr() );
    9925           1 :             sal_Int64              input = 15;
    9926           1 :             sal_Int16              radix = 10;
    9927             : 
    9928           1 :             expVal += OString( "15" );
    9929           1 :             aStrBuf.append( input, radix );
    9930             : 
    9931           2 :             CPPUNIT_ASSERT_MESSAGE
    9932             :             (
    9933             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
    9934             :                 aStrBuf.getStr()== expVal &&
    9935             :                     aStrBuf.getLength() == expVal.getLength()
    9936           2 :             );
    9937             : 
    9938           1 :         }
    9939             : 
    9940           1 :         void append_053()
    9941             :         {
    9942           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    9943           2 :             OString                expVal( aStrBuf.getStr() );
    9944           1 :             sal_Int64              input = 0;
    9945           1 :             sal_Int16              radix = 16;
    9946             : 
    9947           1 :             expVal += OString( "0" );
    9948           1 :             aStrBuf.append( input, radix );
    9949             : 
    9950           2 :             CPPUNIT_ASSERT_MESSAGE
    9951             :             (
    9952             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
    9953             :                 aStrBuf.getStr()== expVal &&
    9954             :                     aStrBuf.getLength() == expVal.getLength()
    9955           2 :             );
    9956             : 
    9957           1 :         }
    9958             : 
    9959           1 :         void append_054()
    9960             :         {
    9961           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    9962           2 :             OString                expVal( aStrBuf.getStr() );
    9963           1 :             sal_Int64              input = 4;
    9964           1 :             sal_Int16              radix = 16;
    9965             : 
    9966           1 :             expVal += OString( "4" );
    9967           1 :             aStrBuf.append( input, radix );
    9968             : 
    9969           2 :             CPPUNIT_ASSERT_MESSAGE
    9970             :             (
    9971             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
    9972             :                 aStrBuf.getStr()== expVal &&
    9973             :                     aStrBuf.getLength() == expVal.getLength()
    9974           2 :             );
    9975             : 
    9976           1 :         }
    9977             : 
    9978           1 :         void append_055()
    9979             :         {
    9980           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    9981           2 :             OString                expVal( aStrBuf.getStr() );
    9982           1 :             sal_Int64              input = 8;
    9983           1 :             sal_Int16              radix = 16;
    9984             : 
    9985           1 :             expVal += OString( "8" );
    9986           1 :             aStrBuf.append( input, radix );
    9987             : 
    9988           2 :             CPPUNIT_ASSERT_MESSAGE
    9989             :             (
    9990             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
    9991             :                 aStrBuf.getStr()== expVal &&
    9992             :                     aStrBuf.getLength() == expVal.getLength()
    9993           2 :             );
    9994             : 
    9995           1 :         }
    9996             : 
    9997           1 :         void append_056()
    9998             :         {
    9999           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   10000           2 :             OString                expVal( aStrBuf.getStr() );
   10001           1 :             sal_Int64              input = 15;
   10002           1 :             sal_Int16              radix = 16;
   10003             : 
   10004           1 :             expVal += OString( "f" );
   10005           1 :             aStrBuf.append( input, radix );
   10006             : 
   10007           2 :             CPPUNIT_ASSERT_MESSAGE
   10008             :             (
   10009             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
   10010             :                 aStrBuf.getStr()== expVal &&
   10011             :                     aStrBuf.getLength() == expVal.getLength()
   10012           2 :             );
   10013             : 
   10014           1 :         }
   10015             : 
   10016           1 :         void append_057()
   10017             :         {
   10018           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   10019           2 :             OString                expVal( aStrBuf.getStr() );
   10020           1 :             sal_Int64              input = 0;
   10021           1 :             sal_Int16              radix = 36;
   10022             : 
   10023           1 :             expVal += OString( "0" );
   10024           1 :             aStrBuf.append( input, radix );
   10025             : 
   10026           2 :             CPPUNIT_ASSERT_MESSAGE
   10027             :             (
   10028             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
   10029             :                 aStrBuf.getStr()== expVal &&
   10030             :                     aStrBuf.getLength() == expVal.getLength()
   10031           2 :             );
   10032             : 
   10033           1 :         }
   10034             : 
   10035           1 :         void append_058()
   10036             :         {
   10037           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   10038           2 :             OString                expVal( aStrBuf.getStr() );
   10039           1 :             sal_Int64              input = 4;
   10040           1 :             sal_Int16              radix = 36;
   10041             : 
   10042           1 :             expVal += OString( "4" );
   10043           1 :             aStrBuf.append( input, radix );
   10044             : 
   10045           2 :             CPPUNIT_ASSERT_MESSAGE
   10046             :             (
   10047             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
   10048             :                 aStrBuf.getStr()== expVal &&
   10049             :                     aStrBuf.getLength() == expVal.getLength()
   10050           2 :             );
   10051             : 
   10052           1 :         }
   10053             : 
   10054           1 :         void append_059()
   10055             :         {
   10056           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   10057           2 :             OString                expVal( aStrBuf.getStr() );
   10058           1 :             sal_Int64              input = 8;
   10059           1 :             sal_Int16              radix = 36;
   10060             : 
   10061           1 :             expVal += OString( "8" );
   10062           1 :             aStrBuf.append( input, radix );
   10063             : 
   10064           2 :             CPPUNIT_ASSERT_MESSAGE
   10065             :             (
   10066             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
   10067             :                 aStrBuf.getStr()== expVal &&
   10068             :                     aStrBuf.getLength() == expVal.getLength()
   10069           2 :             );
   10070             : 
   10071           1 :         }
   10072             : 
   10073           1 :         void append_060()
   10074             :         {
   10075           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   10076           2 :             OString                expVal( aStrBuf.getStr() );
   10077           1 :             sal_Int64              input = 35;
   10078           1 :             sal_Int16              radix = 36;
   10079             : 
   10080           1 :             expVal += OString( "z" );
   10081           1 :             aStrBuf.append( input, radix );
   10082             : 
   10083           2 :             CPPUNIT_ASSERT_MESSAGE
   10084             :             (
   10085             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
   10086             :                 aStrBuf.getStr()== expVal &&
   10087             :                     aStrBuf.getLength() == expVal.getLength()
   10088           2 :             );
   10089             : 
   10090           1 :         }
   10091             : 
   10092           1 :         void append_061()
   10093             :         {
   10094           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10095           2 :             OString                expVal( aStrBuf.getStr() );
   10096           1 :             sal_Int64              input = 0;
   10097           1 :             sal_Int16              radix = 2;
   10098             : 
   10099           1 :             expVal += OString( "0" );
   10100           1 :             aStrBuf.append( input, radix );
   10101             : 
   10102           2 :             CPPUNIT_ASSERT_MESSAGE
   10103             :             (
   10104             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
   10105             :                 aStrBuf.getStr()== expVal &&
   10106             :                     aStrBuf.getLength() == expVal.getLength()
   10107           2 :             );
   10108             : 
   10109           1 :         }
   10110             : 
   10111           1 :         void append_062()
   10112             :         {
   10113           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10114           2 :             OString                expVal( aStrBuf.getStr() );
   10115           1 :             sal_Int64              input = 4;
   10116           1 :             sal_Int16              radix = 2;
   10117             : 
   10118           1 :             expVal += OString( "100" );
   10119           1 :             aStrBuf.append( input, radix );
   10120             : 
   10121           2 :             CPPUNIT_ASSERT_MESSAGE
   10122             :             (
   10123             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
   10124             :                 aStrBuf.getStr()== expVal &&
   10125             :                     aStrBuf.getLength() == expVal.getLength()
   10126           2 :             );
   10127             : 
   10128           1 :         }
   10129             : 
   10130           1 :         void append_063()
   10131             :         {
   10132           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10133           2 :             OString                expVal( aStrBuf.getStr() );
   10134           1 :             sal_Int64              input = 8;
   10135           1 :             sal_Int16              radix = 2;
   10136             : 
   10137           1 :             expVal += OString( "1000" );
   10138           1 :             aStrBuf.append( input, radix );
   10139             : 
   10140           2 :             CPPUNIT_ASSERT_MESSAGE
   10141             :             (
   10142             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
   10143             :                 aStrBuf.getStr()== expVal &&
   10144             :                     aStrBuf.getLength() == expVal.getLength()
   10145           2 :             );
   10146             : 
   10147           1 :         }
   10148             : 
   10149           1 :         void append_064()
   10150             :         {
   10151           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10152           2 :             OString                expVal( aStrBuf.getStr() );
   10153           1 :             sal_Int64              input = 15;
   10154           1 :             sal_Int16              radix = 2;
   10155             : 
   10156           1 :             expVal += OString( "1111" );
   10157           1 :             aStrBuf.append( input, radix );
   10158             : 
   10159           2 :             CPPUNIT_ASSERT_MESSAGE
   10160             :             (
   10161             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
   10162             :                 aStrBuf.getStr()== expVal &&
   10163             :                     aStrBuf.getLength() == expVal.getLength()
   10164           2 :             );
   10165             : 
   10166           1 :         }
   10167             : 
   10168           1 :         void append_065()
   10169             :         {
   10170           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10171           2 :             OString                expVal( aStrBuf.getStr() );
   10172           1 :             sal_Int64              input = 0;
   10173           1 :             sal_Int16              radix = 8;
   10174             : 
   10175           1 :             expVal += OString( "0" );
   10176           1 :             aStrBuf.append( input, radix );
   10177             : 
   10178           2 :             CPPUNIT_ASSERT_MESSAGE
   10179             :             (
   10180             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
   10181             :                 aStrBuf.getStr()== expVal &&
   10182             :                     aStrBuf.getLength() == expVal.getLength()
   10183           2 :             );
   10184             : 
   10185           1 :         }
   10186             : 
   10187           1 :         void append_066()
   10188             :         {
   10189           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10190           2 :             OString                expVal( aStrBuf.getStr() );
   10191           1 :             sal_Int64              input = 4;
   10192           1 :             sal_Int16              radix = 8;
   10193             : 
   10194           1 :             expVal += OString( "4" );
   10195           1 :             aStrBuf.append( input, radix );
   10196             : 
   10197           2 :             CPPUNIT_ASSERT_MESSAGE
   10198             :             (
   10199             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
   10200             :                 aStrBuf.getStr()== expVal &&
   10201             :                     aStrBuf.getLength() == expVal.getLength()
   10202           2 :             );
   10203             : 
   10204           1 :         }
   10205             : 
   10206           1 :         void append_067()
   10207             :         {
   10208           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10209           2 :             OString                expVal( aStrBuf.getStr() );
   10210           1 :             sal_Int64              input = 8;
   10211           1 :             sal_Int16              radix = 8;
   10212             : 
   10213           1 :             expVal += OString( "10" );
   10214           1 :             aStrBuf.append( input, radix );
   10215             : 
   10216           2 :             CPPUNIT_ASSERT_MESSAGE
   10217             :             (
   10218             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
   10219             :                 aStrBuf.getStr()== expVal &&
   10220             :                     aStrBuf.getLength() == expVal.getLength()
   10221           2 :             );
   10222             : 
   10223           1 :         }
   10224             : 
   10225           1 :         void append_068()
   10226             :         {
   10227           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10228           2 :             OString                expVal( aStrBuf.getStr() );
   10229           1 :             sal_Int64              input = 15;
   10230           1 :             sal_Int16              radix = 8;
   10231             : 
   10232           1 :             expVal += OString( "17" );
   10233           1 :             aStrBuf.append( input, radix );
   10234             : 
   10235           2 :             CPPUNIT_ASSERT_MESSAGE
   10236             :             (
   10237             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
   10238             :                 aStrBuf.getStr()== expVal &&
   10239             :                     aStrBuf.getLength() == expVal.getLength()
   10240           2 :             );
   10241             : 
   10242           1 :         }
   10243             : 
   10244           1 :         void append_069()
   10245             :         {
   10246           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10247           2 :             OString                expVal( aStrBuf.getStr() );
   10248           1 :             sal_Int64              input = 0;
   10249           1 :             sal_Int16              radix = 10;
   10250             : 
   10251           1 :             expVal += OString( "0" );
   10252           1 :             aStrBuf.append( input, radix );
   10253             : 
   10254           2 :             CPPUNIT_ASSERT_MESSAGE
   10255             :             (
   10256             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
   10257             :                 aStrBuf.getStr()== expVal &&
   10258             :                     aStrBuf.getLength() == expVal.getLength()
   10259           2 :             );
   10260             : 
   10261           1 :         }
   10262             : 
   10263           1 :         void append_070()
   10264             :         {
   10265           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10266           2 :             OString                expVal( aStrBuf.getStr() );
   10267           1 :             sal_Int64              input = 4;
   10268           1 :             sal_Int16              radix = 10;
   10269             : 
   10270           1 :             expVal += OString( "4" );
   10271           1 :             aStrBuf.append( input, radix );
   10272             : 
   10273           2 :             CPPUNIT_ASSERT_MESSAGE
   10274             :             (
   10275             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
   10276             :                 aStrBuf.getStr()== expVal &&
   10277             :                     aStrBuf.getLength() == expVal.getLength()
   10278           2 :             );
   10279             : 
   10280           1 :         }
   10281             : 
   10282           1 :         void append_071()
   10283             :         {
   10284           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10285           2 :             OString                expVal( aStrBuf.getStr() );
   10286           1 :             sal_Int64              input = 8;
   10287           1 :             sal_Int16              radix = 10;
   10288             : 
   10289           1 :             expVal += OString( "8" );
   10290           1 :             aStrBuf.append( input, radix );
   10291             : 
   10292           2 :             CPPUNIT_ASSERT_MESSAGE
   10293             :             (
   10294             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
   10295             :                 aStrBuf.getStr()== expVal &&
   10296             :                     aStrBuf.getLength() == expVal.getLength()
   10297           2 :             );
   10298             : 
   10299           1 :         }
   10300             : 
   10301           1 :         void append_072()
   10302             :         {
   10303           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10304           2 :             OString                expVal( aStrBuf.getStr() );
   10305           1 :             sal_Int64              input = 15;
   10306           1 :             sal_Int16              radix = 10;
   10307             : 
   10308           1 :             expVal += OString( "15" );
   10309           1 :             aStrBuf.append( input, radix );
   10310             : 
   10311           2 :             CPPUNIT_ASSERT_MESSAGE
   10312             :             (
   10313             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
   10314             :                 aStrBuf.getStr()== expVal &&
   10315             :                     aStrBuf.getLength() == expVal.getLength()
   10316           2 :             );
   10317             : 
   10318           1 :         }
   10319             : 
   10320           1 :         void append_073()
   10321             :         {
   10322           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10323           2 :             OString                expVal( aStrBuf.getStr() );
   10324           1 :             sal_Int64              input = 0;
   10325           1 :             sal_Int16              radix = 16;
   10326             : 
   10327           1 :             expVal += OString( "0" );
   10328           1 :             aStrBuf.append( input, radix );
   10329             : 
   10330           2 :             CPPUNIT_ASSERT_MESSAGE
   10331             :             (
   10332             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
   10333             :                 aStrBuf.getStr()== expVal &&
   10334             :                     aStrBuf.getLength() == expVal.getLength()
   10335           2 :             );
   10336             : 
   10337           1 :         }
   10338             : 
   10339           1 :         void append_074()
   10340             :         {
   10341           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10342           2 :             OString                expVal( aStrBuf.getStr() );
   10343           1 :             sal_Int64              input = 4;
   10344           1 :             sal_Int16              radix = 16;
   10345             : 
   10346           1 :             expVal += OString( "4" );
   10347           1 :             aStrBuf.append( input, radix );
   10348             : 
   10349           2 :             CPPUNIT_ASSERT_MESSAGE
   10350             :             (
   10351             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
   10352             :                 aStrBuf.getStr()== expVal &&
   10353             :                     aStrBuf.getLength() == expVal.getLength()
   10354           2 :             );
   10355             : 
   10356           1 :         }
   10357             : 
   10358           1 :         void append_075()
   10359             :         {
   10360           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10361           2 :             OString                expVal( aStrBuf.getStr() );
   10362           1 :             sal_Int64              input = 8;
   10363           1 :             sal_Int16              radix = 16;
   10364             : 
   10365           1 :             expVal += OString( "8" );
   10366           1 :             aStrBuf.append( input, radix );
   10367             : 
   10368           2 :             CPPUNIT_ASSERT_MESSAGE
   10369             :             (
   10370             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
   10371             :                 aStrBuf.getStr()== expVal &&
   10372             :                     aStrBuf.getLength() == expVal.getLength()
   10373           2 :             );
   10374             : 
   10375           1 :         }
   10376             : 
   10377           1 :         void append_076()
   10378             :         {
   10379           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10380           2 :             OString                expVal( aStrBuf.getStr() );
   10381           1 :             sal_Int64              input = 15;
   10382           1 :             sal_Int16              radix = 16;
   10383             : 
   10384           1 :             expVal += OString( "f" );
   10385           1 :             aStrBuf.append( input, radix );
   10386             : 
   10387           2 :             CPPUNIT_ASSERT_MESSAGE
   10388             :             (
   10389             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
   10390             :                 aStrBuf.getStr()== expVal &&
   10391             :                     aStrBuf.getLength() == expVal.getLength()
   10392           2 :             );
   10393             : 
   10394           1 :         }
   10395             : 
   10396           1 :         void append_077()
   10397             :         {
   10398           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10399           2 :             OString                expVal( aStrBuf.getStr() );
   10400           1 :             sal_Int64              input = 0;
   10401           1 :             sal_Int16              radix = 36;
   10402             : 
   10403           1 :             expVal += OString( "0" );
   10404           1 :             aStrBuf.append( input, radix );
   10405             : 
   10406           2 :             CPPUNIT_ASSERT_MESSAGE
   10407             :             (
   10408             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
   10409             :                 aStrBuf.getStr()== expVal &&
   10410             :                     aStrBuf.getLength() == expVal.getLength()
   10411           2 :             );
   10412             : 
   10413           1 :         }
   10414             : 
   10415           1 :         void append_078()
   10416             :         {
   10417           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10418           2 :             OString                expVal( aStrBuf.getStr() );
   10419           1 :             sal_Int64              input = 4;
   10420           1 :             sal_Int16              radix = 36;
   10421             : 
   10422           1 :             expVal += OString( "4" );
   10423           1 :             aStrBuf.append( input, radix );
   10424             : 
   10425           2 :             CPPUNIT_ASSERT_MESSAGE
   10426             :             (
   10427             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
   10428             :                 aStrBuf.getStr()== expVal &&
   10429             :                     aStrBuf.getLength() == expVal.getLength()
   10430           2 :             );
   10431             : 
   10432           1 :         }
   10433             : 
   10434           1 :         void append_079()
   10435             :         {
   10436           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10437           2 :             OString                expVal( aStrBuf.getStr() );
   10438           1 :             sal_Int64              input = 8;
   10439           1 :             sal_Int16              radix = 36;
   10440             : 
   10441           1 :             expVal += OString( "8" );
   10442           1 :             aStrBuf.append( input, radix );
   10443             : 
   10444           2 :             CPPUNIT_ASSERT_MESSAGE
   10445             :             (
   10446             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
   10447             :                 aStrBuf.getStr()== expVal &&
   10448             :                     aStrBuf.getLength() == expVal.getLength()
   10449           2 :             );
   10450             : 
   10451           1 :         }
   10452             : 
   10453           1 :         void append_080()
   10454             :         {
   10455           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10456           2 :             OString                expVal( aStrBuf.getStr() );
   10457           1 :             sal_Int64              input = 35;
   10458           1 :             sal_Int16              radix = 36;
   10459             : 
   10460           1 :             expVal += OString( "z" );
   10461           1 :             aStrBuf.append( input, radix );
   10462             : 
   10463           2 :             CPPUNIT_ASSERT_MESSAGE
   10464             :             (
   10465             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
   10466             :                 aStrBuf.getStr()== expVal &&
   10467             :                     aStrBuf.getLength() == expVal.getLength()
   10468           2 :             );
   10469             : 
   10470           1 :         }
   10471             : 
   10472           1 :         void append_081()
   10473             :         {
   10474           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10475           2 :             OString                expVal( aStrBuf.getStr() );
   10476           1 :             sal_Int64              input = 0;
   10477           1 :             sal_Int16              radix = 2;
   10478             : 
   10479           1 :             expVal += OString( "0" );
   10480           1 :             aStrBuf.append( input, radix );
   10481             : 
   10482           2 :             CPPUNIT_ASSERT_MESSAGE
   10483             :             (
   10484             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
   10485             :                 aStrBuf.getStr()== expVal &&
   10486             :                     aStrBuf.getLength() == expVal.getLength()
   10487           2 :             );
   10488             : 
   10489           1 :         }
   10490             : 
   10491           1 :         void append_082()
   10492             :         {
   10493           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10494           2 :             OString                expVal( aStrBuf.getStr() );
   10495           1 :             sal_Int64              input = 4;
   10496           1 :             sal_Int16              radix = 2;
   10497             : 
   10498           1 :             expVal += OString( "100" );
   10499           1 :             aStrBuf.append( input, radix );
   10500             : 
   10501           2 :             CPPUNIT_ASSERT_MESSAGE
   10502             :             (
   10503             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
   10504             :                 aStrBuf.getStr()== expVal &&
   10505             :                     aStrBuf.getLength() == expVal.getLength()
   10506           2 :             );
   10507             : 
   10508           1 :         }
   10509             : 
   10510           1 :         void append_083()
   10511             :         {
   10512           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10513           2 :             OString                expVal( aStrBuf.getStr() );
   10514           1 :             sal_Int64              input = 8;
   10515           1 :             sal_Int16              radix = 2;
   10516             : 
   10517           1 :             expVal += OString( "1000" );
   10518           1 :             aStrBuf.append( input, radix );
   10519             : 
   10520           2 :             CPPUNIT_ASSERT_MESSAGE
   10521             :             (
   10522             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
   10523             :                 aStrBuf.getStr()== expVal &&
   10524             :                     aStrBuf.getLength() == expVal.getLength()
   10525           2 :             );
   10526             : 
   10527           1 :         }
   10528             : 
   10529           1 :         void append_084()
   10530             :         {
   10531           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10532           2 :             OString                expVal( aStrBuf.getStr() );
   10533           1 :             sal_Int64              input = 15;
   10534           1 :             sal_Int16              radix = 2;
   10535             : 
   10536           1 :             expVal += OString( "1111" );
   10537           1 :             aStrBuf.append( input, radix );
   10538             : 
   10539           2 :             CPPUNIT_ASSERT_MESSAGE
   10540             :             (
   10541             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
   10542             :                 aStrBuf.getStr()== expVal &&
   10543             :                     aStrBuf.getLength() == expVal.getLength()
   10544           2 :             );
   10545             : 
   10546           1 :         }
   10547             : 
   10548           1 :         void append_085()
   10549             :         {
   10550           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10551           2 :             OString                expVal( aStrBuf.getStr() );
   10552           1 :             sal_Int64              input = 0;
   10553           1 :             sal_Int16              radix = 8;
   10554             : 
   10555           1 :             expVal += OString( "0" );
   10556           1 :             aStrBuf.append( input, radix );
   10557             : 
   10558           2 :             CPPUNIT_ASSERT_MESSAGE
   10559             :             (
   10560             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
   10561             :                 aStrBuf.getStr()== expVal &&
   10562             :                     aStrBuf.getLength() == expVal.getLength()
   10563           2 :             );
   10564             : 
   10565           1 :         }
   10566             : 
   10567           1 :         void append_086()
   10568             :         {
   10569           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10570           2 :             OString                expVal( aStrBuf.getStr() );
   10571           1 :             sal_Int64              input = 4;
   10572           1 :             sal_Int16              radix = 8;
   10573             : 
   10574           1 :             expVal += OString( "4" );
   10575           1 :             aStrBuf.append( input, radix );
   10576             : 
   10577           2 :             CPPUNIT_ASSERT_MESSAGE
   10578             :             (
   10579             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
   10580             :                 aStrBuf.getStr()== expVal &&
   10581             :                     aStrBuf.getLength() == expVal.getLength()
   10582           2 :             );
   10583             : 
   10584           1 :         }
   10585             : 
   10586           1 :         void append_087()
   10587             :         {
   10588           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10589           2 :             OString                expVal( aStrBuf.getStr() );
   10590           1 :             sal_Int64              input = 8;
   10591           1 :             sal_Int16              radix = 8;
   10592             : 
   10593           1 :             expVal += OString( "10" );
   10594           1 :             aStrBuf.append( input, radix );
   10595             : 
   10596           2 :             CPPUNIT_ASSERT_MESSAGE
   10597             :             (
   10598             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
   10599             :                 aStrBuf.getStr()== expVal &&
   10600             :                     aStrBuf.getLength() == expVal.getLength()
   10601           2 :             );
   10602             : 
   10603           1 :         }
   10604             : 
   10605           1 :         void append_088()
   10606             :         {
   10607           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10608           2 :             OString                expVal( aStrBuf.getStr() );
   10609           1 :             sal_Int64              input = 15;
   10610           1 :             sal_Int16              radix = 8;
   10611             : 
   10612           1 :             expVal += OString( "17" );
   10613           1 :             aStrBuf.append( input, radix );
   10614             : 
   10615           2 :             CPPUNIT_ASSERT_MESSAGE
   10616             :             (
   10617             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
   10618             :                 aStrBuf.getStr()== expVal &&
   10619             :                     aStrBuf.getLength() == expVal.getLength()
   10620           2 :             );
   10621             : 
   10622           1 :         }
   10623             : 
   10624           1 :         void append_089()
   10625             :         {
   10626           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10627           2 :             OString                expVal( aStrBuf.getStr() );
   10628           1 :             sal_Int64              input = 0;
   10629           1 :             sal_Int16              radix = 10;
   10630             : 
   10631           1 :             expVal += OString( "0" );
   10632           1 :             aStrBuf.append( input, radix );
   10633             : 
   10634           2 :             CPPUNIT_ASSERT_MESSAGE
   10635             :             (
   10636             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
   10637             :                 aStrBuf.getStr()== expVal &&
   10638             :                     aStrBuf.getLength() == expVal.getLength()
   10639           2 :             );
   10640             : 
   10641           1 :         }
   10642             : 
   10643           1 :         void append_090()
   10644             :         {
   10645           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10646           2 :             OString                expVal( aStrBuf.getStr() );
   10647           1 :             sal_Int64              input = 4;
   10648           1 :             sal_Int16              radix = 10;
   10649             : 
   10650           1 :             expVal += OString( "4" );
   10651           1 :             aStrBuf.append( input, radix );
   10652             : 
   10653           2 :             CPPUNIT_ASSERT_MESSAGE
   10654             :             (
   10655             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
   10656             :                 aStrBuf.getStr()== expVal &&
   10657             :                     aStrBuf.getLength() == expVal.getLength()
   10658           2 :             );
   10659             : 
   10660           1 :         }
   10661             : 
   10662           1 :         void append_091()
   10663             :         {
   10664           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10665           2 :             OString                expVal( aStrBuf.getStr() );
   10666           1 :             sal_Int64              input = 8;
   10667           1 :             sal_Int16              radix = 10;
   10668             : 
   10669           1 :             expVal += OString( "8" );
   10670           1 :             aStrBuf.append( input, radix );
   10671             : 
   10672           2 :             CPPUNIT_ASSERT_MESSAGE
   10673             :             (
   10674             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
   10675             :                 aStrBuf.getStr()== expVal &&
   10676             :                     aStrBuf.getLength() == expVal.getLength()
   10677           2 :             );
   10678             : 
   10679           1 :         }
   10680             : 
   10681           1 :         void append_092()
   10682             :         {
   10683           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10684           2 :             OString                expVal( aStrBuf.getStr() );
   10685           1 :             sal_Int64              input = 15;
   10686           1 :             sal_Int16              radix = 10;
   10687             : 
   10688           1 :             expVal += OString( "15" );
   10689           1 :             aStrBuf.append( input, radix );
   10690             : 
   10691           2 :             CPPUNIT_ASSERT_MESSAGE
   10692             :             (
   10693             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
   10694             :                 aStrBuf.getStr()== expVal &&
   10695             :                     aStrBuf.getLength() == expVal.getLength()
   10696           2 :             );
   10697             : 
   10698           1 :         }
   10699             : 
   10700           1 :         void append_093()
   10701             :         {
   10702           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10703           2 :             OString                expVal( aStrBuf.getStr() );
   10704           1 :             sal_Int64              input = 0;
   10705           1 :             sal_Int16              radix = 16;
   10706             : 
   10707           1 :             expVal += OString( "0" );
   10708           1 :             aStrBuf.append( input, radix );
   10709             : 
   10710           2 :             CPPUNIT_ASSERT_MESSAGE
   10711             :             (
   10712             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
   10713             :                 aStrBuf.getStr()== expVal &&
   10714             :                     aStrBuf.getLength() == expVal.getLength()
   10715           2 :             );
   10716             : 
   10717           1 :         }
   10718             : 
   10719           1 :         void append_094()
   10720             :         {
   10721           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10722           2 :             OString                expVal( aStrBuf.getStr() );
   10723           1 :             sal_Int64              input = 4;
   10724           1 :             sal_Int16              radix = 16;
   10725             : 
   10726           1 :             expVal += OString( "4" );
   10727           1 :             aStrBuf.append( input, radix );
   10728             : 
   10729           2 :             CPPUNIT_ASSERT_MESSAGE
   10730             :             (
   10731             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
   10732             :                 aStrBuf.getStr()== expVal &&
   10733             :                     aStrBuf.getLength() == expVal.getLength()
   10734           2 :             );
   10735             : 
   10736           1 :         }
   10737             : 
   10738           1 :         void append_095()
   10739             :         {
   10740           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10741           2 :             OString                expVal( aStrBuf.getStr() );
   10742           1 :             sal_Int64              input = 8;
   10743           1 :             sal_Int16              radix = 16;
   10744             : 
   10745           1 :             expVal += OString( "8" );
   10746           1 :             aStrBuf.append( input, radix );
   10747             : 
   10748           2 :             CPPUNIT_ASSERT_MESSAGE
   10749             :             (
   10750             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
   10751             :                 aStrBuf.getStr()== expVal &&
   10752             :                     aStrBuf.getLength() == expVal.getLength()
   10753           2 :             );
   10754             : 
   10755           1 :         }
   10756             : 
   10757           1 :         void append_096()
   10758             :         {
   10759           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10760           2 :             OString                expVal( aStrBuf.getStr() );
   10761           1 :             sal_Int64              input = 15;
   10762           1 :             sal_Int16              radix = 16;
   10763             : 
   10764           1 :             expVal += OString( "f" );
   10765           1 :             aStrBuf.append( input, radix );
   10766             : 
   10767           2 :             CPPUNIT_ASSERT_MESSAGE
   10768             :             (
   10769             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
   10770             :                 aStrBuf.getStr()== expVal &&
   10771             :                     aStrBuf.getLength() == expVal.getLength()
   10772           2 :             );
   10773             : 
   10774           1 :         }
   10775             : 
   10776           1 :         void append_097()
   10777             :         {
   10778           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10779           2 :             OString                expVal( aStrBuf.getStr() );
   10780           1 :             sal_Int64              input = 0;
   10781           1 :             sal_Int16              radix = 36;
   10782             : 
   10783           1 :             expVal += OString( "0" );
   10784           1 :             aStrBuf.append( input, radix );
   10785             : 
   10786           2 :             CPPUNIT_ASSERT_MESSAGE
   10787             :             (
   10788             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
   10789             :                 aStrBuf.getStr()== expVal &&
   10790             :                     aStrBuf.getLength() == expVal.getLength()
   10791           2 :             );
   10792             : 
   10793           1 :         }
   10794             : 
   10795           1 :         void append_098()
   10796             :         {
   10797           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10798           2 :             OString                expVal( aStrBuf.getStr() );
   10799           1 :             sal_Int64              input = 4;
   10800           1 :             sal_Int16              radix = 36;
   10801             : 
   10802           1 :             expVal += OString( "4" );
   10803           1 :             aStrBuf.append( input, radix );
   10804             : 
   10805           2 :             CPPUNIT_ASSERT_MESSAGE
   10806             :             (
   10807             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
   10808             :                 aStrBuf.getStr()== expVal &&
   10809             :                     aStrBuf.getLength() == expVal.getLength()
   10810           2 :             );
   10811             : 
   10812           1 :         }
   10813             : 
   10814           1 :         void append_099()
   10815             :         {
   10816           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10817           2 :             OString                expVal( aStrBuf.getStr() );
   10818           1 :             sal_Int64              input = 8;
   10819           1 :             sal_Int16              radix = 36;
   10820             : 
   10821           1 :             expVal += OString( "8" );
   10822           1 :             aStrBuf.append( input, radix );
   10823             : 
   10824           2 :             CPPUNIT_ASSERT_MESSAGE
   10825             :             (
   10826             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
   10827             :                 aStrBuf.getStr()== expVal &&
   10828             :                     aStrBuf.getLength() == expVal.getLength()
   10829           2 :             );
   10830             : 
   10831           1 :         }
   10832             : 
   10833           1 :         void append_100()
   10834             :         {
   10835           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10836           2 :             OString                expVal( aStrBuf.getStr() );
   10837           1 :             sal_Int64              input = 35;
   10838           1 :             sal_Int16              radix = 36;
   10839             : 
   10840           1 :             expVal += OString( "z" );
   10841           1 :             aStrBuf.append( input, radix );
   10842             : 
   10843           2 :             CPPUNIT_ASSERT_MESSAGE
   10844             :             (
   10845             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
   10846             :                 aStrBuf.getStr()== expVal &&
   10847             :                     aStrBuf.getLength() == expVal.getLength()
   10848           2 :             );
   10849             : 
   10850           1 :         }
   10851             : 
   10852           2 :         CPPUNIT_TEST_SUITE( append_007_Int64 );
   10853           1 :         CPPUNIT_TEST( append_001 ); CPPUNIT_TEST( append_002 );
   10854           1 :         CPPUNIT_TEST( append_003 ); CPPUNIT_TEST( append_004 );
   10855           1 :         CPPUNIT_TEST( append_005 ); CPPUNIT_TEST( append_006 );
   10856           1 :         CPPUNIT_TEST( append_007 ); CPPUNIT_TEST( append_008 );
   10857           1 :         CPPUNIT_TEST( append_009 ); CPPUNIT_TEST( append_010 );
   10858           1 :         CPPUNIT_TEST( append_011 ); CPPUNIT_TEST( append_012 );
   10859           1 :         CPPUNIT_TEST( append_013 ); CPPUNIT_TEST( append_014 );
   10860           1 :         CPPUNIT_TEST( append_015 ); CPPUNIT_TEST( append_016 );
   10861           1 :         CPPUNIT_TEST( append_017 ); CPPUNIT_TEST( append_018 );
   10862           1 :         CPPUNIT_TEST( append_019 ); CPPUNIT_TEST( append_020 );
   10863           1 :         CPPUNIT_TEST( append_021 ); CPPUNIT_TEST( append_022 );
   10864           1 :         CPPUNIT_TEST( append_023 ); CPPUNIT_TEST( append_024 );
   10865           1 :         CPPUNIT_TEST( append_025 ); CPPUNIT_TEST( append_026 );
   10866           1 :         CPPUNIT_TEST( append_027 ); CPPUNIT_TEST( append_028 );
   10867           1 :         CPPUNIT_TEST( append_029 ); CPPUNIT_TEST( append_030 );
   10868           1 :         CPPUNIT_TEST( append_031 ); CPPUNIT_TEST( append_032 );
   10869           1 :         CPPUNIT_TEST( append_033 ); CPPUNIT_TEST( append_034 );
   10870           1 :         CPPUNIT_TEST( append_035 ); CPPUNIT_TEST( append_036 );
   10871           1 :         CPPUNIT_TEST( append_037 ); CPPUNIT_TEST( append_038 );
   10872           1 :         CPPUNIT_TEST( append_039 ); CPPUNIT_TEST( append_040 );
   10873           1 :         CPPUNIT_TEST( append_041 ); CPPUNIT_TEST( append_042 );
   10874           1 :         CPPUNIT_TEST( append_043 ); CPPUNIT_TEST( append_044 );
   10875           1 :         CPPUNIT_TEST( append_045 ); CPPUNIT_TEST( append_046 );
   10876           1 :         CPPUNIT_TEST( append_047 ); CPPUNIT_TEST( append_048 );
   10877           1 :         CPPUNIT_TEST( append_049 ); CPPUNIT_TEST( append_050 );
   10878           1 :         CPPUNIT_TEST( append_051 ); CPPUNIT_TEST( append_052 );
   10879           1 :         CPPUNIT_TEST( append_053 ); CPPUNIT_TEST( append_054 );
   10880           1 :         CPPUNIT_TEST( append_055 ); CPPUNIT_TEST( append_056 );
   10881           1 :         CPPUNIT_TEST( append_057 ); CPPUNIT_TEST( append_058 );
   10882           1 :         CPPUNIT_TEST( append_059 ); CPPUNIT_TEST( append_060 );
   10883           1 :         CPPUNIT_TEST( append_061 ); CPPUNIT_TEST( append_062 );
   10884           1 :         CPPUNIT_TEST( append_063 ); CPPUNIT_TEST( append_064 );
   10885           1 :         CPPUNIT_TEST( append_065 ); CPPUNIT_TEST( append_066 );
   10886           1 :         CPPUNIT_TEST( append_067 ); CPPUNIT_TEST( append_068 );
   10887           1 :         CPPUNIT_TEST( append_069 ); CPPUNIT_TEST( append_070 );
   10888           1 :         CPPUNIT_TEST( append_071 ); CPPUNIT_TEST( append_072 );
   10889           1 :         CPPUNIT_TEST( append_073 ); CPPUNIT_TEST( append_074 );
   10890           1 :         CPPUNIT_TEST( append_075 ); CPPUNIT_TEST( append_076 );
   10891           1 :         CPPUNIT_TEST( append_077 ); CPPUNIT_TEST( append_078 );
   10892           1 :         CPPUNIT_TEST( append_079 ); CPPUNIT_TEST( append_080 );
   10893           1 :         CPPUNIT_TEST( append_081 ); CPPUNIT_TEST( append_082 );
   10894           1 :         CPPUNIT_TEST( append_083 ); CPPUNIT_TEST( append_084 );
   10895           1 :         CPPUNIT_TEST( append_085 ); CPPUNIT_TEST( append_086 );
   10896           1 :         CPPUNIT_TEST( append_087 ); CPPUNIT_TEST( append_088 );
   10897           1 :         CPPUNIT_TEST( append_089 ); CPPUNIT_TEST( append_090 );
   10898           1 :         CPPUNIT_TEST( append_091 ); CPPUNIT_TEST( append_092 );
   10899           1 :         CPPUNIT_TEST( append_093 ); CPPUNIT_TEST( append_094 );
   10900           1 :         CPPUNIT_TEST( append_095 ); CPPUNIT_TEST( append_096 );
   10901           1 :         CPPUNIT_TEST( append_097 ); CPPUNIT_TEST( append_098 );
   10902           1 :         CPPUNIT_TEST( append_099 ); CPPUNIT_TEST( append_100 );
   10903           2 :         CPPUNIT_TEST_SUITE_END();
   10904             :     };
   10905             : 
   10906             : // testing the method append( sal_Int64 i, sal_Int16 radix=2 )
   10907             : // where i = large constants
   10908             : // testing the method append( sal_Int64 i, sal_Int16 radix=8 )
   10909             : // where i = large constants
   10910             : // testing the method append( sal_Int64 i, sal_Int16 radix=10 )
   10911             : // where i = large constants
   10912             : // testing the method append( sal_Int64 i, sal_Int16 radix=16 )
   10913             : // where i = large constants
   10914             : // testing the method append( sal_Int64 i, sal_Int16 radix=36 )
   10915             : // where i = large constants
   10916             : 
   10917         150 :     class  append_007_Int64_Bounderies : public CppUnit::TestFixture
   10918             :     {
   10919             :         OString* arrOUS[5];
   10920             : 
   10921             :     public:
   10922          50 :         void setUp() SAL_OVERRIDE
   10923             :         {
   10924          50 :             arrOUS[0] = new OString( kTestStr7 );
   10925          50 :             arrOUS[1] = new OString(  );
   10926          50 :             arrOUS[2] = new OString( kTestStr25 );
   10927          50 :             arrOUS[3] = new OString( "" );
   10928          50 :             arrOUS[4] = new OString( kTestStr28 );
   10929             : 
   10930          50 :         }
   10931             : 
   10932          50 :         void tearDown() SAL_OVERRIDE
   10933             :         {
   10934          50 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
   10935          50 :             delete arrOUS[3]; delete arrOUS[4];
   10936          50 :         }
   10937             : 
   10938           1 :         void append_001()
   10939             :         {
   10940           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   10941           2 :             OString                expVal( aStrBuf.getStr() );
   10942           1 :             sal_Int64              input = kSInt8Max;
   10943           1 :             sal_Int16              radix = 2;
   10944             : 
   10945           1 :             expVal += OString( "1111111" );
   10946           1 :             aStrBuf.append( input, radix );
   10947             : 
   10948           2 :             CPPUNIT_ASSERT_MESSAGE
   10949             :             (
   10950             :                 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
   10951             :                 aStrBuf.getStr()== expVal &&
   10952             :                     aStrBuf.getLength() == expVal.getLength()
   10953           2 :             );
   10954             : 
   10955           1 :         }
   10956             : 
   10957           1 :         void append_002()
   10958             :         {
   10959           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   10960           2 :             OString                expVal( aStrBuf.getStr() );
   10961           1 :             sal_Int64              input = kSInt64Max;
   10962           1 :             sal_Int16              radix = 2;
   10963             : 
   10964           1 :             expVal += OString( "111111111111111111111111111111111111111111111111111111111111111" );
   10965           1 :             aStrBuf.append( input, radix );
   10966             : 
   10967           2 :             CPPUNIT_ASSERT_MESSAGE
   10968             :             (
   10969             :                 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
   10970             :                 aStrBuf.getStr()== expVal &&
   10971             :                     aStrBuf.getLength() == expVal.getLength()
   10972           2 :             );
   10973             : 
   10974           1 :         }
   10975             : 
   10976           1 :         void append_003()
   10977             :         {
   10978           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   10979           2 :             OString                expVal( aStrBuf.getStr() );
   10980           1 :             sal_Int64              input = kSInt8Max;
   10981           1 :             sal_Int16              radix = 8;
   10982             : 
   10983           1 :             expVal += OString( "177" );
   10984           1 :             aStrBuf.append( input, radix );
   10985             : 
   10986           2 :             CPPUNIT_ASSERT_MESSAGE
   10987             :             (
   10988             :                 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
   10989             :                 aStrBuf.getStr()== expVal &&
   10990             :                     aStrBuf.getLength() == expVal.getLength()
   10991           2 :             );
   10992             : 
   10993           1 :         }
   10994             : 
   10995           1 :         void append_004()
   10996             :         {
   10997           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   10998           2 :             OString                expVal( aStrBuf.getStr() );
   10999           1 :             sal_Int64             input = kSInt64Max;
   11000           1 :             sal_Int16              radix = 8;
   11001             : 
   11002           1 :             expVal += OString( "777777777777777777777" );
   11003           1 :             aStrBuf.append( input, radix );
   11004             : 
   11005           2 :             CPPUNIT_ASSERT_MESSAGE
   11006             :             (
   11007             :                 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
   11008             :                 aStrBuf.getStr()== expVal &&
   11009             :                     aStrBuf.getLength() == expVal.getLength()
   11010           2 :             );
   11011             : 
   11012           1 :         }
   11013             : 
   11014           1 :         void append_005()
   11015             :         {
   11016           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   11017           2 :             OString                expVal( aStrBuf.getStr() );
   11018           1 :             sal_Int64              input = kSInt8Max;
   11019           1 :             sal_Int16              radix = 10;
   11020             : 
   11021           1 :             expVal += OString( "127" );
   11022           1 :             aStrBuf.append( input, radix );
   11023             : 
   11024           2 :             CPPUNIT_ASSERT_MESSAGE
   11025             :             (
   11026             :                 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
   11027             :                 aStrBuf.getStr()== expVal &&
   11028             :                     aStrBuf.getLength() == expVal.getLength()
   11029           2 :             );
   11030             : 
   11031           1 :         }
   11032             : 
   11033           1 :         void append_006()
   11034             :         {
   11035           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   11036           2 :             OString                expVal( aStrBuf.getStr() );
   11037           1 :             sal_Int64              input = kSInt64Max;
   11038           1 :             sal_Int16              radix = 10;
   11039             : 
   11040           1 :             expVal += OString( "9223372036854775807" );
   11041           1 :             aStrBuf.append( input, radix );
   11042             : 
   11043           2 :             CPPUNIT_ASSERT_MESSAGE
   11044             :             (
   11045             :                 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
   11046             :                 aStrBuf.getStr()== expVal &&
   11047             :                     aStrBuf.getLength() == expVal.getLength()
   11048           2 :             );
   11049             : 
   11050           1 :         }
   11051             : 
   11052           1 :         void append_007()
   11053             :         {
   11054           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   11055           2 :             OString                expVal( aStrBuf.getStr() );
   11056           1 :             sal_Int64              input = kSInt8Max;
   11057           1 :             sal_Int16              radix = 16;
   11058             : 
   11059           1 :             expVal += OString( "7f" );
   11060           1 :             aStrBuf.append( input, radix );
   11061             : 
   11062           2 :             CPPUNIT_ASSERT_MESSAGE
   11063             :             (
   11064             :                 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
   11065             :                 aStrBuf.getStr()== expVal &&
   11066             :                     aStrBuf.getLength() == expVal.getLength()
   11067           2 :             );
   11068             : 
   11069           1 :         }
   11070             : 
   11071           1 :         void append_008()
   11072             :         {
   11073           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   11074           2 :             OString                expVal( aStrBuf.getStr() );
   11075           1 :             sal_Int64              input = kSInt64Max;
   11076           1 :             sal_Int16              radix = 16;
   11077             : 
   11078           1 :             expVal += OString( "7fffffffffffffff" );
   11079           1 :             aStrBuf.append( input, radix );
   11080             : 
   11081           2 :             CPPUNIT_ASSERT_MESSAGE
   11082             :             (
   11083             :                 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
   11084             :                 aStrBuf.getStr()== expVal &&
   11085             :                     aStrBuf.getLength() == expVal.getLength()
   11086           2 :             );
   11087             : 
   11088           1 :         }
   11089             : 
   11090           1 :         void append_009()
   11091             :         {
   11092           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   11093           2 :             OString                expVal( aStrBuf.getStr() );
   11094           1 :             sal_Int64              input = kSInt8Max;
   11095           1 :             sal_Int16              radix = 36;
   11096             : 
   11097           1 :             expVal += OString( "3j" );
   11098           1 :             aStrBuf.append( input, radix );
   11099             : 
   11100           2 :             CPPUNIT_ASSERT_MESSAGE
   11101             :             (
   11102             :                 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
   11103             :                 aStrBuf.getStr()== expVal &&
   11104             :                     aStrBuf.getLength() == expVal.getLength()
   11105           2 :             );
   11106             : 
   11107           1 :         }
   11108             : 
   11109           1 :         void append_010()
   11110             :         {
   11111           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   11112           2 :             OString                expVal( aStrBuf.getStr() );
   11113           1 :             sal_Int64              input = kSInt64Max;
   11114           1 :             sal_Int16              radix = 36;
   11115             : 
   11116           1 :             expVal += OString( "1y2p0ij32e8e7" );
   11117           1 :             aStrBuf.append( input, radix );
   11118             : 
   11119           2 :             CPPUNIT_ASSERT_MESSAGE
   11120             :             (
   11121             :                 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
   11122             :                 aStrBuf.getStr()== expVal &&
   11123             :                     aStrBuf.getLength() == expVal.getLength()
   11124           2 :             );
   11125             : 
   11126           1 :         }
   11127             : 
   11128           1 :         void append_011()
   11129             :         {
   11130           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   11131           2 :             OString                expVal( aStrBuf.getStr() );
   11132           1 :             sal_Int64              input = kSInt8Max;
   11133           1 :             sal_Int16              radix = 2;
   11134             : 
   11135           1 :             expVal += OString( "1111111" );
   11136           1 :             aStrBuf.append( input, radix );
   11137             : 
   11138           2 :             CPPUNIT_ASSERT_MESSAGE
   11139             :             (
   11140             :                 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
   11141             :                 aStrBuf.getStr()== expVal &&
   11142             :                     aStrBuf.getLength() == expVal.getLength()
   11143           2 :             );
   11144             : 
   11145           1 :         }
   11146             : 
   11147           1 :         void append_012()
   11148             :         {
   11149           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   11150           2 :             OString                expVal( aStrBuf.getStr() );
   11151           1 :             sal_Int64              input = kSInt64Max;
   11152           1 :             sal_Int16              radix = 2;
   11153             : 
   11154           1 :             expVal += OString( "111111111111111111111111111111111111111111111111111111111111111" );
   11155           1 :             aStrBuf.append( input, radix );
   11156             : 
   11157           2 :             CPPUNIT_ASSERT_MESSAGE
   11158             :             (
   11159             :                 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
   11160             :                 aStrBuf.getStr()== expVal &&
   11161             :                     aStrBuf.getLength() == expVal.getLength()
   11162           2 :             );
   11163             : 
   11164           1 :         }
   11165             : 
   11166           1 :         void append_013()
   11167             :         {
   11168           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   11169           2 :             OString                expVal( aStrBuf.getStr() );
   11170           1 :             sal_Int64              input = kSInt8Max;
   11171           1 :             sal_Int16              radix = 8;
   11172             : 
   11173           1 :             expVal += OString( "177" );
   11174           1 :             aStrBuf.append( input, radix );
   11175             : 
   11176           2 :             CPPUNIT_ASSERT_MESSAGE
   11177             :             (
   11178             :                 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
   11179             :                 aStrBuf.getStr()== expVal &&
   11180             :                     aStrBuf.getLength() == expVal.getLength()
   11181           2 :             );
   11182             : 
   11183           1 :         }
   11184             : 
   11185           1 :         void append_014()
   11186             :         {
   11187           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   11188           2 :             OString                expVal( aStrBuf.getStr() );
   11189           1 :             sal_Int64              input = kSInt64Max;
   11190           1 :             sal_Int16              radix = 8;
   11191             : 
   11192           1 :             expVal += OString( "777777777777777777777" );
   11193           1 :             aStrBuf.append( input, radix );
   11194             : 
   11195           2 :             CPPUNIT_ASSERT_MESSAGE
   11196             :             (
   11197             :                 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
   11198             :                 aStrBuf.getStr()== expVal &&
   11199             :                     aStrBuf.getLength() == expVal.getLength()
   11200           2 :             );
   11201             : 
   11202           1 :         }
   11203             : 
   11204           1 :         void append_015()
   11205             :         {
   11206           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   11207           2 :             OString                expVal( aStrBuf.getStr() );
   11208           1 :             sal_Int64              input = kSInt8Max;
   11209           1 :             sal_Int16              radix = 10;
   11210             : 
   11211           1 :             expVal += OString( "127" );
   11212           1 :             aStrBuf.append( input, radix );
   11213             : 
   11214           2 :             CPPUNIT_ASSERT_MESSAGE
   11215             :             (
   11216             :                 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
   11217             :                 aStrBuf.getStr()== expVal &&
   11218             :                     aStrBuf.getLength() == expVal.getLength()
   11219           2 :             );
   11220             : 
   11221           1 :         }
   11222             : 
   11223           1 :         void append_016()
   11224             :         {
   11225           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   11226           2 :             OString                expVal( aStrBuf.getStr() );
   11227           1 :             sal_Int64              input = kSInt64Max;
   11228           1 :             sal_Int16              radix = 10;
   11229             : 
   11230           1 :             expVal += OString( "9223372036854775807" );
   11231           1 :             aStrBuf.append( input, radix );
   11232             : 
   11233           2 :             CPPUNIT_ASSERT_MESSAGE
   11234             :             (
   11235             :                 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
   11236             :                 aStrBuf.getStr()== expVal &&
   11237             :                     aStrBuf.getLength() == expVal.getLength()
   11238           2 :             );
   11239             : 
   11240           1 :         }
   11241             : 
   11242           1 :         void append_017()
   11243             :         {
   11244           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   11245           2 :             OString                expVal( aStrBuf.getStr() );
   11246           1 :             sal_Int64              input = kSInt8Max;
   11247           1 :             sal_Int16              radix = 16;
   11248             : 
   11249           1 :             expVal += OString( "7f" );
   11250           1 :             aStrBuf.append( input, radix );
   11251             : 
   11252           2 :             CPPUNIT_ASSERT_MESSAGE
   11253             :             (
   11254             :                 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
   11255             :                 aStrBuf.getStr()== expVal &&
   11256             :                     aStrBuf.getLength() == expVal.getLength()
   11257           2 :             );
   11258             : 
   11259           1 :         }
   11260             : 
   11261           1 :         void append_018()
   11262             :         {
   11263           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   11264           2 :             OString                expVal( aStrBuf.getStr() );
   11265           1 :             sal_Int64              input = kSInt64Max;
   11266           1 :             sal_Int16              radix = 16;
   11267             : 
   11268           1 :             expVal += OString( "7fffffffffffffff" );
   11269           1 :             aStrBuf.append( input, radix );
   11270             : 
   11271           2 :             CPPUNIT_ASSERT_MESSAGE
   11272             :             (
   11273             :                 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
   11274             :                 aStrBuf.getStr()== expVal &&
   11275             :                     aStrBuf.getLength() == expVal.getLength()
   11276           2 :             );
   11277             : 
   11278           1 :         }
   11279             : 
   11280           1 :         void append_019()
   11281             :         {
   11282           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   11283           2 :             OString                expVal( aStrBuf.getStr() );
   11284           1 :             sal_Int64              input = kSInt8Max;
   11285           1 :             sal_Int16              radix = 36;
   11286             : 
   11287           1 :             expVal += OString( "3j" );
   11288           1 :             aStrBuf.append( input, radix );
   11289             : 
   11290           2 :             CPPUNIT_ASSERT_MESSAGE
   11291             :             (
   11292             :                 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
   11293             :                 aStrBuf.getStr()== expVal &&
   11294             :                     aStrBuf.getLength() == expVal.getLength()
   11295           2 :             );
   11296             : 
   11297           1 :         }
   11298             : 
   11299           1 :         void append_020()
   11300             :         {
   11301           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   11302           2 :             OString                expVal( aStrBuf.getStr() );
   11303           1 :             sal_Int64              input = kSInt64Max;
   11304           1 :             sal_Int16              radix = 36;
   11305             : 
   11306           1 :             expVal += OString( "1y2p0ij32e8e7" );
   11307           1 :             aStrBuf.append( input, radix );
   11308             : 
   11309           2 :             CPPUNIT_ASSERT_MESSAGE
   11310             :             (
   11311             :                 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
   11312             :                 aStrBuf.getStr()== expVal &&
   11313             :                     aStrBuf.getLength() == expVal.getLength()
   11314           2 :             );
   11315             : 
   11316           1 :         }
   11317             : 
   11318           1 :         void append_021()
   11319             :         {
   11320           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   11321           2 :             OString                expVal( aStrBuf.getStr() );
   11322           1 :             sal_Int64              input = kSInt8Max;
   11323           1 :             sal_Int16              radix = 2;
   11324             : 
   11325           1 :             expVal += OString( "1111111" );
   11326           1 :             aStrBuf.append( input, radix );
   11327             : 
   11328           2 :             CPPUNIT_ASSERT_MESSAGE
   11329             :             (
   11330             :                 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
   11331             :                 aStrBuf.getStr()== expVal &&
   11332             :                     aStrBuf.getLength() == expVal.getLength()
   11333           2 :             );
   11334             : 
   11335           1 :         }
   11336             : 
   11337           1 :         void append_022()
   11338             :         {
   11339           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   11340           2 :             OString                expVal( aStrBuf.getStr() );
   11341           1 :             sal_Int64              input = kSInt64Max;
   11342           1 :             sal_Int16              radix = 2;
   11343             : 
   11344           1 :             expVal += OString( "111111111111111111111111111111111111111111111111111111111111111" );
   11345           1 :             aStrBuf.append( input, radix );
   11346             : 
   11347           2 :             CPPUNIT_ASSERT_MESSAGE
   11348             :             (
   11349             :                 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
   11350             :                 aStrBuf.getStr()== expVal &&
   11351             :                     aStrBuf.getLength() == expVal.getLength()
   11352           2 :             );
   11353             : 
   11354           1 :         }
   11355             : 
   11356           1 :         void append_023()
   11357             :         {
   11358           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   11359           2 :             OString                expVal( aStrBuf.getStr() );
   11360           1 :             sal_Int64              input = kSInt8Max;
   11361           1 :             sal_Int16              radix = 8;
   11362             : 
   11363           1 :             expVal += OString( "177" );
   11364           1 :             aStrBuf.append( input, radix );
   11365             : 
   11366           2 :             CPPUNIT_ASSERT_MESSAGE
   11367             :             (
   11368             :                 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
   11369             :                 aStrBuf.getStr()== expVal &&
   11370             :                     aStrBuf.getLength() == expVal.getLength()
   11371           2 :             );
   11372             : 
   11373           1 :         }
   11374             : 
   11375           1 :         void append_024()
   11376             :         {
   11377           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   11378           2 :             OString                expVal( aStrBuf.getStr() );
   11379           1 :             sal_Int64              input = kSInt64Max;
   11380           1 :             sal_Int16              radix = 8;
   11381             : 
   11382           1 :             expVal += OString( "777777777777777777777" );
   11383           1 :             aStrBuf.append( input, radix );
   11384             : 
   11385           2 :             CPPUNIT_ASSERT_MESSAGE
   11386             :             (
   11387             :                 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
   11388             :                 aStrBuf.getStr()== expVal &&
   11389             :                     aStrBuf.getLength() == expVal.getLength()
   11390           2 :             );
   11391             : 
   11392           1 :         }
   11393             : 
   11394           1 :         void append_025()
   11395             :         {
   11396           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   11397           2 :             OString                expVal( aStrBuf.getStr() );
   11398           1 :             sal_Int64              input = kSInt8Max;
   11399           1 :             sal_Int16              radix = 10;
   11400             : 
   11401           1 :             expVal += OString( "127" );
   11402           1 :             aStrBuf.append( input, radix );
   11403             : 
   11404           2 :             CPPUNIT_ASSERT_MESSAGE
   11405             :             (
   11406             :                 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
   11407             :                 aStrBuf.getStr()== expVal &&
   11408             :                     aStrBuf.getLength() == expVal.getLength()
   11409           2 :             );
   11410             : 
   11411           1 :         }
   11412             : 
   11413           1 :         void append_026()
   11414             :         {
   11415           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   11416           2 :             OString                expVal( aStrBuf.getStr() );
   11417           1 :             sal_Int64              input = kSInt64Max;
   11418           1 :             sal_Int16              radix = 10;
   11419             : 
   11420           1 :             expVal += OString( "9223372036854775807" );
   11421           1 :             aStrBuf.append( input, radix );
   11422             : 
   11423           2 :             CPPUNIT_ASSERT_MESSAGE
   11424             :             (
   11425             :                 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
   11426             :                 aStrBuf.getStr()== expVal &&
   11427             :                     aStrBuf.getLength() == expVal.getLength()
   11428           2 :             );
   11429             : 
   11430           1 :         }
   11431             : 
   11432           1 :         void append_027()
   11433             :         {
   11434           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   11435           2 :             OString                expVal( aStrBuf.getStr() );
   11436           1 :             sal_Int64              input = kSInt8Max;
   11437           1 :             sal_Int16              radix = 16;
   11438             : 
   11439           1 :             expVal += OString( "7f" );
   11440           1 :             aStrBuf.append( input, radix );
   11441             : 
   11442           2 :             CPPUNIT_ASSERT_MESSAGE
   11443             :             (
   11444             :                 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
   11445             :                 aStrBuf.getStr()== expVal &&
   11446             :                     aStrBuf.getLength() == expVal.getLength()
   11447           2 :             );
   11448             : 
   11449           1 :         }
   11450             : 
   11451           1 :         void append_028()
   11452             :         {
   11453           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   11454           2 :             OString                expVal( aStrBuf.getStr() );
   11455           1 :             sal_Int64              input = kSInt64Max;
   11456           1 :             sal_Int16              radix = 16;
   11457             : 
   11458           1 :             expVal += OString( "7fffffffffffffff" );
   11459           1 :             aStrBuf.append( input, radix );
   11460             : 
   11461           2 :             CPPUNIT_ASSERT_MESSAGE
   11462             :             (
   11463             :                 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
   11464             :                 aStrBuf.getStr()== expVal &&
   11465             :                     aStrBuf.getLength() == expVal.getLength()
   11466           2 :             );
   11467             : 
   11468           1 :         }
   11469             : 
   11470           1 :         void append_029()
   11471             :         {
   11472           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   11473           2 :             OString                expVal( aStrBuf.getStr() );
   11474           1 :             sal_Int64              input = kSInt8Max;
   11475           1 :             sal_Int16              radix = 36;
   11476             : 
   11477           1 :             expVal += OString( "3j" );
   11478           1 :             aStrBuf.append( input, radix );
   11479             : 
   11480           2 :             CPPUNIT_ASSERT_MESSAGE
   11481             :             (
   11482             :                 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
   11483             :                 aStrBuf.getStr()== expVal &&
   11484             :                     aStrBuf.getLength() == expVal.getLength()
   11485           2 :             );
   11486             : 
   11487           1 :         }
   11488             : 
   11489           1 :         void append_030()
   11490             :         {
   11491           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   11492           2 :             OString                expVal( aStrBuf.getStr() );
   11493           1 :             sal_Int64              input = kSInt64Max;
   11494           1 :             sal_Int16              radix = 36;
   11495             : 
   11496           1 :             expVal += OString( "1y2p0ij32e8e7" );
   11497           1 :             aStrBuf.append( input, radix );
   11498             : 
   11499           2 :             CPPUNIT_ASSERT_MESSAGE
   11500             :             (
   11501             :                 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
   11502             :                 aStrBuf.getStr()== expVal &&
   11503             :                     aStrBuf.getLength() == expVal.getLength()
   11504           2 :             );
   11505             : 
   11506           1 :         }
   11507             : 
   11508           1 :         void append_031()
   11509             :         {
   11510           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   11511           2 :             OString                expVal( aStrBuf.getStr() );
   11512           1 :             sal_Int64              input = kSInt8Max;
   11513           1 :             sal_Int16              radix = 2;
   11514             : 
   11515           1 :             expVal += OString( "1111111" );
   11516           1 :             aStrBuf.append( input, radix );
   11517             : 
   11518           2 :             CPPUNIT_ASSERT_MESSAGE
   11519             :             (
   11520             :                 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
   11521             :                 aStrBuf.getStr()== expVal &&
   11522             :                     aStrBuf.getLength() == expVal.getLength()
   11523           2 :             );
   11524             : 
   11525           1 :         }
   11526             : 
   11527           1 :         void append_032()
   11528             :         {
   11529           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   11530           2 :             OString                expVal( aStrBuf.getStr() );
   11531           1 :             sal_Int64              input = kSInt64Max;
   11532           1 :             sal_Int16              radix = 2;
   11533             : 
   11534           1 :             expVal += OString( "111111111111111111111111111111111111111111111111111111111111111" );
   11535           1 :             aStrBuf.append( input, radix );
   11536             : 
   11537           2 :             CPPUNIT_ASSERT_MESSAGE
   11538             :             (
   11539             :                 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
   11540             :                 aStrBuf.getStr()== expVal &&
   11541             :                     aStrBuf.getLength() == expVal.getLength()
   11542           2 :             );
   11543             : 
   11544           1 :         }
   11545             : 
   11546           1 :         void append_033()
   11547             :         {
   11548           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   11549           2 :             OString                expVal( aStrBuf.getStr() );
   11550           1 :             sal_Int64              input = kSInt8Max;
   11551           1 :             sal_Int16              radix = 8;
   11552             : 
   11553           1 :             expVal += OString( "177" );
   11554           1 :             aStrBuf.append( input, radix );
   11555             : 
   11556           2 :             CPPUNIT_ASSERT_MESSAGE
   11557             :             (
   11558             :                 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
   11559             :                 aStrBuf.getStr()== expVal &&
   11560             :                     aStrBuf.getLength() == expVal.getLength()
   11561           2 :             );
   11562             : 
   11563           1 :         }
   11564             : 
   11565           1 :         void append_034()
   11566             :         {
   11567           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   11568           2 :             OString                expVal( aStrBuf.getStr() );
   11569           1 :             sal_Int64              input = kSInt64Max;
   11570           1 :             sal_Int16              radix = 8;
   11571             : 
   11572           1 :             expVal += OString( "777777777777777777777" );
   11573           1 :             aStrBuf.append( input, radix );
   11574             : 
   11575           2 :             CPPUNIT_ASSERT_MESSAGE
   11576             :             (
   11577             :                 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
   11578             :                 aStrBuf.getStr()== expVal &&
   11579             :                     aStrBuf.getLength() == expVal.getLength()
   11580           2 :             );
   11581             : 
   11582           1 :         }
   11583             : 
   11584           1 :         void append_035()
   11585             :         {
   11586           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   11587           2 :             OString                expVal( aStrBuf.getStr() );
   11588           1 :             sal_Int64              input = kSInt8Max;
   11589           1 :             sal_Int16              radix = 10;
   11590             : 
   11591           1 :             expVal += OString( "127" );
   11592           1 :             aStrBuf.append( input, radix );
   11593             : 
   11594           2 :             CPPUNIT_ASSERT_MESSAGE
   11595             :             (
   11596             :                 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
   11597             :                 aStrBuf.getStr()== expVal &&
   11598             :                     aStrBuf.getLength() == expVal.getLength()
   11599           2 :             );
   11600             : 
   11601           1 :         }
   11602             : 
   11603           1 :         void append_036()
   11604             :         {
   11605           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   11606           2 :             OString                expVal( aStrBuf.getStr() );
   11607           1 :             sal_Int64              input = kSInt64Max;
   11608           1 :             sal_Int16              radix = 10;
   11609             : 
   11610           1 :             expVal += OString( "9223372036854775807" );
   11611           1 :             aStrBuf.append( input, radix );
   11612             : 
   11613           2 :             CPPUNIT_ASSERT_MESSAGE
   11614             :             (
   11615             :                 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
   11616             :                 aStrBuf.getStr()== expVal &&
   11617             :                     aStrBuf.getLength() == expVal.getLength()
   11618           2 :             );
   11619             : 
   11620           1 :         }
   11621             : 
   11622           1 :         void append_037()
   11623             :         {
   11624           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   11625           2 :             OString                expVal( aStrBuf.getStr() );
   11626           1 :             sal_Int64              input = kSInt8Max;
   11627           1 :             sal_Int16              radix = 16;
   11628             : 
   11629           1 :             expVal += OString( "7f" );
   11630           1 :             aStrBuf.append( input, radix );
   11631             : 
   11632           2 :             CPPUNIT_ASSERT_MESSAGE
   11633             :             (
   11634             :                 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
   11635             :                 aStrBuf.getStr()== expVal &&
   11636             :                     aStrBuf.getLength() == expVal.getLength()
   11637           2 :             );
   11638             : 
   11639           1 :         }
   11640             : 
   11641           1 :         void append_038()
   11642             :         {
   11643           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   11644           2 :             OString                expVal( aStrBuf.getStr() );
   11645           1 :             sal_Int64              input = kSInt64Max;
   11646           1 :             sal_Int16              radix = 16;
   11647             : 
   11648           1 :             expVal += OString( "7fffffffffffffff" );
   11649           1 :             aStrBuf.append( input, radix );
   11650             : 
   11651           2 :             CPPUNIT_ASSERT_MESSAGE
   11652             :             (
   11653             :                 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
   11654             :                 aStrBuf.getStr()== expVal &&
   11655             :                     aStrBuf.getLength() == expVal.getLength()
   11656           2 :             );
   11657             : 
   11658           1 :         }
   11659             : 
   11660           1 :         void append_039()
   11661             :         {
   11662           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   11663           2 :             OString                expVal( aStrBuf.getStr() );
   11664           1 :             sal_Int64              input = kSInt8Max;
   11665           1 :             sal_Int16              radix = 36;
   11666             : 
   11667           1 :             expVal += OString( "3j" );
   11668           1 :             aStrBuf.append( input, radix );
   11669             : 
   11670           2 :             CPPUNIT_ASSERT_MESSAGE
   11671             :             (
   11672             :                 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
   11673             :                 aStrBuf.getStr()== expVal &&
   11674             :                     aStrBuf.getLength() == expVal.getLength()
   11675           2 :             );
   11676             : 
   11677           1 :         }
   11678             : 
   11679           1 :         void append_040()
   11680             :         {
   11681           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   11682           2 :             OString                expVal( aStrBuf.getStr() );
   11683           1 :             sal_Int64              input = kSInt64Max;
   11684           1 :             sal_Int16              radix = 36;
   11685             : 
   11686           1 :             expVal += OString( "1y2p0ij32e8e7" );
   11687           1 :             aStrBuf.append( input, radix );
   11688             : 
   11689           2 :             CPPUNIT_ASSERT_MESSAGE
   11690             :             (
   11691             :                 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
   11692             :                 aStrBuf.getStr()== expVal &&
   11693             :                     aStrBuf.getLength() == expVal.getLength()
   11694           2 :             );
   11695             : 
   11696           1 :         }
   11697             : 
   11698           1 :         void append_041()
   11699             :         {
   11700           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   11701           2 :             OString                expVal( aStrBuf.getStr() );
   11702           1 :             sal_Int64              input = kSInt8Max;
   11703           1 :             sal_Int16              radix = 2;
   11704             : 
   11705           1 :             expVal += OString( "1111111" );
   11706           1 :             aStrBuf.append( input, radix );
   11707             : 
   11708           2 :             CPPUNIT_ASSERT_MESSAGE
   11709             :             (
   11710             :                 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
   11711             :                 aStrBuf.getStr()== expVal &&
   11712             :                     aStrBuf.getLength() == expVal.getLength()
   11713           2 :             );
   11714             : 
   11715           1 :         }
   11716             : 
   11717           1 :         void append_042()
   11718             :         {
   11719           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   11720           2 :             OString                expVal( aStrBuf.getStr() );
   11721           1 :             sal_Int64              input = kSInt64Max;
   11722           1 :             sal_Int16              radix = 2;
   11723             : 
   11724           1 :             expVal += OString( "111111111111111111111111111111111111111111111111111111111111111" );
   11725           1 :             aStrBuf.append( input, radix );
   11726             : 
   11727           2 :             CPPUNIT_ASSERT_MESSAGE
   11728             :             (
   11729             :                 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
   11730             :                 aStrBuf.getStr()== expVal &&
   11731             :                     aStrBuf.getLength() == expVal.getLength()
   11732           2 :             );
   11733             : 
   11734           1 :         }
   11735             : 
   11736           1 :         void append_043()
   11737             :         {
   11738           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   11739           2 :             OString                expVal( aStrBuf.getStr() );
   11740           1 :             sal_Int64              input = kSInt8Max;
   11741           1 :             sal_Int16              radix = 8;
   11742             : 
   11743           1 :             expVal += OString( "177" );
   11744           1 :             aStrBuf.append( input, radix );
   11745             : 
   11746           2 :             CPPUNIT_ASSERT_MESSAGE
   11747             :             (
   11748             :                 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
   11749             :                 aStrBuf.getStr()== expVal &&
   11750             :                     aStrBuf.getLength() == expVal.getLength()
   11751           2 :             );
   11752             : 
   11753           1 :         }
   11754             : 
   11755           1 :         void append_044()
   11756             :         {
   11757           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   11758           2 :             OString                expVal( aStrBuf.getStr() );
   11759           1 :             sal_Int64              input = kSInt64Max;
   11760           1 :             sal_Int16              radix = 8;
   11761             : 
   11762           1 :             expVal += OString( "777777777777777777777" );
   11763           1 :             aStrBuf.append( input, radix );
   11764             : 
   11765           2 :             CPPUNIT_ASSERT_MESSAGE
   11766             :             (
   11767             :                 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
   11768             :                 aStrBuf.getStr()== expVal &&
   11769             :                     aStrBuf.getLength() == expVal.getLength()
   11770           2 :             );
   11771             : 
   11772           1 :         }
   11773             : 
   11774           1 :         void append_045()
   11775             :         {
   11776           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   11777           2 :             OString                expVal( aStrBuf.getStr() );
   11778           1 :             sal_Int64              input = kSInt8Max;
   11779           1 :             sal_Int16              radix = 10;
   11780             : 
   11781           1 :             expVal += OString( "127" );
   11782           1 :             aStrBuf.append( input, radix );
   11783             : 
   11784           2 :             CPPUNIT_ASSERT_MESSAGE
   11785             :             (
   11786             :                 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
   11787             :                 aStrBuf.getStr()== expVal &&
   11788             :                     aStrBuf.getLength() == expVal.getLength()
   11789           2 :             );
   11790             : 
   11791           1 :         }
   11792             : 
   11793           1 :         void append_046()
   11794             :         {
   11795           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   11796           2 :             OString                expVal( aStrBuf.getStr() );
   11797           1 :             sal_Int64              input = kSInt64Max;
   11798           1 :             sal_Int16              radix = 10;
   11799             : 
   11800           1 :             expVal += OString( "9223372036854775807" );
   11801           1 :             aStrBuf.append( input, radix );
   11802             : 
   11803           2 :             CPPUNIT_ASSERT_MESSAGE
   11804             :             (
   11805             :                 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
   11806             :                 aStrBuf.getStr()== expVal &&
   11807             :                     aStrBuf.getLength() == expVal.getLength()
   11808           2 :             );
   11809             : 
   11810           1 :         }
   11811             : 
   11812           1 :         void append_047()
   11813             :         {
   11814           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   11815           2 :             OString                expVal( aStrBuf.getStr() );
   11816           1 :             sal_Int64              input = kSInt8Max;
   11817           1 :             sal_Int16              radix = 16;
   11818             : 
   11819           1 :             expVal += OString( "7f" );
   11820           1 :             aStrBuf.append( input, radix );
   11821             : 
   11822           2 :             CPPUNIT_ASSERT_MESSAGE
   11823             :             (
   11824             :                 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
   11825             :                 aStrBuf.getStr()== expVal &&
   11826             :                     aStrBuf.getLength() == expVal.getLength()
   11827           2 :             );
   11828             : 
   11829           1 :         }
   11830             : 
   11831           1 :         void append_048()
   11832             :         {
   11833           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   11834           2 :             OString                expVal( aStrBuf.getStr() );
   11835           1 :             sal_Int64              input = kSInt64Max;
   11836           1 :             sal_Int16              radix = 16;
   11837             : 
   11838           1 :             expVal += OString( "7fffffffffffffff" );
   11839           1 :             aStrBuf.append( input, radix );
   11840             : 
   11841           2 :             CPPUNIT_ASSERT_MESSAGE
   11842             :             (
   11843             :                 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
   11844             :                 aStrBuf.getStr()== expVal &&
   11845             :                     aStrBuf.getLength() == expVal.getLength()
   11846           2 :             );
   11847             : 
   11848           1 :         }
   11849             : 
   11850           1 :         void append_049()
   11851             :         {
   11852           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   11853           2 :             OString                expVal( aStrBuf.getStr() );
   11854           1 :             sal_Int64              input = kSInt8Max;
   11855           1 :             sal_Int16              radix = 36;
   11856             : 
   11857           1 :             expVal += OString( "3j" );
   11858           1 :             aStrBuf.append( input, radix );
   11859             : 
   11860           2 :             CPPUNIT_ASSERT_MESSAGE
   11861             :             (
   11862             :                 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
   11863             :                 aStrBuf.getStr()== expVal &&
   11864             :                     aStrBuf.getLength() == expVal.getLength()
   11865           2 :             );
   11866             : 
   11867           1 :         }
   11868             : 
   11869           1 :         void append_050()
   11870             :         {
   11871           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   11872           2 :             OString                expVal( aStrBuf.getStr() );
   11873           1 :             sal_Int64              input = kSInt64Max;
   11874           1 :             sal_Int16              radix = 36;
   11875             : 
   11876           1 :             expVal += OString( "1y2p0ij32e8e7" );
   11877           1 :             aStrBuf.append( input, radix );
   11878             : 
   11879           2 :             CPPUNIT_ASSERT_MESSAGE
   11880             :             (
   11881             :                 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
   11882             :                 aStrBuf.getStr()== expVal &&
   11883             :                     aStrBuf.getLength() == expVal.getLength()
   11884           2 :             );
   11885             : 
   11886           1 :         }
   11887             : 
   11888           2 :         CPPUNIT_TEST_SUITE( append_007_Int64_Bounderies );
   11889           1 :         CPPUNIT_TEST( append_001 ); CPPUNIT_TEST( append_002 );
   11890           1 :         CPPUNIT_TEST( append_003 ); CPPUNIT_TEST( append_004 );
   11891           1 :         CPPUNIT_TEST( append_005 ); CPPUNIT_TEST( append_006 );
   11892           1 :         CPPUNIT_TEST( append_007 ); CPPUNIT_TEST( append_008 );
   11893           1 :         CPPUNIT_TEST( append_009 ); CPPUNIT_TEST( append_010 );
   11894           1 :         CPPUNIT_TEST( append_011 ); CPPUNIT_TEST( append_012 );
   11895           1 :         CPPUNIT_TEST( append_013 ); CPPUNIT_TEST( append_014 );
   11896           1 :         CPPUNIT_TEST( append_015 ); CPPUNIT_TEST( append_016 );
   11897           1 :         CPPUNIT_TEST( append_017 ); CPPUNIT_TEST( append_018 );
   11898           1 :         CPPUNIT_TEST( append_019 ); CPPUNIT_TEST( append_020 );
   11899           1 :         CPPUNIT_TEST( append_021 ); CPPUNIT_TEST( append_022 );
   11900           1 :         CPPUNIT_TEST( append_023 ); CPPUNIT_TEST( append_024 );
   11901           1 :         CPPUNIT_TEST( append_025 ); CPPUNIT_TEST( append_026 );
   11902           1 :         CPPUNIT_TEST( append_027 ); CPPUNIT_TEST( append_028 );
   11903           1 :         CPPUNIT_TEST( append_029 ); CPPUNIT_TEST( append_030 );
   11904           1 :         CPPUNIT_TEST( append_031 ); CPPUNIT_TEST( append_032 );
   11905           1 :         CPPUNIT_TEST( append_033 ); CPPUNIT_TEST( append_034 );
   11906           1 :         CPPUNIT_TEST( append_035 ); CPPUNIT_TEST( append_036 );
   11907           1 :         CPPUNIT_TEST( append_037 ); CPPUNIT_TEST( append_038 );
   11908           1 :         CPPUNIT_TEST( append_039 ); CPPUNIT_TEST( append_040 );
   11909           1 :         CPPUNIT_TEST( append_041 ); CPPUNIT_TEST( append_042 );
   11910           1 :         CPPUNIT_TEST( append_043 ); CPPUNIT_TEST( append_044 );
   11911           1 :         CPPUNIT_TEST( append_045 ); CPPUNIT_TEST( append_046 );
   11912           1 :         CPPUNIT_TEST( append_047 ); CPPUNIT_TEST( append_048 );
   11913           1 :         CPPUNIT_TEST( append_049 ); CPPUNIT_TEST( append_050 );
   11914           2 :         CPPUNIT_TEST_SUITE_END();
   11915             :     };
   11916             : 
   11917             : // testing the method append( sal_Int64 i, sal_Int16 radix=2 )
   11918             : // for negative value
   11919             : // testing the method append( sal_Int64 i, sal_Int16 radix=8 )
   11920             : // for negative value
   11921             : // testing the method append( sal_Int64 i, sal_Int16 radix=10 )
   11922             : // for negative value
   11923             : // testing the method append( sal_Int64 i, sal_Int16 radix=16 )
   11924             : // for negative value
   11925             : // testing the method append( sal_Int64 i, sal_Int16 radix=36 )
   11926             : // for negative value
   11927             : 
   11928         300 :     class  append_007_Int64_Negative : public CppUnit::TestFixture
   11929             :     {
   11930             :         OString* arrOUS[5];
   11931             : 
   11932             :     public:
   11933         100 :         void setUp() SAL_OVERRIDE
   11934             :         {
   11935         100 :             arrOUS[0] = new OString( kTestStr7 );
   11936         100 :             arrOUS[1] = new OString(  );
   11937         100 :             arrOUS[2] = new OString( kTestStr25 );
   11938         100 :             arrOUS[3] = new OString( "" );
   11939         100 :             arrOUS[4] = new OString( kTestStr28 );
   11940             : 
   11941         100 :         }
   11942             : 
   11943         100 :         void tearDown() SAL_OVERRIDE
   11944             :         {
   11945         100 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
   11946         100 :             delete arrOUS[3]; delete arrOUS[4];
   11947         100 :         }
   11948             : 
   11949           1 :         void append_001()
   11950             :         {
   11951           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   11952           2 :             OString                expVal( aStrBuf.getStr() );
   11953           1 :             sal_Int64              input = -0;
   11954           1 :             sal_Int16              radix = 2;
   11955             : 
   11956           1 :             expVal += OString( "0" );
   11957           1 :             aStrBuf.append( input, radix );
   11958             : 
   11959           2 :             CPPUNIT_ASSERT_MESSAGE
   11960             :             (
   11961             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
   11962             :                 aStrBuf.getStr()== expVal &&
   11963             :                     aStrBuf.getLength() == expVal.getLength()
   11964           2 :             );
   11965             : 
   11966           1 :         }
   11967             : 
   11968           1 :         void append_002()
   11969             :         {
   11970           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   11971           2 :             OString                expVal( aStrBuf.getStr() );
   11972           1 :             sal_Int64              input = -4;
   11973           1 :             sal_Int16              radix = 2;
   11974             : 
   11975           1 :             expVal += OString( "-" );
   11976           1 :             expVal += OString( "100" );
   11977           1 :             aStrBuf.append( input, radix );
   11978             : 
   11979           2 :             CPPUNIT_ASSERT_MESSAGE
   11980             :             (
   11981             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
   11982             :                 aStrBuf.getStr()== expVal &&
   11983             :                     aStrBuf.getLength() == expVal.getLength()
   11984           2 :             );
   11985             : 
   11986           1 :         }
   11987             : 
   11988           1 :         void append_003()
   11989             :         {
   11990           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   11991           2 :             OString                expVal( aStrBuf.getStr() );
   11992           1 :             sal_Int64              input = -8;
   11993           1 :             sal_Int16              radix = 2;
   11994             : 
   11995           1 :             expVal += OString( "-" );
   11996           1 :             expVal += OString( "1000" );
   11997           1 :             aStrBuf.append( input, radix );
   11998             : 
   11999           2 :             CPPUNIT_ASSERT_MESSAGE
   12000             :             (
   12001             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
   12002             :                 aStrBuf.getStr()== expVal &&
   12003             :                     aStrBuf.getLength() == expVal.getLength()
   12004           2 :             );
   12005             : 
   12006           1 :         }
   12007             : 
   12008           1 :         void append_004()
   12009             :         {
   12010           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12011           2 :             OString                expVal( aStrBuf.getStr() );
   12012           1 :             sal_Int64              input = -15;
   12013           1 :             sal_Int16              radix = 2;
   12014             : 
   12015           1 :             expVal += OString( "-" );
   12016           1 :             expVal += OString( "1111" );
   12017           1 :             aStrBuf.append( input, radix );
   12018             : 
   12019           2 :             CPPUNIT_ASSERT_MESSAGE
   12020             :             (
   12021             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
   12022             :                 aStrBuf.getStr()== expVal &&
   12023             :                     aStrBuf.getLength() == expVal.getLength()
   12024           2 :             );
   12025             : 
   12026           1 :         }
   12027             : 
   12028           1 :         void append_005()
   12029             :         {
   12030           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12031           2 :             OString                expVal( aStrBuf.getStr() );
   12032           1 :             sal_Int64              input = -0;
   12033           1 :             sal_Int16              radix = 8;
   12034             : 
   12035           1 :             expVal += OString( "0" );
   12036           1 :             aStrBuf.append( input, radix );
   12037             : 
   12038           2 :             CPPUNIT_ASSERT_MESSAGE
   12039             :             (
   12040             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
   12041             :                 aStrBuf.getStr()== expVal &&
   12042             :                     aStrBuf.getLength() == expVal.getLength()
   12043           2 :             );
   12044             : 
   12045           1 :         }
   12046             : 
   12047           1 :         void append_006()
   12048             :         {
   12049           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12050           2 :             OString                expVal( aStrBuf.getStr() );
   12051           1 :             sal_Int64              input = -4;
   12052           1 :             sal_Int16              radix = 8;
   12053             : 
   12054           1 :             expVal += OString( "-" );
   12055           1 :             expVal += OString( "4" );
   12056           1 :             aStrBuf.append( input, radix );
   12057             : 
   12058           2 :             CPPUNIT_ASSERT_MESSAGE
   12059             :             (
   12060             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
   12061             :                 aStrBuf.getStr()== expVal &&
   12062             :                     aStrBuf.getLength() == expVal.getLength()
   12063           2 :             );
   12064             : 
   12065           1 :         }
   12066             : 
   12067           1 :         void append_007()
   12068             :         {
   12069           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12070           2 :             OString                expVal( aStrBuf.getStr() );
   12071           1 :             sal_Int64              input = -8;
   12072           1 :             sal_Int16              radix = 8;
   12073             : 
   12074           1 :             expVal += OString( "-" );
   12075           1 :             expVal += OString( "10" );
   12076           1 :             aStrBuf.append( input, radix );
   12077             : 
   12078           2 :             CPPUNIT_ASSERT_MESSAGE
   12079             :             (
   12080             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
   12081             :                 aStrBuf.getStr()== expVal &&
   12082             :                     aStrBuf.getLength() == expVal.getLength()
   12083           2 :             );
   12084             : 
   12085           1 :         }
   12086             : 
   12087           1 :         void append_008()
   12088             :         {
   12089           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12090           2 :             OString                expVal( aStrBuf.getStr() );
   12091           1 :             sal_Int64              input = -15;
   12092           1 :             sal_Int16              radix = 8;
   12093             : 
   12094           1 :             expVal += OString( "-" );
   12095           1 :             expVal += OString( "17" );
   12096           1 :             aStrBuf.append( input, radix );
   12097             : 
   12098           2 :             CPPUNIT_ASSERT_MESSAGE
   12099             :             (
   12100             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
   12101             :                 aStrBuf.getStr()== expVal &&
   12102             :                     aStrBuf.getLength() == expVal.getLength()
   12103           2 :             );
   12104             : 
   12105           1 :         }
   12106             : 
   12107           1 :         void append_009()
   12108             :         {
   12109           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12110           2 :             OString                expVal( aStrBuf.getStr() );
   12111           1 :             sal_Int64              input = -0;
   12112           1 :             sal_Int16              radix = 10;
   12113             : 
   12114           1 :             expVal += OString( "0" );
   12115           1 :             aStrBuf.append( input, radix );
   12116             : 
   12117           2 :             CPPUNIT_ASSERT_MESSAGE
   12118             :             (
   12119             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
   12120             :                 aStrBuf.getStr()== expVal &&
   12121             :                     aStrBuf.getLength() == expVal.getLength()
   12122           2 :             );
   12123             : 
   12124           1 :         }
   12125             : 
   12126           1 :         void append_010()
   12127             :         {
   12128           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12129           2 :             OString                expVal( aStrBuf.getStr() );
   12130           1 :             sal_Int64              input = -4;
   12131           1 :             sal_Int16              radix = 10;
   12132             : 
   12133           1 :             expVal += OString( "-" );
   12134           1 :             expVal += OString( "4" );
   12135           1 :             aStrBuf.append( input, radix );
   12136             : 
   12137           2 :             CPPUNIT_ASSERT_MESSAGE
   12138             :             (
   12139             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
   12140             :                 aStrBuf.getStr()== expVal &&
   12141             :                     aStrBuf.getLength() == expVal.getLength()
   12142           2 :             );
   12143             : 
   12144           1 :         }
   12145             : 
   12146           1 :         void append_011()
   12147             :         {
   12148           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12149           2 :             OString                expVal( aStrBuf.getStr() );
   12150           1 :             sal_Int64              input = -8;
   12151           1 :             sal_Int16              radix = 10;
   12152             : 
   12153           1 :             expVal += OString( "-" );
   12154           1 :             expVal += OString( "8" );
   12155           1 :             aStrBuf.append( input, radix );
   12156             : 
   12157           2 :             CPPUNIT_ASSERT_MESSAGE
   12158             :             (
   12159             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
   12160             :                 aStrBuf.getStr()== expVal &&
   12161             :                     aStrBuf.getLength() == expVal.getLength()
   12162           2 :             );
   12163             : 
   12164           1 :         }
   12165             : 
   12166           1 :         void append_012()
   12167             :         {
   12168           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12169           2 :             OString                expVal( aStrBuf.getStr() );
   12170           1 :             sal_Int64              input = -15;
   12171           1 :             sal_Int16              radix = 10;
   12172             : 
   12173           1 :             expVal += OString( "-" );
   12174           1 :             expVal += OString( "15" );
   12175           1 :             aStrBuf.append( input, radix );
   12176             : 
   12177           2 :             CPPUNIT_ASSERT_MESSAGE
   12178             :             (
   12179             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
   12180             :                 aStrBuf.getStr()== expVal &&
   12181             :                     aStrBuf.getLength() == expVal.getLength()
   12182           2 :             );
   12183             : 
   12184           1 :         }
   12185             : 
   12186           1 :         void append_013()
   12187             :         {
   12188           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12189           2 :             OString                expVal( aStrBuf.getStr() );
   12190           1 :             sal_Int64              input = -0;
   12191           1 :             sal_Int16              radix = 16;
   12192             : 
   12193           1 :             expVal += OString( "0" );
   12194           1 :             aStrBuf.append( input, radix );
   12195             : 
   12196           2 :             CPPUNIT_ASSERT_MESSAGE
   12197             :             (
   12198             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
   12199             :                 aStrBuf.getStr()== expVal &&
   12200             :                     aStrBuf.getLength() == expVal.getLength()
   12201           2 :             );
   12202             : 
   12203           1 :         }
   12204             : 
   12205           1 :         void append_014()
   12206             :         {
   12207           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12208           2 :             OString                expVal( aStrBuf.getStr() );
   12209           1 :             sal_Int64              input = -4;
   12210           1 :             sal_Int16              radix = 16;
   12211             : 
   12212           1 :             expVal += OString( "-" );
   12213           1 :             expVal += OString( "4" );
   12214           1 :             aStrBuf.append( input, radix );
   12215             : 
   12216           2 :             CPPUNIT_ASSERT_MESSAGE
   12217             :             (
   12218             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
   12219             :                 aStrBuf.getStr()== expVal &&
   12220             :                     aStrBuf.getLength() == expVal.getLength()
   12221           2 :             );
   12222             : 
   12223           1 :         }
   12224             : 
   12225           1 :         void append_015()
   12226             :         {
   12227           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12228           2 :             OString                expVal( aStrBuf.getStr() );
   12229           1 :             sal_Int64              input = -8;
   12230           1 :             sal_Int16              radix = 16;
   12231             : 
   12232           1 :             expVal += OString( "-" );
   12233           1 :             expVal += OString( "8" );
   12234           1 :             aStrBuf.append( input, radix );
   12235             : 
   12236           2 :             CPPUNIT_ASSERT_MESSAGE
   12237             :             (
   12238             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
   12239             :                 aStrBuf.getStr()== expVal &&
   12240             :                     aStrBuf.getLength() == expVal.getLength()
   12241           2 :             );
   12242             : 
   12243           1 :         }
   12244             : 
   12245           1 :         void append_016()
   12246             :         {
   12247           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12248           2 :             OString                expVal( aStrBuf.getStr() );
   12249           1 :             sal_Int64              input = -15;
   12250           1 :             sal_Int16              radix = 16;
   12251             : 
   12252           1 :             expVal += OString( "-" );
   12253           1 :             expVal += OString( "f" );
   12254           1 :             aStrBuf.append( input, radix );
   12255             : 
   12256           2 :             CPPUNIT_ASSERT_MESSAGE
   12257             :             (
   12258             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
   12259             :                 aStrBuf.getStr()== expVal &&
   12260             :                     aStrBuf.getLength() == expVal.getLength()
   12261           2 :             );
   12262             : 
   12263           1 :         }
   12264             : 
   12265           1 :         void append_017()
   12266             :         {
   12267           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12268           2 :             OString                expVal( aStrBuf.getStr() );
   12269           1 :             sal_Int64              input = -0;
   12270           1 :             sal_Int16              radix = 36;
   12271             : 
   12272           1 :             expVal += OString( "0" );
   12273           1 :             aStrBuf.append( input, radix );
   12274             : 
   12275           2 :             CPPUNIT_ASSERT_MESSAGE
   12276             :             (
   12277             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
   12278             :                 aStrBuf.getStr()== expVal &&
   12279             :                     aStrBuf.getLength() == expVal.getLength()
   12280           2 :             );
   12281             : 
   12282           1 :         }
   12283             : 
   12284           1 :         void append_018()
   12285             :         {
   12286           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12287           2 :             OString                expVal( aStrBuf.getStr() );
   12288           1 :             sal_Int64              input = -4;
   12289           1 :             sal_Int16              radix = 36;
   12290             : 
   12291           1 :             expVal += OString( "-" );
   12292           1 :             expVal += OString( "4" );
   12293           1 :             aStrBuf.append( input, radix );
   12294             : 
   12295           2 :             CPPUNIT_ASSERT_MESSAGE
   12296             :             (
   12297             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
   12298             :                 aStrBuf.getStr()== expVal &&
   12299             :                     aStrBuf.getLength() == expVal.getLength()
   12300           2 :             );
   12301             : 
   12302           1 :         }
   12303             : 
   12304           1 :         void append_019()
   12305             :         {
   12306           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12307           2 :             OString                expVal( aStrBuf.getStr() );
   12308           1 :             sal_Int64              input = -8;
   12309           1 :             sal_Int16              radix = 36;
   12310             : 
   12311           1 :             expVal += OString( "-" );
   12312           1 :             expVal += OString( "8" );
   12313           1 :             aStrBuf.append( input, radix );
   12314             : 
   12315           2 :             CPPUNIT_ASSERT_MESSAGE
   12316             :             (
   12317             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
   12318             :                 aStrBuf.getStr()== expVal &&
   12319             :                     aStrBuf.getLength() == expVal.getLength()
   12320           2 :             );
   12321             : 
   12322           1 :         }
   12323             : 
   12324           1 :         void append_020()
   12325             :         {
   12326           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12327           2 :             OString                expVal( aStrBuf.getStr() );
   12328           1 :             sal_Int64              input = -35;
   12329           1 :             sal_Int16              radix = 36;
   12330             : 
   12331           1 :             expVal += OString( "-" );
   12332           1 :             expVal += OString( "z" );
   12333           1 :             aStrBuf.append( input, radix );
   12334             : 
   12335           2 :             CPPUNIT_ASSERT_MESSAGE
   12336             :             (
   12337             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
   12338             :                 aStrBuf.getStr()== expVal &&
   12339             :                     aStrBuf.getLength() == expVal.getLength()
   12340           2 :             );
   12341             : 
   12342           1 :         }
   12343             : 
   12344           1 :         void append_021()
   12345             :         {
   12346           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12347           2 :             OString                expVal( aStrBuf.getStr() );
   12348           1 :             sal_Int64              input = -0;
   12349           1 :             sal_Int16              radix = 2;
   12350             : 
   12351           1 :             expVal += OString( "0" );
   12352           1 :             aStrBuf.append( input, radix );
   12353             : 
   12354           2 :             CPPUNIT_ASSERT_MESSAGE
   12355             :             (
   12356             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
   12357             :                 aStrBuf.getStr()== expVal &&
   12358             :                     aStrBuf.getLength() == expVal.getLength()
   12359           2 :             );
   12360             : 
   12361           1 :         }
   12362             : 
   12363           1 :         void append_022()
   12364             :         {
   12365           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12366           2 :             OString                expVal( aStrBuf.getStr() );
   12367           1 :             sal_Int64              input = -4;
   12368           1 :             sal_Int16              radix = 2;
   12369             : 
   12370           1 :             expVal += OString( "-" );
   12371           1 :             expVal += OString( "100" );
   12372           1 :             aStrBuf.append( input, radix );
   12373             : 
   12374           2 :             CPPUNIT_ASSERT_MESSAGE
   12375             :             (
   12376             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
   12377             :                 aStrBuf.getStr()== expVal &&
   12378             :                     aStrBuf.getLength() == expVal.getLength()
   12379           2 :             );
   12380             : 
   12381           1 :         }
   12382             : 
   12383           1 :         void append_023()
   12384             :         {
   12385           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12386           2 :             OString                expVal( aStrBuf.getStr() );
   12387           1 :             sal_Int64              input = -8;
   12388           1 :             sal_Int16              radix = 2;
   12389             : 
   12390           1 :             expVal += OString( "-" );
   12391           1 :             expVal += OString( "1000" );
   12392           1 :             aStrBuf.append( input, radix );
   12393             : 
   12394           2 :             CPPUNIT_ASSERT_MESSAGE
   12395             :             (
   12396             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
   12397             :                 aStrBuf.getStr()== expVal &&
   12398             :                     aStrBuf.getLength() == expVal.getLength()
   12399           2 :             );
   12400             : 
   12401           1 :         }
   12402             : 
   12403           1 :         void append_024()
   12404             :         {
   12405           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12406           2 :             OString                expVal( aStrBuf.getStr() );
   12407           1 :             sal_Int64              input = -15;
   12408           1 :             sal_Int16              radix = 2;
   12409             : 
   12410           1 :             expVal += OString( "-" );
   12411           1 :             expVal += OString( "1111" );
   12412           1 :             aStrBuf.append( input, radix );
   12413             : 
   12414           2 :             CPPUNIT_ASSERT_MESSAGE
   12415             :             (
   12416             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
   12417             :                 aStrBuf.getStr()== expVal &&
   12418             :                     aStrBuf.getLength() == expVal.getLength()
   12419           2 :             );
   12420             : 
   12421           1 :         }
   12422             : 
   12423           1 :         void append_025()
   12424             :         {
   12425           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12426           2 :             OString                expVal( aStrBuf.getStr() );
   12427           1 :             sal_Int64              input = -0;
   12428           1 :             sal_Int16              radix = 8;
   12429             : 
   12430           1 :             expVal += OString( "0" );
   12431           1 :             aStrBuf.append( input, radix );
   12432             : 
   12433           2 :             CPPUNIT_ASSERT_MESSAGE
   12434             :             (
   12435             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
   12436             :                 aStrBuf.getStr()== expVal &&
   12437             :                     aStrBuf.getLength() == expVal.getLength()
   12438           2 :             );
   12439             : 
   12440           1 :         }
   12441             : 
   12442           1 :         void append_026()
   12443             :         {
   12444           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12445           2 :             OString                expVal( aStrBuf.getStr() );
   12446           1 :             sal_Int64              input = -4;
   12447           1 :             sal_Int16              radix = 8;
   12448             : 
   12449           1 :             expVal += OString( "-" );
   12450           1 :             expVal += OString( "4" );
   12451           1 :             aStrBuf.append( input, radix );
   12452             : 
   12453           2 :             CPPUNIT_ASSERT_MESSAGE
   12454             :             (
   12455             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
   12456             :                 aStrBuf.getStr()== expVal &&
   12457             :                     aStrBuf.getLength() == expVal.getLength()
   12458           2 :             );
   12459             : 
   12460           1 :         }
   12461             : 
   12462           1 :         void append_027()
   12463             :         {
   12464           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12465           2 :             OString                expVal( aStrBuf.getStr() );
   12466           1 :             sal_Int64              input = -8;
   12467           1 :             sal_Int16              radix = 8;
   12468             : 
   12469           1 :             expVal += OString( "-" );
   12470           1 :             expVal += OString( "10" );
   12471           1 :             aStrBuf.append( input, radix );
   12472             : 
   12473           2 :             CPPUNIT_ASSERT_MESSAGE
   12474             :             (
   12475             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
   12476             :                 aStrBuf.getStr()== expVal &&
   12477             :                     aStrBuf.getLength() == expVal.getLength()
   12478           2 :             );
   12479             : 
   12480           1 :         }
   12481             : 
   12482           1 :         void append_028()
   12483             :         {
   12484           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12485           2 :             OString                expVal( aStrBuf.getStr() );
   12486           1 :             sal_Int64              input = -15;
   12487           1 :             sal_Int16              radix = 8;
   12488             : 
   12489           1 :             expVal += OString( "-" );
   12490           1 :             expVal += OString( "17" );
   12491           1 :             aStrBuf.append( input, radix );
   12492             : 
   12493           2 :             CPPUNIT_ASSERT_MESSAGE
   12494             :             (
   12495             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
   12496             :                 aStrBuf.getStr()== expVal &&
   12497             :                     aStrBuf.getLength() == expVal.getLength()
   12498           2 :             );
   12499             : 
   12500           1 :         }
   12501             : 
   12502           1 :         void append_029()
   12503             :         {
   12504           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12505           2 :             OString                expVal( aStrBuf.getStr() );
   12506           1 :             sal_Int64              input = -0;
   12507           1 :             sal_Int16              radix = 10;
   12508             : 
   12509           1 :             expVal += OString( "0" );
   12510           1 :             aStrBuf.append( input, radix );
   12511             : 
   12512           2 :             CPPUNIT_ASSERT_MESSAGE
   12513             :             (
   12514             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
   12515             :                 aStrBuf.getStr()== expVal &&
   12516             :                     aStrBuf.getLength() == expVal.getLength()
   12517           2 :             );
   12518             : 
   12519           1 :         }
   12520             : 
   12521           1 :         void append_030()
   12522             :         {
   12523           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12524           2 :             OString                expVal( aStrBuf.getStr() );
   12525           1 :             sal_Int64              input = -4;
   12526           1 :             sal_Int16              radix = 10;
   12527             : 
   12528           1 :             expVal += OString( "-" );
   12529           1 :             expVal += OString( "4" );
   12530           1 :             aStrBuf.append( input, radix );
   12531             : 
   12532           2 :             CPPUNIT_ASSERT_MESSAGE
   12533             :             (
   12534             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
   12535             :                 aStrBuf.getStr()== expVal &&
   12536             :                     aStrBuf.getLength() == expVal.getLength()
   12537           2 :             );
   12538             : 
   12539           1 :         }
   12540             : 
   12541           1 :         void append_031()
   12542             :         {
   12543           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12544           2 :             OString                expVal( aStrBuf.getStr() );
   12545           1 :             sal_Int64              input = -8;
   12546           1 :             sal_Int16              radix = 10;
   12547             : 
   12548           1 :             expVal += OString( "-" );
   12549           1 :             expVal += OString( "8" );
   12550           1 :             aStrBuf.append( input, radix );
   12551             : 
   12552           2 :             CPPUNIT_ASSERT_MESSAGE
   12553             :             (
   12554             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
   12555             :                 aStrBuf.getStr()== expVal &&
   12556             :                     aStrBuf.getLength() == expVal.getLength()
   12557           2 :             );
   12558             : 
   12559           1 :         }
   12560             : 
   12561           1 :         void append_032()
   12562             :         {
   12563           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12564           2 :             OString                expVal( aStrBuf.getStr() );
   12565           1 :             sal_Int64              input = -15;
   12566           1 :             sal_Int16              radix = 10;
   12567             : 
   12568           1 :             expVal += OString( "-" );
   12569           1 :             expVal += OString( "15" );
   12570           1 :             aStrBuf.append( input, radix );
   12571             : 
   12572           2 :             CPPUNIT_ASSERT_MESSAGE
   12573             :             (
   12574             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
   12575             :                 aStrBuf.getStr()== expVal &&
   12576             :                     aStrBuf.getLength() == expVal.getLength()
   12577           2 :             );
   12578             : 
   12579           1 :         }
   12580             : 
   12581           1 :         void append_033()
   12582             :         {
   12583           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12584           2 :             OString                expVal( aStrBuf.getStr() );
   12585           1 :             sal_Int64              input = -0;
   12586           1 :             sal_Int16              radix = 16;
   12587             : 
   12588           1 :             expVal += OString( "0" );
   12589           1 :             aStrBuf.append( input, radix );
   12590             : 
   12591           2 :             CPPUNIT_ASSERT_MESSAGE
   12592             :             (
   12593             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
   12594             :                 aStrBuf.getStr()== expVal &&
   12595             :                     aStrBuf.getLength() == expVal.getLength()
   12596           2 :             );
   12597             : 
   12598           1 :         }
   12599             : 
   12600           1 :         void append_034()
   12601             :         {
   12602           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12603           2 :             OString                expVal( aStrBuf.getStr() );
   12604           1 :             sal_Int64              input = -4;
   12605           1 :             sal_Int16              radix = 16;
   12606             : 
   12607           1 :             expVal += OString( "-" );
   12608           1 :             expVal += OString( "4" );
   12609           1 :             aStrBuf.append( input, radix );
   12610             : 
   12611           2 :             CPPUNIT_ASSERT_MESSAGE
   12612             :             (
   12613             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
   12614             :                 aStrBuf.getStr()== expVal &&
   12615             :                     aStrBuf.getLength() == expVal.getLength()
   12616           2 :             );
   12617             : 
   12618           1 :         }
   12619             : 
   12620           1 :         void append_035()
   12621             :         {
   12622           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12623           2 :             OString                expVal( aStrBuf.getStr() );
   12624           1 :             sal_Int64              input = -8;
   12625           1 :             sal_Int16              radix = 16;
   12626             : 
   12627           1 :             expVal += OString( "-" );
   12628           1 :             expVal += OString( "8" );
   12629           1 :             aStrBuf.append( input, radix );
   12630             : 
   12631           2 :             CPPUNIT_ASSERT_MESSAGE
   12632             :             (
   12633             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
   12634             :                 aStrBuf.getStr()== expVal &&
   12635             :                     aStrBuf.getLength() == expVal.getLength()
   12636           2 :             );
   12637             : 
   12638           1 :         }
   12639             : 
   12640           1 :         void append_036()
   12641             :         {
   12642           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12643           2 :             OString                expVal( aStrBuf.getStr() );
   12644           1 :             sal_Int64              input = -15;
   12645           1 :             sal_Int16              radix = 16;
   12646             : 
   12647           1 :             expVal += OString( "-" );
   12648           1 :             expVal += OString( "f" );
   12649           1 :             aStrBuf.append( input, radix );
   12650             : 
   12651           2 :             CPPUNIT_ASSERT_MESSAGE
   12652             :             (
   12653             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
   12654             :                 aStrBuf.getStr()== expVal &&
   12655             :                     aStrBuf.getLength() == expVal.getLength()
   12656           2 :             );
   12657             : 
   12658           1 :         }
   12659             : 
   12660           1 :         void append_037()
   12661             :         {
   12662           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12663           2 :             OString                expVal( aStrBuf.getStr() );
   12664           1 :             sal_Int64              input = -0;
   12665           1 :             sal_Int16              radix = 36;
   12666             : 
   12667           1 :             expVal += OString( "0" );
   12668           1 :             aStrBuf.append( input, radix );
   12669             : 
   12670           2 :             CPPUNIT_ASSERT_MESSAGE
   12671             :             (
   12672             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
   12673             :                 aStrBuf.getStr()== expVal &&
   12674             :                     aStrBuf.getLength() == expVal.getLength()
   12675           2 :             );
   12676             : 
   12677           1 :         }
   12678             : 
   12679           1 :         void append_038()
   12680             :         {
   12681           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12682           2 :             OString                expVal( aStrBuf.getStr() );
   12683           1 :             sal_Int64              input = -4;
   12684           1 :             sal_Int16              radix = 36;
   12685             : 
   12686           1 :             expVal += OString( "-" );
   12687           1 :             expVal += OString( "4" );
   12688           1 :             aStrBuf.append( input, radix );
   12689             : 
   12690           2 :             CPPUNIT_ASSERT_MESSAGE
   12691             :             (
   12692             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
   12693             :                 aStrBuf.getStr()== expVal &&
   12694             :                     aStrBuf.getLength() == expVal.getLength()
   12695           2 :             );
   12696             : 
   12697           1 :         }
   12698             : 
   12699           1 :         void append_039()
   12700             :         {
   12701           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12702           2 :             OString                expVal( aStrBuf.getStr() );
   12703           1 :             sal_Int64              input = -8;
   12704           1 :             sal_Int16              radix = 36;
   12705             : 
   12706           1 :             expVal += OString( "-" );
   12707           1 :             expVal += OString( "8" );
   12708           1 :             aStrBuf.append( input, radix );
   12709             : 
   12710           2 :             CPPUNIT_ASSERT_MESSAGE
   12711             :             (
   12712             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
   12713             :                 aStrBuf.getStr()== expVal &&
   12714             :                     aStrBuf.getLength() == expVal.getLength()
   12715           2 :             );
   12716             : 
   12717           1 :         }
   12718             : 
   12719           1 :         void append_040()
   12720             :         {
   12721           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12722           2 :             OString                expVal( aStrBuf.getStr() );
   12723           1 :             sal_Int64              input = -35;
   12724           1 :             sal_Int16              radix = 36;
   12725             : 
   12726           1 :             expVal += OString( "-" );
   12727           1 :             expVal += OString( "z" );
   12728           1 :             aStrBuf.append( input, radix );
   12729             : 
   12730           2 :             CPPUNIT_ASSERT_MESSAGE
   12731             :             (
   12732             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
   12733             :                 aStrBuf.getStr()== expVal &&
   12734             :                     aStrBuf.getLength() == expVal.getLength()
   12735           2 :             );
   12736             : 
   12737           1 :         }
   12738             : 
   12739           1 :         void append_041()
   12740             :         {
   12741           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   12742           2 :             OString                expVal( aStrBuf.getStr() );
   12743           1 :             sal_Int64              input = -0;
   12744           1 :             sal_Int16              radix = 2;
   12745             : 
   12746           1 :             expVal += OString( "0" );
   12747           1 :             aStrBuf.append( input, radix );
   12748             : 
   12749           2 :             CPPUNIT_ASSERT_MESSAGE
   12750             :             (
   12751             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
   12752             :                 aStrBuf.getStr()== expVal &&
   12753             :                     aStrBuf.getLength() == expVal.getLength()
   12754           2 :             );
   12755             : 
   12756           1 :         }
   12757             : 
   12758           1 :         void append_042()
   12759             :         {
   12760           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   12761           2 :             OString                expVal( aStrBuf.getStr() );
   12762           1 :             sal_Int64              input = -4;
   12763           1 :             sal_Int16              radix = 2;
   12764             : 
   12765           1 :             expVal += OString( "-" );
   12766           1 :             expVal += OString( "100" );
   12767           1 :             aStrBuf.append( input, radix );
   12768             : 
   12769           2 :             CPPUNIT_ASSERT_MESSAGE
   12770             :             (
   12771             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
   12772             :                 aStrBuf.getStr()== expVal &&
   12773             :                     aStrBuf.getLength() == expVal.getLength()
   12774           2 :             );
   12775             : 
   12776           1 :         }
   12777             : 
   12778           1 :         void append_043()
   12779             :         {
   12780           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   12781           2 :             OString                expVal( aStrBuf.getStr() );
   12782           1 :             sal_Int64              input = -8;
   12783           1 :             sal_Int16              radix = 2;
   12784             : 
   12785           1 :             expVal += OString( "-" );
   12786           1 :             expVal += OString( "1000" );
   12787           1 :             aStrBuf.append( input, radix );
   12788             : 
   12789           2 :             CPPUNIT_ASSERT_MESSAGE
   12790             :             (
   12791             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
   12792             :                 aStrBuf.getStr()== expVal &&
   12793             :                     aStrBuf.getLength() == expVal.getLength()
   12794           2 :             );
   12795             : 
   12796           1 :         }
   12797             : 
   12798           1 :         void append_044()
   12799             :         {
   12800           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   12801           2 :             OString                expVal( aStrBuf.getStr() );
   12802           1 :             sal_Int64              input = -15;
   12803           1 :             sal_Int16              radix = 2;
   12804             : 
   12805           1 :             expVal += OString( "-" );
   12806           1 :             expVal += OString( "1111" );
   12807           1 :             aStrBuf.append( input, radix );
   12808             : 
   12809           2 :             CPPUNIT_ASSERT_MESSAGE
   12810             :             (
   12811             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
   12812             :                 aStrBuf.getStr()== expVal &&
   12813             :                     aStrBuf.getLength() == expVal.getLength()
   12814           2 :             );
   12815             : 
   12816           1 :         }
   12817             : 
   12818           1 :         void append_045()
   12819             :         {
   12820           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   12821           2 :             OString                expVal( aStrBuf.getStr() );
   12822           1 :             sal_Int64              input = -0;
   12823           1 :             sal_Int16              radix = 8;
   12824             : 
   12825           1 :             expVal += OString( "0" );
   12826           1 :             aStrBuf.append( input, radix );
   12827             : 
   12828           2 :             CPPUNIT_ASSERT_MESSAGE
   12829             :             (
   12830             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
   12831             :                 aStrBuf.getStr()== expVal &&
   12832             :                     aStrBuf.getLength() == expVal.getLength()
   12833           2 :             );
   12834             : 
   12835           1 :         }
   12836             : 
   12837           1 :         void append_046()
   12838             :         {
   12839           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   12840           2 :             OString                expVal( aStrBuf.getStr() );
   12841           1 :             sal_Int64              input = -4;
   12842           1 :             sal_Int16              radix = 8;
   12843             : 
   12844           1 :             expVal += OString( "-" );
   12845           1 :             expVal += OString( "4" );
   12846           1 :             aStrBuf.append( input, radix );
   12847             : 
   12848           2 :             CPPUNIT_ASSERT_MESSAGE
   12849             :             (
   12850             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
   12851             :                 aStrBuf.getStr()== expVal &&
   12852             :                     aStrBuf.getLength() == expVal.getLength()
   12853           2 :             );
   12854             : 
   12855           1 :         }
   12856             : 
   12857           1 :         void append_047()
   12858             :         {
   12859           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   12860           2 :             OString                expVal( aStrBuf.getStr() );
   12861           1 :             sal_Int64              input = -8;
   12862           1 :             sal_Int16              radix = 8;
   12863             : 
   12864           1 :             expVal += OString( "-" );
   12865           1 :             expVal += OString( "10" );
   12866           1 :             aStrBuf.append( input, radix );
   12867             : 
   12868           2 :             CPPUNIT_ASSERT_MESSAGE
   12869             :             (
   12870             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
   12871             :                 aStrBuf.getStr()== expVal &&
   12872             :                     aStrBuf.getLength() == expVal.getLength()
   12873           2 :             );
   12874             : 
   12875           1 :         }
   12876             : 
   12877           1 :         void append_048()
   12878             :         {
   12879           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   12880           2 :             OString                expVal( aStrBuf.getStr() );
   12881           1 :             sal_Int64              input = -15;
   12882           1 :             sal_Int16              radix = 8;
   12883             : 
   12884           1 :             expVal += OString( "-" );
   12885           1 :             expVal += OString( "17" );
   12886           1 :             aStrBuf.append( input, radix );
   12887             : 
   12888           2 :             CPPUNIT_ASSERT_MESSAGE
   12889             :             (
   12890             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
   12891             :                 aStrBuf.getStr()== expVal &&
   12892             :                     aStrBuf.getLength() == expVal.getLength()
   12893           2 :             );
   12894             : 
   12895           1 :         }
   12896             : 
   12897           1 :         void append_049()
   12898             :         {
   12899           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   12900           2 :             OString                expVal( aStrBuf.getStr() );
   12901           1 :             sal_Int64              input = -0;
   12902           1 :             sal_Int16              radix = 10;
   12903             : 
   12904           1 :             expVal += OString( "0" );
   12905           1 :             aStrBuf.append( input, radix );
   12906             : 
   12907           2 :             CPPUNIT_ASSERT_MESSAGE
   12908             :             (
   12909             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
   12910             :                 aStrBuf.getStr()== expVal &&
   12911             :                     aStrBuf.getLength() == expVal.getLength()
   12912           2 :             );
   12913             : 
   12914           1 :         }
   12915             : 
   12916           1 :         void append_050()
   12917             :         {
   12918           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   12919           2 :             OString                expVal( aStrBuf.getStr() );
   12920           1 :             sal_Int64              input = -4;
   12921           1 :             sal_Int16              radix = 10;
   12922             : 
   12923           1 :             expVal += OString( "-" );
   12924           1 :             expVal += OString( "4" );
   12925           1 :             aStrBuf.append( input, radix );
   12926             : 
   12927           2 :             CPPUNIT_ASSERT_MESSAGE
   12928             :             (
   12929             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
   12930             :                 aStrBuf.getStr()== expVal &&
   12931             :                     aStrBuf.getLength() == expVal.getLength()
   12932           2 :             );
   12933             : 
   12934           1 :         }
   12935             : 
   12936           1 :         void append_051()
   12937             :         {
   12938           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   12939           2 :             OString                expVal( aStrBuf.getStr() );
   12940           1 :             sal_Int64              input = -8;
   12941           1 :             sal_Int16              radix = 10;
   12942             : 
   12943           1 :             expVal += OString( "-" );
   12944           1 :             expVal += OString( "8" );
   12945           1 :             aStrBuf.append( input, radix );
   12946             : 
   12947           2 :             CPPUNIT_ASSERT_MESSAGE
   12948             :             (
   12949             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
   12950             :                 aStrBuf.getStr()== expVal &&
   12951             :                     aStrBuf.getLength() == expVal.getLength()
   12952           2 :             );
   12953             : 
   12954           1 :         }
   12955             : 
   12956           1 :         void append_052()
   12957             :         {
   12958           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   12959           2 :             OString                expVal( aStrBuf.getStr() );
   12960           1 :             sal_Int64              input = -15;
   12961           1 :             sal_Int16              radix = 10;
   12962             : 
   12963           1 :             expVal += OString( "-" );
   12964           1 :             expVal += OString( "15" );
   12965           1 :             aStrBuf.append( input, radix );
   12966             : 
   12967           2 :             CPPUNIT_ASSERT_MESSAGE
   12968             :             (
   12969             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
   12970             :                 aStrBuf.getStr()== expVal &&
   12971             :                     aStrBuf.getLength() == expVal.getLength()
   12972           2 :             );
   12973             : 
   12974           1 :         }
   12975             : 
   12976           1 :         void append_053()
   12977             :         {
   12978           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   12979           2 :             OString                expVal( aStrBuf.getStr() );
   12980           1 :             sal_Int64              input = -0;
   12981           1 :             sal_Int16              radix = 16;
   12982             : 
   12983           1 :             expVal += OString( "0" );
   12984           1 :             aStrBuf.append( input, radix );
   12985             : 
   12986           2 :             CPPUNIT_ASSERT_MESSAGE
   12987             :             (
   12988             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
   12989             :                 aStrBuf.getStr()== expVal &&
   12990             :                     aStrBuf.getLength() == expVal.getLength()
   12991           2 :             );
   12992             : 
   12993           1 :         }
   12994             : 
   12995           1 :         void append_054()
   12996             :         {
   12997           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   12998           2 :             OString                expVal( aStrBuf.getStr() );
   12999           1 :             sal_Int64              input = -4;
   13000           1 :             sal_Int16              radix = 16;
   13001             : 
   13002           1 :             expVal += OString( "-" );
   13003           1 :             expVal += OString( "4" );
   13004           1 :             aStrBuf.append( input, radix );
   13005             : 
   13006           2 :             CPPUNIT_ASSERT_MESSAGE
   13007             :             (
   13008             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
   13009             :                 aStrBuf.getStr()== expVal &&
   13010             :                     aStrBuf.getLength() == expVal.getLength()
   13011           2 :             );
   13012             : 
   13013           1 :         }
   13014             : 
   13015           1 :         void append_055()
   13016             :         {
   13017           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   13018           2 :             OString                expVal( aStrBuf.getStr() );
   13019           1 :             sal_Int64              input = -8;
   13020           1 :             sal_Int16              radix = 16;
   13021             : 
   13022           1 :             expVal += OString( "-" );
   13023           1 :             expVal += OString( "8" );
   13024           1 :             aStrBuf.append( input, radix );
   13025             : 
   13026           2 :             CPPUNIT_ASSERT_MESSAGE
   13027             :             (
   13028             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
   13029             :                 aStrBuf.getStr()== expVal &&
   13030             :                     aStrBuf.getLength() == expVal.getLength()
   13031           2 :             );
   13032             : 
   13033           1 :         }
   13034             : 
   13035           1 :         void append_056()
   13036             :         {
   13037           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   13038           2 :             OString                expVal( aStrBuf.getStr() );
   13039           1 :             sal_Int64              input = -15;
   13040           1 :             sal_Int16              radix = 16;
   13041             : 
   13042           1 :             expVal += OString( "-" );
   13043           1 :             expVal += OString( "f" );
   13044           1 :             aStrBuf.append( input, radix );
   13045             : 
   13046           2 :             CPPUNIT_ASSERT_MESSAGE
   13047             :             (
   13048             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
   13049             :                 aStrBuf.getStr()== expVal &&
   13050             :                     aStrBuf.getLength() == expVal.getLength()
   13051           2 :             );
   13052             : 
   13053           1 :         }
   13054             : 
   13055           1 :         void append_057()
   13056             :         {
   13057           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   13058           2 :             OString                expVal( aStrBuf.getStr() );
   13059           1 :             sal_Int64              input = -0;
   13060           1 :             sal_Int16              radix = 36;
   13061             : 
   13062           1 :             expVal += OString( "0" );
   13063           1 :             aStrBuf.append( input, radix );
   13064             : 
   13065           2 :             CPPUNIT_ASSERT_MESSAGE
   13066             :             (
   13067             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
   13068             :                 aStrBuf.getStr()== expVal &&
   13069             :                     aStrBuf.getLength() == expVal.getLength()
   13070           2 :             );
   13071             : 
   13072           1 :         }
   13073             : 
   13074           1 :         void append_058()
   13075             :         {
   13076           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   13077           2 :             OString                expVal( aStrBuf.getStr() );
   13078           1 :             sal_Int64              input = -4;
   13079           1 :             sal_Int16              radix = 36;
   13080             : 
   13081           1 :             expVal += OString( "-" );
   13082           1 :             expVal += OString( "4" );
   13083           1 :             aStrBuf.append( input, radix );
   13084             : 
   13085           2 :             CPPUNIT_ASSERT_MESSAGE
   13086             :             (
   13087             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
   13088             :                 aStrBuf.getStr()== expVal &&
   13089             :                     aStrBuf.getLength() == expVal.getLength()
   13090           2 :             );
   13091             : 
   13092           1 :         }
   13093             : 
   13094           1 :         void append_059()
   13095             :         {
   13096           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   13097           2 :             OString                expVal( aStrBuf.getStr() );
   13098           1 :             sal_Int64              input = -8;
   13099           1 :             sal_Int16              radix = 36;
   13100             : 
   13101           1 :             expVal += OString( "-" );
   13102           1 :             expVal += OString( "8" );
   13103           1 :             aStrBuf.append( input, radix );
   13104             : 
   13105           2 :             CPPUNIT_ASSERT_MESSAGE
   13106             :             (
   13107             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
   13108             :                 aStrBuf.getStr()== expVal &&
   13109             :                     aStrBuf.getLength() == expVal.getLength()
   13110           2 :             );
   13111             : 
   13112           1 :         }
   13113             : 
   13114           1 :         void append_060()
   13115             :         {
   13116           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   13117           2 :             OString                expVal( aStrBuf.getStr() );
   13118           1 :             sal_Int64              input = -35;
   13119           1 :             sal_Int16              radix = 36;
   13120             : 
   13121           1 :             expVal += OString( "-" );
   13122           1 :             expVal += OString( "z" );
   13123           1 :             aStrBuf.append( input, radix );
   13124             : 
   13125           2 :             CPPUNIT_ASSERT_MESSAGE
   13126             :             (
   13127             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
   13128             :                 aStrBuf.getStr()== expVal &&
   13129             :                     aStrBuf.getLength() == expVal.getLength()
   13130           2 :             );
   13131             : 
   13132           1 :         }
   13133             : 
   13134           1 :         void append_061()
   13135             :         {
   13136           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13137           2 :             OString                expVal( aStrBuf.getStr() );
   13138           1 :             sal_Int64              input = -0;
   13139           1 :             sal_Int16              radix = 2;
   13140             : 
   13141           1 :             expVal += OString( "0" );
   13142           1 :             aStrBuf.append( input, radix );
   13143             : 
   13144           2 :             CPPUNIT_ASSERT_MESSAGE
   13145             :             (
   13146             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
   13147             :                 aStrBuf.getStr()== expVal &&
   13148             :                     aStrBuf.getLength() == expVal.getLength()
   13149           2 :             );
   13150             : 
   13151           1 :         }
   13152             : 
   13153           1 :         void append_062()
   13154             :         {
   13155           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13156           2 :             OString                expVal( aStrBuf.getStr() );
   13157           1 :             sal_Int64              input = -4;
   13158           1 :             sal_Int16              radix = 2;
   13159             : 
   13160           1 :             expVal += OString( "-" );
   13161           1 :             expVal += OString( "100" );
   13162           1 :             aStrBuf.append( input, radix );
   13163             : 
   13164           2 :             CPPUNIT_ASSERT_MESSAGE
   13165             :             (
   13166             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
   13167             :                 aStrBuf.getStr()== expVal &&
   13168             :                     aStrBuf.getLength() == expVal.getLength()
   13169           2 :             );
   13170             : 
   13171           1 :         }
   13172             : 
   13173           1 :         void append_063()
   13174             :         {
   13175           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13176           2 :             OString                expVal( aStrBuf.getStr() );
   13177           1 :             sal_Int64              input = -8;
   13178           1 :             sal_Int16              radix = 2;
   13179             : 
   13180           1 :             expVal += OString( "-" );
   13181           1 :             expVal += OString( "1000" );
   13182           1 :             aStrBuf.append( input, radix );
   13183             : 
   13184           2 :             CPPUNIT_ASSERT_MESSAGE
   13185             :             (
   13186             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
   13187             :                 aStrBuf.getStr()== expVal &&
   13188             :                     aStrBuf.getLength() == expVal.getLength()
   13189           2 :             );
   13190             : 
   13191           1 :         }
   13192             : 
   13193           1 :         void append_064()
   13194             :         {
   13195           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13196           2 :             OString                expVal( aStrBuf.getStr() );
   13197           1 :             sal_Int64              input = -15;
   13198           1 :             sal_Int16              radix = 2;
   13199             : 
   13200           1 :             expVal += OString( "-" );
   13201           1 :             expVal += OString( "1111" );
   13202           1 :             aStrBuf.append( input, radix );
   13203             : 
   13204           2 :             CPPUNIT_ASSERT_MESSAGE
   13205             :             (
   13206             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
   13207             :                 aStrBuf.getStr()== expVal &&
   13208             :                     aStrBuf.getLength() == expVal.getLength()
   13209           2 :             );
   13210             : 
   13211           1 :         }
   13212             : 
   13213           1 :         void append_065()
   13214             :         {
   13215           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13216           2 :             OString                expVal( aStrBuf.getStr() );
   13217           1 :             sal_Int64              input = -0;
   13218           1 :             sal_Int16              radix = 8;
   13219             : 
   13220           1 :             expVal += OString( "0" );
   13221           1 :             aStrBuf.append( input, radix );
   13222             : 
   13223           2 :             CPPUNIT_ASSERT_MESSAGE
   13224             :             (
   13225             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
   13226             :                 aStrBuf.getStr()== expVal &&
   13227             :                     aStrBuf.getLength() == expVal.getLength()
   13228           2 :             );
   13229             : 
   13230           1 :         }
   13231             : 
   13232           1 :         void append_066()
   13233             :         {
   13234           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13235           2 :             OString                expVal( aStrBuf.getStr() );
   13236           1 :             sal_Int64              input = -4;
   13237           1 :             sal_Int16              radix = 8;
   13238             : 
   13239           1 :             expVal += OString( "-" );
   13240           1 :             expVal += OString( "4" );
   13241           1 :             aStrBuf.append( input, radix );
   13242             : 
   13243           2 :             CPPUNIT_ASSERT_MESSAGE
   13244             :             (
   13245             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
   13246             :                 aStrBuf.getStr()== expVal &&
   13247             :                     aStrBuf.getLength() == expVal.getLength()
   13248           2 :             );
   13249             : 
   13250           1 :         }
   13251             : 
   13252           1 :         void append_067()
   13253             :         {
   13254           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13255           2 :             OString                expVal( aStrBuf.getStr() );
   13256           1 :             sal_Int64              input = -8;
   13257           1 :             sal_Int16              radix = 8;
   13258             : 
   13259           1 :             expVal += OString( "-" );
   13260           1 :             expVal += OString( "10" );
   13261           1 :             aStrBuf.append( input, radix );
   13262             : 
   13263           2 :             CPPUNIT_ASSERT_MESSAGE
   13264             :             (
   13265             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
   13266             :                 aStrBuf.getStr()== expVal &&
   13267             :                     aStrBuf.getLength() == expVal.getLength()
   13268           2 :             );
   13269             : 
   13270           1 :         }
   13271             : 
   13272           1 :         void append_068()
   13273             :         {
   13274           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13275           2 :             OString                expVal( aStrBuf.getStr() );
   13276           1 :             sal_Int64              input = -15;
   13277           1 :             sal_Int16              radix = 8;
   13278             : 
   13279           1 :             expVal += OString( "-" );
   13280           1 :             expVal += OString( "17" );
   13281           1 :             aStrBuf.append( input, radix );
   13282             : 
   13283           2 :             CPPUNIT_ASSERT_MESSAGE
   13284             :             (
   13285             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
   13286             :                 aStrBuf.getStr()== expVal &&
   13287             :                     aStrBuf.getLength() == expVal.getLength()
   13288           2 :             );
   13289             : 
   13290           1 :         }
   13291             : 
   13292           1 :         void append_069()
   13293             :         {
   13294           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13295           2 :             OString                expVal( aStrBuf.getStr() );
   13296           1 :             sal_Int64              input = -0;
   13297           1 :             sal_Int16              radix = 10;
   13298             : 
   13299           1 :             expVal += OString( "0" );
   13300           1 :             aStrBuf.append( input, radix );
   13301             : 
   13302           2 :             CPPUNIT_ASSERT_MESSAGE
   13303             :             (
   13304             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
   13305             :                 aStrBuf.getStr()== expVal &&
   13306             :                     aStrBuf.getLength() == expVal.getLength()
   13307           2 :             );
   13308             : 
   13309           1 :         }
   13310             : 
   13311           1 :         void append_070()
   13312             :         {
   13313           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13314           2 :             OString                expVal( aStrBuf.getStr() );
   13315           1 :             sal_Int64              input = -4;
   13316           1 :             sal_Int16              radix = 10;
   13317             : 
   13318           1 :             expVal += OString( "-" );
   13319           1 :             expVal += OString( "4" );
   13320           1 :             aStrBuf.append( input, radix );
   13321             : 
   13322           2 :             CPPUNIT_ASSERT_MESSAGE
   13323             :             (
   13324             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
   13325             :                 aStrBuf.getStr()== expVal &&
   13326             :                     aStrBuf.getLength() == expVal.getLength()
   13327           2 :             );
   13328             : 
   13329           1 :         }
   13330             : 
   13331           1 :         void append_071()
   13332             :         {
   13333           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13334           2 :             OString                expVal( aStrBuf.getStr() );
   13335           1 :             sal_Int64              input = -8;
   13336           1 :             sal_Int16              radix = 10;
   13337             : 
   13338           1 :             expVal += OString( "-" );
   13339           1 :             expVal += OString( "8" );
   13340           1 :             aStrBuf.append( input, radix );
   13341             : 
   13342           2 :             CPPUNIT_ASSERT_MESSAGE
   13343             :             (
   13344             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
   13345             :                 aStrBuf.getStr()== expVal &&
   13346             :                     aStrBuf.getLength() == expVal.getLength()
   13347           2 :             );
   13348             : 
   13349           1 :         }
   13350             : 
   13351           1 :         void append_072()
   13352             :         {
   13353           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13354           2 :             OString                expVal( aStrBuf.getStr() );
   13355           1 :             sal_Int64              input = -15;
   13356           1 :             sal_Int16              radix = 10;
   13357             : 
   13358           1 :             expVal += OString( "-" );
   13359           1 :             expVal += OString( "15" );
   13360           1 :             aStrBuf.append( input, radix );
   13361             : 
   13362           2 :             CPPUNIT_ASSERT_MESSAGE
   13363             :             (
   13364             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
   13365             :                 aStrBuf.getStr()== expVal &&
   13366             :                     aStrBuf.getLength() == expVal.getLength()
   13367           2 :             );
   13368             : 
   13369           1 :         }
   13370             : 
   13371           1 :         void append_073()
   13372             :         {
   13373           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13374           2 :             OString                expVal( aStrBuf.getStr() );
   13375           1 :             sal_Int64              input = -0;
   13376           1 :             sal_Int16              radix = 16;
   13377             : 
   13378           1 :             expVal += OString( "0" );
   13379           1 :             aStrBuf.append( input, radix );
   13380             : 
   13381           2 :             CPPUNIT_ASSERT_MESSAGE
   13382             :             (
   13383             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
   13384             :                 aStrBuf.getStr()== expVal &&
   13385             :                     aStrBuf.getLength() == expVal.getLength()
   13386           2 :             );
   13387             : 
   13388           1 :         }
   13389             : 
   13390           1 :         void append_074()
   13391             :         {
   13392           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13393           2 :             OString                expVal( aStrBuf.getStr() );
   13394           1 :             sal_Int64              input = -4;
   13395           1 :             sal_Int16              radix = 16;
   13396             : 
   13397           1 :             expVal += OString( "-" );
   13398           1 :             expVal += OString( "4" );
   13399           1 :             aStrBuf.append( input, radix );
   13400             : 
   13401           2 :             CPPUNIT_ASSERT_MESSAGE
   13402             :             (
   13403             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
   13404             :                 aStrBuf.getStr()== expVal &&
   13405             :                     aStrBuf.getLength() == expVal.getLength()
   13406           2 :             );
   13407             : 
   13408           1 :         }
   13409             : 
   13410           1 :         void append_075()
   13411             :         {
   13412           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13413           2 :             OString                expVal( aStrBuf.getStr() );
   13414           1 :             sal_Int64              input = -8;
   13415           1 :             sal_Int16              radix = 16;
   13416             : 
   13417           1 :             expVal += OString( "-" );
   13418           1 :             expVal += OString( "8" );
   13419           1 :             aStrBuf.append( input, radix );
   13420             : 
   13421           2 :             CPPUNIT_ASSERT_MESSAGE
   13422             :             (
   13423             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
   13424             :                 aStrBuf.getStr()== expVal &&
   13425             :                     aStrBuf.getLength() == expVal.getLength()
   13426           2 :             );
   13427             : 
   13428           1 :         }
   13429             : 
   13430           1 :         void append_076()
   13431             :         {
   13432           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13433           2 :             OString                expVal( aStrBuf.getStr() );
   13434           1 :             sal_Int64              input = -15;
   13435           1 :             sal_Int16              radix = 16;
   13436             : 
   13437           1 :             expVal += OString( "-" );
   13438           1 :             expVal += OString( "f" );
   13439           1 :             aStrBuf.append( input, radix );
   13440             : 
   13441           2 :             CPPUNIT_ASSERT_MESSAGE
   13442             :             (
   13443             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
   13444             :                 aStrBuf.getStr()== expVal &&
   13445             :                     aStrBuf.getLength() == expVal.getLength()
   13446           2 :             );
   13447             : 
   13448           1 :         }
   13449             : 
   13450           1 :         void append_077()
   13451             :         {
   13452           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13453           2 :             OString                expVal( aStrBuf.getStr() );
   13454           1 :             sal_Int64              input = -0;
   13455           1 :             sal_Int16              radix = 36;
   13456             : 
   13457           1 :             expVal += OString( "0" );
   13458           1 :             aStrBuf.append( input, radix );
   13459             : 
   13460           2 :             CPPUNIT_ASSERT_MESSAGE
   13461             :             (
   13462             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
   13463             :                 aStrBuf.getStr()== expVal &&
   13464             :                     aStrBuf.getLength() == expVal.getLength()
   13465           2 :             );
   13466             : 
   13467           1 :         }
   13468             : 
   13469           1 :         void append_078()
   13470             :         {
   13471           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13472           2 :             OString                expVal( aStrBuf.getStr() );
   13473           1 :             sal_Int64              input = -4;
   13474           1 :             sal_Int16              radix = 36;
   13475             : 
   13476           1 :             expVal += OString( "-" );
   13477           1 :             expVal += OString( "4" );
   13478           1 :             aStrBuf.append( input, radix );
   13479             : 
   13480           2 :             CPPUNIT_ASSERT_MESSAGE
   13481             :             (
   13482             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
   13483             :                 aStrBuf.getStr()== expVal &&
   13484             :                     aStrBuf.getLength() == expVal.getLength()
   13485           2 :             );
   13486             : 
   13487           1 :         }
   13488             : 
   13489           1 :         void append_079()
   13490             :         {
   13491           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13492           2 :             OString                expVal( aStrBuf.getStr() );
   13493           1 :             sal_Int64              input = -8;
   13494           1 :             sal_Int16              radix = 36;
   13495             : 
   13496           1 :             expVal += OString( "-" );
   13497           1 :             expVal += OString( "8" );
   13498           1 :             aStrBuf.append( input, radix );
   13499             : 
   13500           2 :             CPPUNIT_ASSERT_MESSAGE
   13501             :             (
   13502             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
   13503             :                 aStrBuf.getStr()== expVal &&
   13504             :                     aStrBuf.getLength() == expVal.getLength()
   13505           2 :             );
   13506             : 
   13507           1 :         }
   13508             : 
   13509           1 :         void append_080()
   13510             :         {
   13511           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13512           2 :             OString                expVal( aStrBuf.getStr() );
   13513           1 :             sal_Int64              input = -35;
   13514           1 :             sal_Int16              radix = 36;
   13515             : 
   13516           1 :             expVal += OString( "-" );
   13517           1 :             expVal += OString( "z" );
   13518           1 :             aStrBuf.append( input, radix );
   13519             : 
   13520           2 :             CPPUNIT_ASSERT_MESSAGE
   13521             :             (
   13522             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
   13523             :                 aStrBuf.getStr()== expVal &&
   13524             :                     aStrBuf.getLength() == expVal.getLength()
   13525           2 :             );
   13526             : 
   13527           1 :         }
   13528             : 
   13529           1 :         void append_081()
   13530             :         {
   13531           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13532           2 :             OString                expVal( aStrBuf.getStr() );
   13533           1 :             sal_Int64              input = -0;
   13534           1 :             sal_Int16              radix = 2;
   13535             : 
   13536           1 :             expVal += OString( "0" );
   13537           1 :             aStrBuf.append( input, radix );
   13538             : 
   13539           2 :             CPPUNIT_ASSERT_MESSAGE
   13540             :             (
   13541             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
   13542             :                 aStrBuf.getStr()== expVal &&
   13543             :                     aStrBuf.getLength() == expVal.getLength()
   13544           2 :             );
   13545             : 
   13546           1 :         }
   13547             : 
   13548           1 :         void append_082()
   13549             :         {
   13550           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13551           2 :             OString                expVal( aStrBuf.getStr() );
   13552           1 :             sal_Int64              input = -4;
   13553           1 :             sal_Int16              radix = 2;
   13554             : 
   13555           1 :             expVal += OString( "-" );
   13556           1 :             expVal += OString( "100" );
   13557           1 :             aStrBuf.append( input, radix );
   13558             : 
   13559           2 :             CPPUNIT_ASSERT_MESSAGE
   13560             :             (
   13561             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
   13562             :                 aStrBuf.getStr()== expVal &&
   13563             :                     aStrBuf.getLength() == expVal.getLength()
   13564           2 :             );
   13565             : 
   13566           1 :         }
   13567             : 
   13568           1 :         void append_083()
   13569             :         {
   13570           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13571           2 :             OString                expVal( aStrBuf.getStr() );
   13572           1 :             sal_Int64              input = -8;
   13573           1 :             sal_Int16              radix = 2;
   13574             : 
   13575           1 :             expVal += OString( "-" );
   13576           1 :             expVal += OString( "1000" );
   13577           1 :             aStrBuf.append( input, radix );
   13578             : 
   13579           2 :             CPPUNIT_ASSERT_MESSAGE
   13580             :             (
   13581             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
   13582             :                 aStrBuf.getStr()== expVal &&
   13583             :                     aStrBuf.getLength() == expVal.getLength()
   13584           2 :             );
   13585             : 
   13586           1 :         }
   13587             : 
   13588           1 :         void append_084()
   13589             :         {
   13590           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13591           2 :             OString                expVal( aStrBuf.getStr() );
   13592           1 :             sal_Int64              input = -15;
   13593           1 :             sal_Int16              radix = 2;
   13594             : 
   13595           1 :             expVal += OString( "-" );
   13596           1 :             expVal += OString( "1111" );
   13597           1 :             aStrBuf.append( input, radix );
   13598             : 
   13599           2 :             CPPUNIT_ASSERT_MESSAGE
   13600             :             (
   13601             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
   13602             :                 aStrBuf.getStr()== expVal &&
   13603             :                     aStrBuf.getLength() == expVal.getLength()
   13604           2 :             );
   13605             : 
   13606           1 :         }
   13607             : 
   13608           1 :         void append_085()
   13609             :         {
   13610           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13611           2 :             OString                expVal( aStrBuf.getStr() );
   13612           1 :             sal_Int64              input = -0;
   13613           1 :             sal_Int16              radix = 8;
   13614             : 
   13615           1 :             expVal += OString( "0" );
   13616           1 :             aStrBuf.append( input, radix );
   13617             : 
   13618           2 :             CPPUNIT_ASSERT_MESSAGE
   13619             :             (
   13620             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
   13621             :                 aStrBuf.getStr()== expVal &&
   13622             :                     aStrBuf.getLength() == expVal.getLength()
   13623           2 :             );
   13624             : 
   13625           1 :         }
   13626             : 
   13627           1 :         void append_086()
   13628             :         {
   13629           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13630           2 :             OString                expVal( aStrBuf.getStr() );
   13631           1 :             sal_Int64              input = -4;
   13632           1 :             sal_Int16              radix = 8;
   13633             : 
   13634           1 :             expVal += OString( "-" );
   13635           1 :             expVal += OString( "4" );
   13636           1 :             aStrBuf.append( input, radix );
   13637             : 
   13638           2 :             CPPUNIT_ASSERT_MESSAGE
   13639             :             (
   13640             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
   13641             :                 aStrBuf.getStr()== expVal &&
   13642             :                     aStrBuf.getLength() == expVal.getLength()
   13643           2 :             );
   13644             : 
   13645           1 :         }
   13646             : 
   13647           1 :         void append_087()
   13648             :         {
   13649           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13650           2 :             OString                expVal( aStrBuf.getStr() );
   13651           1 :             sal_Int64              input = -8;
   13652           1 :             sal_Int16              radix = 8;
   13653             : 
   13654           1 :             expVal += OString( "-" );
   13655           1 :             expVal += OString( "10" );
   13656           1 :             aStrBuf.append( input, radix );
   13657             : 
   13658           2 :             CPPUNIT_ASSERT_MESSAGE
   13659             :             (
   13660             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
   13661             :                 aStrBuf.getStr()== expVal &&
   13662             :                     aStrBuf.getLength() == expVal.getLength()
   13663           2 :             );
   13664             : 
   13665           1 :         }
   13666             : 
   13667           1 :         void append_088()
   13668             :         {
   13669           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13670           2 :             OString                expVal( aStrBuf.getStr() );
   13671           1 :             sal_Int64              input = -15;
   13672           1 :             sal_Int16              radix = 8;
   13673             : 
   13674           1 :             expVal += OString( "-" );
   13675           1 :             expVal += OString( "17" );
   13676           1 :             aStrBuf.append( input, radix );
   13677             : 
   13678           2 :             CPPUNIT_ASSERT_MESSAGE
   13679             :             (
   13680             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
   13681             :                 aStrBuf.getStr()== expVal &&
   13682             :                     aStrBuf.getLength() == expVal.getLength()
   13683           2 :             );
   13684             : 
   13685           1 :         }
   13686             : 
   13687           1 :         void append_089()
   13688             :         {
   13689           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13690           2 :             OString                expVal( aStrBuf.getStr() );
   13691           1 :             sal_Int64              input = -0;
   13692           1 :             sal_Int16              radix = 10;
   13693             : 
   13694           1 :             expVal += OString( "0" );
   13695           1 :             aStrBuf.append( input, radix );
   13696             : 
   13697           2 :             CPPUNIT_ASSERT_MESSAGE
   13698             :             (
   13699             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
   13700             :                 aStrBuf.getStr()== expVal &&
   13701             :                     aStrBuf.getLength() == expVal.getLength()
   13702           2 :             );
   13703             : 
   13704           1 :         }
   13705             : 
   13706           1 :         void append_090()
   13707             :         {
   13708           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13709           2 :             OString                expVal( aStrBuf.getStr() );
   13710           1 :             sal_Int64              input = -4;
   13711           1 :             sal_Int16              radix = 10;
   13712             : 
   13713           1 :             expVal += OString( "-" );
   13714           1 :             expVal += OString( "4" );
   13715           1 :             aStrBuf.append( input, radix );
   13716             : 
   13717           2 :             CPPUNIT_ASSERT_MESSAGE
   13718             :             (
   13719             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
   13720             :                 aStrBuf.getStr()== expVal &&
   13721             :                     aStrBuf.getLength() == expVal.getLength()
   13722           2 :             );
   13723             : 
   13724           1 :         }
   13725             : 
   13726           1 :         void append_091()
   13727             :         {
   13728           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13729           2 :             OString                expVal( aStrBuf.getStr() );
   13730           1 :             sal_Int64              input = -8;
   13731           1 :             sal_Int16              radix = 10;
   13732             : 
   13733           1 :             expVal += OString( "-" );
   13734           1 :             expVal += OString( "8" );
   13735           1 :             aStrBuf.append( input, radix );
   13736             : 
   13737           2 :             CPPUNIT_ASSERT_MESSAGE
   13738             :             (
   13739             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
   13740             :                 aStrBuf.getStr()== expVal &&
   13741             :                     aStrBuf.getLength() == expVal.getLength()
   13742           2 :             );
   13743             : 
   13744           1 :         }
   13745             : 
   13746           1 :         void append_092()
   13747             :         {
   13748           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13749           2 :             OString                expVal( aStrBuf.getStr() );
   13750           1 :             sal_Int64              input = -15;
   13751           1 :             sal_Int16              radix = 10;
   13752             : 
   13753           1 :             expVal += OString( "-" );
   13754           1 :             expVal += OString( "15" );
   13755           1 :             aStrBuf.append( input, radix );
   13756             : 
   13757           2 :             CPPUNIT_ASSERT_MESSAGE
   13758             :             (
   13759             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
   13760             :                 aStrBuf.getStr()== expVal &&
   13761             :                     aStrBuf.getLength() == expVal.getLength()
   13762           2 :             );
   13763             : 
   13764           1 :         }
   13765             : 
   13766           1 :         void append_093()
   13767             :         {
   13768           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13769           2 :             OString                expVal( aStrBuf.getStr() );
   13770           1 :             sal_Int64              input = -0;
   13771           1 :             sal_Int16              radix = 16;
   13772             : 
   13773           1 :             expVal += OString( "0" );
   13774           1 :             aStrBuf.append( input, radix );
   13775             : 
   13776           2 :             CPPUNIT_ASSERT_MESSAGE
   13777             :             (
   13778             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
   13779             :                 aStrBuf.getStr()== expVal &&
   13780             :                     aStrBuf.getLength() == expVal.getLength()
   13781           2 :             );
   13782             : 
   13783           1 :         }
   13784             : 
   13785           1 :         void append_094()
   13786             :         {
   13787           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13788           2 :             OString                expVal( aStrBuf.getStr() );
   13789           1 :             sal_Int64              input = -4;
   13790           1 :             sal_Int16              radix = 16;
   13791             : 
   13792           1 :             expVal += OString( "-" );
   13793           1 :             expVal += OString( "4" );
   13794           1 :             aStrBuf.append( input, radix );
   13795             : 
   13796           2 :             CPPUNIT_ASSERT_MESSAGE
   13797             :             (
   13798             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
   13799             :                 aStrBuf.getStr()== expVal &&
   13800             :                     aStrBuf.getLength() == expVal.getLength()
   13801           2 :             );
   13802             : 
   13803           1 :         }
   13804             : 
   13805           1 :         void append_095()
   13806             :         {
   13807           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13808           2 :             OString                expVal( aStrBuf.getStr() );
   13809           1 :             sal_Int64              input = -8;
   13810           1 :             sal_Int16              radix = 16;
   13811             : 
   13812           1 :             expVal += OString( "-" );
   13813           1 :             expVal += OString( "8" );
   13814           1 :             aStrBuf.append( input, radix );
   13815             : 
   13816           2 :             CPPUNIT_ASSERT_MESSAGE
   13817             :             (
   13818             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
   13819             :                 aStrBuf.getStr()== expVal &&
   13820             :                     aStrBuf.getLength() == expVal.getLength()
   13821           2 :             );
   13822             : 
   13823           1 :         }
   13824             : 
   13825           1 :         void append_096()
   13826             :         {
   13827           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13828           2 :             OString                expVal( aStrBuf.getStr() );
   13829           1 :             sal_Int64              input = -15;
   13830           1 :             sal_Int16              radix = 16;
   13831             : 
   13832           1 :             expVal += OString( "-" );
   13833           1 :             expVal += OString( "f" );
   13834           1 :             aStrBuf.append( input, radix );
   13835             : 
   13836           2 :             CPPUNIT_ASSERT_MESSAGE
   13837             :             (
   13838             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
   13839             :                 aStrBuf.getStr()== expVal &&
   13840             :                     aStrBuf.getLength() == expVal.getLength()
   13841           2 :             );
   13842             : 
   13843           1 :         }
   13844             : 
   13845           1 :         void append_097()
   13846             :         {
   13847           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13848           2 :             OString                expVal( aStrBuf.getStr() );
   13849           1 :             sal_Int64              input = -0;
   13850           1 :             sal_Int16              radix = 36;
   13851             : 
   13852           1 :             expVal += OString( "0" );
   13853           1 :             aStrBuf.append( input, radix );
   13854             : 
   13855           2 :             CPPUNIT_ASSERT_MESSAGE
   13856             :             (
   13857             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
   13858             :                 aStrBuf.getStr()== expVal &&
   13859             :                     aStrBuf.getLength() == expVal.getLength()
   13860           2 :             );
   13861             : 
   13862           1 :         }
   13863             : 
   13864           1 :         void append_098()
   13865             :         {
   13866           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13867           2 :             OString                expVal( aStrBuf.getStr() );
   13868           1 :             sal_Int64              input = -4;
   13869           1 :             sal_Int16              radix = 36;
   13870             : 
   13871           1 :             expVal += OString( "-" );
   13872           1 :             expVal += OString( "4" );
   13873           1 :             aStrBuf.append( input, radix );
   13874             : 
   13875           2 :             CPPUNIT_ASSERT_MESSAGE
   13876             :             (
   13877             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
   13878             :                 aStrBuf.getStr()== expVal &&
   13879             :                     aStrBuf.getLength() == expVal.getLength()
   13880           2 :             );
   13881             : 
   13882           1 :         }
   13883             : 
   13884           1 :         void append_099()
   13885             :         {
   13886           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13887           2 :             OString                expVal( aStrBuf.getStr() );
   13888           1 :             sal_Int64              input = -8;
   13889           1 :             sal_Int16              radix = 36;
   13890             : 
   13891           1 :             expVal += OString( "-" );
   13892           1 :             expVal += OString( "8" );
   13893           1 :             aStrBuf.append( input, radix );
   13894             : 
   13895           2 :             CPPUNIT_ASSERT_MESSAGE
   13896             :             (
   13897             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
   13898             :                 aStrBuf.getStr()== expVal &&
   13899             :                     aStrBuf.getLength() == expVal.getLength()
   13900           2 :             );
   13901             : 
   13902           1 :         }
   13903             : 
   13904           1 :         void append_100()
   13905             :         {
   13906           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13907           2 :             OString                expVal( aStrBuf.getStr() );
   13908           1 :             sal_Int64              input = -35;
   13909           1 :             sal_Int16              radix = 36;
   13910             : 
   13911           1 :             expVal += OString( "-" );
   13912           1 :             expVal += OString( "z" );
   13913           1 :             aStrBuf.append( input, radix );
   13914             : 
   13915           2 :             CPPUNIT_ASSERT_MESSAGE
   13916             :             (
   13917             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
   13918             :                 aStrBuf.getStr()== expVal &&
   13919             :                     aStrBuf.getLength() == expVal.getLength()
   13920           2 :             );
   13921             : 
   13922           1 :         }
   13923             : 
   13924           2 :         CPPUNIT_TEST_SUITE( append_007_Int64_Negative );
   13925           1 :         CPPUNIT_TEST( append_001 ); CPPUNIT_TEST( append_002 );
   13926           1 :         CPPUNIT_TEST( append_003 ); CPPUNIT_TEST( append_004 );
   13927           1 :         CPPUNIT_TEST( append_005 ); CPPUNIT_TEST( append_006 );
   13928           1 :         CPPUNIT_TEST( append_007 ); CPPUNIT_TEST( append_008 );
   13929           1 :         CPPUNIT_TEST( append_009 ); CPPUNIT_TEST( append_010 );
   13930           1 :         CPPUNIT_TEST( append_011 ); CPPUNIT_TEST( append_012 );
   13931           1 :         CPPUNIT_TEST( append_013 ); CPPUNIT_TEST( append_014 );
   13932           1 :         CPPUNIT_TEST( append_015 ); CPPUNIT_TEST( append_016 );
   13933           1 :         CPPUNIT_TEST( append_017 ); CPPUNIT_TEST( append_018 );
   13934           1 :         CPPUNIT_TEST( append_019 ); CPPUNIT_TEST( append_020 );
   13935           1 :         CPPUNIT_TEST( append_021 ); CPPUNIT_TEST( append_022 );
   13936           1 :         CPPUNIT_TEST( append_023 ); CPPUNIT_TEST( append_024 );
   13937           1 :         CPPUNIT_TEST( append_025 ); CPPUNIT_TEST( append_026 );
   13938           1 :         CPPUNIT_TEST( append_027 ); CPPUNIT_TEST( append_028 );
   13939           1 :         CPPUNIT_TEST( append_029 ); CPPUNIT_TEST( append_030 );
   13940           1 :         CPPUNIT_TEST( append_031 ); CPPUNIT_TEST( append_032 );
   13941           1 :         CPPUNIT_TEST( append_033 ); CPPUNIT_TEST( append_034 );
   13942           1 :         CPPUNIT_TEST( append_035 ); CPPUNIT_TEST( append_036 );
   13943           1 :         CPPUNIT_TEST( append_037 ); CPPUNIT_TEST( append_038 );
   13944           1 :         CPPUNIT_TEST( append_039 ); CPPUNIT_TEST( append_040 );
   13945           1 :         CPPUNIT_TEST( append_041 ); CPPUNIT_TEST( append_042 );
   13946           1 :         CPPUNIT_TEST( append_043 ); CPPUNIT_TEST( append_044 );
   13947           1 :         CPPUNIT_TEST( append_045 ); CPPUNIT_TEST( append_046 );
   13948           1 :         CPPUNIT_TEST( append_047 ); CPPUNIT_TEST( append_048 );
   13949           1 :         CPPUNIT_TEST( append_049 ); CPPUNIT_TEST( append_050 );
   13950           1 :         CPPUNIT_TEST( append_051 ); CPPUNIT_TEST( append_052 );
   13951           1 :         CPPUNIT_TEST( append_053 ); CPPUNIT_TEST( append_054 );
   13952           1 :         CPPUNIT_TEST( append_055 ); CPPUNIT_TEST( append_056 );
   13953           1 :         CPPUNIT_TEST( append_057 ); CPPUNIT_TEST( append_058 );
   13954           1 :         CPPUNIT_TEST( append_059 ); CPPUNIT_TEST( append_060 );
   13955           1 :         CPPUNIT_TEST( append_061 ); CPPUNIT_TEST( append_062 );
   13956           1 :         CPPUNIT_TEST( append_063 ); CPPUNIT_TEST( append_064 );
   13957           1 :         CPPUNIT_TEST( append_065 ); CPPUNIT_TEST( append_066 );
   13958           1 :         CPPUNIT_TEST( append_067 ); CPPUNIT_TEST( append_068 );
   13959           1 :         CPPUNIT_TEST( append_069 ); CPPUNIT_TEST( append_070 );
   13960           1 :         CPPUNIT_TEST( append_071 ); CPPUNIT_TEST( append_072 );
   13961           1 :         CPPUNIT_TEST( append_073 ); CPPUNIT_TEST( append_074 );
   13962           1 :         CPPUNIT_TEST( append_075 ); CPPUNIT_TEST( append_076 );
   13963           1 :         CPPUNIT_TEST( append_077 ); CPPUNIT_TEST( append_078 );
   13964           1 :         CPPUNIT_TEST( append_079 ); CPPUNIT_TEST( append_080 );
   13965           1 :         CPPUNIT_TEST( append_081 ); CPPUNIT_TEST( append_082 );
   13966           1 :         CPPUNIT_TEST( append_083 ); CPPUNIT_TEST( append_084 );
   13967           1 :         CPPUNIT_TEST( append_085 ); CPPUNIT_TEST( append_086 );
   13968           1 :         CPPUNIT_TEST( append_087 ); CPPUNIT_TEST( append_088 );
   13969           1 :         CPPUNIT_TEST( append_089 ); CPPUNIT_TEST( append_090 );
   13970           1 :         CPPUNIT_TEST( append_091 ); CPPUNIT_TEST( append_092 );
   13971           1 :         CPPUNIT_TEST( append_093 ); CPPUNIT_TEST( append_094 );
   13972           1 :         CPPUNIT_TEST( append_095 ); CPPUNIT_TEST( append_096 );
   13973           1 :         CPPUNIT_TEST( append_097 ); CPPUNIT_TEST( append_098 );
   13974           1 :         CPPUNIT_TEST( append_099 ); CPPUNIT_TEST( append_100 );
   13975           2 :         CPPUNIT_TEST_SUITE_END();
   13976             :     };
   13977             : 
   13978             : // testing the method append( sal_Int64 i, sal_Int16 radix ) where radix = -5
   13979             : 
   13980          15 :     class  append_007_Int64_WrongRadix : public CppUnit::TestFixture
   13981             :     {
   13982             :         OString* arrOUS[5];
   13983             :         sal_Int64 intVal;
   13984             : 
   13985             :     public:
   13986           5 :         void setUp() SAL_OVERRIDE
   13987             :         {
   13988           5 :             arrOUS[0] = new OString( kTestStr7 );
   13989           5 :             arrOUS[1] = new OString(  );
   13990           5 :             arrOUS[2] = new OString( kTestStr25 );
   13991           5 :             arrOUS[3] = new OString( "" );
   13992           5 :             arrOUS[4] = new OString( kTestStr28 );
   13993           5 :             intVal = 11;
   13994             : 
   13995           5 :         }
   13996             : 
   13997           5 :         void tearDown() SAL_OVERRIDE
   13998             :         {
   13999           5 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
   14000           5 :             delete arrOUS[3]; delete arrOUS[4];
   14001           5 :         }
   14002             : 
   14003           1 :         void append_001()
   14004             :         {
   14005           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   14006           2 :             OString                expVal( kTestStr59 );
   14007             : 
   14008           1 :             aStrBuf.append( intVal, -5 );
   14009             : 
   14010           2 :             CPPUNIT_ASSERT_MESSAGE
   14011             :             (
   14012             :                 "Appends the WrongRadix to the string buffer arrOUS[0]",
   14013             :                 (aStrBuf.toString() == expVal &&
   14014             :                  aStrBuf.getLength() == expVal.getLength())
   14015           2 :             );
   14016           1 :         }
   14017             : 
   14018           1 :         void append_002()
   14019             :         {
   14020           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   14021           2 :             OString                expVal( kTestStr60 );
   14022             : 
   14023           1 :             aStrBuf.append( intVal, -5 );
   14024             : 
   14025           2 :             CPPUNIT_ASSERT_MESSAGE
   14026             :             (
   14027             :                 "Appends the WrongRadix to the string buffer arrOUS[1]",
   14028             :                 (aStrBuf.toString() == expVal &&
   14029             :                  aStrBuf.getLength() == expVal.getLength())
   14030           2 :             );
   14031           1 :         }
   14032             : 
   14033           1 :         void append_003()
   14034             :         {
   14035           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   14036           2 :             OString                expVal( kTestStr60 );
   14037             : 
   14038           1 :             aStrBuf.append( intVal, -5 );
   14039             : 
   14040           2 :             CPPUNIT_ASSERT_MESSAGE
   14041             :             (
   14042             :                 "Appends the WrongRadix to the string buffer arrOUS[2]",
   14043             :                 (aStrBuf.toString() == expVal &&
   14044             :                  aStrBuf.getLength() == expVal.getLength())
   14045           2 :             );
   14046           1 :         }
   14047             : 
   14048           1 :         void append_004()
   14049             :         {
   14050           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   14051           2 :             OString                expVal( kTestStr60 );
   14052             : 
   14053           1 :             aStrBuf.append( intVal, -5 );
   14054             : 
   14055           2 :             CPPUNIT_ASSERT_MESSAGE
   14056             :             (
   14057             :                 "Appends the WrongRadix to the string buffer arrOUS[3]",
   14058             :                 (aStrBuf.toString() == expVal &&
   14059             :                  aStrBuf.getLength() == expVal.getLength())
   14060           2 :             );
   14061           1 :         }
   14062             : 
   14063           1 :         void append_005()
   14064             :         {
   14065           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   14066           2 :             OString                expVal( kTestStr61 );
   14067             : 
   14068           1 :             aStrBuf.append( intVal, -5 );
   14069             : 
   14070           2 :             CPPUNIT_ASSERT_MESSAGE
   14071             :             (
   14072             :                 "Appends the WrongRadix to the string buffer arrOUS[4]",
   14073             :                 (aStrBuf.toString() == expVal &&
   14074             :                  aStrBuf.getLength() == expVal.getLength())
   14075           2 :             );
   14076           1 :         }
   14077             : #ifdef WITH_CORE
   14078             :         void append_006()
   14079             :         {
   14080             :             ::rtl::OStringBuffer   aStrBuf( kSInt64Max );
   14081             :             OString                expVal( kTestStr60 );
   14082             : 
   14083             :             aStrBuf.append( intVal, -5 );
   14084             : 
   14085             :             CPPUNIT_ASSERT_MESSAGE
   14086             :             (
   14087             :                 "Appends the WrongRadix to the string buffer(with INT_MAX)",
   14088             :                 (aStrBuf.toString() == expVal &&
   14089             :                  aStrBuf.getLength() == expVal.getLength())
   14090             :             );
   14091             :         }
   14092             : #endif
   14093             : 
   14094           2 :         CPPUNIT_TEST_SUITE( append_007_Int64_WrongRadix );
   14095           1 :         CPPUNIT_TEST( append_001 );
   14096           1 :         CPPUNIT_TEST( append_002 );
   14097           1 :         CPPUNIT_TEST( append_003 );
   14098           1 :         CPPUNIT_TEST( append_004 );
   14099           1 :         CPPUNIT_TEST( append_005 );
   14100             : #ifdef WITH_CORE
   14101             :         CPPUNIT_TEST( append_006 );
   14102             : #endif
   14103           2 :         CPPUNIT_TEST_SUITE_END();
   14104             :     };
   14105             : 
   14106          75 :     class  append_007_Int64_defaultParam : public CppUnit::TestFixture
   14107             :     {
   14108             :         OString* arrOUS[5];
   14109             : 
   14110             :     public:
   14111          25 :         void setUp() SAL_OVERRIDE
   14112             :         {
   14113          25 :             arrOUS[0] = new OString( kTestStr7 );
   14114          25 :             arrOUS[1] = new OString(  );
   14115          25 :             arrOUS[2] = new OString( kTestStr25 );
   14116          25 :             arrOUS[3] = new OString( "" );
   14117          25 :             arrOUS[4] = new OString( kTestStr28 );
   14118             : 
   14119          25 :         }
   14120             : 
   14121          25 :         void tearDown() SAL_OVERRIDE
   14122             :         {
   14123          25 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
   14124          25 :             delete arrOUS[3]; delete arrOUS[4];
   14125          25 :         }
   14126             : 
   14127           1 :         void append_001()
   14128             :         {
   14129           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   14130           2 :             OString                expVal( kTestStr59 );
   14131           1 :             sal_Int64              input = 11;
   14132             : 
   14133           1 :             aStrBuf.append( input );
   14134             : 
   14135           2 :             CPPUNIT_ASSERT_MESSAGE
   14136             :             (
   14137             :                 "input Int64 11 and return OStringBuffer[0]+11",
   14138             :                 (aStrBuf.toString() == expVal &&
   14139             :                  aStrBuf.getLength() == expVal.getLength())
   14140           2 :             );
   14141             : 
   14142           1 :         }
   14143             : 
   14144           1 :         void append_002()
   14145             :         {
   14146           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   14147           2 :             OString                expVal( kTestStr62 );
   14148           1 :             sal_Int64              input = 0;
   14149             : 
   14150           1 :             aStrBuf.append( input );
   14151             : 
   14152           2 :             CPPUNIT_ASSERT_MESSAGE
   14153             :             (
   14154             :                 "input Int64 0 and return OStringBuffer[0]+0",
   14155             :                 (aStrBuf.toString() == expVal &&
   14156             :                  aStrBuf.getLength() == expVal.getLength())
   14157           2 :             );
   14158             : 
   14159           1 :         }
   14160             : 
   14161           1 :         void append_003()
   14162             :         {
   14163           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   14164           2 :             OString                expVal( kTestStr63 );
   14165           1 :             sal_Int64              input = -11;
   14166             : 
   14167           1 :             aStrBuf.append( input );
   14168             : 
   14169           2 :             CPPUNIT_ASSERT_MESSAGE
   14170             :             (
   14171             :                 "input Int64 -11 and return OStringBuffer[0]+(-11)",
   14172             :                 (aStrBuf.toString() == expVal &&
   14173             :                  aStrBuf.getLength() == expVal.getLength())
   14174           2 :             );
   14175             : 
   14176           1 :         }
   14177             : 
   14178           1 :         void append_004()
   14179             :         {
   14180           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   14181           2 :             OString                expVal( kTestStr116 );
   14182           1 :             sal_Int64              input = SAL_CONST_INT64(9223372036854775807);
   14183           1 :             aStrBuf.append( input );
   14184             : 
   14185           2 :             CPPUNIT_ASSERT_MESSAGE
   14186             :             (
   14187             :                 "input Int64 9223372036854775807 and return OStringBuffer[0]+9223372036854775807",
   14188             :                 (aStrBuf.toString() == expVal &&
   14189             :                  aStrBuf.getLength() == expVal.getLength())
   14190           2 :             );
   14191             : 
   14192           1 :         }
   14193             : 
   14194           1 :         void append_005()
   14195             :         {
   14196           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   14197           2 :             OString                expVal( kTestStr117 );
   14198           1 :             sal_Int64              input = SAL_MIN_INT64/*-9223372036854775808*/; // LLA: this is not the same :-( kNonSInt64Max;
   14199             : 
   14200           1 :             aStrBuf.append( input );
   14201             : 
   14202           1 :             bool bRes = expVal.equals( aStrBuf.getStr() );
   14203           2 :             CPPUNIT_ASSERT_MESSAGE
   14204             :             (
   14205             :                 "input Int64 -9223372036854775808 and return OStringBuffer[0]+(-9223372036854775808)",
   14206             :                 bRes && aStrBuf.getLength() == expVal.getLength()
   14207           2 :             );
   14208             : 
   14209           1 :         }
   14210             : 
   14211           1 :         void append_006()
   14212             :         {
   14213           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   14214           2 :             OString                expVal( kTestStr60 );
   14215           1 :             sal_Int64              input = 11;
   14216             : 
   14217           1 :             aStrBuf.append( input );
   14218             : 
   14219           2 :             CPPUNIT_ASSERT_MESSAGE
   14220             :             (
   14221             :                 "input Int64 11 and return OStringBuffer[1]+11",
   14222             :                 (aStrBuf.toString() == expVal &&
   14223             :                  aStrBuf.getLength() == expVal.getLength())
   14224           2 :             );
   14225             : 
   14226           1 :         }
   14227             : 
   14228           1 :         void append_007()
   14229             :         {
   14230           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   14231           2 :             OString                expVal( kTestStr66 );
   14232           1 :             sal_Int64              input = 0;
   14233             : 
   14234           1 :             aStrBuf.append( input );
   14235             : 
   14236           2 :             CPPUNIT_ASSERT_MESSAGE
   14237             :             (
   14238             :                 "input Int64 0 and return OStringBuffer[1]+0",
   14239             :                 (aStrBuf.toString() == expVal &&
   14240             :                  aStrBuf.getLength() == expVal.getLength())
   14241           2 :             );
   14242             : 
   14243           1 :         }
   14244             : 
   14245           1 :         void append_008()
   14246             :         {
   14247           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   14248           2 :             OString                expVal( kTestStr67 );
   14249           1 :             sal_Int64              input = -11;
   14250             : 
   14251           1 :             aStrBuf.append( input );
   14252             : 
   14253           2 :             CPPUNIT_ASSERT_MESSAGE
   14254             :             (
   14255             :                 "input Int64 -11 and return OStringBuffer[1]+(-11)",
   14256             :                 (aStrBuf.toString() == expVal &&
   14257             :                  aStrBuf.getLength() == expVal.getLength())
   14258           2 :             );
   14259             : 
   14260           1 :         }
   14261             : 
   14262           1 :         void append_009()
   14263             :         {
   14264           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   14265           2 :             OString                expVal( kTestStr118 );
   14266           1 :             sal_Int64              input = SAL_CONST_INT64(9223372036854775807);
   14267           1 :             aStrBuf.append( input );
   14268             : 
   14269           2 :             CPPUNIT_ASSERT_MESSAGE
   14270             :             (
   14271             :                 "input Int64 9223372036854775807 and return OStringBuffer[1]+9223372036854775807",
   14272             :                 (aStrBuf.toString() == expVal &&
   14273             :                  aStrBuf.getLength() == expVal.getLength())
   14274           2 :             );
   14275             : 
   14276           1 :         }
   14277             : 
   14278           1 :         void append_010()
   14279             :         {
   14280           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   14281           2 :             OString                expVal( kTestStr119 );
   14282           1 :             sal_Int64              input = SAL_MIN_INT64; // LLA: this is not the same :-( kNonSInt64Max;
   14283             : 
   14284           1 :             aStrBuf.append( input );
   14285             : 
   14286           2 :             CPPUNIT_ASSERT_MESSAGE
   14287             :             (
   14288             :                 "input Int64 -9223372036854775808 and return OStringBuffer[1]+(-9223372036854775808)",
   14289             :                 (aStrBuf.toString() == expVal &&
   14290             :                  aStrBuf.getLength() == expVal.getLength())
   14291           2 :             );
   14292             : 
   14293           1 :         }
   14294             : 
   14295           1 :         void append_011()
   14296             :         {
   14297           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   14298           2 :             OString                expVal( kTestStr60 );
   14299           1 :             sal_Int64              input = 11;
   14300             : 
   14301           1 :             aStrBuf.append( input );
   14302             : 
   14303           2 :             CPPUNIT_ASSERT_MESSAGE
   14304             :             (
   14305             :                 "input Int64 11 and return OStringBuffer[2]+11",
   14306             :                 (aStrBuf.toString() == expVal &&
   14307             :                  aStrBuf.getLength() == expVal.getLength())
   14308           2 :             );
   14309             : 
   14310           1 :         }
   14311             : 
   14312           1 :         void append_012()
   14313             :         {
   14314           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   14315           2 :             OString                expVal( kTestStr66 );
   14316           1 :             sal_Int64              input = 0;
   14317             : 
   14318           1 :             aStrBuf.append( input );
   14319             : 
   14320           2 :             CPPUNIT_ASSERT_MESSAGE
   14321             :             (
   14322             :                 "input Int64 0 and return OUStringBuffer[2]+0",
   14323             :                 (aStrBuf.toString() == expVal &&
   14324             :                  aStrBuf.getLength() == expVal.getLength())
   14325           2 :             );
   14326             : 
   14327           1 :         }
   14328             : 
   14329           1 :         void append_013()
   14330             :         {
   14331           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   14332           2 :             OString                expVal( kTestStr67 );
   14333           1 :             sal_Int64              input = -11;
   14334             : 
   14335           1 :             aStrBuf.append( input );
   14336             : 
   14337           2 :             CPPUNIT_ASSERT_MESSAGE
   14338             :             (
   14339             :                 "input Int64 -11 and return OUStringBuffer[2]+(-11)",
   14340             :                 (aStrBuf.toString() == expVal &&
   14341             :                  aStrBuf.getLength() == expVal.getLength())
   14342           2 :             );
   14343             : 
   14344           1 :         }
   14345             : 
   14346           1 :         void append_014()
   14347             :         {
   14348           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   14349           2 :             OString                expVal( kTestStr118 );
   14350           1 :             sal_Int64              input = SAL_CONST_INT64(9223372036854775807);
   14351           1 :             aStrBuf.append( input );
   14352             : 
   14353           2 :             CPPUNIT_ASSERT_MESSAGE
   14354             :             (
   14355             :                 "input Int64 9223372036854775807 and return OStringBuffer[2]+9223372036854775807",
   14356             :                 (aStrBuf.toString() == expVal &&
   14357             :                  aStrBuf.getLength() == expVal.getLength())
   14358           2 :             );
   14359             : 
   14360           1 :         }
   14361             : 
   14362           1 :         void append_015()
   14363             :         {
   14364           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   14365           2 :             OString                expVal( kTestStr119 );
   14366           1 :             sal_Int64              input = SAL_MIN_INT64; // LLA: this is not the same :-( kNonSInt64Max;
   14367             : 
   14368           1 :             aStrBuf.append( input );
   14369             : 
   14370           2 :             CPPUNIT_ASSERT_MESSAGE
   14371             :             (
   14372             :                 "input Int64 -9223372036854775808 and return OStringBuffer[2]+(-9223372036854775808)",
   14373             :                 (aStrBuf.toString() == expVal &&
   14374             :                  aStrBuf.getLength() == expVal.getLength())
   14375           2 :             );
   14376             : 
   14377           1 :         }
   14378             : 
   14379           1 :         void append_016()
   14380             :         {
   14381           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   14382           2 :             OString                expVal( kTestStr60 );
   14383           1 :             sal_Int64              input = 11;
   14384             : 
   14385           1 :             aStrBuf.append( input );
   14386             : 
   14387           2 :             CPPUNIT_ASSERT_MESSAGE
   14388             :             (
   14389             :                 "input Int64 11 and return OStringBuffer[3]+11",
   14390             :                 (aStrBuf.toString() == expVal &&
   14391             :                  aStrBuf.getLength() == expVal.getLength())
   14392           2 :             );
   14393             : 
   14394           1 :         }
   14395             : 
   14396           1 :         void append_017()
   14397             :         {
   14398           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   14399           2 :             OString                expVal( kTestStr66 );
   14400           1 :             sal_Int64              input = 0;
   14401             : 
   14402           1 :             aStrBuf.append( input );
   14403             : 
   14404           2 :             CPPUNIT_ASSERT_MESSAGE
   14405             :             (
   14406             :                 "input Int64 0 and return OStringBuffer[3]+0",
   14407             :                 (aStrBuf.toString() == expVal &&
   14408             :                  aStrBuf.getLength() == expVal.getLength())
   14409           2 :             );
   14410             : 
   14411           1 :         }
   14412             : 
   14413           1 :         void append_018()
   14414             :         {
   14415           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   14416           2 :             OString                expVal( kTestStr67 );
   14417           1 :             sal_Int64              input = -11;
   14418             : 
   14419           1 :             aStrBuf.append( input );
   14420             : 
   14421           2 :             CPPUNIT_ASSERT_MESSAGE
   14422             :             (
   14423             :                 "input Int64 -11 and return OStringBuffer[3]+(-11)",
   14424             :                 (aStrBuf.toString() == expVal &&
   14425             :                  aStrBuf.getLength() == expVal.getLength())
   14426           2 :             );
   14427             : 
   14428           1 :         }
   14429             : 
   14430           1 :         void append_019()
   14431             :         {
   14432           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   14433           2 :             OString                expVal( kTestStr118 );
   14434           1 :             sal_Int64              input = SAL_CONST_INT64(9223372036854775807);
   14435           1 :             aStrBuf.append( input );
   14436             : 
   14437           2 :             CPPUNIT_ASSERT_MESSAGE
   14438             :             (
   14439             :                 "input Int64 9223372036854775807 and return OStringBuffer[3]+9223372036854775807",
   14440             :                 (aStrBuf.toString() == expVal &&
   14441             :                  aStrBuf.getLength() == expVal.getLength())
   14442           2 :             );
   14443             : 
   14444           1 :         }
   14445             : 
   14446           1 :         void append_020()
   14447             :         {
   14448           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   14449           2 :             OString                expVal( kTestStr119 );
   14450           1 :             sal_Int64              input = SAL_MIN_INT64; // LLA: this is not the same :-( kNonSInt64Max;
   14451             : 
   14452           1 :             aStrBuf.append( input );
   14453             : 
   14454           2 :             CPPUNIT_ASSERT_MESSAGE
   14455             :             (
   14456             :                 "input Int64 -9223372036854775808 and return OStringBuffer[3]+(-9223372036854775808)",
   14457             :                 (aStrBuf.toString() == expVal &&
   14458             :                  aStrBuf.getLength() == expVal.getLength())
   14459           2 :             );
   14460             : 
   14461           1 :         }
   14462             : 
   14463           1 :         void append_021()
   14464             :         {
   14465           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   14466           2 :             OString                expVal( kTestStr61 );
   14467           1 :             sal_Int64              input = 11;
   14468             : 
   14469           1 :             aStrBuf.append( input );
   14470             : 
   14471           2 :             CPPUNIT_ASSERT_MESSAGE
   14472             :             (
   14473             :                 "input Int64 11 and return OStringBuffer[4]+11",
   14474             :                 (aStrBuf.toString() == expVal &&
   14475             :                  aStrBuf.getLength() == expVal.getLength())
   14476           2 :             );
   14477             : 
   14478           1 :         }
   14479             : 
   14480           1 :         void append_022()
   14481             :         {
   14482           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   14483           2 :             OString                expVal( kTestStr70 );
   14484           1 :             sal_Int64              input = 0;
   14485             : 
   14486           1 :             aStrBuf.append( input );
   14487             : 
   14488           2 :             CPPUNIT_ASSERT_MESSAGE
   14489             :             (
   14490             :                 "input Int64 0 and return OStringBuffer[4]+0",
   14491             :                 (aStrBuf.toString() == expVal &&
   14492             :                  aStrBuf.getLength() == expVal.getLength())
   14493           2 :             );
   14494             : 
   14495           1 :         }
   14496             : 
   14497           1 :         void append_023()
   14498             :         {
   14499           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   14500           2 :             OString                expVal( kTestStr71 );
   14501           1 :             sal_Int64              input = -11;
   14502             : 
   14503           1 :             aStrBuf.append( input );
   14504             : 
   14505           2 :             CPPUNIT_ASSERT_MESSAGE
   14506             :             (
   14507             :                 "input Int64 -11 and return OStringBuffer[4]+(-11)",
   14508             :                 (aStrBuf.toString() == expVal &&
   14509             :                  aStrBuf.getLength() == expVal.getLength())
   14510           2 :             );
   14511             : 
   14512           1 :         }
   14513             : 
   14514           1 :         void append_024()
   14515             :         {
   14516           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   14517           2 :             OString                expVal( kTestStr120 );
   14518           1 :             sal_Int64              input = SAL_CONST_INT64(9223372036854775807);
   14519           1 :             aStrBuf.append( input );
   14520             : 
   14521           2 :             CPPUNIT_ASSERT_MESSAGE
   14522             :             (
   14523             :                 "input Int64 9223372036854775807 and return OStringBuffer[4]+9223372036854775807",
   14524             :                 (aStrBuf.toString() == expVal &&
   14525             :                  aStrBuf.getLength() == expVal.getLength())
   14526           2 :             );
   14527             : 
   14528           1 :         }
   14529             : 
   14530           1 :         void append_025()
   14531             :         {
   14532           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   14533           2 :             OString                expVal( kTestStr121 );
   14534           1 :             sal_Int64              input = SAL_MIN_INT64; // LLA: this is not the same :-( kNonSInt64Max;
   14535             : 
   14536           1 :             aStrBuf.append( input );
   14537             : 
   14538           2 :             CPPUNIT_ASSERT_MESSAGE
   14539             :             (
   14540             :                 "input Int64 -9223372036854775808 and return OStringBuffer[4]+(-9223372036854775808)",
   14541             :                 (aStrBuf.toString() == expVal &&
   14542             :                  aStrBuf.getLength() == expVal.getLength())
   14543           2 :             );
   14544             : 
   14545           1 :         }
   14546             : #ifdef WITH_CORE
   14547             :         void append_026()
   14548             :         {
   14549             :             ::rtl::OStringBuffer   aStrBuf( kSInt64Max );
   14550             :             OString                expVal( kTestStr60 );
   14551             :             sal_Int64              input = 11;
   14552             : 
   14553             :             aStrBuf.append( input );
   14554             : 
   14555             :             CPPUNIT_ASSERT_MESSAGE
   14556             :             (
   14557             :                 "input Int64 11 and return OStringBuffer(kSInt64Max)+11",
   14558             :                 (aStrBuf.toString() == expVal &&
   14559             :                  aStrBuf.getLength() == expVal.getLength())
   14560             :             );
   14561             : 
   14562             :         }
   14563             : 
   14564             :         void append_027()
   14565             :         {
   14566             :             ::rtl::OStringBuffer   aStrBuf( kSInt64Max );
   14567             :             OString                expVal( kTestStr66 );
   14568             :             sal_Int64              input = 0;
   14569             : 
   14570             :             aStrBuf.append( input );
   14571             : 
   14572             :             CPPUNIT_ASSERT_MESSAGE
   14573             :             (
   14574             :                 "input Int64 0 and return OStringBuffer(kSInt64Max)+0",
   14575             :                 (aStrBuf.toString() == expVal &&
   14576             :                  aStrBuf.getLength() == expVal.getLength())
   14577             :             );
   14578             : 
   14579             :         }
   14580             : 
   14581             :         void append_028()
   14582             :         {
   14583             :             ::rtl::OStringBuffer   aStrBuf( kSInt64Max );
   14584             :             OString                expVal( kTestStr67 );
   14585             :             sal_Int64              input = -11;
   14586             : 
   14587             :             aStrBuf.append( input );
   14588             : 
   14589             :             CPPUNIT_ASSERT_MESSAGE
   14590             :             (
   14591             :                 "input Int64 -11 and return OStringBuffer(kSInt64Max)+(-11)",
   14592             :                 (aStrBuf.toString() == expVal &&
   14593             :                  aStrBuf.getLength() == expVal.getLength())
   14594             :             );
   14595             : 
   14596             :         }
   14597             : 
   14598             :         void append_029()
   14599             :         {
   14600             :             ::rtl::OStringBuffer   aStrBuf( kSInt64Max );
   14601             :             OString                expVal( kTestStr118 );
   14602             :             sal_Int64              input = 9223372036854775807;
   14603             : 
   14604             :             aStrBuf.append( input );
   14605             : 
   14606             :             CPPUNIT_ASSERT_MESSAGE
   14607             :             (
   14608             :                 "input Int64 9223372036854775807 and return OStringBuffer(kSInt64Max)+9223372036854775807",
   14609             :                 (aStrBuf.toString() == expVal &&
   14610             :                  aStrBuf.getLength() == expVal.getLength())
   14611             :             );
   14612             : 
   14613             :         }
   14614             : 
   14615             :         void append_030()
   14616             :         {
   14617             :             ::rtl::OStringBuffer   aStrBuf( kSInt64Max );
   14618             :             OString                expVal( kTestStr119 );
   14619             :             sal_Int64              input = SAL_MIN_INT64; // LLA: this is not the same :-( kNonSInt64Max;
   14620             : 
   14621             :             aStrBuf.append( input );
   14622             : 
   14623             :             CPPUNIT_ASSERT_MESSAGE
   14624             :             (
   14625             :                 "input Int64 -9223372036854775808 and return OStringBuffer(kSInt64Max)+(-9223372036854775808)",
   14626             :                 (aStrBuf.toString() == expVal &&
   14627             :                  aStrBuf.getLength() == expVal.getLength())
   14628             :             );
   14629             : 
   14630             :         }
   14631             : #endif
   14632             : 
   14633           2 :         CPPUNIT_TEST_SUITE( append_007_Int64_defaultParam );
   14634           1 :         CPPUNIT_TEST( append_001 );
   14635           1 :         CPPUNIT_TEST( append_002 );
   14636           1 :         CPPUNIT_TEST( append_003 );
   14637           1 :         CPPUNIT_TEST( append_004 );
   14638           1 :         CPPUNIT_TEST( append_005 );
   14639           1 :         CPPUNIT_TEST( append_006 );
   14640           1 :         CPPUNIT_TEST( append_007 );
   14641           1 :         CPPUNIT_TEST( append_008 );
   14642           1 :         CPPUNIT_TEST( append_009 );
   14643           1 :         CPPUNIT_TEST( append_010 );
   14644           1 :         CPPUNIT_TEST( append_011 );
   14645           1 :         CPPUNIT_TEST( append_012 );
   14646           1 :         CPPUNIT_TEST( append_013 );
   14647           1 :         CPPUNIT_TEST( append_014 );
   14648           1 :         CPPUNIT_TEST( append_015 );
   14649           1 :         CPPUNIT_TEST( append_016 );
   14650           1 :         CPPUNIT_TEST( append_017 );
   14651           1 :         CPPUNIT_TEST( append_018 );
   14652           1 :         CPPUNIT_TEST( append_019 );
   14653           1 :         CPPUNIT_TEST( append_020 );
   14654           1 :         CPPUNIT_TEST( append_021 );
   14655           1 :         CPPUNIT_TEST( append_022 );
   14656           1 :         CPPUNIT_TEST( append_023 );
   14657           1 :         CPPUNIT_TEST( append_024 );
   14658           1 :         CPPUNIT_TEST( append_025 );
   14659             : #ifdef WITH_CORE
   14660             :         CPPUNIT_TEST( append_026 );
   14661             :         CPPUNIT_TEST( append_027 );
   14662             :         CPPUNIT_TEST( append_028 );
   14663             :         CPPUNIT_TEST( append_029 );
   14664             :         CPPUNIT_TEST( append_030 );
   14665             : #endif
   14666           2 :         CPPUNIT_TEST_SUITE_END();
   14667             :     };
   14668             : 
   14669             : // testing the method append( float f )
   14670             : 
   14671         100 :     class checkfloat : public CppUnit::TestFixture
   14672             :     {
   14673             :     public:
   14674          50 :         bool checkIfStrBufContainAtPosTheFloat(rtl::OStringBuffer const& _sStrBuf, sal_Int32 _nLen, float _nFloat)
   14675             :             {
   14676          50 :                 OString sFloatValue;
   14677          50 :                 sFloatValue = OString::number(_nFloat);
   14678             : 
   14679         100 :                 OString sBufferString(_sStrBuf.getStr());
   14680          50 :                 sal_Int32 nPos = sBufferString.indexOf(sFloatValue);
   14681          50 :                 if ( nPos >= 0 && nPos == _nLen)
   14682             :                 {
   14683          50 :                     return true;
   14684             :                 }
   14685          50 :                 return false;
   14686             :             }
   14687             :     };
   14688             : 
   14689          75 :     class  append_008_float : public checkfloat
   14690             :     {
   14691             :         OString* arrOUS[5];
   14692             : 
   14693             :     public:
   14694          25 :         void setUp() SAL_OVERRIDE
   14695             :         {
   14696          25 :             arrOUS[0] = new OString( kTestStr7 );
   14697          25 :             arrOUS[1] = new OString(  );
   14698          25 :             arrOUS[2] = new OString( kTestStr25 );
   14699          25 :             arrOUS[3] = new OString( "" );
   14700          25 :             arrOUS[4] = new OString( kTestStr28 );
   14701             : 
   14702          25 :         }
   14703             : 
   14704          25 :         void tearDown() SAL_OVERRIDE
   14705             :         {
   14706          25 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
   14707          25 :             delete arrOUS[3]; delete arrOUS[4];
   14708          25 :         }
   14709             : 
   14710           1 :         void append_001()
   14711             :         {
   14712           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   14713           1 :             float                  input = (float)atof("3.0");
   14714             : 
   14715             :             // LLA:
   14716             :             // the complex problem is here, that a float value is not really what we write.
   14717             :             // So a 3.0 could also be 3 or 3.0 or 3.0000001 or 2.9999999
   14718             :             // this has to be checked.
   14719           1 :             sal_Int32 nLen = aStrBuf.getLength();
   14720           1 :             aStrBuf.append( input );
   14721             : 
   14722           2 :             CPPUNIT_ASSERT_MESSAGE
   14723             :             (
   14724             :                 "arrOUS[0] append 3.0",
   14725             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14726           2 :             );
   14727             : 
   14728           1 :         }
   14729             : 
   14730           1 :         void append_002()
   14731             :         {
   14732           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   14733           1 :             float                  input = (float)atof("3.5");
   14734             : 
   14735           1 :             sal_Int32 nLen = aStrBuf.getLength();
   14736           1 :             aStrBuf.append( input );
   14737             : 
   14738           2 :             CPPUNIT_ASSERT_MESSAGE
   14739             :             (
   14740             :                 "arrOUS[0] append 3.5",
   14741             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14742           2 :             );
   14743             : 
   14744           1 :         }
   14745             : 
   14746           1 :         void append_003()
   14747             :         {
   14748           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   14749           1 :             float                  input = (float)atof("3.0625");
   14750             : 
   14751           1 :             sal_Int32 nLen = aStrBuf.getLength();
   14752           1 :             aStrBuf.append( input );
   14753             : 
   14754           2 :             CPPUNIT_ASSERT_MESSAGE
   14755             :             (
   14756             :                 "arrOUS[0] append 3.0625",
   14757             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14758           2 :             );
   14759             : 
   14760           1 :         }
   14761             : 
   14762           1 :         void append_004()
   14763             :         {
   14764           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   14765           1 :             float                  input = (float)atof("3.502525");
   14766             : 
   14767           1 :             sal_Int32 nLen = aStrBuf.getLength();
   14768           1 :             aStrBuf.append( input );
   14769             : 
   14770           2 :             CPPUNIT_ASSERT_MESSAGE
   14771             :             (
   14772             :                 "arrOUS[0] append 3.502525",
   14773             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14774           2 :             );
   14775             : 
   14776           1 :         }
   14777             : 
   14778           1 :         void append_005()
   14779             :         {
   14780           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   14781           1 :             float                  input = (float)atof("3.141592");
   14782             : 
   14783           1 :             sal_Int32 nLen = aStrBuf.getLength();
   14784           1 :             aStrBuf.append( input );
   14785             : 
   14786           2 :             CPPUNIT_ASSERT_MESSAGE
   14787             :             (
   14788             :                 "arrOUS[0] append 3.141592",
   14789             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14790           2 :             );
   14791             : 
   14792           1 :         }
   14793             : 
   14794           1 :         void append_006()
   14795             :         {
   14796           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   14797           1 :             float                  input = (float)atof("3.5025255");
   14798             : 
   14799           1 :             sal_Int32 nLen = aStrBuf.getLength();
   14800           1 :             aStrBuf.append( input );
   14801             : 
   14802           2 :             CPPUNIT_ASSERT_MESSAGE
   14803             :             (
   14804             :                 "arrOUS[0] append 3.5025255",
   14805             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14806           2 :             );
   14807             : 
   14808           1 :         }
   14809             : 
   14810           1 :         void append_007()
   14811             :         {
   14812           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   14813           1 :             float                  input = (float)atof("3.00390625");
   14814             : 
   14815           1 :             sal_Int32 nLen = aStrBuf.getLength();
   14816           1 :             aStrBuf.append( input );
   14817             : 
   14818           2 :             CPPUNIT_ASSERT_MESSAGE
   14819             :             (
   14820             :                 "arrOUS[0] append 3.0039062",
   14821             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14822           2 :             );
   14823             : 
   14824           1 :         }
   14825             : 
   14826           1 :         void append_008()
   14827             :         {
   14828           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   14829           1 :             float                  input = (float)atof("3.0");
   14830             : 
   14831           1 :             sal_Int32 nLen = aStrBuf.getLength();
   14832           1 :             aStrBuf.append( input );
   14833             : 
   14834           2 :             CPPUNIT_ASSERT_MESSAGE
   14835             :             (
   14836             :                 "arrOUS[1] append 3.0",
   14837             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14838           2 :             );
   14839             : 
   14840           1 :         }
   14841             : 
   14842           1 :         void append_009()
   14843             :         {
   14844           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   14845           1 :             float                  input = (float)atof("3.5");
   14846             : 
   14847           1 :             sal_Int32 nLen = aStrBuf.getLength();
   14848           1 :             aStrBuf.append( input );
   14849             : 
   14850           2 :             CPPUNIT_ASSERT_MESSAGE
   14851             :             (
   14852             :                 "arrOUS[1] append 3.5",
   14853             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14854           2 :             );
   14855             : 
   14856           1 :         }
   14857             : 
   14858           1 :         void append_010()
   14859             :         {
   14860           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   14861           1 :             float                  input = (float)atof("3.0625");
   14862             : 
   14863           1 :             sal_Int32 nLen = aStrBuf.getLength();
   14864           1 :             aStrBuf.append( input );
   14865             : 
   14866           2 :             CPPUNIT_ASSERT_MESSAGE
   14867             :             (
   14868             :                 "arrOUS[1] append 3.0625",
   14869             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14870           2 :             );
   14871             : 
   14872           1 :         }
   14873             : 
   14874           1 :         void append_011()
   14875             :         {
   14876           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   14877           1 :             float                  input = (float)atof("3.502525");
   14878             : 
   14879           1 :             sal_Int32 nLen = aStrBuf.getLength();
   14880           1 :             aStrBuf.append( input );
   14881             : 
   14882           2 :             CPPUNIT_ASSERT_MESSAGE
   14883             :             (
   14884             :                 "arrOUS[1] append 3.502525",
   14885             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14886           2 :             );
   14887             : 
   14888           1 :         }
   14889             : 
   14890           1 :         void append_012()
   14891             :         {
   14892           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   14893           1 :             float                  input = (float)atof("3.141592");
   14894             : 
   14895           1 :             sal_Int32 nLen = aStrBuf.getLength();
   14896           1 :             aStrBuf.append( input );
   14897             : 
   14898           2 :             CPPUNIT_ASSERT_MESSAGE
   14899             :             (
   14900             :                 "arrOUS[1] append 3.141592",
   14901             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14902           2 :             );
   14903             : 
   14904           1 :         }
   14905             : 
   14906           1 :         void append_013()
   14907             :         {
   14908           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   14909           1 :             float                  input = (float)atof("3.5025255");
   14910             : 
   14911           1 :             sal_Int32 nLen = aStrBuf.getLength();
   14912           1 :             aStrBuf.append( input );
   14913             : 
   14914           2 :             CPPUNIT_ASSERT_MESSAGE
   14915             :             (
   14916             :                 "arrOUS[1] append 3.5025255",
   14917             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14918           2 :             );
   14919             : 
   14920           1 :         }
   14921             : 
   14922           1 :         void append_014()
   14923             :         {
   14924           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   14925           1 :             float                  input = (float)atof("3.00390625");
   14926             : 
   14927           1 :             sal_Int32 nLen = aStrBuf.getLength();
   14928           1 :             aStrBuf.append( input );
   14929             : 
   14930           2 :             CPPUNIT_ASSERT_MESSAGE
   14931             :             (
   14932             :                 "arrOUS[1] append 3.0039062",
   14933             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14934           2 :             );
   14935             : 
   14936           1 :         }
   14937             : 
   14938           1 :         void append_015()
   14939             :         {
   14940           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   14941           1 :             float                  input = (float)atof("3.0");
   14942             : 
   14943           1 :             sal_Int32 nLen = aStrBuf.getLength();
   14944           1 :             aStrBuf.append( input );
   14945             : 
   14946           2 :             CPPUNIT_ASSERT_MESSAGE
   14947             :             (
   14948             :                 "arrOUS[2] append 3.0",
   14949             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14950           2 :             );
   14951             : 
   14952           1 :         }
   14953             : 
   14954           1 :         void append_016()
   14955             :         {
   14956           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   14957           1 :             float                  input = (float)atof("3.5");
   14958             : 
   14959           1 :             sal_Int32 nLen = aStrBuf.getLength();
   14960           1 :             aStrBuf.append( input );
   14961             : 
   14962           2 :             CPPUNIT_ASSERT_MESSAGE
   14963             :             (
   14964             :                 "arrOUS[2] append 3.5",
   14965             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14966           2 :             );
   14967             : 
   14968           1 :         }
   14969             : 
   14970           1 :         void append_017()
   14971             :         {
   14972           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   14973           1 :             float                  input = (float)atof("3.0625");
   14974             : 
   14975           1 :             sal_Int32 nLen = aStrBuf.getLength();
   14976           1 :             aStrBuf.append( input );
   14977             : 
   14978           2 :             CPPUNIT_ASSERT_MESSAGE
   14979             :             (
   14980             :                 "arrOUS[2] append 3.0625",
   14981             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14982           2 :             );
   14983             : 
   14984           1 :         }
   14985             : 
   14986           1 :         void append_018()
   14987             :         {
   14988           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   14989           1 :             float                  input = (float)atof("3.502525");
   14990             : 
   14991           1 :             sal_Int32 nLen = aStrBuf.getLength();
   14992           1 :             aStrBuf.append( input );
   14993             : 
   14994           2 :             CPPUNIT_ASSERT_MESSAGE
   14995             :             (
   14996             :                 "arrOUS[2] append 3.502525",
   14997             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14998           2 :             );
   14999             : 
   15000           1 :         }
   15001             : 
   15002           1 :         void append_019()
   15003             :         {
   15004           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   15005           1 :             float                  input = (float)atof("3.141592");
   15006             : 
   15007           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15008           1 :             aStrBuf.append( input );
   15009             : 
   15010           2 :             CPPUNIT_ASSERT_MESSAGE
   15011             :             (
   15012             :                 "arrOUS[2] append 3.141592",
   15013             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15014           2 :             );
   15015             : 
   15016           1 :         }
   15017             : 
   15018           1 :         void append_020()
   15019             :         {
   15020           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   15021           1 :             float                  input = (float)atof("3.5025255");
   15022             : 
   15023           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15024           1 :             aStrBuf.append( input );
   15025             : 
   15026           2 :             CPPUNIT_ASSERT_MESSAGE
   15027             :             (
   15028             :                 "arrOUS[2] append 3.5025255",
   15029             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15030           2 :             );
   15031             : 
   15032           1 :         }
   15033             : 
   15034           1 :         void append_021()
   15035             :         {
   15036           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   15037           1 :             float                  input = (float)atof("3.00390625");
   15038             : 
   15039           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15040           1 :             aStrBuf.append( input );
   15041             : 
   15042           2 :             CPPUNIT_ASSERT_MESSAGE
   15043             :             (
   15044             :                 "arrOUS[2] append 3.0039062",
   15045             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15046           2 :             );
   15047             : 
   15048           1 :         }
   15049             : 
   15050           1 :         void append_022()
   15051             :         {
   15052           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   15053           1 :             float                  input = (float)atof("3.0");
   15054             : 
   15055           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15056           1 :             aStrBuf.append( input );
   15057             : 
   15058           2 :             CPPUNIT_ASSERT_MESSAGE
   15059             :             (
   15060             :                 "arrOUS[3] append 3.0",
   15061             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15062           2 :             );
   15063             : 
   15064           1 :         }
   15065             : 
   15066           1 :         void append_023()
   15067             :         {
   15068           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   15069           1 :             float                  input = (float)atof("3.5");
   15070             : 
   15071           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15072           1 :             aStrBuf.append( input );
   15073             : 
   15074           2 :             CPPUNIT_ASSERT_MESSAGE
   15075             :             (
   15076             :                 "arrOUS[3] append 3.5",
   15077             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15078           2 :             );
   15079             : 
   15080           1 :         }
   15081             : 
   15082           1 :         void append_024()
   15083             :         {
   15084           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   15085           1 :             float                  input = (float)atof("3.0625");
   15086             : 
   15087           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15088           1 :             aStrBuf.append( input );
   15089             : 
   15090           2 :             CPPUNIT_ASSERT_MESSAGE
   15091             :             (
   15092             :                 "arrOUS[3] append 3.0625",
   15093             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15094           2 :             );
   15095             : 
   15096           1 :         }
   15097             : 
   15098           1 :         void append_025()
   15099             :         {
   15100           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   15101           1 :             float                  input = (float)atof("3.502525");
   15102             : 
   15103           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15104           1 :             aStrBuf.append( input );
   15105             : 
   15106           2 :             CPPUNIT_ASSERT_MESSAGE
   15107             :             (
   15108             :                 "arrOUS[3] append 3.502525",
   15109             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15110           2 :             );
   15111             : 
   15112           1 :         }
   15113             : 
   15114             : #ifdef WITH_CORE
   15115             :         void append_036()
   15116             :         {
   15117             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
   15118             :             float                  input = (float)atof("3.0");
   15119             : 
   15120             :             sal_Int32 nLen = aStrBuf.getLength();
   15121             :             aStrBuf.append( input );
   15122             : 
   15123             :             CPPUNIT_ASSERT_MESSAGE
   15124             :             (
   15125             :                 "OStringBuffer( kSInt32Max ) append 3.0",
   15126             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15127             :             );
   15128             : 
   15129             :         }
   15130             : 
   15131             :         void append_037()
   15132             :         {
   15133             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
   15134             :             float                  input = (float)atof("3.5");
   15135             : 
   15136             :             sal_Int32 nLen = aStrBuf.getLength();
   15137             :             aStrBuf.append( input );
   15138             : 
   15139             :             CPPUNIT_ASSERT_MESSAGE
   15140             :             (
   15141             :                 "OStringBuffer( kSInt32Max ) append 3.5",
   15142             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15143             :             );
   15144             : 
   15145             :         }
   15146             : 
   15147             :         void append_038()
   15148             :         {
   15149             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
   15150             :             float                  input = (float)atof("3.0625");
   15151             : 
   15152             :             sal_Int32 nLen = aStrBuf.getLength();
   15153             :             aStrBuf.append( input );
   15154             : 
   15155             :             CPPUNIT_ASSERT_MESSAGE
   15156             :             (
   15157             :                 "OStringBuffer( kSInt32Max ) append 3.0625",
   15158             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15159             :             );
   15160             : 
   15161             :         }
   15162             : 
   15163             :         void append_039()
   15164             :         {
   15165             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
   15166             :             float                  input = (float)atof("3.502525");
   15167             : 
   15168             :             sal_Int32 nLen = aStrBuf.getLength();
   15169             :             aStrBuf.append( input );
   15170             : 
   15171             :             CPPUNIT_ASSERT_MESSAGE
   15172             :             (
   15173             :                 "OStringBuffer( kSInt32Max ) append 3.502525",
   15174             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15175             :             );
   15176             : 
   15177             :         }
   15178             : 
   15179             :         void append_040()
   15180             :         {
   15181             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
   15182             :             float                  input = (float)atof("3.141592");
   15183             : 
   15184             :             sal_Int32 nLen = aStrBuf.getLength();
   15185             :             aStrBuf.append( input );
   15186             : 
   15187             :             CPPUNIT_ASSERT_MESSAGE
   15188             :             (
   15189             :                 "OStringBuffer( kSInt32Max ) append 3.141592",
   15190             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15191             :             );
   15192             : 
   15193             :         }
   15194             : 
   15195             :         void append_041()
   15196             :         {
   15197             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
   15198             :             float                  input = (float)atof("3.5025255");
   15199             : 
   15200             :             sal_Int32 nLen = aStrBuf.getLength();
   15201             :             aStrBuf.append( input );
   15202             : 
   15203             :             CPPUNIT_ASSERT_MESSAGE
   15204             :             (
   15205             :                 "OStringBuffer( kSInt32Max ) append 3.5025255",
   15206             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15207             :             );
   15208             : 
   15209             :         }
   15210             : 
   15211             :         void append_042()
   15212             :         {
   15213             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
   15214             :             float                  input = (float)atof("3.00390625");
   15215             : 
   15216             :             sal_Int32 nLen = aStrBuf.getLength();
   15217             :             aStrBuf.append( input );
   15218             : 
   15219             :             CPPUNIT_ASSERT_MESSAGE
   15220             :             (
   15221             :                 "OStringBuffer( kSInt32Max ) append 3.0039062",
   15222             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15223             :             );
   15224             : 
   15225             :         }
   15226             : #endif
   15227             : 
   15228           2 :         CPPUNIT_TEST_SUITE( append_008_float );
   15229           1 :         CPPUNIT_TEST( append_001 );
   15230           1 :         CPPUNIT_TEST( append_002 );
   15231           1 :         CPPUNIT_TEST( append_003 );
   15232           1 :         CPPUNIT_TEST( append_004 );
   15233           1 :         CPPUNIT_TEST( append_005 );
   15234           1 :         CPPUNIT_TEST( append_006 );
   15235           1 :         CPPUNIT_TEST( append_007 );
   15236           1 :         CPPUNIT_TEST( append_008 );
   15237           1 :         CPPUNIT_TEST( append_009 );
   15238           1 :         CPPUNIT_TEST( append_010 );
   15239           1 :         CPPUNIT_TEST( append_011 );
   15240           1 :         CPPUNIT_TEST( append_012 );
   15241           1 :         CPPUNIT_TEST( append_013 );
   15242           1 :         CPPUNIT_TEST( append_014 );
   15243           1 :         CPPUNIT_TEST( append_015 );
   15244           1 :         CPPUNIT_TEST( append_016 );
   15245           1 :         CPPUNIT_TEST( append_017 );
   15246           1 :         CPPUNIT_TEST( append_018 );
   15247           1 :         CPPUNIT_TEST( append_019 );
   15248           1 :         CPPUNIT_TEST( append_020 );
   15249           1 :         CPPUNIT_TEST( append_021 );
   15250           1 :         CPPUNIT_TEST( append_022 );
   15251           1 :         CPPUNIT_TEST( append_023 );
   15252           1 :         CPPUNIT_TEST( append_024 );
   15253           1 :         CPPUNIT_TEST( append_025 );
   15254             : #ifdef WITH_CORE
   15255             :         CPPUNIT_TEST( append_026 );
   15256             :         CPPUNIT_TEST( append_027 );
   15257             :         CPPUNIT_TEST( append_028 );
   15258             :         CPPUNIT_TEST( append_029 );
   15259             :         CPPUNIT_TEST( append_030 );
   15260             : #endif
   15261           2 :         CPPUNIT_TEST_SUITE_END();
   15262             :     };
   15263             : 
   15264             : // testing the method append( float f ) for negative value
   15265             : 
   15266          75 :     class  append_008_Float_Negative : public checkfloat
   15267             :     {
   15268             :         OString* arrOUS[5];
   15269             : 
   15270             :     public:
   15271          25 :         void setUp() SAL_OVERRIDE
   15272             :         {
   15273          25 :             arrOUS[0] = new OString( kTestStr7 );
   15274          25 :             arrOUS[1] = new OString(  );
   15275          25 :             arrOUS[2] = new OString( kTestStr25 );
   15276          25 :             arrOUS[3] = new OString( "" );
   15277          25 :             arrOUS[4] = new OString( kTestStr28 );
   15278             : 
   15279          25 :         }
   15280             : 
   15281          25 :         void tearDown() SAL_OVERRIDE
   15282             :         {
   15283          25 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
   15284          25 :             delete arrOUS[3]; delete arrOUS[4];
   15285          25 :         }
   15286             : 
   15287           1 :         void append_001()
   15288             :         {
   15289           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   15290           1 :             float                  input = (float)atof("-3.0");
   15291             : 
   15292           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15293           1 :             aStrBuf.append( input );
   15294             : 
   15295           2 :             CPPUNIT_ASSERT_MESSAGE
   15296             :             (
   15297             :                 "arrOUS[0] append -3.0",
   15298             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15299           2 :             );
   15300             : 
   15301           1 :         }
   15302             : 
   15303           1 :         void append_002()
   15304             :         {
   15305           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   15306           1 :             float                  input = (float)atof("-3.5");
   15307             : 
   15308           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15309           1 :             aStrBuf.append( input );
   15310             : 
   15311           2 :             CPPUNIT_ASSERT_MESSAGE
   15312             :             (
   15313             :                 "arrOUS[0] append -3.5",
   15314             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15315           2 :             );
   15316             : 
   15317           1 :         }
   15318             : 
   15319           1 :         void append_003()
   15320             :         {
   15321           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   15322           1 :             float                  input = (float)atof("-3.0625");
   15323             : 
   15324           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15325           1 :             aStrBuf.append( input );
   15326             : 
   15327           2 :             CPPUNIT_ASSERT_MESSAGE
   15328             :             (
   15329             :                 "arrOUS[0] append -3.0625",
   15330             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15331           2 :             );
   15332             : 
   15333           1 :         }
   15334             : 
   15335           1 :         void append_004()
   15336             :         {
   15337           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   15338           1 :             float                  input = (float)atof("-3.502525");
   15339             : 
   15340           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15341           1 :             aStrBuf.append( input );
   15342             : 
   15343           2 :             CPPUNIT_ASSERT_MESSAGE
   15344             :             (
   15345             :                 "arrOUS[0] append -3.502525",
   15346             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15347           2 :             );
   15348             : 
   15349           1 :         }
   15350             : 
   15351           1 :         void append_005()
   15352             :         {
   15353           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   15354           1 :             float                  input = (float)atof("-3.141592");
   15355             : 
   15356           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15357           1 :             aStrBuf.append( input );
   15358             : 
   15359           2 :             CPPUNIT_ASSERT_MESSAGE
   15360             :             (
   15361             :                 "arrOUS[0] append -3.141592",
   15362             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15363           2 :             );
   15364             : 
   15365           1 :         }
   15366             : 
   15367           1 :         void append_006()
   15368             :         {
   15369           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   15370           1 :             float                  input = (float)atof("-3.5025255");
   15371             : 
   15372           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15373           1 :             aStrBuf.append( input );
   15374             : 
   15375           2 :             CPPUNIT_ASSERT_MESSAGE
   15376             :             (
   15377             :                 "arrOUS[0] append -3.5025255",
   15378             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15379           2 :             );
   15380             : 
   15381           1 :         }
   15382             : 
   15383           1 :         void append_007()
   15384             :         {
   15385           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   15386           1 :             float                  input = (float)atof("-3.00390625");
   15387             : 
   15388           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15389           1 :             aStrBuf.append( input );
   15390             : 
   15391           2 :             CPPUNIT_ASSERT_MESSAGE
   15392             :             (
   15393             :                 "arrOUS[0] append -3.0039062",
   15394             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15395           2 :             );
   15396             : 
   15397           1 :         }
   15398             : 
   15399           1 :         void append_008()
   15400             :         {
   15401           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   15402           1 :             float                  input = (float)atof("-3.0");
   15403             : 
   15404           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15405           1 :             aStrBuf.append( input );
   15406             : 
   15407           2 :             CPPUNIT_ASSERT_MESSAGE
   15408             :             (
   15409             :                 "arrOUS[1] append -3.0",
   15410             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15411           2 :             );
   15412             : 
   15413           1 :         }
   15414             : 
   15415           1 :         void append_009()
   15416             :         {
   15417           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   15418           1 :             float                  input = (float)atof("-3.5");
   15419             : 
   15420           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15421           1 :             aStrBuf.append( input );
   15422             : 
   15423           2 :             CPPUNIT_ASSERT_MESSAGE
   15424             :             (
   15425             :                 "arrOUS[1] append -3.5",
   15426             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15427           2 :             );
   15428             : 
   15429           1 :         }
   15430             : 
   15431           1 :         void append_010()
   15432             :         {
   15433           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   15434           1 :             float                  input = (float)atof("-3.0625");
   15435             : 
   15436           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15437           1 :             aStrBuf.append( input );
   15438             : 
   15439           2 :             CPPUNIT_ASSERT_MESSAGE
   15440             :             (
   15441             :                 "arrOUS[1] append -3.0625",
   15442             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15443           2 :             );
   15444             : 
   15445           1 :         }
   15446             : 
   15447           1 :         void append_011()
   15448             :         {
   15449           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   15450           1 :             float                  input = (float)atof("-3.502525");
   15451             : 
   15452           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15453           1 :             aStrBuf.append( input );
   15454             : 
   15455           2 :             CPPUNIT_ASSERT_MESSAGE
   15456             :             (
   15457             :                 "arrOUS[1] append -3.502525",
   15458             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15459           2 :             );
   15460             : 
   15461           1 :         }
   15462             : 
   15463           1 :         void append_012()
   15464             :         {
   15465           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   15466           1 :             float                  input = (float)atof("-3.141592");
   15467             : 
   15468           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15469           1 :             aStrBuf.append( input );
   15470             : 
   15471           2 :             CPPUNIT_ASSERT_MESSAGE
   15472             :             (
   15473             :                 "arrOUS[1] append -3.141592",
   15474             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15475           2 :             );
   15476             : 
   15477           1 :         }
   15478             : 
   15479           1 :         void append_013()
   15480             :         {
   15481           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   15482           1 :             float                  input = (float)atof("-3.5025255");
   15483             : 
   15484           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15485           1 :             aStrBuf.append( input );
   15486             : 
   15487           2 :             CPPUNIT_ASSERT_MESSAGE
   15488             :             (
   15489             :                 "arrOUS[1] append -3.5025255",
   15490             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15491           2 :             );
   15492             : 
   15493           1 :         }
   15494             : 
   15495           1 :         void append_014()
   15496             :         {
   15497           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   15498           1 :             float                  input = (float)atof("-3.00390625");
   15499             : 
   15500           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15501           1 :             aStrBuf.append( input );
   15502             : 
   15503           2 :             CPPUNIT_ASSERT_MESSAGE
   15504             :             (
   15505             :                 "arrOUS[1] append -3.0039062",
   15506             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15507           2 :             );
   15508             : 
   15509           1 :         }
   15510             : 
   15511           1 :         void append_015()
   15512             :         {
   15513           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   15514           1 :             float                  input = (float)atof("-3.0");
   15515             : 
   15516           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15517           1 :             aStrBuf.append( input );
   15518             : 
   15519           2 :             CPPUNIT_ASSERT_MESSAGE
   15520             :             (
   15521             :                 "arrOUS[2] append -3.0",
   15522             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15523           2 :             );
   15524             : 
   15525           1 :         }
   15526             : 
   15527           1 :         void append_016()
   15528             :         {
   15529           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   15530           1 :             float                  input = (float)atof("-3.5");
   15531             : 
   15532           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15533           1 :             aStrBuf.append( input );
   15534             : 
   15535           2 :             CPPUNIT_ASSERT_MESSAGE
   15536             :             (
   15537             :                 "arrOUS[2] append -3.5",
   15538             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15539           2 :             );
   15540             : 
   15541           1 :         }
   15542             : 
   15543           1 :         void append_017()
   15544             :         {
   15545           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   15546           1 :             float                  input = (float)atof("-3.0625");
   15547             : 
   15548           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15549           1 :             aStrBuf.append( input );
   15550             : 
   15551           2 :             CPPUNIT_ASSERT_MESSAGE
   15552             :             (
   15553             :                 "arrOUS[2] append -3.0625",
   15554             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15555           2 :             );
   15556             : 
   15557           1 :         }
   15558             : 
   15559           1 :         void append_018()
   15560             :         {
   15561           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   15562           1 :             float                  input = (float)atof("-3.502525");
   15563             : 
   15564           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15565           1 :             aStrBuf.append( input );
   15566             : 
   15567           2 :             CPPUNIT_ASSERT_MESSAGE
   15568             :             (
   15569             :                 "arrOUS[2] append -3.502525",
   15570             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15571           2 :             );
   15572             : 
   15573           1 :         }
   15574             : 
   15575           1 :         void append_019()
   15576             :         {
   15577           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   15578           1 :             float                  input = (float)atof("-3.141592");
   15579             : 
   15580           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15581           1 :             aStrBuf.append( input );
   15582             : 
   15583           2 :             CPPUNIT_ASSERT_MESSAGE
   15584             :             (
   15585             :                 "arrOUS[2] append -3.141592",
   15586             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15587           2 :             );
   15588             : 
   15589           1 :         }
   15590             : 
   15591           1 :         void append_020()
   15592             :         {
   15593           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   15594           1 :             float                  input = (float)atof("-3.5025255");
   15595             : 
   15596           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15597           1 :             aStrBuf.append( input );
   15598             : 
   15599           2 :             CPPUNIT_ASSERT_MESSAGE
   15600             :             (
   15601             :                 "arrOUS[2] append -3.5025255",
   15602             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15603           2 :             );
   15604             : 
   15605           1 :         }
   15606             : 
   15607           1 :         void append_021()
   15608             :         {
   15609           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   15610           1 :             float                  input = (float)atof("-3.00390625");
   15611             : 
   15612           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15613           1 :             aStrBuf.append( input );
   15614             : 
   15615           2 :             CPPUNIT_ASSERT_MESSAGE
   15616             :             (
   15617             :                 "arrOUS[2] append -3.0039062",
   15618             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15619           2 :             );
   15620             : 
   15621           1 :         }
   15622             : 
   15623           1 :         void append_022()
   15624             :         {
   15625           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   15626           1 :             float                  input = (float)atof("-3.0");
   15627             : 
   15628           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15629           1 :             aStrBuf.append( input );
   15630             : 
   15631           2 :             CPPUNIT_ASSERT_MESSAGE
   15632             :             (
   15633             :                 "arrOUS[3] append -3.0",
   15634             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15635           2 :             );
   15636             : 
   15637           1 :         }
   15638             : 
   15639           1 :         void append_023()
   15640             :         {
   15641           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   15642           1 :             float                  input = (float)atof("-3.5");
   15643             : 
   15644           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15645           1 :             aStrBuf.append( input );
   15646             : 
   15647           2 :             CPPUNIT_ASSERT_MESSAGE
   15648             :             (
   15649             :                 "arrOUS[3] append -3.5",
   15650             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15651           2 :             );
   15652             : 
   15653           1 :         }
   15654             : 
   15655           1 :         void append_024()
   15656             :         {
   15657           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   15658           1 :             float                  input = (float)atof("-3.0625");
   15659             : 
   15660           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15661           1 :             aStrBuf.append( input );
   15662             : 
   15663           2 :             CPPUNIT_ASSERT_MESSAGE
   15664             :             (
   15665             :                 "arrOUS[3] append -3.0625",
   15666             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15667           2 :             );
   15668             : 
   15669           1 :         }
   15670             : 
   15671           1 :         void append_025()
   15672             :         {
   15673           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   15674           1 :             float                  input = (float)atof("-3.502525");
   15675             : 
   15676           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15677           1 :             aStrBuf.append( input );
   15678             : 
   15679           2 :             CPPUNIT_ASSERT_MESSAGE
   15680             :             (
   15681             :                 "arrOUS[3] append -3.502525",
   15682             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15683           2 :             );
   15684             : 
   15685           1 :         }
   15686             : 
   15687             : #ifdef WITH_CORE
   15688             :         void append_036()
   15689             :         {
   15690             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
   15691             :             float                  input = (float)atof("-3.0");
   15692             : 
   15693             :             sal_Int32 nLen = aStrBuf.getLength();
   15694             :             aStrBuf.append( input );
   15695             : 
   15696             :             CPPUNIT_ASSERT_MESSAGE
   15697             :             (
   15698             :                 "OStringBuffer( kSInt32Max ) append -3.0",
   15699             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15700             :             );
   15701             : 
   15702             :         }
   15703             : 
   15704             :         void append_037()
   15705             :         {
   15706             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
   15707             :             float                  input = (float)atof("-3.5");
   15708             : 
   15709             :             sal_Int32 nLen = aStrBuf.getLength();
   15710             :             aStrBuf.append( input );
   15711             : 
   15712             :             CPPUNIT_ASSERT_MESSAGE
   15713             :             (
   15714             :                 "OStringBuffer( kSInt32Max ) append -3.5",
   15715             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15716             :             );
   15717             : 
   15718             :         }
   15719             : 
   15720             :         void append_038()
   15721             :         {
   15722             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
   15723             :             float                  input = (float)atof("-3.0625");
   15724             : 
   15725             :             sal_Int32 nLen = aStrBuf.getLength();
   15726             :             aStrBuf.append( input );
   15727             : 
   15728             :             CPPUNIT_ASSERT_MESSAGE
   15729             :             (
   15730             :                 "OStringBuffer( kSInt32Max ) append -3.0625",
   15731             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15732             :             );
   15733             : 
   15734             :         }
   15735             : 
   15736             :         void append_039()
   15737             :         {
   15738             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
   15739             :             float                  input = (float)atof("-3.502525");
   15740             : 
   15741             :             sal_Int32 nLen = aStrBuf.getLength();
   15742             :             aStrBuf.append( input );
   15743             : 
   15744             :             CPPUNIT_ASSERT_MESSAGE
   15745             :             (
   15746             :                 "OStringBuffer( kSInt32Max ) append -3.502525",
   15747             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15748             :             );
   15749             : 
   15750             :         }
   15751             : 
   15752             :         void append_040()
   15753             :         {
   15754             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
   15755             :             float                  input = (float)atof("-3.141592");
   15756             : 
   15757             :             sal_Int32 nLen = aStrBuf.getLength();
   15758             :             aStrBuf.append( input );
   15759             : 
   15760             :             CPPUNIT_ASSERT_MESSAGE
   15761             :             (
   15762             :                 "OStringBuffer( kSInt32Max ) append -3.141592",
   15763             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15764             :             );
   15765             : 
   15766             :         }
   15767             : 
   15768             :         void append_041()
   15769             :         {
   15770             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
   15771             :             float                  input = (float)atof("-3.5025255");
   15772             : 
   15773             :             sal_Int32 nLen = aStrBuf.getLength();
   15774             :             aStrBuf.append( input );
   15775             : 
   15776             :             CPPUNIT_ASSERT_MESSAGE
   15777             :             (
   15778             :                 "OStringBuffer( kSInt32Max ) append -3.5025255",
   15779             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15780             :             );
   15781             : 
   15782             :         }
   15783             : 
   15784             :         void append_042()
   15785             :         {
   15786             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
   15787             :             float                  input = (float)atof("-3.00390625");
   15788             : 
   15789             :             sal_Int32 nLen = aStrBuf.getLength();
   15790             :             aStrBuf.append( input );
   15791             : 
   15792             :             CPPUNIT_ASSERT_MESSAGE
   15793             :             (
   15794             :                 "OStringBuffer( kSInt32Max ) append -3.0039062",
   15795             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15796             :             );
   15797             : 
   15798             :         }
   15799             : #endif
   15800             : 
   15801           2 :         CPPUNIT_TEST_SUITE( append_008_Float_Negative );
   15802           1 :         CPPUNIT_TEST( append_001 );
   15803           1 :         CPPUNIT_TEST( append_002 );
   15804           1 :         CPPUNIT_TEST( append_003 );
   15805           1 :         CPPUNIT_TEST( append_004 );
   15806           1 :         CPPUNIT_TEST( append_005 );
   15807           1 :         CPPUNIT_TEST( append_006 );
   15808           1 :         CPPUNIT_TEST( append_007 );
   15809           1 :         CPPUNIT_TEST( append_008 );
   15810           1 :         CPPUNIT_TEST( append_009 );
   15811           1 :         CPPUNIT_TEST( append_010 );
   15812           1 :         CPPUNIT_TEST( append_011 );
   15813           1 :         CPPUNIT_TEST( append_012 );
   15814           1 :         CPPUNIT_TEST( append_013 );
   15815           1 :         CPPUNIT_TEST( append_014 );
   15816           1 :         CPPUNIT_TEST( append_015 );
   15817           1 :         CPPUNIT_TEST( append_016 );
   15818           1 :         CPPUNIT_TEST( append_017 );
   15819           1 :         CPPUNIT_TEST( append_018 );
   15820           1 :         CPPUNIT_TEST( append_019 );
   15821           1 :         CPPUNIT_TEST( append_020 );
   15822           1 :         CPPUNIT_TEST( append_021 );
   15823           1 :         CPPUNIT_TEST( append_022 );
   15824           1 :         CPPUNIT_TEST( append_023 );
   15825           1 :         CPPUNIT_TEST( append_024 );
   15826           1 :         CPPUNIT_TEST( append_025 );
   15827             : #ifdef WITH_CORE
   15828             :         CPPUNIT_TEST( append_026 );
   15829             :         CPPUNIT_TEST( append_027 );
   15830             :         CPPUNIT_TEST( append_028 );
   15831             :         CPPUNIT_TEST( append_029 );
   15832             :         CPPUNIT_TEST( append_030 );
   15833             : #endif
   15834           2 :         CPPUNIT_TEST_SUITE_END();
   15835             :     };
   15836             : 
   15837             : // testing the method append( double d )
   15838             : 
   15839           8 :     class checkdouble : public CppUnit::TestFixture
   15840             :     {
   15841             :     public:
   15842           4 :         bool checkIfStrBufContainAtPosTheDouble(rtl::OStringBuffer const& _sStrBuf, sal_Int32 _nLen, double _nDouble)
   15843             :             {
   15844           4 :                 OString sDoubleValue;
   15845           4 :                 sDoubleValue = OString::number(_nDouble);
   15846             : 
   15847           8 :                 OString sBufferString(_sStrBuf.getStr());
   15848           4 :                 sal_Int32 nPos = sBufferString.indexOf(sDoubleValue);
   15849           4 :                 if ( nPos >= 0 && nPos == _nLen)
   15850             :                 {
   15851           4 :                     return true;
   15852             :                 }
   15853           4 :                 return false;
   15854             :             }
   15855             :     };
   15856             : 
   15857           6 :     class  append_009_double : public checkdouble
   15858             :     {
   15859             :         OString* arrOUS[5];
   15860             : 
   15861             :     public:
   15862           2 :         void setUp() SAL_OVERRIDE
   15863             :         {
   15864           2 :             arrOUS[0] = new OString( kTestStr7 );
   15865           2 :             arrOUS[1] = new OString(  );
   15866           2 :             arrOUS[2] = new OString( kTestStr25 );
   15867           2 :             arrOUS[3] = new OString( "" );
   15868           2 :             arrOUS[4] = new OString( kTestStr28 );
   15869             : 
   15870           2 :         }
   15871             : 
   15872           2 :         void tearDown() SAL_OVERRIDE
   15873             :         {
   15874           2 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
   15875           2 :             delete arrOUS[3]; delete arrOUS[4];
   15876           2 :         }
   15877             : 
   15878           1 :         void append_001()
   15879             :         {
   15880           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   15881           1 :             double                 input = atof("3.0");
   15882             : 
   15883           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15884           1 :             aStrBuf.append( input );
   15885             : 
   15886           2 :             CPPUNIT_ASSERT_MESSAGE
   15887             :             (
   15888             :                 "arrOUS[0] append 3.0",
   15889             :                 checkIfStrBufContainAtPosTheDouble(aStrBuf, nLen, input)
   15890           2 :             );
   15891             : 
   15892           1 :         }
   15893             : 
   15894           1 :         void append_035()
   15895             :         {
   15896           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   15897           1 :             double                 input = atof("3.141592653589793238462643");
   15898             : 
   15899           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15900           1 :             aStrBuf.append( input );
   15901             : 
   15902           2 :             CPPUNIT_ASSERT_MESSAGE
   15903             :             (
   15904             :                 "arrOUS[4] append 3.141592653589793238462643",
   15905             :                 checkIfStrBufContainAtPosTheDouble(aStrBuf, nLen, input)
   15906           2 :             );
   15907             : 
   15908           1 :         }
   15909             : 
   15910           2 :         CPPUNIT_TEST_SUITE( append_009_double );
   15911           1 :         CPPUNIT_TEST( append_001 );
   15912           1 :         CPPUNIT_TEST( append_035 );
   15913           2 :         CPPUNIT_TEST_SUITE_END();
   15914             :     };
   15915             : 
   15916             : // testing the method append( double f ) for negative value
   15917             : 
   15918           6 :     class  append_009_Double_Negative : public checkdouble
   15919             :     {
   15920             :         OString* arrOUS[5];
   15921             : 
   15922             :     public:
   15923           2 :         void setUp() SAL_OVERRIDE
   15924             :         {
   15925           2 :             arrOUS[0] = new OString( kTestStr7 );
   15926           2 :             arrOUS[1] = new OString(  );
   15927           2 :             arrOUS[2] = new OString( kTestStr25 );
   15928           2 :             arrOUS[3] = new OString( "" );
   15929           2 :             arrOUS[4] = new OString( kTestStr28 );
   15930             : 
   15931           2 :         }
   15932             : 
   15933           2 :         void tearDown() SAL_OVERRIDE
   15934             :         {
   15935           2 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
   15936           2 :             delete arrOUS[3]; delete arrOUS[4];
   15937           2 :         }
   15938             : 
   15939           1 :         void append_001()
   15940             :         {
   15941           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   15942           1 :             double                 input = atof("-3.0");
   15943             : 
   15944           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15945           1 :             aStrBuf.append( input );
   15946             : 
   15947           2 :             CPPUNIT_ASSERT_MESSAGE
   15948             :             (
   15949             :                 "arrOUS[0] append -3.0",
   15950             :                 checkIfStrBufContainAtPosTheDouble(aStrBuf, nLen, input)
   15951           2 :             );
   15952             : 
   15953           1 :         }
   15954             : 
   15955           1 :         void append_035()
   15956             :         {
   15957           1 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   15958           1 :             double                 input = atof("-3.141592653589793238462643");
   15959             : 
   15960           1 :             sal_Int32 nLen = aStrBuf.getLength();
   15961           1 :             aStrBuf.append( input );
   15962             : 
   15963           2 :             CPPUNIT_ASSERT_MESSAGE
   15964             :             (
   15965             :                 "arrOUS[4] append -3.141592653589793238462643",
   15966             :                 checkIfStrBufContainAtPosTheDouble(aStrBuf, nLen, input)
   15967           2 :             );
   15968             : 
   15969           1 :         }
   15970             : 
   15971           2 :         CPPUNIT_TEST_SUITE( append_009_Double_Negative );
   15972           1 :         CPPUNIT_TEST( append_001 );
   15973           1 :         CPPUNIT_TEST( append_035 );
   15974           2 :         CPPUNIT_TEST_SUITE_END();
   15975             :     };
   15976             : } // namespace rtl_OStringBuffer
   15977             : 
   15978           1 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::ctors);
   15979           1 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::makeStringAndClear);
   15980           1 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::getLength);
   15981           1 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::getCapacity);
   15982           1 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::ensureCapacity);
   15983           1 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::setLength);
   15984           1 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::csuc);
   15985           1 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::getStr);
   15986           1 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_001);
   15987           1 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_002);
   15988           1 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_003);
   15989           1 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_004);
   15990           1 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_005);
   15991           1 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32);
   15992           1 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32_Bounderies);
   15993           1 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32_Negative);
   15994           1 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32_WrongRadix);
   15995           1 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32_defaultParam);
   15996           1 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64);
   15997           1 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64_Bounderies);
   15998           1 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64_Negative);
   15999           1 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64_WrongRadix);
   16000           1 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64_defaultParam);
   16001           1 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_008_float);
   16002           1 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_008_Float_Negative);
   16003           1 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_009_double);
   16004           1 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_009_Double_Negative);
   16005           1 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::remove);
   16006             : 
   16007           4 : CPPUNIT_PLUGIN_IMPLEMENT();
   16008             : 
   16009             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10