LCOV - code coverage report
Current view: top level - libreoffice/sal/qa/OStringBuffer - rtl_OStringBuffer.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 8259 8261 99.9 %
Date: 2012-12-17 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_String_Utils.hxx>
      24             : #include <rtl/strbuf.hxx>
      25             : 
      26             : #include "cppunit/TestAssert.h"
      27             : #include "cppunit/TestFixture.h"
      28             : #include "cppunit/extensions/HelperMacros.h"
      29             : #include "cppunit/plugin/TestPlugIn.h"
      30             : #include <string.h>
      31             : 
      32             : using ::rtl::OStringBuffer;
      33             : using ::rtl::OString;
      34             : // This file contains cppunit tests for the
      35             : // OString and OStringBuffer classes
      36             : 
      37             : //------------------------------------------------------------------------
      38             : // testing constructors
      39             : //------------------------------------------------------------------------
      40             : 
      41             : namespace rtl_OStringBuffer
      42             : {
      43          42 :     class  ctors : public CppUnit::TestFixture
      44             :     {
      45             :     public:
      46             : 
      47           2 :         void ctor_001()
      48             :         {
      49           2 :             ::rtl::OStringBuffer aStrBuf;
      50           2 :             const sal_Char* pStr = aStrBuf.getStr();
      51             : 
      52           4 :             CPPUNIT_ASSERT_MESSAGE
      53             :             (
      54             :                 "New OStringBuffer containing no characters",
      55             :                 aStrBuf.getLength() == 0 &&
      56             :                 *pStr == '\0' && aStrBuf.getCapacity() == 16
      57           4 :             );
      58           2 :         }
      59             : 
      60           2 :         void ctor_002()
      61             :         {
      62           2 :             ::rtl::OString       aStrtmp( kTestStr1 );
      63           2 :             ::rtl::OStringBuffer aStrBuftmp( aStrtmp );
      64           2 :             ::rtl::OStringBuffer aStrBuf( aStrBuftmp );
      65             :             // sal_Bool res = cmpstr(aStrBuftmp.getStr(),aStrBuf.getStr());
      66             : 
      67           2 :             sal_Int32 nLenStrBuftmp = aStrBuftmp.getLength();
      68             : 
      69           2 :             rtl::OString sStr(aStrBuftmp.getStr());
      70           2 :             sal_Bool res = aStrtmp.equals( sStr );
      71             : 
      72           4 :             CPPUNIT_ASSERT_MESSAGE
      73             :             (
      74             :                 "New OStringBuffer from another OStringBuffer",
      75             :                 aStrBuf.getLength() == nLenStrBuftmp &&
      76             :                 aStrBuf.getCapacity() == aStrBuftmp.getCapacity() &&
      77             :                 res
      78           4 :             );
      79             : 
      80           2 :         }
      81             : 
      82           2 :         void ctor_003()
      83             :         {
      84           2 :             ::rtl::OStringBuffer aStrBuf1(kTestStr2Len);
      85           2 :             ::rtl::OStringBuffer aStrBuf2(0);
      86             : 
      87           2 :             const sal_Char* pStr1 = aStrBuf1.getStr();
      88           2 :             const sal_Char* pStr2 = aStrBuf2.getStr();
      89             : 
      90           4 :             CPPUNIT_ASSERT_MESSAGE
      91             :             (
      92             :                 "New OStringBuffer containing no characters and contain assigned capacity",
      93             :                 aStrBuf1.getLength() == 0 &&
      94             :                 *pStr1 == '\0' &&
      95             :                 aStrBuf1.getCapacity() == kTestStr2Len &&
      96             :                 aStrBuf2.getLength() == 0 &&
      97             :                 *pStr2 == '\0' &&
      98             :                 aStrBuf2.getCapacity() == 0
      99           4 :             );
     100             : 
     101           2 :         }
     102             : 
     103           2 :         void ctor_003_1()
     104             :         {
     105             :             // StringBuffer with created negative size are the
     106             :             // same as empty StringBuffers
     107           2 :             ::rtl::OStringBuffer aStrBuf3(kNonSInt32Max);
     108             : 
     109           2 :             const sal_Char* pStr = aStrBuf3.getStr();
     110             : 
     111           4 :             CPPUNIT_ASSERT_MESSAGE
     112             :             (
     113             :                 "New OStringBuffer containing no characters and contain assigned capacity",
     114             :                 aStrBuf3.getLength() == 0 &&
     115             :                 *pStr == '\0' &&
     116             :                 aStrBuf3.getCapacity() == kNonSInt32Max
     117           4 :             );
     118           2 :         }
     119             : 
     120           2 :         void ctor_004()
     121             :         {
     122           2 :             ::rtl::OString aStrtmp( kTestStr1 );
     123           2 :             ::rtl::OStringBuffer aStrBuf( aStrtmp );
     124           2 :             sal_Int32 leg = aStrBuf.getLength();
     125             : 
     126           4 :             CPPUNIT_ASSERT_MESSAGE
     127             :             (
     128             :                 "New OStringBuffer from OString",
     129             :                 aStrBuf.getStr() == aStrtmp &&
     130             :                 leg == aStrtmp.pData->length &&
     131             :                 aStrBuf.getCapacity() == leg+16
     132             : 
     133           4 :             );
     134           2 :         }
     135             : 
     136           2 :         void ctor_005() {
     137           2 :             rtl::OStringBuffer b1;
     138           2 :             b1.makeStringAndClear();
     139           2 :             rtl::OStringBuffer b2(b1);
     140           2 :             (void)b2;
     141           2 :         }
     142             : 
     143           2 :         void ctor_006()
     144             :         {
     145             :             //pass in a const char*, get a temp
     146             :             //OString
     147           2 :             ::rtl::OStringBuffer aStrBuf(kTestStr1);
     148           2 :             sal_Int32 leg = aStrBuf.getLength();
     149             : 
     150           4 :             CPPUNIT_ASSERT_MESSAGE
     151             :             (
     152             :                 "New OStringBuffer from const char*",
     153             :                 leg == rtl_str_getLength(kTestStr1) &&
     154             :                 aStrBuf.getCapacity() == leg+16
     155           4 :             );
     156           2 :         }
     157             : 
     158           4 :         CPPUNIT_TEST_SUITE(ctors);
     159           2 :         CPPUNIT_TEST(ctor_001);
     160           2 :         CPPUNIT_TEST(ctor_002);
     161           2 :         CPPUNIT_TEST(ctor_003);
     162           2 :         CPPUNIT_TEST(ctor_003_1);
     163           2 :         CPPUNIT_TEST(ctor_004);
     164           2 :         CPPUNIT_TEST(ctor_005);
     165           2 :         CPPUNIT_TEST(ctor_006);
     166           4 :         CPPUNIT_TEST_SUITE_END();
     167             :     };
     168             : 
     169             : // -----------------------------------------------------------------------------
     170             : 
     171          48 :     class  makeStringAndClear : public CppUnit::TestFixture
     172             :     {
     173             :         OString* arrOUS[6];
     174             : 
     175             :     public:
     176          16 :         void setUp()
     177             :         {
     178          16 :             arrOUS[0] = new OString( kTestStr1 );
     179          16 :             arrOUS[1] = new OString( kTestStr14 );
     180          16 :             arrOUS[2] = new OString( kTestStr25 );
     181          16 :             arrOUS[3] = new OString( kTestStr27 );
     182          16 :             arrOUS[4] = new OString( kTestStr29 );
     183          16 :             arrOUS[5] = new OString( "\0", 1 );
     184             : 
     185          16 :         }
     186             : 
     187          16 :         void tearDown()
     188             :         {
     189          16 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
     190          16 :             delete arrOUS[3]; delete arrOUS[4]; delete arrOUS[5];
     191          16 :         }
     192             : 
     193           2 :         void makeStringAndClear_001()
     194             :         {
     195           2 :             ::rtl::OStringBuffer   aStrBuf1;
     196           2 :             ::rtl::OString         aStr1;
     197             : 
     198           2 :             sal_Bool lastRes = (aStrBuf1.makeStringAndClear() ==  aStr1 );
     199             : 
     200           4 :             CPPUNIT_ASSERT_MESSAGE
     201             :             (
     202             :                 "two empty strings(def. constructor)",
     203             :                 lastRes && ( aStrBuf1.getCapacity() == 0 ) &&
     204             :                         ( *(aStrBuf1.getStr()) == '\0' )
     205           4 :             );
     206             : 
     207           2 :         }
     208             : 
     209           2 :         void makeStringAndClear_002()
     210             :         {
     211           2 :             ::rtl::OStringBuffer   aStrBuf2(26);
     212           2 :             ::rtl::OString         aStr2;
     213             : 
     214           2 :             sal_Bool lastRes = (aStrBuf2.makeStringAndClear() == aStr2 );
     215             : 
     216           4 :             CPPUNIT_ASSERT_MESSAGE
     217             :             (
     218             :                 "two empty strings(with a argu)",
     219             :                 lastRes && ( aStrBuf2.getCapacity() == 0 ) &&
     220             :                         ( *(aStrBuf2.getStr()) == '\0' )
     221           4 :             );
     222             : 
     223           2 :         }
     224             : 
     225           2 :         void makeStringAndClear_003()
     226             :         {
     227           2 :             ::rtl::OStringBuffer   aStrBuf3(*arrOUS[0]);
     228           2 :             ::rtl::OString        aStr3(*arrOUS[0]);
     229             : 
     230           2 :             sal_Bool lastRes = (aStrBuf3.makeStringAndClear() == aStr3 );
     231             : 
     232           4 :             CPPUNIT_ASSERT_MESSAGE
     233             :             (
     234             :                 "normal string",
     235             :                 lastRes && ( aStrBuf3.getCapacity() == 0 ) &&
     236             :                         ( *(aStrBuf3.getStr()) == '\0' )
     237           4 :             );
     238             : 
     239           2 :         }
     240             : 
     241           2 :         void makeStringAndClear_004()
     242             :         {
     243           2 :             ::rtl::OStringBuffer   aStrBuf4(*arrOUS[1]);
     244           2 :             ::rtl::OString         aStr4(*arrOUS[1]);
     245             : 
     246           2 :             sal_Bool lastRes = (aStrBuf4.makeStringAndClear() ==  aStr4 );
     247             : 
     248           4 :             CPPUNIT_ASSERT_MESSAGE
     249             :             (
     250             :                 "string with space ",
     251             :                 lastRes && ( aStrBuf4.getCapacity() == 0 ) &&
     252             :                         ( *(aStrBuf4.getStr()) == '\0' )
     253           4 :             );
     254           2 :         }
     255             : 
     256           2 :         void makeStringAndClear_005()
     257             :         {
     258           2 :             ::rtl::OStringBuffer   aStrBuf5(*arrOUS[2]);
     259           2 :             ::rtl::OString         aStr5(*arrOUS[2]);
     260             : 
     261           2 :             sal_Bool lastRes = (aStrBuf5.makeStringAndClear() ==  aStr5 );
     262             : 
     263           4 :             CPPUNIT_ASSERT_MESSAGE
     264             :             (
     265             :                 "empty string",
     266             :                 lastRes && ( aStrBuf5.getCapacity() == 0 ) &&
     267             :                         ( *(aStrBuf5.getStr()) == '\0' )
     268           4 :             );
     269           2 :         }
     270             : 
     271           2 :         void makeStringAndClear_006()
     272             :         {
     273           2 :             ::rtl::OStringBuffer   aStrBuf6(*arrOUS[3]);
     274           2 :             ::rtl::OString         aStr6(*arrOUS[3]);
     275             : 
     276           2 :             sal_Bool lastRes = (aStrBuf6.makeStringAndClear() == aStr6 );
     277             : 
     278           4 :             CPPUNIT_ASSERT_MESSAGE
     279             :             (
     280             :                 "string with a character",
     281             :                 lastRes && ( aStrBuf6.getCapacity() == 0 ) &&
     282             :                         ( *(aStrBuf6.getStr()) == '\0' )
     283           4 :             );
     284           2 :         }
     285             : 
     286           2 :         void makeStringAndClear_007()
     287             :         {
     288           2 :             ::rtl::OStringBuffer   aStrBuf7(*arrOUS[4]);
     289           2 :             ::rtl::OString         aStr7(*arrOUS[4]);
     290             : 
     291           2 :             sal_Bool lastRes = (aStrBuf7.makeStringAndClear() == aStr7 );
     292             : 
     293           4 :             CPPUNIT_ASSERT_MESSAGE
     294             :             (
     295             :                 "string with special characters",
     296             :                 lastRes && ( aStrBuf7.getCapacity() == 0 ) &&
     297             :                         ( *(aStrBuf7.getStr()) == '\0' )
     298           4 :             );
     299           2 :         }
     300             : 
     301           2 :         void makeStringAndClear_008()
     302             :         {
     303           2 :             ::rtl::OStringBuffer   aStrBuf8(*arrOUS[5]);
     304           2 :             ::rtl::OString         aStr8(*arrOUS[5]);
     305             : 
     306           2 :             sal_Bool lastRes = (aStrBuf8.makeStringAndClear() == aStr8 );
     307             : 
     308           4 :             CPPUNIT_ASSERT_MESSAGE
     309             :             (
     310             :                 "string only with (\0)",
     311             :                 lastRes && ( aStrBuf8.getCapacity() == 0 ) &&
     312             :                         ( *(aStrBuf8.getStr()) == '\0' )
     313           4 :             );
     314           2 :         }
     315             : 
     316           4 :         CPPUNIT_TEST_SUITE(makeStringAndClear);
     317           2 :         CPPUNIT_TEST(makeStringAndClear_001);
     318           2 :         CPPUNIT_TEST(makeStringAndClear_002);
     319           2 :         CPPUNIT_TEST(makeStringAndClear_003);
     320           2 :         CPPUNIT_TEST(makeStringAndClear_004);
     321           2 :         CPPUNIT_TEST(makeStringAndClear_005);
     322           2 :         CPPUNIT_TEST(makeStringAndClear_006);
     323           2 :         CPPUNIT_TEST(makeStringAndClear_007);
     324           2 :         CPPUNIT_TEST(makeStringAndClear_008);
     325           4 :         CPPUNIT_TEST_SUITE_END();
     326             :     };
     327             : 
     328             : 
     329           6 :     class  remove : public CppUnit::TestFixture
     330             :     {
     331             :     public:
     332           2 :         void setUp()
     333             :         {
     334           2 :         }
     335             : 
     336           2 :         void tearDown()
     337             :         {
     338           2 :         }
     339             : 
     340           2 :         void remove_001()
     341             :         {
     342             :             ::rtl::OStringBuffer sb(
     343           2 :                 RTL_CONSTASCII_STRINGPARAM("Red Hat, Inc."));
     344             : 
     345           2 :             sb.remove(0, 4);
     346           4 :             CPPUNIT_ASSERT(sb.toString().equalsL(
     347           2 :                 RTL_CONSTASCII_STRINGPARAM("Hat, Inc.")));
     348             : 
     349           2 :             sb.remove(3, 6);
     350           4 :             CPPUNIT_ASSERT(sb.toString().equalsL(
     351           2 :                 RTL_CONSTASCII_STRINGPARAM("Hat")));
     352             : 
     353           2 :             sb.remove(0, 100);
     354             : 
     355           2 :             CPPUNIT_ASSERT(sb.toString().isEmpty());
     356             : 
     357           2 :             sb.append(RTL_CONSTASCII_STRINGPARAM("Red Hat, Inc."));
     358             : 
     359           2 :             sb.remove(3, 100);
     360             : 
     361           4 :             CPPUNIT_ASSERT(sb.toString().equalsL(
     362           2 :                 RTL_CONSTASCII_STRINGPARAM("Red")));
     363             : 
     364           2 :             sb.remove(0, sb.getLength());
     365             : 
     366           2 :             CPPUNIT_ASSERT(sb.toString().isEmpty());
     367           2 :         }
     368             : 
     369           4 :         CPPUNIT_TEST_SUITE(remove);
     370           2 :         CPPUNIT_TEST(remove_001);
     371           4 :         CPPUNIT_TEST_SUITE_END();
     372             :     };
     373             : 
     374             : 
     375             : // -----------------------------------------------------------------------------
     376             : 
     377          48 :     class  getLength : public CppUnit::TestFixture
     378             :     {
     379             :         OString* arrOUS[6];
     380             : 
     381             :     public:
     382          16 :         void setUp()
     383             :         {
     384          16 :             arrOUS[0] = new OString( kTestStr1 );
     385          16 :             arrOUS[1] = new OString( "1" );
     386          16 :             arrOUS[2] = new OString( );
     387          16 :             arrOUS[3] = new OString( "" );
     388          16 :             arrOUS[4] = new OString( "\0", 1 );
     389          16 :             arrOUS[5] = new OString( kTestStr2 );
     390             : 
     391          16 :         }
     392             : 
     393          16 :         void tearDown()
     394             :         {
     395          16 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
     396          16 :             delete arrOUS[3]; delete arrOUS[4]; delete arrOUS[5];
     397          16 :         }
     398             : 
     399           2 :         void getLength_001()
     400             :         {
     401           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
     402           2 :             sal_Int32              expVal = kTestStr1Len;
     403             : 
     404           4 :             CPPUNIT_ASSERT_MESSAGE
     405             :             (
     406             :                 "length of ascii string",
     407             :                 aStrBuf.getLength() == expVal
     408           4 :             );
     409             : 
     410           2 :         }
     411             : 
     412           2 :         void getLength_002()
     413             :         {
     414           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
     415           2 :             sal_Int32              expVal = 1;
     416             : 
     417           4 :             CPPUNIT_ASSERT_MESSAGE
     418             :             (
     419             :                 "length of ascci string of size 1",
     420             :                 aStrBuf.getLength() == expVal
     421           4 :             );
     422           2 :         }
     423             : 
     424           2 :         void getLength_003()
     425             :         {
     426           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
     427           2 :             sal_Int32              expVal = 0;
     428             : 
     429           4 :             CPPUNIT_ASSERT_MESSAGE
     430             :             (
     431             :                 "length of empty string",
     432             :                 aStrBuf.getLength() == expVal
     433           4 :             );
     434           2 :         }
     435             : 
     436           2 :         void getLength_004()
     437             :         {
     438           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
     439           2 :             sal_Int32              expVal = 0;
     440             : 
     441           4 :             CPPUNIT_ASSERT_MESSAGE
     442             :             (
     443             :                 "length of empty string (empty ascii string arg)",
     444             :                 aStrBuf.getLength() == expVal
     445           4 :             );
     446           2 :         }
     447             : 
     448           2 :         void getLength_005()
     449             :         {
     450           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
     451           2 :             sal_Int32              expVal = 1;
     452             : 
     453           4 :             CPPUNIT_ASSERT_MESSAGE
     454             :             (
     455             :                 "length of string with \\0 embedded",
     456             :                 aStrBuf.getLength() == expVal
     457           4 :             );
     458           2 :         }
     459             : 
     460           2 :         void getLength_006()
     461             :         {
     462           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[5] );
     463           2 :             sal_Int32              expVal = kTestStr2Len;
     464             : 
     465           4 :             CPPUNIT_ASSERT_MESSAGE
     466             :             (
     467             :                 "length(>16) of ascii string",
     468             :                 aStrBuf.getLength() == expVal
     469           4 :             );
     470           2 :         }
     471             : 
     472           2 :         void getLength_007()
     473             :         {
     474           2 :             ::rtl::OStringBuffer   aStrBuf;
     475           2 :             sal_Int32              expVal = 0;
     476             : 
     477           4 :             CPPUNIT_ASSERT_MESSAGE
     478             :             (
     479             :                 "length of empty string (default constructor)",
     480             :                 aStrBuf.getLength()== expVal
     481           4 :             );
     482           2 :         }
     483             : 
     484           2 :         void getLength_008()
     485             :         {
     486           2 :             ::rtl::OStringBuffer   aStrBuf( 26 );
     487           2 :             sal_Int32               expVal   = 0;
     488             : 
     489           4 :             CPPUNIT_ASSERT_MESSAGE
     490             :             (
     491             :                 "length of empty string (with capacity)",
     492             :                 aStrBuf.getLength()== expVal
     493           4 :             );
     494           2 :         }
     495             : 
     496           4 :         CPPUNIT_TEST_SUITE( getLength );
     497           2 :         CPPUNIT_TEST( getLength_001 );
     498           2 :         CPPUNIT_TEST( getLength_002 );
     499           2 :         CPPUNIT_TEST( getLength_003 );
     500           2 :         CPPUNIT_TEST( getLength_004 );
     501           2 :         CPPUNIT_TEST( getLength_005 );
     502           2 :         CPPUNIT_TEST( getLength_006 );
     503           2 :         CPPUNIT_TEST( getLength_007 );
     504           2 :         CPPUNIT_TEST( getLength_008 );
     505           4 :         CPPUNIT_TEST_SUITE_END();
     506             :     };
     507             : 
     508             : // -----------------------------------------------------------------------------
     509             : 
     510          72 :     class  getCapacity : public CppUnit::TestFixture
     511             :     {
     512             :         OString* arrOUS[6];
     513             : 
     514             :     public:
     515          24 :         void setUp()
     516             :         {
     517          24 :             arrOUS[0] = new OString( kTestStr1 );
     518          24 :             arrOUS[1] = new OString( "1" );
     519          24 :             arrOUS[2] = new OString( );
     520          24 :             arrOUS[3] = new OString( "" );
     521          24 :             arrOUS[4] = new OString( "\0", 1 );
     522          24 :             arrOUS[5] = new OString( kTestStr2 );
     523             : 
     524          24 :         }
     525             : 
     526          24 :         void tearDown()
     527             :         {
     528          24 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
     529          24 :             delete arrOUS[3]; delete arrOUS[4]; delete arrOUS[5];
     530          24 :         }
     531             : 
     532           2 :         void getCapacity_001()
     533             :         {
     534           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
     535           2 :             sal_Int32              expVal = kTestStr1Len+16;
     536             : 
     537           4 :             CPPUNIT_ASSERT_MESSAGE
     538             :             (
     539             :                 "capacity of ascii string",
     540             :                 aStrBuf.getCapacity()== expVal
     541           4 :             );
     542             : 
     543           2 :         }
     544             : 
     545           2 :         void getCapacity_002()
     546             :         {
     547           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
     548           2 :             sal_Int32              expVal = 1+16;
     549             : 
     550           4 :             CPPUNIT_ASSERT_MESSAGE
     551             :             (
     552             :                 "capacity of ascci string of size 1",
     553             :                 aStrBuf.getCapacity() == expVal
     554           4 :             );
     555           2 :         }
     556             : 
     557           2 :         void getCapacity_003()
     558             :         {
     559           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
     560           2 :             sal_Int32              expVal = 0+16;
     561             : 
     562           4 :             CPPUNIT_ASSERT_MESSAGE
     563             :             (
     564             :                 "capacity of empty string",
     565             :                 aStrBuf.getCapacity() == expVal
     566           4 :             );
     567           2 :         }
     568             : 
     569           2 :         void getCapacity_004()
     570             :         {
     571           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
     572           2 :             sal_Int32              expVal = 0+16;
     573             : 
     574           4 :             CPPUNIT_ASSERT_MESSAGE
     575             :             (
     576             :                 "capacity of empty string (empty ascii string arg)",
     577             :                 aStrBuf.getCapacity()== expVal
     578           4 :             );
     579           2 :         }
     580             : 
     581           2 :         void getCapacity_005()
     582             :         {
     583           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
     584           2 :             sal_Int32              expVal = 1+16;
     585             : 
     586           4 :             CPPUNIT_ASSERT_MESSAGE
     587             :             (
     588             :                 "capacity of string with \\0 embedded",
     589             :                 aStrBuf.getCapacity() == expVal
     590           4 :             );
     591           2 :         }
     592             : 
     593           2 :         void getCapacity_006()
     594             :         {
     595           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[5] );
     596           2 :             sal_Int32              expVal = kTestStr2Len+16;
     597             : 
     598           4 :             CPPUNIT_ASSERT_MESSAGE
     599             :             (
     600             :                 "capacity(>16) of ascii string",
     601             :                 aStrBuf.getCapacity() == expVal
     602           4 :             );
     603           2 :         }
     604             : 
     605           2 :         void getCapacity_007()
     606             :         {
     607           2 :             ::rtl::OStringBuffer   aStrBuf;
     608           2 :             sal_Int32              expVal = 16;
     609             : 
     610           4 :             CPPUNIT_ASSERT_MESSAGE
     611             :             (
     612             :                 "capacity of empty string (default constructor)",
     613             :                 aStrBuf.getCapacity() == expVal
     614           4 :             );
     615           2 :         }
     616             : 
     617           2 :         void getCapacity_009()
     618             :         {
     619           2 :             ::rtl::OStringBuffer   aStrBuf( kNonSInt32Max );
     620           2 :             sal_Int32              expVal = kNonSInt32Max;
     621             : 
     622           4 :             CPPUNIT_ASSERT_MESSAGE
     623             :             (
     624             :                 "capacity of empty string (with capacity -2147483648)",
     625             :                 aStrBuf.getCapacity() == expVal
     626           4 :             );
     627           2 :         }
     628             : 
     629           2 :         void getCapacity_010()
     630             :         {
     631           2 :             ::rtl::OStringBuffer   aStrBuf( 16 );
     632           2 :             sal_Int32              expVal = 16;
     633             : 
     634           4 :             CPPUNIT_ASSERT_MESSAGE
     635             :             (
     636             :                 "capacity of empty string (with capacity 16)",
     637             :                 aStrBuf.getCapacity() == expVal
     638           4 :             );
     639           2 :         }
     640             : 
     641           2 :         void getCapacity_011()
     642             :         {
     643           2 :             ::rtl::OStringBuffer   aStrBuf( 6 );
     644           2 :             sal_Int32              expVal = 6;
     645             : 
     646           4 :             CPPUNIT_ASSERT_MESSAGE
     647             :             (
     648             :                 "capacity of empty string (with capacity 6)",
     649             :                 aStrBuf.getCapacity() == expVal
     650           4 :             );
     651           2 :         }
     652             : 
     653           2 :         void getCapacity_012()
     654             :         {
     655           2 :             ::rtl::OStringBuffer   aStrBuf( 0 );
     656           2 :             sal_Int32              expVal = 0;
     657             : 
     658           4 :             CPPUNIT_ASSERT_MESSAGE
     659             :             (
     660             :                 "capacity of empty string (with capacity 0)",
     661             :                 aStrBuf.getCapacity() == expVal
     662           4 :             );
     663           2 :         }
     664             : 
     665           2 :         void getCapacity_013()
     666             :         {
     667           2 :             ::rtl::OStringBuffer   aStrBuf( -2 );
     668           2 :             sal_Int32              expVal = -2;
     669             : 
     670           4 :             CPPUNIT_ASSERT_MESSAGE
     671             :             (
     672             :                 "capacity of empty string (with capacity -2)",
     673             :                 aStrBuf.getCapacity() == expVal
     674           4 :             );
     675           2 :         }
     676             : 
     677           4 :         CPPUNIT_TEST_SUITE( getCapacity );
     678           2 :         CPPUNIT_TEST( getCapacity_001 );
     679           2 :         CPPUNIT_TEST( getCapacity_002 );
     680           2 :         CPPUNIT_TEST( getCapacity_003 );
     681           2 :         CPPUNIT_TEST( getCapacity_004 );
     682           2 :         CPPUNIT_TEST( getCapacity_005 );
     683           2 :         CPPUNIT_TEST( getCapacity_006 );
     684           2 :         CPPUNIT_TEST( getCapacity_007 );
     685           2 :         CPPUNIT_TEST( getCapacity_009 );
     686           2 :         CPPUNIT_TEST( getCapacity_010 );
     687           2 :         CPPUNIT_TEST( getCapacity_011 );
     688           2 :         CPPUNIT_TEST( getCapacity_012 );
     689           2 :         CPPUNIT_TEST( getCapacity_013 );
     690           4 :         CPPUNIT_TEST_SUITE_END();
     691             :     };
     692             : // -----------------------------------------------------------------------------
     693             : 
     694          96 :     class  ensureCapacity : public CppUnit::TestFixture
     695             :     {
     696           2 :         void ensureCapacity_001()
     697             :         {
     698           2 :             sal_Int32          expVal = 16;
     699           2 :             ::rtl::OStringBuffer   aStrBuf;
     700           2 :             sal_Int32              input = 5;
     701             : 
     702           2 :             aStrBuf.ensureCapacity( input );
     703             : 
     704           4 :             CPPUNIT_ASSERT_MESSAGE
     705             :             (
     706             :                 "capacity equal to 16, minimum is 5",
     707             :                 aStrBuf.getCapacity() == expVal
     708           4 :             );
     709             : 
     710           2 :         }
     711             : 
     712           2 :         void ensureCapacity_002()
     713             :         {
     714           2 :             sal_Int32          expVal = 16;
     715           2 :             ::rtl::OStringBuffer   aStrBuf;
     716           2 :             sal_Int32              input = -5;
     717             : 
     718           2 :             aStrBuf.ensureCapacity( input );
     719             : 
     720           4 :             CPPUNIT_ASSERT_MESSAGE
     721             :             (
     722             :                 "capacity equal to 16, minimum is -5",
     723             :                 aStrBuf.getCapacity() == expVal
     724           4 :             );
     725             : 
     726           2 :         }
     727             : 
     728           2 :         void ensureCapacity_003()
     729             :         {
     730           2 :             sal_Int32          expVal = 16;
     731           2 :             ::rtl::OStringBuffer   aStrBuf;
     732           2 :             sal_Int32              input = 0;
     733             : 
     734           2 :             aStrBuf.ensureCapacity( input );
     735             : 
     736           4 :             CPPUNIT_ASSERT_MESSAGE
     737             :             (
     738             :                 "capacity equal to 16, minimum is 0",
     739             :                 aStrBuf.getCapacity() == expVal
     740           4 :             );
     741             : 
     742           2 :         }
     743             : 
     744           2 :         void ensureCapacity_004()           //the testcase is based on comments
     745             :         {
     746           2 :             sal_Int32          expVal = 20;
     747           2 :             ::rtl::OStringBuffer   aStrBuf;
     748           2 :             sal_Int32              input = 20;
     749             : 
     750           2 :             aStrBuf.ensureCapacity( input );
     751             : 
     752           4 :             CPPUNIT_ASSERT_MESSAGE
     753             :             (
     754             :                 "capacity equal to 16, minimum is 20",
     755             :                 aStrBuf.getCapacity() == expVal
     756           4 :             );
     757             : 
     758           2 :         }
     759             : 
     760           2 :         void ensureCapacity_005()
     761             :         {
     762           2 :             sal_Int32          expVal = 50;
     763           2 :             ::rtl::OStringBuffer   aStrBuf;
     764           2 :             sal_Int32              input = 50;
     765             : 
     766           2 :             aStrBuf.ensureCapacity( input );
     767             : 
     768           4 :             CPPUNIT_ASSERT_MESSAGE
     769             :             (
     770             :                 "capacity equal to 16, minimum is 50",
     771             :                 aStrBuf.getCapacity() == expVal
     772           4 :             );
     773             : 
     774           2 :         }
     775             : 
     776           2 :         void ensureCapacity_006()
     777             :         {
     778           2 :             sal_Int32          expVal = 20;
     779           2 :             ::rtl::OStringBuffer   aStrBuf( 6 );
     780           2 :             sal_Int32              input = 20;
     781             : 
     782           2 :             aStrBuf.ensureCapacity( input );
     783             : 
     784           4 :             CPPUNIT_ASSERT_MESSAGE
     785             :             (
     786             :                 "capacity equal to 6, minimum is 20",
     787             :                 aStrBuf.getCapacity() == expVal
     788           4 :             );
     789             : 
     790           2 :         }
     791             : 
     792           2 :         void ensureCapacity_007()
     793             :         {
     794           2 :             sal_Int32          expVal = 6;
     795           2 :             ::rtl::OStringBuffer   aStrBuf( 6 );
     796           2 :             sal_Int32              input = 2;
     797             : 
     798           2 :             aStrBuf.ensureCapacity( input );
     799             : 
     800           4 :             CPPUNIT_ASSERT_MESSAGE
     801             :             (
     802             :                 "capacity equal to 6, minimum is 2",
     803             :                 aStrBuf.getCapacity() == expVal
     804           4 :             );
     805             : 
     806           2 :         }
     807             : 
     808           2 :         void ensureCapacity_008()
     809             :         {
     810           2 :             sal_Int32          expVal = 6;
     811           2 :             ::rtl::OStringBuffer   aStrBuf( 6 );
     812           2 :             sal_Int32              input = -6;
     813             : 
     814           2 :             aStrBuf.ensureCapacity( input );
     815             : 
     816           4 :             CPPUNIT_ASSERT_MESSAGE
     817             :             (
     818             :                 "capacity equal to 6, minimum is -6",
     819             :                 aStrBuf.getCapacity() == expVal
     820           4 :             );
     821             : 
     822           2 :         }
     823             : 
     824           2 :         void ensureCapacity_009()      //the testcase is based on comments
     825             :         {
     826           2 :             sal_Int32          expVal = 10;
     827           2 :             ::rtl::OStringBuffer   aStrBuf( 6 );
     828           2 :             sal_Int32              input = 10;
     829             : 
     830           2 :             aStrBuf.ensureCapacity( input );
     831             : 
     832           4 :             CPPUNIT_ASSERT_MESSAGE
     833             :             (
     834             :                 "capacity equal to 6, minimum is -6",
     835             :                 aStrBuf.getCapacity() == expVal
     836           4 :             );
     837             : 
     838           2 :         }
     839             : 
     840           2 :         void ensureCapacity_010()
     841             :         {
     842           2 :             sal_Int32          expVal = 6;
     843           2 :             ::rtl::OStringBuffer   aStrBuf( 0 );
     844           2 :             sal_Int32              input = 6;
     845             : 
     846           2 :             aStrBuf.ensureCapacity( input );
     847             : 
     848           4 :             CPPUNIT_ASSERT_MESSAGE
     849             :             (
     850             :                 "capacity equal to 0, minimum is 6",
     851             :                 aStrBuf.getCapacity() == expVal
     852           4 :             );
     853             : 
     854           2 :         }
     855             : 
     856           2 :         void ensureCapacity_011()       //the testcase is based on comments
     857             :         {
     858           2 :             sal_Int32          expVal = 2;  // capacity is x = (str->length + 1) * 2; minimum < x ? x : minimum
     859           2 :             ::rtl::OStringBuffer   aStrBuf( 0 );
     860           2 :             sal_Int32              input = 1;
     861             : 
     862           2 :             aStrBuf.ensureCapacity( input );
     863             : 
     864           4 :             CPPUNIT_ASSERT_MESSAGE
     865             :             (
     866             :                 "capacity equal to 0, minimum is 1",
     867             :                 aStrBuf.getCapacity() == expVal
     868           4 :             );
     869             : 
     870           2 :         }
     871             : 
     872           2 :         void ensureCapacity_012()
     873             :         {
     874           2 :             sal_Int32          expVal = 0;
     875           2 :             ::rtl::OStringBuffer   aStrBuf( 0 );
     876           2 :             sal_Int32              input = -1;
     877             : 
     878           2 :             aStrBuf.ensureCapacity( input );
     879             : 
     880           4 :             CPPUNIT_ASSERT_MESSAGE
     881             :             (
     882             :                 "capacity equal to 0, minimum is -1",
     883             :                 aStrBuf.getCapacity() == expVal
     884           4 :             );
     885             : 
     886           2 :         }
     887             : 
     888           2 :         void ensureCapacity_018()
     889             :         {
     890           2 :             sal_Int32          expVal = 65535;
     891           2 :             ::rtl::OStringBuffer   aStrBuf( kNonSInt32Max );
     892           2 :             sal_Int32              input = 65535;
     893             : 
     894           2 :             aStrBuf.ensureCapacity( input );
     895             : 
     896           4 :             CPPUNIT_ASSERT_MESSAGE
     897             :             (
     898             :                 "capacity equal to -2147483648, minimum is 65535",
     899             :                 aStrBuf.getCapacity() == expVal
     900           4 :             );
     901             : 
     902           2 :         }
     903             : 
     904           2 :         void ensureCapacity_020()
     905             :         {
     906           2 :             sal_Int32          expVal = 2;
     907           2 :             ::rtl::OStringBuffer   aStrBuf( kNonSInt32Max );
     908           2 :             sal_Int32              input = -1;
     909             : 
     910           2 :             aStrBuf.ensureCapacity( input );
     911             : 
     912           4 :             CPPUNIT_ASSERT_MESSAGE
     913             :             (
     914             :                 "capacity equal to -2147483648, minimum is -1",
     915             :                 aStrBuf.getCapacity() == expVal
     916           4 :             );
     917             : 
     918           2 :         }
     919             : 
     920           2 :         void ensureCapacity_021()
     921             :         {
     922           2 :             sal_Int32          expVal = 2;
     923           2 :             ::rtl::OStringBuffer   aStrBuf( kNonSInt32Max );
     924           2 :             sal_Int32              input = 0;
     925             : 
     926           2 :             aStrBuf.ensureCapacity( input );
     927             : 
     928           4 :             CPPUNIT_ASSERT_MESSAGE
     929             :             (
     930             :                 "capacity equal to -2147483648, minimum is 0",
     931             :                 aStrBuf.getCapacity() == expVal
     932           4 :             );
     933             : 
     934           2 :         }
     935             : 
     936           2 :         void ensureCapacity_022()
     937             :         {
     938           2 :             sal_Int32          expVal = kNonSInt32Max;
     939           2 :             ::rtl::OStringBuffer   aStrBuf( kNonSInt32Max );
     940           2 :             sal_Int32              input = kNonSInt32Max;
     941             : 
     942           2 :             aStrBuf.ensureCapacity( input );
     943             : 
     944           4 :             CPPUNIT_ASSERT_MESSAGE
     945             :             (
     946             :                 "capacity equal to -2147483648, minimum is -2147483648",
     947             :                 aStrBuf.getCapacity() == expVal
     948           4 :             );
     949             : 
     950           2 :         }
     951             : 
     952           4 :         CPPUNIT_TEST_SUITE( ensureCapacity );
     953           2 :         CPPUNIT_TEST( ensureCapacity_001 );
     954           2 :         CPPUNIT_TEST( ensureCapacity_002 );
     955           2 :         CPPUNIT_TEST( ensureCapacity_003 );
     956           2 :         CPPUNIT_TEST( ensureCapacity_004 );
     957           2 :         CPPUNIT_TEST( ensureCapacity_005 );
     958           2 :         CPPUNIT_TEST( ensureCapacity_006 );
     959           2 :         CPPUNIT_TEST( ensureCapacity_007 );
     960           2 :         CPPUNIT_TEST( ensureCapacity_008 );
     961           2 :         CPPUNIT_TEST( ensureCapacity_009 );
     962           2 :         CPPUNIT_TEST( ensureCapacity_010 );
     963           2 :         CPPUNIT_TEST( ensureCapacity_011 );
     964           2 :         CPPUNIT_TEST( ensureCapacity_012 );
     965           2 :         CPPUNIT_TEST( ensureCapacity_018 );
     966           2 :         CPPUNIT_TEST( ensureCapacity_020 );
     967           2 :         CPPUNIT_TEST( ensureCapacity_021 );
     968           2 :         CPPUNIT_TEST( ensureCapacity_022 );
     969           4 :         CPPUNIT_TEST_SUITE_END();
     970             :     };
     971             : 
     972             : // -----------------------------------------------------------------------------
     973             : 
     974         132 :     class  setLength : public CppUnit::TestFixture
     975             :     {
     976             :         OString* arrOUS[6];
     977             : 
     978             :     public:
     979          44 :         void setUp()
     980             :         {
     981          44 :             arrOUS[0] = new OString( kTestStr1 );
     982          44 :             arrOUS[1] = new OString( "1" );
     983          44 :             arrOUS[2] = new OString( );
     984          44 :             arrOUS[3] = new OString( "" );
     985          44 :             arrOUS[4] = new OString( "\0", 1 );
     986          44 :             arrOUS[5] = new OString( kTestStr2 );
     987             : 
     988          44 :         }
     989             : 
     990          44 :         void tearDown()
     991             :         {
     992          44 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
     993          44 :             delete arrOUS[3]; delete arrOUS[4]; delete arrOUS[5];
     994          44 :         }
     995             : 
     996           2 :         void setLength_001()
     997             :         {
     998           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
     999           2 :             sal_Int32              expVal1 = 50;
    1000           2 :             ::rtl::OString         expVal2( kTestStr1 );
    1001           2 :             sal_Int32              expVal3 = 50;
    1002           2 :             sal_Int32              input   = 50;
    1003             : 
    1004           2 :             aStrBuf.setLength( input );
    1005             : 
    1006           4 :             CPPUNIT_ASSERT_MESSAGE
    1007             :             (
    1008             :                 "newLength more than the capacity of OStringBuffer(kTestStr1)",
    1009             :                 aStrBuf.getStr() == expVal2 &&
    1010             :                     aStrBuf.getLength() == expVal1 &&
    1011             :                     aStrBuf.getCapacity() == expVal3
    1012           4 :             );
    1013             : 
    1014           2 :         }
    1015             : 
    1016           2 :         void setLength_002()
    1017             :         {
    1018           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    1019           2 :             sal_Int32              expVal1 = kTestStr13Len;
    1020           2 :             ::rtl::OString         expVal2( kTestStr1 );
    1021           2 :             sal_Int32              expVal3 = 32;
    1022           2 :             sal_Int32              input   = kTestStr13Len;
    1023             : 
    1024           2 :             aStrBuf.setLength( input );
    1025             : 
    1026           4 :             CPPUNIT_ASSERT_MESSAGE
    1027             :             (
    1028             :                 "newLength more than the length of OStringBuffer(kTestStr1)",
    1029             :                 aStrBuf.getStr() == expVal2 &&
    1030             :                     aStrBuf.getLength() == expVal1 &&
    1031             :                     aStrBuf.getCapacity() == expVal3
    1032           4 :             );
    1033             : 
    1034           2 :         }
    1035             : 
    1036           2 :         void setLength_003()
    1037             :         {
    1038           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    1039           2 :             sal_Int32              expVal1 = kTestStr1Len;
    1040           2 :             ::rtl::OString         expVal2( kTestStr1 );
    1041           2 :             sal_Int32              expVal3 = 32;
    1042           2 :             sal_Int32              input   = kTestStr1Len;
    1043             : 
    1044           2 :             aStrBuf.setLength( input );
    1045             : 
    1046           4 :             CPPUNIT_ASSERT_MESSAGE
    1047             :             (
    1048             :                 "newLength equal to the length of OStringBuffer(kTestStr1)",
    1049             :                 aStrBuf.getStr() == expVal2 &&
    1050             :                     aStrBuf.getLength() == expVal1 &&
    1051             :                     aStrBuf.getCapacity() == expVal3
    1052           4 :             );
    1053             : 
    1054           2 :         }
    1055             : 
    1056           2 :         void setLength_004()
    1057             :         {
    1058           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    1059           2 :             sal_Int32              expVal1 = kTestStr7Len;
    1060           2 :             ::rtl::OString         expVal2( kTestStr7 );
    1061           2 :             sal_Int32              expVal3 = 32;
    1062           2 :             sal_Int32              input   = kTestStr7Len;
    1063             : 
    1064           2 :             aStrBuf.setLength( input );
    1065             : 
    1066           4 :             CPPUNIT_ASSERT_MESSAGE
    1067             :             (
    1068             :                 "newLength less than the length of OStringBuffer(kTestStr1)",
    1069             :                 aStrBuf.getStr() == expVal2 &&
    1070             :                     aStrBuf.getLength() == expVal1 &&
    1071             :                     aStrBuf.getCapacity() == expVal3
    1072           4 :             );
    1073             : 
    1074           2 :         }
    1075             : 
    1076           2 :         void setLength_005()
    1077             :         {
    1078           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    1079           2 :             sal_Int32              expVal1 = 0;
    1080           2 :             ::rtl::OString         expVal2;
    1081           2 :             sal_Int32              expVal3 = 32;
    1082           2 :             sal_Int32              input   = 0;
    1083             : 
    1084           2 :             aStrBuf.setLength( input );
    1085             : 
    1086           4 :             CPPUNIT_ASSERT_MESSAGE
    1087             :             (
    1088             :                 "newLength equal to 0",
    1089             :                 aStrBuf.getStr() == expVal2 &&
    1090             :                     aStrBuf.getLength() == expVal1 &&
    1091             :                     aStrBuf.getCapacity() == expVal3
    1092           4 :             );
    1093             : 
    1094           2 :         }
    1095             : 
    1096           2 :         void setLength_006()
    1097             :         {
    1098           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    1099           2 :             sal_Int32              expVal1 = 25;
    1100           2 :             ::rtl::OString         expVal2( *arrOUS[1] );
    1101           2 :             sal_Int32              expVal3 = 25;
    1102           2 :             sal_Int32              input   = 25;
    1103             : 
    1104           2 :             aStrBuf.setLength( input );
    1105             : 
    1106           4 :             CPPUNIT_ASSERT_MESSAGE
    1107             :             (
    1108             :                 "newLength more than the capacity of OStringBuffer(1)",
    1109             :                 aStrBuf.getStr() == expVal2 &&
    1110             :                     aStrBuf.getLength() == expVal1 &&
    1111             :                     aStrBuf.getCapacity() == expVal3
    1112           4 :             );
    1113             : 
    1114           2 :         }
    1115             : 
    1116           2 :         void setLength_007()
    1117             :         {
    1118           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    1119           2 :             sal_Int32              expVal1 = kTestStr27Len;
    1120           2 :             ::rtl::OString         expVal2( *arrOUS[1] );
    1121           2 :             sal_Int32              expVal3 = 17;
    1122           2 :             sal_Int32              input   = kTestStr27Len;
    1123             : 
    1124           2 :             aStrBuf.setLength( input );
    1125             : 
    1126           4 :             CPPUNIT_ASSERT_MESSAGE
    1127             :             (
    1128             :                 "newLength equal to the length of OStringBuffer(1)",
    1129             :                 aStrBuf.getStr() == expVal2 &&
    1130             :                     aStrBuf.getLength() == expVal1 &&
    1131             :                     aStrBuf.getCapacity() == expVal3
    1132           4 :             );
    1133             : 
    1134           2 :         }
    1135             : 
    1136           2 :         void setLength_008()
    1137             :         {
    1138           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    1139           2 :             sal_Int32              expVal1 = 0;
    1140           2 :             ::rtl::OString         expVal2;
    1141           2 :             sal_Int32              expVal3 = 17;
    1142           2 :             sal_Int32              input   = 0;
    1143             : 
    1144           2 :             aStrBuf.setLength( input );
    1145             : 
    1146           4 :             CPPUNIT_ASSERT_MESSAGE
    1147             :             (
    1148             :                 "newLength less than the length of OUStringBuffer(1)",
    1149             :                 aStrBuf.getStr() == expVal2 &&
    1150             :                     aStrBuf.getLength() == expVal1 &&
    1151             :                     aStrBuf.getCapacity() == expVal3
    1152           4 :             );
    1153             : 
    1154           2 :         }
    1155             : 
    1156           2 :         void setLength_009()
    1157             :         {
    1158           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    1159           2 :             sal_Int32              expVal1 = 20;
    1160           2 :             ::rtl::OString         expVal2;
    1161           2 :             sal_Int32              expVal3 = 20;
    1162           2 :             sal_Int32              input   = 20;
    1163             : 
    1164           2 :             aStrBuf.setLength( input );
    1165             : 
    1166           4 :             CPPUNIT_ASSERT_MESSAGE
    1167             :             (
    1168             :                 "newLength more than the capacity of OStringBuffer()",
    1169             :                 aStrBuf.getStr() == expVal2 &&
    1170             :                     aStrBuf.getLength() == expVal1 &&
    1171             :                     aStrBuf.getCapacity() == expVal3
    1172           4 :             );
    1173             : 
    1174           2 :         }
    1175             : 
    1176           2 :         void setLength_010()
    1177             :         {
    1178           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    1179           2 :             sal_Int32              expVal1 = 3;
    1180           2 :             ::rtl::OString         expVal2;
    1181           2 :             sal_Int32              expVal3 = 16;
    1182           2 :             sal_Int32              input   = 3;
    1183             : 
    1184           2 :             aStrBuf.setLength( input );
    1185             : 
    1186           4 :             CPPUNIT_ASSERT_MESSAGE
    1187             :             (
    1188             :                 "newLength more than the length of OStringBuffer()",
    1189             :                 aStrBuf.getStr() == expVal2 &&
    1190             :                     aStrBuf.getLength() == expVal1 &&
    1191             :                     aStrBuf.getCapacity() == expVal3
    1192           4 :             );
    1193             : 
    1194           2 :         }
    1195             : 
    1196           2 :         void setLength_011()
    1197             :         {
    1198           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    1199           2 :             sal_Int32              expVal1 = 0;
    1200           2 :             ::rtl::OString         expVal2;
    1201           2 :             sal_Int32              expVal3 = 16;
    1202           2 :             sal_Int32              input   = 0;
    1203             : 
    1204           2 :             aStrBuf.setLength( input );
    1205             : 
    1206           4 :             CPPUNIT_ASSERT_MESSAGE
    1207             :             (
    1208             :                 "newLength more than the length of OStringBuffer()",
    1209             :                 aStrBuf.getStr() == expVal2 &&
    1210             :                     aStrBuf.getLength() == expVal1 &&
    1211             :                     aStrBuf.getCapacity() == expVal3
    1212           4 :             );
    1213             : 
    1214           2 :         }
    1215             : 
    1216           2 :         void setLength_012()
    1217             :         {
    1218           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    1219           2 :             sal_Int32              expVal1 = 20;
    1220           2 :             ::rtl::OString         expVal2;
    1221           2 :             sal_Int32              expVal3 = 20;
    1222           2 :             sal_Int32              input   = 20;
    1223             : 
    1224           2 :             aStrBuf.setLength( input );
    1225             : 
    1226           4 :             CPPUNIT_ASSERT_MESSAGE
    1227             :             (
    1228             :                 "newLength more than the capacity of OStringBuffer("")",
    1229             :                 aStrBuf.getStr() == expVal2 &&
    1230             :                     aStrBuf.getLength() == expVal1 &&
    1231             :                     aStrBuf.getCapacity() == expVal3
    1232           4 :             );
    1233             : 
    1234           2 :         }
    1235             : 
    1236           2 :         void setLength_013()
    1237             :         {
    1238           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    1239           2 :             sal_Int32              expVal1 = 5;
    1240           2 :             ::rtl::OString         expVal2;
    1241           2 :             sal_Int32              expVal3 = 16;
    1242           2 :             sal_Int32              input   = 5;
    1243             : 
    1244           2 :             aStrBuf.setLength( input );
    1245             : 
    1246           4 :             CPPUNIT_ASSERT_MESSAGE
    1247             :             (
    1248             :                 "newLength more than the length of OStringBuffer("")",
    1249             :                 aStrBuf.getStr() == expVal2 &&
    1250             :                     aStrBuf.getLength() == expVal1 &&
    1251             :                     aStrBuf.getCapacity() == expVal3
    1252           4 :             );
    1253             : 
    1254           2 :         }
    1255             : 
    1256           2 :         void setLength_014()
    1257             :         {
    1258           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    1259           2 :             sal_Int32              expVal1 = 0;
    1260           2 :             ::rtl::OString         expVal2;
    1261           2 :             sal_Int32              expVal3 = 16;
    1262           2 :             sal_Int32              input   = 0;
    1263             : 
    1264           2 :             aStrBuf.setLength( input );
    1265             : 
    1266           4 :             CPPUNIT_ASSERT_MESSAGE
    1267             :             (
    1268             :                 "newLength less than the length of OStringBuffer("")",
    1269             :                 aStrBuf.getStr() == expVal2 &&
    1270             :                     aStrBuf.getLength() == expVal1 &&
    1271             :                     aStrBuf.getCapacity() == expVal3
    1272           4 :             );
    1273             : 
    1274           2 :         }
    1275             : 
    1276           2 :         void setLength_015()
    1277             :         {
    1278           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    1279           2 :             sal_Int32              expVal1 = 20;
    1280           2 :             ::rtl::OString         expVal2;
    1281           2 :             sal_Int32              expVal3 = 20;
    1282           2 :             sal_Int32              input   = 20;
    1283             : 
    1284           2 :             aStrBuf.setLength( input );
    1285             : 
    1286           4 :             CPPUNIT_ASSERT_MESSAGE
    1287             :             (
    1288             :                 "newLength more than the length of OStringBuffer(\0)",
    1289             :                 aStrBuf.getStr() == expVal2 &&
    1290             :                     aStrBuf.getLength() == expVal1 &&
    1291             :                     aStrBuf.getCapacity() == expVal3
    1292           4 :             );
    1293             : 
    1294           2 :         }
    1295             : 
    1296           2 :         void setLength_016()
    1297             :         {
    1298           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    1299           2 :             sal_Int32              expVal1 = 5;
    1300           2 :             ::rtl::OString         expVal2;
    1301           2 :             sal_Int32              expVal3 = 17;
    1302           2 :             sal_Int32              input   = 5;
    1303             : 
    1304           2 :             aStrBuf.setLength( input );
    1305             : 
    1306           4 :             CPPUNIT_ASSERT_MESSAGE
    1307             :             (
    1308             :                 "newLength more than the length of OStringBuffer(\0)",
    1309             :                 aStrBuf.getStr() == expVal2 &&
    1310             :                     aStrBuf.getLength() == expVal1 &&
    1311             :                     aStrBuf.getCapacity() == expVal3
    1312           4 :             );
    1313             : 
    1314           2 :         }
    1315             : 
    1316           2 :         void setLength_017()
    1317             :         {
    1318           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    1319           2 :             sal_Int32              expVal1 = 0;
    1320           2 :             ::rtl::OString         expVal2;
    1321           2 :             sal_Int32              expVal3 = 17;
    1322           2 :             sal_Int32              input   = 0;
    1323             : 
    1324           2 :             aStrBuf.setLength( input );
    1325             : 
    1326           4 :             CPPUNIT_ASSERT_MESSAGE
    1327             :             (
    1328             :                 "newLength less than the length of OStringBuffer(\0)",
    1329             :                 aStrBuf.getStr() == expVal2 &&
    1330             :                     aStrBuf.getLength() == expVal1 &&
    1331             :                     aStrBuf.getCapacity() == expVal3
    1332           4 :             );
    1333             : 
    1334           2 :         }
    1335             : 
    1336           2 :         void setLength_018()
    1337             :         {
    1338           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[5] );
    1339           2 :             sal_Int32              expVal1 = 50;
    1340           2 :             ::rtl::OString         expVal2( kTestStr2 );
    1341           2 :             sal_Int32              expVal3 = 66;
    1342           2 :             sal_Int32              input   = 50;
    1343             : 
    1344           2 :             aStrBuf.setLength( input );
    1345             : 
    1346           4 :             CPPUNIT_ASSERT_MESSAGE
    1347             :             (
    1348             :                 "newLength more than the capacity of OStringBuffer(kTestStr2)",
    1349             :                 aStrBuf.getStr() == expVal2 &&
    1350             :                     aStrBuf.getLength() == expVal1 &&
    1351             :                     aStrBuf.getCapacity() == expVal3
    1352           4 :             );
    1353             : 
    1354           2 :         }
    1355             : 
    1356           2 :         void setLength_019()
    1357             :         {
    1358           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[5] );
    1359           2 :             sal_Int32              expVal1 = 40;
    1360           2 :             ::rtl::OString         expVal2(kTestStr2);
    1361           2 :             sal_Int32              expVal3 = 48;
    1362           2 :             sal_Int32              input   = 40;
    1363             : 
    1364           2 :             aStrBuf.setLength( input );
    1365             : 
    1366           4 :             CPPUNIT_ASSERT_MESSAGE
    1367             :             (
    1368             :                 "newLength more than the length of OStringBuffer(kTestStr2)",
    1369             :                 aStrBuf.getStr() == expVal2 &&
    1370             :                     aStrBuf.getLength() == expVal1 &&
    1371             :                     aStrBuf.getCapacity() == expVal3
    1372           4 :             );
    1373             : 
    1374           2 :         }
    1375             : 
    1376           2 :         void setLength_020()
    1377             :         {
    1378           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[5] );
    1379           2 :             sal_Int32              expVal1 = kTestStr2Len;
    1380           2 :             ::rtl::OString         expVal2(kTestStr2);
    1381           2 :             sal_Int32              expVal3 = 48;
    1382           2 :             sal_Int32              input   = kTestStr2Len;
    1383             : 
    1384           2 :             aStrBuf.setLength( input );
    1385             : 
    1386           4 :             CPPUNIT_ASSERT_MESSAGE
    1387             :             (
    1388             :                 "newLength equal to the length of OUStringBuffer(kTestStr2)",
    1389             :                 aStrBuf.getStr() == expVal2 &&
    1390             :                     aStrBuf.getLength() == expVal1 &&
    1391             :                     aStrBuf.getCapacity() == expVal3
    1392           4 :             );
    1393             : 
    1394           2 :         }
    1395             : 
    1396           2 :         void setLength_021()
    1397             :         {
    1398           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[5] );
    1399           2 :             sal_Int32              expVal1 = kTestStr7Len;
    1400           2 :             ::rtl::OString         expVal2(kTestStr7);
    1401           2 :             sal_Int32              expVal3 = 48;
    1402           2 :             sal_Int32              input   = kTestStr7Len;
    1403             : 
    1404           2 :             aStrBuf.setLength( input );
    1405             : 
    1406           4 :             CPPUNIT_ASSERT_MESSAGE
    1407             :             (
    1408             :                 "newLength less than the length of OUStringBuffer(TestStr2)",
    1409             :                 aStrBuf.getStr() == expVal2 &&
    1410             :                     aStrBuf.getLength() == expVal1 &&
    1411             :                     aStrBuf.getCapacity() == expVal3
    1412           4 :             );
    1413             : 
    1414           2 :         }
    1415             : 
    1416           2 :         void setLength_022()
    1417             :         {
    1418           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[5] );
    1419           2 :             sal_Int32              expVal1 = 0;
    1420           2 :             ::rtl::OString         expVal2;
    1421           2 :             sal_Int32              expVal3 = 48;
    1422           2 :             sal_Int32              input   = 0;
    1423             : 
    1424           2 :             aStrBuf.setLength( input );
    1425             : 
    1426           4 :             CPPUNIT_ASSERT_MESSAGE
    1427             :             (
    1428             :                 "newLength equal to 0",
    1429             :                 aStrBuf.getStr() == expVal2 &&
    1430             :                     aStrBuf.getLength() == expVal1 &&
    1431             :                     aStrBuf.getCapacity() == expVal3
    1432           4 :             );
    1433             : 
    1434           2 :         }
    1435             : 
    1436           4 :         CPPUNIT_TEST_SUITE( setLength );
    1437           2 :         CPPUNIT_TEST( setLength_001 );
    1438           2 :         CPPUNIT_TEST( setLength_002 );
    1439           2 :         CPPUNIT_TEST( setLength_003 );
    1440           2 :         CPPUNIT_TEST( setLength_004 );
    1441           2 :         CPPUNIT_TEST( setLength_005 );
    1442           2 :         CPPUNIT_TEST( setLength_006 );
    1443           2 :         CPPUNIT_TEST( setLength_007 );
    1444           2 :         CPPUNIT_TEST( setLength_008 );
    1445           2 :         CPPUNIT_TEST( setLength_009 );
    1446           2 :         CPPUNIT_TEST( setLength_010 );
    1447           2 :         CPPUNIT_TEST( setLength_011 );
    1448           2 :         CPPUNIT_TEST( setLength_012 );
    1449           2 :         CPPUNIT_TEST( setLength_013 );
    1450           2 :         CPPUNIT_TEST( setLength_014 );
    1451           2 :         CPPUNIT_TEST( setLength_015 );
    1452           2 :         CPPUNIT_TEST( setLength_016 );
    1453           2 :         CPPUNIT_TEST( setLength_017 );
    1454           2 :         CPPUNIT_TEST( setLength_018 );
    1455           2 :         CPPUNIT_TEST( setLength_019 );
    1456           2 :         CPPUNIT_TEST( setLength_020 );
    1457           2 :         CPPUNIT_TEST( setLength_021 );
    1458           2 :         CPPUNIT_TEST( setLength_022 );
    1459           4 :         CPPUNIT_TEST_SUITE_END();
    1460             :     };
    1461             : 
    1462             : // -----------------------------------------------------------------------------
    1463             : 
    1464          12 :     class  csuc : public CppUnit::TestFixture
    1465             :     {
    1466           2 :         void csuc_001()
    1467             :         {
    1468           2 :             const sal_Char*        expVal = kTestStr1;
    1469           2 :             ::rtl::OStringBuffer   aStrBuf( kTestStr1 );
    1470           2 :             sal_Int32              cmpLen = kTestStr1Len;
    1471             : 
    1472             :             // LLA: wrong access! const sal_Char* pstr = *&aStrBuf;
    1473           2 :             const sal_Char* pstr = aStrBuf.getStr();
    1474           2 :             int nEqual = strncmp(pstr, expVal, cmpLen);
    1475             : 
    1476           4 :             CPPUNIT_ASSERT_MESSAGE
    1477             :             (
    1478             :                 "test normal string",
    1479             :                 /* cmpstr( pstr, expVal, cmpLen ) */
    1480             :                 nEqual == 0
    1481           4 :             );
    1482             : 
    1483           2 :         }
    1484             : 
    1485           2 :         void csuc_002()
    1486             :         {
    1487           2 :             ::rtl::OStringBuffer   aStrBuf;
    1488             : 
    1489             :             // LLA: wrong access! const sal_Char* pstr = *&aStrBuf;
    1490           2 :             const sal_Char* pstr = aStrBuf.getStr();
    1491           2 :             sal_Int32 nLen = strlen(pstr);
    1492             : 
    1493           4 :             CPPUNIT_ASSERT_MESSAGE
    1494             :             (
    1495             :                 "test empty string",
    1496             :                 // cmpstr( pstr, &expVal, cmpLen )
    1497             :                 nLen == 0
    1498           4 :                 );
    1499             : 
    1500           2 :         }
    1501             : 
    1502           4 :         CPPUNIT_TEST_SUITE( csuc );
    1503           2 :         CPPUNIT_TEST( csuc_001 );
    1504           2 :         CPPUNIT_TEST( csuc_002 );
    1505           4 :         CPPUNIT_TEST_SUITE_END();
    1506             :     };
    1507             : 
    1508             : // -----------------------------------------------------------------------------
    1509             : 
    1510          12 :     class  getStr : public CppUnit::TestFixture
    1511             :     {
    1512           2 :         void getStr_001()
    1513             :         {
    1514           2 :             const sal_Char*        expVal = kTestStr1;
    1515           2 :             ::rtl::OStringBuffer   aStrBuf( kTestStr1 );
    1516           2 :             sal_Int32              cmpLen = kTestStr1Len;
    1517             : 
    1518           2 :             const sal_Char* pstr = aStrBuf.getStr();
    1519           2 :             int nEqual = strncmp(pstr, expVal, cmpLen);
    1520             : 
    1521           4 :             CPPUNIT_ASSERT_MESSAGE
    1522             :             (
    1523             :                 "test normal string",
    1524             :                 nEqual == 0
    1525           4 :             );
    1526             : 
    1527           2 :         }
    1528             : 
    1529           2 :         void getStr_002()
    1530             :         {
    1531             :             // const sal_Char         tmpUC=0x0;
    1532             :             // const sal_Char*        expVal=&tmpUC;
    1533           2 :             ::rtl::OStringBuffer   aStrBuf;
    1534             :             // sal_Int32              cmpLen = 1;
    1535             : 
    1536           2 :             const sal_Char* pstr = aStrBuf.getStr();
    1537           2 :             sal_Int32 nLen = strlen(pstr);
    1538             : 
    1539           4 :             CPPUNIT_ASSERT_MESSAGE
    1540             :             (
    1541             :                 "test empty string",
    1542             :                 pstr != 0 &&
    1543             :                 nLen == 0
    1544           4 :             );
    1545             : 
    1546           2 :         }
    1547             : 
    1548           4 :         CPPUNIT_TEST_SUITE( getStr );
    1549           2 :         CPPUNIT_TEST( getStr_001 );
    1550           2 :         CPPUNIT_TEST( getStr_002 );
    1551           4 :         CPPUNIT_TEST_SUITE_END();
    1552             :     };
    1553             : 
    1554             : // -----------------------------------------------------------------------------
    1555             : 
    1556         126 :     class  append_001 : public CppUnit::TestFixture
    1557             :     {
    1558             :         OString* arrOUS[5];
    1559             : 
    1560             :     public:
    1561          42 :         void setUp()
    1562             :         {
    1563          42 :             arrOUS[0] = new OString( kTestStr7 );
    1564          42 :             arrOUS[1] = new OString(  );
    1565          42 :             arrOUS[2] = new OString( kTestStr25 );
    1566          42 :             arrOUS[3] = new OString( "" );
    1567          42 :             arrOUS[4] = new OString( kTestStr28 );
    1568             : 
    1569          42 :         }
    1570             : 
    1571          42 :         void tearDown()
    1572             :         {
    1573          42 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
    1574          42 :             delete arrOUS[3]; delete arrOUS[4];
    1575          42 :         }
    1576             : 
    1577           2 :         void append_001_001()
    1578             :         {
    1579           2 :             OString                expVal( kTestStr1 );
    1580           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    1581           2 :             OString                input2( kTestStr8 );
    1582             : 
    1583           2 :             aStrBuf.append( input2 );
    1584             : 
    1585           4 :             CPPUNIT_ASSERT_MESSAGE
    1586             :             (
    1587             :                 "Appends the string(length less than 16) to the string buffer arrOUS[0]",
    1588             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    1589           4 :             );
    1590             : 
    1591           2 :         }
    1592             : 
    1593           2 :         void append_001_002()
    1594             :         {
    1595           2 :             OString                expVal( kTestStr2 );
    1596           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    1597           2 :             OString                input2( kTestStr36 );
    1598             : 
    1599           2 :             aStrBuf.append( input2 );
    1600             : 
    1601           4 :             CPPUNIT_ASSERT_MESSAGE
    1602             :             (
    1603             :                 "Appends the string(length more than 16) to the string buffer arrOUS[0]",
    1604             :                 aStrBuf.getStr()== expVal &&
    1605             :                     aStrBuf.getLength() == expVal.getLength()
    1606           4 :             );
    1607             : 
    1608           2 :         }
    1609             : 
    1610           2 :         void append_001_003()
    1611             :         {
    1612           2 :             OString                expVal( kTestStr37 );
    1613           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    1614           2 :             OString                input2( kTestStr23 );
    1615             : 
    1616           2 :             aStrBuf.append( input2 );
    1617             : 
    1618           4 :             CPPUNIT_ASSERT_MESSAGE
    1619             :             (
    1620             :                 "Appends the string(length equal to 16) to the string buffer arrOUS[0]",
    1621             :                 aStrBuf.getStr()== expVal &&
    1622             :                     aStrBuf.getLength() == expVal.getLength()
    1623           4 :             );
    1624             : 
    1625           2 :         }
    1626             : 
    1627           2 :         void append_001_004()
    1628             :         {
    1629           2 :             OString                expVal( kTestStr7 );
    1630           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    1631           2 :             OString                input2;
    1632             : 
    1633           2 :             aStrBuf.append( input2 );
    1634             : 
    1635           4 :             CPPUNIT_ASSERT_MESSAGE
    1636             :             (
    1637             :                 "Appends the string(length equal to 0) to the string buffer arrOUS[0]",
    1638             :                 aStrBuf.getStr()== expVal &&
    1639             :                     aStrBuf.getLength() == expVal.getLength()
    1640           4 :             );
    1641             : 
    1642           2 :         }
    1643             : 
    1644           2 :         void append_001_005()
    1645             :         {
    1646           2 :             OString                expVal( kTestStr7 );
    1647           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    1648           2 :             OString                input2( kTestStr7 );
    1649             : 
    1650           2 :             aStrBuf.append( input2 );
    1651             : 
    1652           4 :             CPPUNIT_ASSERT_MESSAGE
    1653             :             (
    1654             :                 "Appends the string(length less than 16) to the string buffer arrOUS[1]",
    1655             :                 aStrBuf.getStr()== expVal &&
    1656             :                     aStrBuf.getLength() == expVal.getLength()
    1657           4 :             );
    1658             : 
    1659           2 :         }
    1660             : 
    1661           2 :         void append_001_006()
    1662             :         {
    1663           2 :             OString                expVal( kTestStr2 );
    1664           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    1665           2 :             OString                input2( kTestStr2 );
    1666             : 
    1667           2 :             aStrBuf.append( input2 );
    1668             : 
    1669           4 :             CPPUNIT_ASSERT_MESSAGE
    1670             :             (
    1671             :                 "Appends the string(length more than 16) to the string buffer arrOUS[1]",
    1672             :                 aStrBuf.getStr()== expVal &&
    1673             :                     aStrBuf.getLength() == expVal.getLength()
    1674           4 :             );
    1675             : 
    1676           2 :         }
    1677             : 
    1678           2 :         void append_001_007()
    1679             :         {
    1680           2 :             OString                expVal( kTestStr1 );
    1681           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    1682           2 :             OString                input2( kTestStr1 );
    1683             : 
    1684           2 :             aStrBuf.append( input2 );
    1685             : 
    1686           4 :             CPPUNIT_ASSERT_MESSAGE
    1687             :             (
    1688             :                 "Appends the string(length equal to 16) to the string buffer arrOUS[1]",
    1689             :                 aStrBuf.getStr()== expVal &&
    1690             :                     aStrBuf.getLength() == expVal.getLength()
    1691           4 :             );
    1692             : 
    1693           2 :         }
    1694             : 
    1695           2 :         void append_001_008()
    1696             :         {
    1697           2 :             OString                expVal;
    1698           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    1699           2 :             OString                input2;
    1700             : 
    1701           2 :             aStrBuf.append( input2 );
    1702             : 
    1703           4 :             CPPUNIT_ASSERT_MESSAGE
    1704             :             (
    1705             :                 "Appends the string(length equal to 0) to the string buffer arrOUS[1]",
    1706             :                 aStrBuf.getStr()== expVal &&
    1707             :                     aStrBuf.getLength() == expVal.getLength()
    1708           4 :             );
    1709             : 
    1710           2 :         }
    1711             : 
    1712           2 :         void append_001_009()
    1713             :         {
    1714           2 :             OString                expVal( kTestStr7 );
    1715           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    1716           2 :             OString                input2( kTestStr7 );
    1717             : 
    1718           2 :             aStrBuf.append( input2 );
    1719             : 
    1720           4 :             CPPUNIT_ASSERT_MESSAGE
    1721             :             (
    1722             :                 "Appends the string(length less than 16) to the string buffer arrOUS[2]",
    1723             :                 aStrBuf.getStr()== expVal &&
    1724             :                     aStrBuf.getLength() == expVal.getLength()
    1725           4 :             );
    1726             : 
    1727           2 :         }
    1728             : 
    1729           2 :         void append_001_010()
    1730             :         {
    1731           2 :             OString                expVal( kTestStr2 );
    1732           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    1733           2 :             OString                input2( kTestStr2 );
    1734             : 
    1735           2 :             aStrBuf.append( input2 );
    1736             : 
    1737           4 :             CPPUNIT_ASSERT_MESSAGE
    1738             :             (
    1739             :                 "Appends the string(length more than 16) to the string buffer arrOUS[2]",
    1740             :                 aStrBuf.getStr()== expVal &&
    1741             :                     aStrBuf.getLength() == expVal.getLength()
    1742           4 :             );
    1743             : 
    1744           2 :         }
    1745             : 
    1746           2 :         void append_001_011()
    1747             :         {
    1748           2 :             OString                expVal( kTestStr1 );
    1749           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    1750           2 :             OString                input2( kTestStr1 );
    1751             : 
    1752           2 :             aStrBuf.append( input2 );
    1753             : 
    1754           4 :             CPPUNIT_ASSERT_MESSAGE
    1755             :             (
    1756             :                 "Appends the string(length equal to 16) to the string buffer arrOUS[2]",
    1757             :                 aStrBuf.getStr()== expVal &&
    1758             :                     aStrBuf.getLength() == expVal.getLength()
    1759           4 :             );
    1760             : 
    1761           2 :         }
    1762             : 
    1763           2 :         void append_001_012()
    1764             :         {
    1765           2 :             OString                expVal;
    1766           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    1767           2 :             OString                input2;
    1768             : 
    1769           2 :             aStrBuf.append( input2 );
    1770             : 
    1771           4 :             CPPUNIT_ASSERT_MESSAGE
    1772             :             (
    1773             :                 "Appends the string(length equal to 0) to the string buffer arrOUS[2]",
    1774             :                 aStrBuf.getStr()== expVal &&
    1775             :                     aStrBuf.getLength() == expVal.getLength()
    1776           4 :             );
    1777             : 
    1778           2 :         }
    1779             : 
    1780           2 :         void append_001_013()
    1781             :         {
    1782           2 :             OString                expVal( kTestStr7 );
    1783           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    1784           2 :             OString                input2( kTestStr7 );
    1785             : 
    1786           2 :             aStrBuf.append( input2 );
    1787             : 
    1788           4 :             CPPUNIT_ASSERT_MESSAGE
    1789             :             (
    1790             :                 "Appends the string(length less than 16) to the string buffer arrOUS[3]",
    1791             :                 aStrBuf.getStr()== expVal &&
    1792             :                     aStrBuf.getLength() == expVal.getLength()
    1793           4 :             );
    1794             : 
    1795           2 :         }
    1796             : 
    1797           2 :         void append_001_014()
    1798             :         {
    1799           2 :             OString                expVal( kTestStr2 );
    1800           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    1801           2 :             OString                input2( kTestStr2 );
    1802             : 
    1803           2 :             aStrBuf.append( input2 );
    1804             : 
    1805           4 :             CPPUNIT_ASSERT_MESSAGE
    1806             :             (
    1807             :                 "Appends the string(length more than 16) to the string buffer arrOUS[3]",
    1808             :                 aStrBuf.getStr()== expVal &&
    1809             :                     aStrBuf.getLength() == expVal.getLength()
    1810           4 :             );
    1811             : 
    1812           2 :         }
    1813             : 
    1814           2 :         void append_001_015()
    1815             :         {
    1816           2 :             OString                expVal( kTestStr1 );
    1817           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    1818           2 :             OString                input2( kTestStr1 );
    1819             : 
    1820           2 :             aStrBuf.append( input2 );
    1821             : 
    1822           4 :             CPPUNIT_ASSERT_MESSAGE
    1823             :             (
    1824             :                 "Appends the string(length equal to 16) to the string buffer arrOUS[3]",
    1825             :                 aStrBuf.getStr()== expVal &&
    1826             :                     aStrBuf.getLength() == expVal.getLength()
    1827           4 :             );
    1828             : 
    1829           2 :         }
    1830             : 
    1831           2 :         void append_001_016()
    1832             :         {
    1833           2 :             OString                expVal;
    1834           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    1835           2 :             OString                input2;
    1836             : 
    1837           2 :             aStrBuf.append( input2 );
    1838             : 
    1839           4 :             CPPUNIT_ASSERT_MESSAGE
    1840             :             (
    1841             :                 "Appends the string(length equal to 0) to the string buffer arrOUS[3]",
    1842             :                 aStrBuf.getStr()== expVal &&
    1843             :                     aStrBuf.getLength() == expVal.getLength()
    1844           4 :             );
    1845             : 
    1846           2 :         }
    1847             : 
    1848           2 :         void append_001_017()
    1849             :         {
    1850           2 :             OString                expVal( kTestStr29 );
    1851           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    1852           2 :             OString                input2( kTestStr38 );
    1853             : 
    1854           2 :             aStrBuf.append( input2 );
    1855             : 
    1856           4 :             CPPUNIT_ASSERT_MESSAGE
    1857             :             (
    1858             :                 "Appends the string(length less than 16) to the string buffer arrOUS[4]",
    1859             :                 aStrBuf.getStr()== expVal &&
    1860             :                     aStrBuf.getLength() == expVal.getLength()
    1861           4 :             );
    1862             : 
    1863           2 :         }
    1864             : 
    1865           2 :         void append_001_018()
    1866             :         {
    1867           2 :             OString                expVal( kTestStr39 );
    1868           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    1869           2 :             OString                input2( kTestStr17 );
    1870             : 
    1871           2 :             aStrBuf.append( input2 );
    1872             : 
    1873           4 :             CPPUNIT_ASSERT_MESSAGE
    1874             :             (
    1875             :                 "Appends the string(length more than 16) to the string buffer arrOUS[4]",
    1876             :                 aStrBuf.getStr()== expVal &&
    1877             :                     aStrBuf.getLength() == expVal.getLength()
    1878           4 :             );
    1879             : 
    1880           2 :         }
    1881             : 
    1882           2 :         void append_001_019()
    1883             :         {
    1884           2 :             OString                expVal( kTestStr40 );
    1885           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    1886           2 :             OString                input2( kTestStr31 );
    1887             : 
    1888           2 :             aStrBuf.append( input2 );
    1889             : 
    1890           4 :             CPPUNIT_ASSERT_MESSAGE
    1891             :             (
    1892             :                 "Appends the string(length equal to 16) to the string buffer arrOUS[4]",
    1893             :                 aStrBuf.getStr()== expVal &&
    1894             :                     aStrBuf.getLength() == expVal.getLength()
    1895           4 :             );
    1896             : 
    1897           2 :         }
    1898             : 
    1899           2 :         void append_001_020()
    1900             :         {
    1901           2 :             OString                expVal( kTestStr28 );
    1902           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    1903           2 :             OString                input2;
    1904             : 
    1905           2 :             aStrBuf.append( input2 );
    1906             : 
    1907           4 :             CPPUNIT_ASSERT_MESSAGE
    1908             :             (
    1909             :                 "Appends the string(length equal to 0) to the string buffer arrOUS[4]",
    1910             :                 aStrBuf.getStr()== expVal &&
    1911             :                     aStrBuf.getLength() == expVal.getLength()
    1912           4 :             );
    1913             : 
    1914           2 :         }
    1915             : 
    1916           2 :         void append_null()
    1917             :         {
    1918           2 :             ::rtl::OStringBuffer   aStrBuf("hello world");
    1919             : 
    1920           2 :             aStrBuf.append('\0');
    1921           2 :             aStrBuf.append('\1');
    1922           2 :             aStrBuf.append('\2');
    1923             : 
    1924           2 :             aStrBuf.append("hello world");
    1925             : 
    1926           4 :             CPPUNIT_ASSERT_MESSAGE
    1927             :             (
    1928             :                 "should be able to append nulls",
    1929             :                 aStrBuf.getLength() ==
    1930             :                     2 * RTL_CONSTASCII_LENGTH("hello world") + 3 &&
    1931             :                 aStrBuf[RTL_CONSTASCII_LENGTH("hello world")] == 0 &&
    1932             :                 aStrBuf[RTL_CONSTASCII_LENGTH("hello world")]+1 == 1 &&
    1933             :                 aStrBuf[RTL_CONSTASCII_LENGTH("hello world")]+2 == 2
    1934           4 :             );
    1935             : 
    1936           2 :         }
    1937             : 
    1938           4 :         CPPUNIT_TEST_SUITE( append_001 );
    1939           2 :         CPPUNIT_TEST( append_001_001 );
    1940           2 :         CPPUNIT_TEST( append_001_002 );
    1941           2 :         CPPUNIT_TEST( append_001_003 );
    1942           2 :         CPPUNIT_TEST( append_001_004 );
    1943           2 :         CPPUNIT_TEST( append_001_005 );
    1944           2 :         CPPUNIT_TEST( append_001_006 );
    1945           2 :         CPPUNIT_TEST( append_001_007 );
    1946           2 :         CPPUNIT_TEST( append_001_008 );
    1947           2 :         CPPUNIT_TEST( append_001_009 );
    1948           2 :         CPPUNIT_TEST( append_001_010 );
    1949           2 :         CPPUNIT_TEST( append_001_011 );
    1950           2 :         CPPUNIT_TEST( append_001_012 );
    1951           2 :         CPPUNIT_TEST( append_001_013 );
    1952           2 :         CPPUNIT_TEST( append_001_014 );
    1953           2 :         CPPUNIT_TEST( append_001_015 );
    1954           2 :         CPPUNIT_TEST( append_001_016 );
    1955           2 :         CPPUNIT_TEST( append_001_017 );
    1956           2 :         CPPUNIT_TEST( append_001_018 );
    1957           2 :         CPPUNIT_TEST( append_001_019 );
    1958           2 :         CPPUNIT_TEST( append_001_020 );
    1959           2 :         CPPUNIT_TEST( append_null );
    1960           4 :         CPPUNIT_TEST_SUITE_END();
    1961             :     };
    1962             : 
    1963             : // -----------------------------------------------------------------------------
    1964             : 
    1965         120 :     class  append_002 : public CppUnit::TestFixture
    1966             :     {
    1967             :         OString* arrOUS[5];
    1968             : 
    1969             :     public:
    1970          40 :         void setUp()
    1971             :         {
    1972          40 :             arrOUS[0] = new OString( kTestStr7 );
    1973          40 :             arrOUS[1] = new OString(  );
    1974          40 :             arrOUS[2] = new OString( kTestStr25 );
    1975          40 :             arrOUS[3] = new OString( "" );
    1976          40 :             arrOUS[4] = new OString( kTestStr28 );
    1977             : 
    1978          40 :         }
    1979             : 
    1980          40 :         void tearDown()
    1981             :         {
    1982          40 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
    1983          40 :             delete arrOUS[3]; delete arrOUS[4];
    1984          40 :         }
    1985             : 
    1986           2 :         void append_002_001()
    1987             :         {
    1988           2 :             OString                expVal( kTestStr1 );
    1989           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    1990           2 :             const sal_Char*        input = kTestStr8;
    1991             : 
    1992           2 :             aStrBuf.append( input );
    1993             : 
    1994           4 :             CPPUNIT_ASSERT_MESSAGE
    1995             :             (
    1996             :                 "Appends the string(length less than 16) to the string buffer arrOUS[0]",
    1997             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    1998           4 :             );
    1999             : 
    2000           2 :         }
    2001             : 
    2002           2 :         void append_002_002()
    2003             :         {
    2004           2 :             OString                expVal( kTestStr2 );
    2005           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    2006           2 :             const sal_Char*        input = kTestStr36;
    2007             : 
    2008           2 :             aStrBuf.append( input );
    2009             : 
    2010           4 :             CPPUNIT_ASSERT_MESSAGE
    2011             :             (
    2012             :                 "Appends the string(length more than 16) to the string buffer arrOUS[0]",
    2013             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2014           4 :             );
    2015             : 
    2016           2 :         }
    2017             : 
    2018           2 :         void append_002_003()
    2019             :         {
    2020           2 :             OString                expVal( kTestStr37 );
    2021           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    2022           2 :             const sal_Char*        input = kTestStr23;
    2023             : 
    2024           2 :             aStrBuf.append( input );
    2025             : 
    2026           4 :             CPPUNIT_ASSERT_MESSAGE
    2027             :             (
    2028             :                 "Appends the string(length equal to 16) to the string buffer arrOUS[0]",
    2029             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2030           4 :             );
    2031             : 
    2032           2 :         }
    2033             : 
    2034           2 :         void append_002_004()
    2035             :         {
    2036           2 :             OString                expVal( kTestStr7 );
    2037           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    2038           2 :             const sal_Char*        input = kTestStr25;
    2039             : 
    2040           2 :             aStrBuf.append( input );
    2041             : 
    2042           4 :             CPPUNIT_ASSERT_MESSAGE
    2043             :             (
    2044             :                 "Appends the string(length equal to 0) to the string buffer arrOUS[0]",
    2045             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2046           4 :             );
    2047             : 
    2048           2 :         }
    2049             : 
    2050           2 :         void append_002_005()
    2051             :         {
    2052           2 :             OString                expVal( kTestStr7 );
    2053           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    2054           2 :             const sal_Char*        input = kTestStr7;
    2055             : 
    2056           2 :             aStrBuf.append( input );
    2057             : 
    2058           4 :             CPPUNIT_ASSERT_MESSAGE
    2059             :             (
    2060             :                 "Appends the string(length less than 16) to the string buffer arrOUS[1]",
    2061             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2062           4 :             );
    2063             : 
    2064           2 :         }
    2065             : 
    2066           2 :         void append_002_006()
    2067             :         {
    2068           2 :             OString                expVal( kTestStr2 );
    2069           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    2070           2 :             const sal_Char*        input = kTestStr2;
    2071             : 
    2072           2 :             aStrBuf.append( input );
    2073             : 
    2074           4 :             CPPUNIT_ASSERT_MESSAGE
    2075             :             (
    2076             :                 "Appends the string(length more than 16) to the string buffer arrOUS[1]",
    2077             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2078           4 :             );
    2079             : 
    2080           2 :         }
    2081             : 
    2082           2 :         void append_002_007()
    2083             :         {
    2084           2 :             OString                expVal( kTestStr1 );
    2085           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    2086           2 :             const sal_Char*        input = kTestStr1;
    2087             : 
    2088           2 :             aStrBuf.append( input );
    2089             : 
    2090           4 :             CPPUNIT_ASSERT_MESSAGE
    2091             :             (
    2092             :                 "Appends the string(length equal to 16) to the string buffer arrOUS[1]",
    2093             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2094           4 :             );
    2095             : 
    2096           2 :         }
    2097             : 
    2098           2 :         void append_002_008()
    2099             :         {
    2100           2 :             OString                expVal;
    2101           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    2102           2 :             const sal_Char*        input = kTestStr25;
    2103             : 
    2104           2 :             aStrBuf.append( input );
    2105             : 
    2106           4 :             CPPUNIT_ASSERT_MESSAGE
    2107             :             (
    2108             :                 "Appends the string(length equal to 0) to the string buffer arrOUS[1]",
    2109             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2110           4 :             );
    2111             : 
    2112           2 :         }
    2113             : 
    2114           2 :         void append_002_009()
    2115             :         {
    2116           2 :             OString                expVal( kTestStr7 );
    2117           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    2118           2 :             const sal_Char*        input = kTestStr7;
    2119             : 
    2120           2 :             aStrBuf.append( input );
    2121             : 
    2122           4 :             CPPUNIT_ASSERT_MESSAGE
    2123             :             (
    2124             :                 "Appends the string(length less than 16) to the string buffer arrOUS[2]",
    2125             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2126           4 :             );
    2127             : 
    2128           2 :         }
    2129             : 
    2130           2 :         void append_002_010()
    2131             :         {
    2132           2 :             OString                expVal( kTestStr2 );
    2133           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    2134           2 :             const sal_Char*        input = kTestStr2;
    2135             : 
    2136           2 :             aStrBuf.append( input );
    2137             : 
    2138           4 :             CPPUNIT_ASSERT_MESSAGE
    2139             :             (
    2140             :                 "Appends the string(length more than 16) to the string buffer arrOUS[2]",
    2141             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2142           4 :             );
    2143             : 
    2144           2 :         }
    2145             : 
    2146           2 :         void append_002_011()
    2147             :         {
    2148           2 :             OString                expVal( kTestStr1 );
    2149           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    2150           2 :             const sal_Char*        input = kTestStr1;
    2151             : 
    2152           2 :             aStrBuf.append( input );
    2153             : 
    2154           4 :             CPPUNIT_ASSERT_MESSAGE
    2155             :             (
    2156             :                 "Appends the string(length equal to 16) to the string buffer arrOUS[2]",
    2157             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2158           4 :             );
    2159             : 
    2160           2 :         }
    2161             : 
    2162           2 :         void append_002_012()
    2163             :         {
    2164           2 :             OString                expVal;
    2165           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    2166           2 :             const sal_Char*        input = kTestStr25;
    2167             : 
    2168           2 :             aStrBuf.append( input );
    2169             : 
    2170           4 :             CPPUNIT_ASSERT_MESSAGE
    2171             :             (
    2172             :                 "Appends the string(length equal to 0) to the string buffer arrOUS[2]",
    2173             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2174           4 :             );
    2175             : 
    2176           2 :         }
    2177             : 
    2178           2 :         void append_002_013()
    2179             :         {
    2180           2 :             OString                expVal( kTestStr7 );
    2181           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    2182           2 :             const sal_Char*        input = kTestStr7;
    2183             : 
    2184           2 :             aStrBuf.append( input );
    2185             : 
    2186           4 :             CPPUNIT_ASSERT_MESSAGE
    2187             :             (
    2188             :                 "Appends the string(length less than 16) to the string buffer arrOUS[3]",
    2189             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2190           4 :             );
    2191             : 
    2192           2 :         }
    2193             : 
    2194           2 :         void append_002_014()
    2195             :         {
    2196           2 :             OString                expVal( kTestStr2 );
    2197           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    2198           2 :             const sal_Char*        input = kTestStr2;
    2199             : 
    2200           2 :             aStrBuf.append( input );
    2201             : 
    2202           4 :             CPPUNIT_ASSERT_MESSAGE
    2203             :             (
    2204             :                 "Appends the string(length more than 16) to the string buffer arrOUS[3]",
    2205             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2206           4 :             );
    2207             : 
    2208           2 :         }
    2209             : 
    2210           2 :         void append_002_015()
    2211             :         {
    2212           2 :             OString                expVal( kTestStr1 );
    2213           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    2214           2 :             const sal_Char*        input = kTestStr1;
    2215             : 
    2216           2 :             aStrBuf.append( input );
    2217             : 
    2218           4 :             CPPUNIT_ASSERT_MESSAGE
    2219             :             (
    2220             :                 "Appends the string(length equal to 16) to the string buffer arrOUS[3]",
    2221             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2222           4 :             );
    2223             : 
    2224           2 :         }
    2225             : 
    2226           2 :         void append_002_016()
    2227             :         {
    2228           2 :             OString                expVal;
    2229           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    2230           2 :             const sal_Char*        input = kTestStr25;
    2231             : 
    2232           2 :             aStrBuf.append( input );
    2233             : 
    2234           4 :             CPPUNIT_ASSERT_MESSAGE
    2235             :             (
    2236             :                 "Appends the string(length equal to 0) to the string buffer arrOUS[3]",
    2237             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2238           4 :             );
    2239             : 
    2240           2 :         }
    2241             : 
    2242           2 :         void append_002_017()
    2243             :         {
    2244           2 :             OString                expVal( kTestStr29 );
    2245           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    2246           2 :             const sal_Char*        input = kTestStr38;
    2247             : 
    2248           2 :             aStrBuf.append( input );
    2249             : 
    2250           4 :             CPPUNIT_ASSERT_MESSAGE
    2251             :             (
    2252             :                 "Appends the string(length less than 16) to the string buffer arrOUS[4]",
    2253             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2254           4 :             );
    2255             : 
    2256           2 :         }
    2257             : 
    2258           2 :         void append_002_018()
    2259             :         {
    2260           2 :             OString                expVal( kTestStr39 );
    2261           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    2262           2 :             const sal_Char*        input = kTestStr17;
    2263             : 
    2264           2 :             aStrBuf.append( input );
    2265             : 
    2266           4 :             CPPUNIT_ASSERT_MESSAGE
    2267             :             (
    2268             :                 "Appends the string(length more than 16) to the string buffer arrOUS[4]",
    2269             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2270           4 :             );
    2271             : 
    2272           2 :         }
    2273             : 
    2274           2 :         void append_002_019()
    2275             :         {
    2276           2 :             OString                expVal( kTestStr40 );
    2277           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    2278           2 :             const sal_Char*        input = kTestStr31;
    2279             : 
    2280           2 :             aStrBuf.append( input );
    2281             : 
    2282           4 :             CPPUNIT_ASSERT_MESSAGE
    2283             :             (
    2284             :                 "Appends the string(length equal to 16) to the string buffer arrOUS[4]",
    2285             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2286           4 :             );
    2287             : 
    2288           2 :         }
    2289             : 
    2290           2 :         void append_002_020()
    2291             :         {
    2292           2 :             OString                expVal( kTestStr28 );
    2293           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    2294           2 :             const sal_Char*        input = kTestStr25;
    2295             : 
    2296           2 :             aStrBuf.append( input );
    2297             : 
    2298           4 :             CPPUNIT_ASSERT_MESSAGE
    2299             :             (
    2300             :                 "Appends the string(length equal to 0) to the string buffer arrOUS[4]",
    2301             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2302           4 :             );
    2303             : 
    2304           2 :         }
    2305             : 
    2306             : #ifdef WITH_CORE
    2307             :         void append_002_021()
    2308             :         {
    2309             :             OString                expVal;
    2310             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
    2311             :             const sal_Char*        input = kTestStr25;
    2312             : 
    2313             :             aStrBuf.append( input );
    2314             : 
    2315             :             CPPUNIT_ASSERT_MESSAGE
    2316             :             (
    2317             :                 "Appends the string(length equal to 0) to the string buffer(with INT_MAX)",
    2318             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2319             :             );
    2320             : 
    2321             :         }
    2322             : #endif
    2323             : 
    2324           4 :         CPPUNIT_TEST_SUITE( append_002 );
    2325           2 :         CPPUNIT_TEST( append_002_001 );
    2326           2 :         CPPUNIT_TEST( append_002_002 );
    2327           2 :         CPPUNIT_TEST( append_002_003 );
    2328           2 :         CPPUNIT_TEST( append_002_004 );
    2329           2 :         CPPUNIT_TEST( append_002_005 );
    2330           2 :         CPPUNIT_TEST( append_002_006 );
    2331           2 :         CPPUNIT_TEST( append_002_007 );
    2332           2 :         CPPUNIT_TEST( append_002_008 );
    2333           2 :         CPPUNIT_TEST( append_002_009 );
    2334           2 :         CPPUNIT_TEST( append_002_010 );
    2335           2 :         CPPUNIT_TEST( append_002_011 );
    2336           2 :         CPPUNIT_TEST( append_002_012 );
    2337           2 :         CPPUNIT_TEST( append_002_013 );
    2338           2 :         CPPUNIT_TEST( append_002_014 );
    2339           2 :         CPPUNIT_TEST( append_002_015 );
    2340           2 :         CPPUNIT_TEST( append_002_016 );
    2341           2 :         CPPUNIT_TEST( append_002_017 );
    2342           2 :         CPPUNIT_TEST( append_002_018 );
    2343           2 :         CPPUNIT_TEST( append_002_019 );
    2344           2 :         CPPUNIT_TEST( append_002_020 );
    2345             : #ifdef WITH_CORE
    2346             :         CPPUNIT_TEST( append_002_021 );
    2347             : #endif
    2348           4 :         CPPUNIT_TEST_SUITE_END();
    2349             :     };
    2350             : // -----------------------------------------------------------------------------
    2351             : 
    2352         120 :     class  append_003 : public CppUnit::TestFixture
    2353             :     {
    2354             :         OString* arrOUS[5];
    2355             : 
    2356             :     public:
    2357          40 :         void setUp()
    2358             :         {
    2359          40 :             arrOUS[0] = new OString( kTestStr7 );
    2360          40 :             arrOUS[1] = new OString(  );
    2361          40 :             arrOUS[2] = new OString( kTestStr25 );
    2362          40 :             arrOUS[3] = new OString( "" );
    2363          40 :             arrOUS[4] = new OString( kTestStr28 );
    2364             : 
    2365          40 :         }
    2366             : 
    2367          40 :         void tearDown()
    2368             :         {
    2369          40 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
    2370          40 :             delete arrOUS[3]; delete arrOUS[4];
    2371          40 :         }
    2372             : 
    2373           2 :         void append_003_001()
    2374             :         {
    2375           2 :             OString                expVal( kTestStr1 );
    2376           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    2377           2 :             const sal_Char*        input1 = kTestStr36;
    2378           2 :             sal_Int32              input2 = 12;
    2379             : 
    2380           2 :             aStrBuf.append( input1, input2 );
    2381             : 
    2382           4 :             CPPUNIT_ASSERT_MESSAGE
    2383             :             (
    2384             :                 "Appends the string(length less than 16) to the string buffer arrOUS[0]",
    2385             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2386           4 :             );
    2387             : 
    2388           2 :         }
    2389             : 
    2390           2 :         void append_003_002()
    2391             :         {
    2392           2 :             OString                expVal( kTestStr2 );
    2393           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    2394           2 :             const sal_Char*        input1 = kTestStr36;
    2395           2 :             sal_Int32              input2 = 28;
    2396             : 
    2397           2 :             aStrBuf.append( input1, input2 );
    2398             : 
    2399           4 :             CPPUNIT_ASSERT_MESSAGE
    2400             :             (
    2401             :                 "Appends the string(length more than 16) to the string buffer arrOUS[0]",
    2402             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2403           4 :             );
    2404             : 
    2405           2 :         }
    2406             : 
    2407           2 :         void append_003_003()
    2408             :         {
    2409           2 :             OString                expVal( kTestStr37 );
    2410           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    2411           2 :             const sal_Char*        input1 = kTestStr23;
    2412           2 :             sal_Int32              input2 = 16;
    2413             : 
    2414           2 :             aStrBuf.append( input1, input2 );
    2415             : 
    2416           4 :             CPPUNIT_ASSERT_MESSAGE
    2417             :             (
    2418             :                 "Appends the string(length equal to 16) to the string buffer arrOUS[0]",
    2419             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2420           4 :             );
    2421             : 
    2422           2 :         }
    2423             : 
    2424           2 :         void append_003_004()
    2425             :         {
    2426           2 :             OString                expVal( kTestStr7 );
    2427           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    2428           2 :             const sal_Char*        input1 = kTestStr2;
    2429           2 :             sal_Int32              input2 = 0;
    2430             : 
    2431           2 :             aStrBuf.append( input1, input2 );
    2432             : 
    2433           4 :             CPPUNIT_ASSERT_MESSAGE
    2434             :             (
    2435             :                 "Appends the string(length equal to 0) to the string buffer arrOUS[0]",
    2436             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2437           4 :             );
    2438             : 
    2439           2 :         }
    2440             : 
    2441           2 :         void append_003_006()
    2442             :         {
    2443           2 :             OString                expVal( kTestStr7 );
    2444           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    2445           2 :             const sal_Char*        input1 = kTestStr2;
    2446           2 :             sal_Int32              input2 = 4;
    2447             : 
    2448           2 :             aStrBuf.append( input1, input2 );
    2449             : 
    2450           4 :             CPPUNIT_ASSERT_MESSAGE
    2451             :             (
    2452             :                 "Appends the string(length less than 16) to the string buffer arrOUS[1]",
    2453             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2454           4 :             );
    2455             : 
    2456           2 :         }
    2457             : 
    2458           2 :         void append_003_007()
    2459             :         {
    2460           2 :             OString                expVal( kTestStr2 );
    2461           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    2462           2 :             const sal_Char*        input1 = kTestStr2;
    2463           2 :             sal_Int32              input2 = 32;
    2464             : 
    2465           2 :             aStrBuf.append( input1, input2 );
    2466             : 
    2467           4 :             CPPUNIT_ASSERT_MESSAGE
    2468             :             (
    2469             :                 "Appends the string(length more than 16) to the string buffer arrOUS[1]",
    2470             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2471           4 :             );
    2472             : 
    2473           2 :         }
    2474             : 
    2475           2 :         void append_003_008()
    2476             :         {
    2477           2 :             OString                expVal( kTestStr1 );
    2478           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    2479           2 :             const sal_Char*        input1 = kTestStr2;
    2480           2 :             sal_Int32              input2 = 16;
    2481             : 
    2482           2 :             aStrBuf.append( input1, input2 );
    2483             : 
    2484           4 :             CPPUNIT_ASSERT_MESSAGE
    2485             :             (
    2486             :                 "Appends the string(length equal to 16) to the string buffer arrOUS[1]",
    2487             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2488           4 :             );
    2489             : 
    2490           2 :         }
    2491             : 
    2492           2 :         void append_003_009()
    2493             :         {
    2494           2 :             OString                expVal;
    2495           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    2496           2 :             const sal_Char*        input1 = kTestStr2;
    2497           2 :             sal_Int32              input2 = 0;
    2498             : 
    2499           2 :             aStrBuf.append( input1, input2 );
    2500             : 
    2501           4 :             CPPUNIT_ASSERT_MESSAGE
    2502             :             (
    2503             :                 "Appends the string(length equal to 0) to the string buffer arrOUS[1]",
    2504             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2505           4 :             );
    2506             : 
    2507           2 :         }
    2508             : 
    2509           2 :         void append_003_011()
    2510             :         {
    2511           2 :             OString                expVal( kTestStr7 );
    2512           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    2513           2 :             const sal_Char*        input1 = kTestStr2;
    2514           2 :             sal_Int32              input2 = 4;
    2515             : 
    2516           2 :             aStrBuf.append( input1, input2 );
    2517             : 
    2518           4 :             CPPUNIT_ASSERT_MESSAGE
    2519             :             (
    2520             :                 "Appends the string(length less than 16) to the string buffer arrOUS[2]",
    2521             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2522           4 :             );
    2523             : 
    2524           2 :         }
    2525             : 
    2526           2 :         void append_003_012()
    2527             :         {
    2528           2 :             OString                expVal( kTestStr2 );
    2529           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    2530           2 :             const sal_Char*        input1 = kTestStr2;
    2531           2 :             sal_Int32              input2 = 32;
    2532             : 
    2533           2 :             aStrBuf.append( input1, input2 );
    2534             : 
    2535           4 :             CPPUNIT_ASSERT_MESSAGE
    2536             :             (
    2537             :                 "Appends the string(length more than 16) to the string buffer arrOUS[2]",
    2538             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2539           4 :             );
    2540             : 
    2541           2 :         }
    2542             : 
    2543           2 :         void append_003_013()
    2544             :         {
    2545           2 :             OString                expVal( kTestStr1 );
    2546           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    2547           2 :             const sal_Char*        input1 = kTestStr2;
    2548           2 :             sal_Int32              input2 = 16;
    2549             : 
    2550           2 :             aStrBuf.append( input1, input2 );
    2551             : 
    2552           4 :             CPPUNIT_ASSERT_MESSAGE
    2553             :             (
    2554             :                 "Appends the string(length equal to 16) to the string buffer arrOUS[2]",
    2555             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2556           4 :             );
    2557             : 
    2558           2 :         }
    2559             : 
    2560           2 :         void append_003_014()
    2561             :         {
    2562           2 :             OString                expVal;
    2563           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    2564           2 :             const sal_Char*        input1 = kTestStr2;
    2565           2 :             sal_Int32              input2 = 0;
    2566             : 
    2567           2 :             aStrBuf.append( input1, input2 );
    2568             : 
    2569           4 :             CPPUNIT_ASSERT_MESSAGE
    2570             :             (
    2571             :                 "Appends the string(length equal to 0) to the string buffer arrOUS[2]",
    2572             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2573           4 :             );
    2574             : 
    2575           2 :         }
    2576             : 
    2577           2 :         void append_003_016()
    2578             :         {
    2579           2 :             OString                expVal( kTestStr7 );
    2580           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    2581           2 :             const sal_Char*        input1 = kTestStr2;
    2582           2 :             sal_Int32              input2 = 4;
    2583             : 
    2584           2 :             aStrBuf.append( input1, input2 );
    2585             : 
    2586           4 :             CPPUNIT_ASSERT_MESSAGE
    2587             :             (
    2588             :                 "Appends the string(length less than 16) to the string buffer arrOUS[3]",
    2589             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2590           4 :             );
    2591             : 
    2592           2 :         }
    2593             : 
    2594           2 :         void append_003_017()
    2595             :         {
    2596           2 :             OString                expVal( kTestStr2 );
    2597           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    2598           2 :             const sal_Char*        input1 = kTestStr2;
    2599           2 :             sal_Int32              input2 = 32;
    2600             : 
    2601           2 :             aStrBuf.append( input1, input2 );
    2602             : 
    2603           4 :             CPPUNIT_ASSERT_MESSAGE
    2604             :             (
    2605             :                 "Appends the string(length more than 16) to the string buffer arrOUS[3]",
    2606             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2607           4 :             );
    2608             : 
    2609           2 :         }
    2610             : 
    2611           2 :         void append_003_018()
    2612             :         {
    2613           2 :             OString                expVal( kTestStr1 );
    2614           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    2615           2 :             const sal_Char*        input1 = kTestStr2;
    2616           2 :             sal_Int32              input2 = 16;
    2617             : 
    2618           2 :             aStrBuf.append( input1, input2 );
    2619             : 
    2620           4 :             CPPUNIT_ASSERT_MESSAGE
    2621             :             (
    2622             :                 "Appends the string(length equal to 16) to the string buffer arrOUS[3]",
    2623             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2624           4 :             );
    2625             : 
    2626           2 :         }
    2627             : 
    2628           2 :         void append_003_019()
    2629             :         {
    2630           2 :             OString                expVal;
    2631           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    2632           2 :             const sal_Char*        input1 = kTestStr2;
    2633           2 :             sal_Int32              input2 = 0;
    2634             : 
    2635           2 :             aStrBuf.append( input1, input2 );
    2636             : 
    2637           4 :             CPPUNIT_ASSERT_MESSAGE
    2638             :             (
    2639             :                 "Appends the string(length equal to 0) to the string buffer arrOUS[3]",
    2640             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2641           4 :             );
    2642             : 
    2643           2 :         }
    2644             : 
    2645           2 :         void append_003_021()
    2646             :         {
    2647           2 :             OString                expVal( kTestStr29 );
    2648           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    2649           2 :             const sal_Char*        input1 = kTestStr38;
    2650           2 :             sal_Int32              input2 = 7;
    2651             : 
    2652           2 :             aStrBuf.append( input1, input2 );
    2653             : 
    2654           4 :             CPPUNIT_ASSERT_MESSAGE
    2655             :             (
    2656             :                 "Appends the string(length less than 16) to the string buffer arrOUS[4]",
    2657             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2658           4 :             );
    2659             : 
    2660           2 :         }
    2661             : 
    2662           2 :         void append_003_022()
    2663             :         {
    2664           2 :             OString                expVal( kTestStr39 );
    2665           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    2666           2 :             const sal_Char*        input1 = kTestStr17;
    2667           2 :             sal_Int32              input2 = 22;
    2668             : 
    2669           2 :             aStrBuf.append( input1, input2 );
    2670             : 
    2671           4 :             CPPUNIT_ASSERT_MESSAGE
    2672             :             (
    2673             :                 "Appends the string(length more than 16) to the string buffer arrOUS[4]",
    2674             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2675           4 :             );
    2676             : 
    2677           2 :         }
    2678             : 
    2679           2 :         void append_003_023()
    2680             :         {
    2681           2 :             OString                expVal( kTestStr40 );
    2682           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    2683           2 :             const sal_Char*        input1 = kTestStr31;
    2684           2 :             sal_Int32              input2 = 16;
    2685             : 
    2686           2 :             aStrBuf.append( input1, input2 );
    2687             : 
    2688           4 :             CPPUNIT_ASSERT_MESSAGE
    2689             :             (
    2690             :                 "Appends the string(length equal to 16) to the string buffer arrOUS[4]",
    2691             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2692           4 :             );
    2693             : 
    2694           2 :         }
    2695             : 
    2696           2 :         void append_003_024()
    2697             :         {
    2698           2 :             OString                expVal( kTestStr28 );
    2699           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    2700           2 :             const sal_Char*        input1 = kTestStr2;
    2701           2 :             sal_Int32              input2 = 0;
    2702             : 
    2703           2 :             aStrBuf.append( input1, input2 );
    2704             : 
    2705           4 :             CPPUNIT_ASSERT_MESSAGE
    2706             :             (
    2707             :                 "Appends the string(length equal to 0) to the string buffer arrOUS[4]",
    2708             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2709           4 :             );
    2710             : 
    2711           2 :         }
    2712             : 
    2713           4 :         CPPUNIT_TEST_SUITE( append_003 );
    2714           2 :         CPPUNIT_TEST( append_003_001 );
    2715           2 :         CPPUNIT_TEST( append_003_002 );
    2716           2 :         CPPUNIT_TEST( append_003_003 );
    2717           2 :         CPPUNIT_TEST( append_003_004 );
    2718           2 :         CPPUNIT_TEST( append_003_006 );
    2719           2 :         CPPUNIT_TEST( append_003_007 );
    2720           2 :         CPPUNIT_TEST( append_003_008 );
    2721           2 :         CPPUNIT_TEST( append_003_009 );
    2722           2 :         CPPUNIT_TEST( append_003_011 );
    2723           2 :         CPPUNIT_TEST( append_003_012 );
    2724           2 :         CPPUNIT_TEST( append_003_013 );
    2725           2 :         CPPUNIT_TEST( append_003_014 );
    2726           2 :         CPPUNIT_TEST( append_003_016 );
    2727           2 :         CPPUNIT_TEST( append_003_017 );
    2728           2 :         CPPUNIT_TEST( append_003_018 );
    2729           2 :         CPPUNIT_TEST( append_003_019 );
    2730           2 :         CPPUNIT_TEST( append_003_021 );
    2731           2 :         CPPUNIT_TEST( append_003_022 );
    2732           2 :         CPPUNIT_TEST( append_003_023 );
    2733           2 :         CPPUNIT_TEST( append_003_024 );
    2734           4 :         CPPUNIT_TEST_SUITE_END();
    2735             :     };
    2736             : //-----------------------------------------------------------------------------
    2737             : 
    2738          60 :     class  append_004 : public CppUnit::TestFixture
    2739             :     {
    2740             :         OString* arrOUS[5];
    2741             : 
    2742             :     public:
    2743          20 :         void setUp()
    2744             :         {
    2745          20 :             arrOUS[0] = new OString( kTestStr7 );
    2746          20 :             arrOUS[1] = new OString(  );
    2747          20 :             arrOUS[2] = new OString( kTestStr25 );
    2748          20 :             arrOUS[3] = new OString( "" );
    2749          20 :             arrOUS[4] = new OString( kTestStr28 );
    2750             : 
    2751          20 :         }
    2752             : 
    2753          20 :         void tearDown()
    2754             :         {
    2755          20 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
    2756          20 :             delete arrOUS[3]; delete arrOUS[4];
    2757          20 :         }
    2758             : 
    2759           2 :         void append_004_001()
    2760             :         {
    2761           2 :             OString                expVal( kTestStr45 );
    2762           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    2763           2 :             sal_Bool               input = sal_True;
    2764             : 
    2765           2 :             aStrBuf.append( input );
    2766             : 
    2767           4 :             CPPUNIT_ASSERT_MESSAGE
    2768             :             (
    2769             :                 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[0]",
    2770             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2771           4 :             );
    2772             : 
    2773           2 :         }
    2774             : 
    2775           2 :         void append_004_002()
    2776             :         {
    2777           2 :             OString                expVal( kTestStr46 );
    2778           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    2779           2 :             sal_Bool               input = sal_False;
    2780             : 
    2781           2 :             aStrBuf.append( input );
    2782             : 
    2783           4 :             CPPUNIT_ASSERT_MESSAGE
    2784             :             (
    2785             :                 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[0]",
    2786             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2787           4 :             );
    2788             : 
    2789           2 :         }
    2790             : 
    2791           2 :         void append_004_003()
    2792             :         {
    2793           2 :             OString                expVal( kTestStr47 );
    2794           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    2795           2 :             sal_Bool               input = sal_True;
    2796             : 
    2797           2 :             aStrBuf.append( input );
    2798             : 
    2799           4 :             CPPUNIT_ASSERT_MESSAGE
    2800             :             (
    2801             :                 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[1]",
    2802             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2803           4 :             );
    2804             : 
    2805           2 :         }
    2806             : 
    2807           2 :         void append_004_004()
    2808             :         {
    2809           2 :             OString                expVal( kTestStr48 );
    2810           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    2811           2 :             sal_Bool               input = sal_False;
    2812             : 
    2813           2 :             aStrBuf.append( input );
    2814             : 
    2815           4 :             CPPUNIT_ASSERT_MESSAGE
    2816             :             (
    2817             :                 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[1]",
    2818             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2819           4 :             );
    2820             : 
    2821           2 :         }
    2822             : 
    2823           2 :         void append_004_005()
    2824             :         {
    2825           2 :             OString                expVal( kTestStr47 );
    2826           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    2827           2 :             sal_Bool               input = sal_True;
    2828             : 
    2829           2 :             aStrBuf.append( input );
    2830             : 
    2831           4 :             CPPUNIT_ASSERT_MESSAGE
    2832             :             (
    2833             :                 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[2]",
    2834             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2835           4 :             );
    2836             : 
    2837           2 :         }
    2838             : 
    2839           2 :         void append_004_006()
    2840             :         {
    2841           2 :             OString                expVal( kTestStr48 );
    2842           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    2843           2 :             sal_Bool               input = sal_False;
    2844             : 
    2845           2 :             aStrBuf.append( input );
    2846             : 
    2847           4 :             CPPUNIT_ASSERT_MESSAGE
    2848             :             (
    2849             :                 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[2]",
    2850             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2851           4 :             );
    2852             : 
    2853           2 :         }
    2854             : 
    2855           2 :         void append_004_007()
    2856             :         {
    2857           2 :             OString                expVal( kTestStr47 );
    2858           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    2859           2 :             sal_Bool               input = sal_True;
    2860             : 
    2861           2 :             aStrBuf.append( input );
    2862             : 
    2863           4 :             CPPUNIT_ASSERT_MESSAGE
    2864             :             (
    2865             :                 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[3]",
    2866             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2867           4 :             );
    2868             : 
    2869           2 :         }
    2870             : 
    2871           2 :         void append_004_008()
    2872             :         {
    2873           2 :             OString                expVal( kTestStr48 );
    2874           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    2875           2 :             sal_Bool               input = sal_False;
    2876             : 
    2877           2 :             aStrBuf.append( input );
    2878             : 
    2879           4 :             CPPUNIT_ASSERT_MESSAGE
    2880             :             (
    2881             :                 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[3]",
    2882             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2883           4 :             );
    2884             : 
    2885           2 :         }
    2886             : 
    2887           2 :         void append_004_009()
    2888             :         {
    2889           2 :             OString                expVal( kTestStr49 );
    2890           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    2891           2 :             sal_Bool               input = sal_True;
    2892             : 
    2893           2 :             aStrBuf.append( input );
    2894             : 
    2895           4 :             CPPUNIT_ASSERT_MESSAGE
    2896             :             (
    2897             :                 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[4]",
    2898             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2899           4 :             );
    2900             : 
    2901           2 :         }
    2902             : 
    2903           2 :         void append_004_010()
    2904             :         {
    2905           2 :             OString                expVal( kTestStr50 );
    2906           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    2907           2 :             sal_Bool               input = sal_False;
    2908             : 
    2909           2 :             aStrBuf.append( input );
    2910             : 
    2911           4 :             CPPUNIT_ASSERT_MESSAGE
    2912             :             (
    2913             :                 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[4]",
    2914             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2915           4 :             );
    2916             : 
    2917           2 :         }
    2918             : 
    2919             : #ifdef WITH_CORE
    2920             :         void append_004_011()
    2921             :         {
    2922             :             OString                expVal( kTestStr47 );
    2923             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
    2924             :             sal_Bool               input = sal_True;
    2925             : 
    2926             :             aStrBuf.append( input );
    2927             : 
    2928             :             CPPUNIT_ASSERT_MESSAGE
    2929             :             (
    2930             :                 "Appends the sal_Bool(sal_True) to the string buffer(with INT_MAX)",
    2931             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2932             :             );
    2933             : 
    2934             :         }
    2935             : 
    2936             :         void append_004_012()
    2937             :         {
    2938             :             OString                expVal( kTestStr48 );
    2939             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
    2940             :             sal_Bool               input = sal_False;
    2941             : 
    2942             :             aStrBuf.append( input );
    2943             : 
    2944             :             CPPUNIT_ASSERT_MESSAGE
    2945             :             (
    2946             :                 "Appends the sal_Bool(sal_False) to the string buffer(with INT_MAX)",
    2947             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    2948             :             );
    2949             : 
    2950             :         }
    2951             : #endif
    2952             : 
    2953           4 :         CPPUNIT_TEST_SUITE( append_004 );
    2954           2 :         CPPUNIT_TEST( append_004_001 );
    2955           2 :         CPPUNIT_TEST( append_004_002 );
    2956           2 :         CPPUNIT_TEST( append_004_003 );
    2957           2 :         CPPUNIT_TEST( append_004_004 );
    2958           2 :         CPPUNIT_TEST( append_004_005 );
    2959           2 :         CPPUNIT_TEST( append_004_006 );
    2960           2 :         CPPUNIT_TEST( append_004_007 );
    2961           2 :         CPPUNIT_TEST( append_004_008 );
    2962           2 :         CPPUNIT_TEST( append_004_009 );
    2963           2 :         CPPUNIT_TEST( append_004_010 );
    2964             : #ifdef WITH_CORE
    2965             :         CPPUNIT_TEST( append_004_011 );
    2966             :         CPPUNIT_TEST( append_004_012 );
    2967             : #endif
    2968           4 :         CPPUNIT_TEST_SUITE_END();
    2969             :     };
    2970             : //------------------------------------------------------------------------
    2971             : // testing the method append(sal_Char c)
    2972             : //------------------------------------------------------------------------
    2973          60 :     class  append_005 : public CppUnit::TestFixture
    2974             :     {
    2975             :         OString* arrOUS[5];
    2976             : 
    2977             :     public:
    2978          20 :         void setUp()
    2979             :         {
    2980          20 :             arrOUS[0] = new OString( kTestStr7 );
    2981          20 :             arrOUS[1] = new OString(  );
    2982          20 :             arrOUS[2] = new OString( kTestStr25 );
    2983          20 :             arrOUS[3] = new OString( "" );
    2984          20 :             arrOUS[4] = new OString( kTestStr28 );
    2985             : 
    2986          20 :         }
    2987             : 
    2988          20 :         void tearDown()
    2989             :         {
    2990          20 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
    2991          20 :             delete arrOUS[3]; delete arrOUS[4];
    2992          20 :         }
    2993             : 
    2994           2 :         void append_001()
    2995             :         {
    2996           2 :             OString                expVal( kTestStr51 );
    2997           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    2998           2 :             sal_Char               input = 'M';
    2999             : 
    3000           2 :             aStrBuf.append( input );
    3001             : 
    3002           4 :             CPPUNIT_ASSERT_MESSAGE
    3003             :             (
    3004             :                 "Appends the sal_Char(M) to the string buffer arrOUS[0]",
    3005             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    3006           4 :             );
    3007             : 
    3008           2 :         }
    3009             : 
    3010           2 :         void append_002()
    3011             :         {
    3012           2 :             OString                expVal( kTestStr143 );
    3013           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3014           2 :             sal_Char               input = static_cast<sal_Char>(SAL_MAX_UINT8);
    3015             : 
    3016           2 :             aStrBuf.append( input );
    3017             : 
    3018           4 :             CPPUNIT_ASSERT_MESSAGE
    3019             :             (
    3020             :                 "Appends the sal_Unicode(kSInt8Max) to the string buffer arrOUS[0]",
    3021             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    3022           4 :             );
    3023             : 
    3024           2 :         }
    3025             : 
    3026           2 :         void append_003()
    3027             :         {
    3028           2 :             OString                expVal( kTestStr27 );
    3029           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3030           2 :             sal_Char               input = 's';
    3031             : 
    3032           2 :             aStrBuf.append( input );
    3033             : 
    3034           4 :             CPPUNIT_ASSERT_MESSAGE
    3035             :             (
    3036             :                 "Appends the sal_Char(s) to the string buffer arrOUS[1]",
    3037             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    3038           4 :             );
    3039             : 
    3040           2 :         }
    3041             : 
    3042           2 :         void append_004()
    3043             :         {
    3044           2 :             OString                expVal( kTestStr144 );
    3045           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3046           2 :             sal_Char               input = static_cast<sal_Char>(SAL_MAX_UINT8);
    3047             : 
    3048           2 :             aStrBuf.append( input );
    3049             : 
    3050           4 :             CPPUNIT_ASSERT_MESSAGE
    3051             :             (
    3052             :                 "Appends the sal_Char(kSInt8Max) to the string buffer arrOUS[1]",
    3053             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    3054           4 :             );
    3055             : 
    3056           2 :         }
    3057             : 
    3058           2 :         void append_005_005()
    3059             :         {
    3060           2 :             OString                expVal( kTestStr27 );
    3061           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    3062           2 :             sal_Char               input = 's';
    3063             : 
    3064           2 :             aStrBuf.append( input );
    3065             : 
    3066           4 :             CPPUNIT_ASSERT_MESSAGE
    3067             :             (
    3068             :                 "Appends the sal_Char(s) to the string buffer arrOUS[2]",
    3069             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    3070           4 :             );
    3071             : 
    3072           2 :         }
    3073             : 
    3074           2 :         void append_006()
    3075             :         {
    3076           2 :             OString                expVal( kTestStr144 );
    3077           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    3078           2 :             sal_Char               input = static_cast<sal_Char>(SAL_MAX_UINT8);
    3079             : 
    3080           2 :             aStrBuf.append( input );
    3081             : 
    3082           4 :             CPPUNIT_ASSERT_MESSAGE
    3083             :             (
    3084             :                 "Appends the sal_Char(kSInt8Max) to the string buffer arrOUS[2]",
    3085             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    3086           4 :             );
    3087             : 
    3088           2 :         }
    3089             : 
    3090           2 :         void append_007()
    3091             :         {
    3092           2 :             OString                expVal( kTestStr27 );
    3093           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    3094           2 :             sal_Char               input = 's';
    3095             : 
    3096           2 :             aStrBuf.append( input );
    3097             : 
    3098           4 :             CPPUNIT_ASSERT_MESSAGE
    3099             :             (
    3100             :                 "Appends the sal_Char(s) to the string buffer arrOUS[3]",
    3101             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    3102           4 :             );
    3103             : 
    3104           2 :         }
    3105             : 
    3106           2 :         void append_008()
    3107             :         {
    3108           2 :             OString                expVal( kTestStr144 );
    3109           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    3110           2 :             sal_Char               input = static_cast<sal_Char>(SAL_MAX_UINT8);
    3111             : 
    3112           2 :             aStrBuf.append( input );
    3113             : 
    3114           4 :             CPPUNIT_ASSERT_MESSAGE
    3115             :             (
    3116             :                 "Appends the sal_Char(kSInt8Max) to the string buffer arrOUS[3]",
    3117             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    3118           4 :             );
    3119             : 
    3120           2 :         }
    3121             : 
    3122           2 :         void append_009()
    3123             :         {
    3124           2 :             OString                expVal( kTestStr56 );
    3125           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    3126           2 :             sal_Char               input = 's';
    3127             : 
    3128           2 :             aStrBuf.append( input );
    3129             : 
    3130           4 :             CPPUNIT_ASSERT_MESSAGE
    3131             :             (
    3132             :                 "Appends the sal_Char(s) to the string buffer arrOUS[4]",
    3133             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    3134           4 :             );
    3135             : 
    3136           2 :         }
    3137             : 
    3138           2 :         void append_010()
    3139             :         {
    3140           2 :             OString                expVal( kTestStr145 );
    3141           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    3142           2 :             sal_Char               input = static_cast<sal_Char>(SAL_MAX_UINT8);
    3143             : 
    3144           2 :             aStrBuf.append( input );
    3145             : 
    3146           4 :             CPPUNIT_ASSERT_MESSAGE
    3147             :             (
    3148             :                 "Appends the sal_Char(kSInt8Max) to the string buffer arrOUS[4]",
    3149             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    3150           4 :             );
    3151             : 
    3152           2 :         }
    3153             : 
    3154             : #ifdef WITH_CORE
    3155             :         void append_011()
    3156             :         {
    3157             :             OString                expVal( kTestStr27 );
    3158             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
    3159             :             sal_Char               input = 's';
    3160             : 
    3161             :             aStrBuf.append( input );
    3162             : 
    3163             :             CPPUNIT_ASSERT_MESSAGE
    3164             :             (
    3165             :                 "Appends the sal_Char(s) to the string buffer(with INT_MAX)",
    3166             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    3167             :             );
    3168             : 
    3169             :         }
    3170             : 
    3171             :         void append_012()
    3172             :         {
    3173             :             OString                expVal( kTestStr144 );
    3174             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
    3175             :             sal_Char               input = static_cast<sal_Char>(SAL_MAX_UINT8);
    3176             : 
    3177             :             aStrBuf.append( input );
    3178             : 
    3179             :             CPPUNIT_ASSERT_MESSAGE
    3180             :             (
    3181             :                 "Appends the sal_Char(kSInt8Max) to the string buffer with INT_MAX)",
    3182             :                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
    3183             :             );
    3184             : 
    3185             :         }
    3186             : #endif
    3187             : 
    3188           4 :         CPPUNIT_TEST_SUITE( append_005 );
    3189           2 :         CPPUNIT_TEST( append_001 );
    3190           2 :         CPPUNIT_TEST( append_002 );
    3191           2 :         CPPUNIT_TEST( append_003 );
    3192           2 :         CPPUNIT_TEST( append_004 );
    3193           2 :         CPPUNIT_TEST( append_005_005 );
    3194           2 :         CPPUNIT_TEST( append_006 );
    3195           2 :         CPPUNIT_TEST( append_007 );
    3196           2 :         CPPUNIT_TEST( append_008 );
    3197           2 :         CPPUNIT_TEST( append_009 );
    3198           2 :         CPPUNIT_TEST( append_010 );
    3199             : #ifdef WITH_CORE
    3200             :         CPPUNIT_TEST( append_011 );
    3201             :         CPPUNIT_TEST( append_012 );
    3202             : #endif
    3203           4 :         CPPUNIT_TEST_SUITE_END();
    3204             :     };
    3205             : 
    3206         600 :     class  append_006_Int32 : public CppUnit::TestFixture
    3207             :     {
    3208             :         OString* arrOUS[5];
    3209             : 
    3210             :     public:
    3211         200 :         void setUp()
    3212             :         {
    3213         200 :             arrOUS[0] = new OString( kTestStr7 );
    3214         200 :             arrOUS[1] = new OString(  );
    3215         200 :             arrOUS[2] = new OString( kTestStr25 );
    3216         200 :             arrOUS[3] = new OString( "" );
    3217         200 :             arrOUS[4] = new OString( kTestStr28 );
    3218             : 
    3219         200 :         }
    3220             : 
    3221         200 :         void tearDown()
    3222             :         {
    3223         200 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
    3224         200 :             delete arrOUS[3]; delete arrOUS[4];
    3225         200 :         }
    3226             : 
    3227           2 :         void append_001()
    3228             :         {
    3229           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3230           2 :             OString                expVal( aStrBuf.getStr() );
    3231           2 :             sal_Int32              input = 0;
    3232           2 :             sal_Int16              radix = 2;
    3233             : 
    3234           2 :             expVal += OString( "0" );
    3235           2 :             aStrBuf.append( input, radix );
    3236             : 
    3237           4 :             CPPUNIT_ASSERT_MESSAGE
    3238             :             (
    3239             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
    3240             :                 aStrBuf.getStr()== expVal &&
    3241             :                     aStrBuf.getLength() == expVal.getLength()
    3242           4 :             );
    3243             : 
    3244           2 :         }
    3245             : 
    3246           2 :         void append_002()
    3247             :         {
    3248           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3249           2 :             OString                expVal( aStrBuf.getStr() );
    3250           2 :             sal_Int32              input = 4;
    3251           2 :             sal_Int16              radix = 2;
    3252             : 
    3253           2 :             expVal += OString( "100" );
    3254           2 :             aStrBuf.append( input, radix );
    3255             : 
    3256           4 :             CPPUNIT_ASSERT_MESSAGE
    3257             :             (
    3258             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
    3259             :                 aStrBuf.getStr()== expVal &&
    3260             :                     aStrBuf.getLength() == expVal.getLength()
    3261           4 :             );
    3262             : 
    3263           2 :         }
    3264             : 
    3265           2 :         void append_003()
    3266             :         {
    3267           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3268           2 :             OString                expVal( aStrBuf.getStr() );
    3269           2 :             sal_Int32              input = 8;
    3270           2 :             sal_Int16              radix = 2;
    3271             : 
    3272           2 :             expVal += OString( "1000" );
    3273           2 :             aStrBuf.append( input, radix );
    3274             : 
    3275           4 :             CPPUNIT_ASSERT_MESSAGE
    3276             :             (
    3277             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
    3278             :                 aStrBuf.getStr()== expVal &&
    3279             :                     aStrBuf.getLength() == expVal.getLength()
    3280           4 :             );
    3281             : 
    3282           2 :         }
    3283             : 
    3284           2 :         void append_004()
    3285             :         {
    3286           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3287           2 :             OString                expVal( aStrBuf.getStr() );
    3288           2 :             sal_Int32              input = 15;
    3289           2 :             sal_Int16              radix = 2;
    3290             : 
    3291           2 :             expVal += OString( "1111" );
    3292           2 :             aStrBuf.append( input, radix );
    3293             : 
    3294           4 :             CPPUNIT_ASSERT_MESSAGE
    3295             :             (
    3296             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
    3297             :                 aStrBuf.getStr()== expVal &&
    3298             :                     aStrBuf.getLength() == expVal.getLength()
    3299           4 :             );
    3300             : 
    3301           2 :         }
    3302             : 
    3303           2 :         void append_005()
    3304             :         {
    3305           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3306           2 :             OString                expVal( aStrBuf.getStr() );
    3307           2 :             sal_Int32              input = 0;
    3308           2 :             sal_Int16              radix = 8;
    3309             : 
    3310           2 :             expVal += OString( "0" );
    3311           2 :             aStrBuf.append( input, radix );
    3312             : 
    3313           4 :             CPPUNIT_ASSERT_MESSAGE
    3314             :             (
    3315             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
    3316             :                 aStrBuf.getStr()== expVal &&
    3317             :                     aStrBuf.getLength() == expVal.getLength()
    3318           4 :             );
    3319             : 
    3320           2 :         }
    3321             : 
    3322           2 :         void append_006()
    3323             :         {
    3324           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3325           2 :             OString                expVal( aStrBuf.getStr() );
    3326           2 :             sal_Int32              input = 4;
    3327           2 :             sal_Int16              radix = 8;
    3328             : 
    3329           2 :             expVal += OString( "4" );
    3330           2 :             aStrBuf.append( input, radix );
    3331             : 
    3332           4 :             CPPUNIT_ASSERT_MESSAGE
    3333             :             (
    3334             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
    3335             :                 aStrBuf.getStr()== expVal &&
    3336             :                     aStrBuf.getLength() == expVal.getLength()
    3337           4 :             );
    3338             : 
    3339           2 :         }
    3340             : 
    3341           2 :         void append_007()
    3342             :         {
    3343           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3344           2 :             OString                expVal( aStrBuf.getStr() );
    3345           2 :             sal_Int32              input = 8;
    3346           2 :             sal_Int16              radix = 8;
    3347             : 
    3348           2 :             expVal += OString( "10" );
    3349           2 :             aStrBuf.append( input, radix );
    3350             : 
    3351           4 :             CPPUNIT_ASSERT_MESSAGE
    3352             :             (
    3353             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
    3354             :                 aStrBuf.getStr()== expVal &&
    3355             :                     aStrBuf.getLength() == expVal.getLength()
    3356           4 :             );
    3357             : 
    3358           2 :         }
    3359             : 
    3360           2 :         void append_008()
    3361             :         {
    3362           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3363           2 :             OString                expVal( aStrBuf.getStr() );
    3364           2 :             sal_Int32              input = 15;
    3365           2 :             sal_Int16              radix = 8;
    3366             : 
    3367           2 :             expVal += OString( "17" );
    3368           2 :             aStrBuf.append( input, radix );
    3369             : 
    3370           4 :             CPPUNIT_ASSERT_MESSAGE
    3371             :             (
    3372             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
    3373             :                 aStrBuf.getStr()== expVal &&
    3374             :                     aStrBuf.getLength() == expVal.getLength()
    3375           4 :             );
    3376             : 
    3377           2 :         }
    3378             : 
    3379           2 :         void append_009()
    3380             :         {
    3381           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3382           2 :             OString                expVal( aStrBuf.getStr() );
    3383           2 :             sal_Int32              input = 0;
    3384           2 :             sal_Int16              radix = 10;
    3385             : 
    3386           2 :             expVal += OString( "0" );
    3387           2 :             aStrBuf.append( input, radix );
    3388             : 
    3389           4 :             CPPUNIT_ASSERT_MESSAGE
    3390             :             (
    3391             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
    3392             :                 aStrBuf.getStr()== expVal &&
    3393             :                     aStrBuf.getLength() == expVal.getLength()
    3394           4 :             );
    3395             : 
    3396           2 :         }
    3397             : 
    3398           2 :         void append_010()
    3399             :         {
    3400           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3401           2 :             OString                expVal( aStrBuf.getStr() );
    3402           2 :             sal_Int32              input = 4;
    3403           2 :             sal_Int16              radix = 10;
    3404             : 
    3405           2 :             expVal += OString( "4" );
    3406           2 :             aStrBuf.append( input, radix );
    3407             : 
    3408           4 :             CPPUNIT_ASSERT_MESSAGE
    3409             :             (
    3410             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
    3411             :                 aStrBuf.getStr()== expVal &&
    3412             :                     aStrBuf.getLength() == expVal.getLength()
    3413           4 :             );
    3414             : 
    3415           2 :         }
    3416             : 
    3417           2 :         void append_011()
    3418             :         {
    3419           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3420           2 :             OString                expVal( aStrBuf.getStr() );
    3421           2 :             sal_Int32              input = 8;
    3422           2 :             sal_Int16              radix = 10;
    3423             : 
    3424           2 :             expVal += OString( "8" );
    3425           2 :             aStrBuf.append( input, radix );
    3426             : 
    3427           4 :             CPPUNIT_ASSERT_MESSAGE
    3428             :             (
    3429             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
    3430             :                 aStrBuf.getStr()== expVal &&
    3431             :                     aStrBuf.getLength() == expVal.getLength()
    3432           4 :             );
    3433             : 
    3434           2 :         }
    3435             : 
    3436           2 :         void append_012()
    3437             :         {
    3438           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3439           2 :             OString                expVal( aStrBuf.getStr() );
    3440           2 :             sal_Int32              input = 15;
    3441           2 :             sal_Int16              radix = 10;
    3442             : 
    3443           2 :             expVal += OString( "15" );
    3444           2 :             aStrBuf.append( input, radix );
    3445             : 
    3446           4 :             CPPUNIT_ASSERT_MESSAGE
    3447             :             (
    3448             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
    3449             :                 aStrBuf.getStr()== expVal &&
    3450             :                     aStrBuf.getLength() == expVal.getLength()
    3451           4 :             );
    3452             : 
    3453           2 :         }
    3454             : 
    3455           2 :         void append_013()
    3456             :         {
    3457           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3458           2 :             OString                expVal( aStrBuf.getStr() );
    3459           2 :             sal_Int32              input = 0;
    3460           2 :             sal_Int16              radix = 16;
    3461             : 
    3462           2 :             expVal += OString( "0" );
    3463           2 :             aStrBuf.append( input, radix );
    3464             : 
    3465           4 :             CPPUNIT_ASSERT_MESSAGE
    3466             :             (
    3467             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
    3468             :                 aStrBuf.getStr()== expVal &&
    3469             :                     aStrBuf.getLength() == expVal.getLength()
    3470           4 :             );
    3471             : 
    3472           2 :         }
    3473             : 
    3474           2 :         void append_014()
    3475             :         {
    3476           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3477           2 :             OString                expVal( aStrBuf.getStr() );
    3478           2 :             sal_Int32              input = 4;
    3479           2 :             sal_Int16              radix = 16;
    3480             : 
    3481           2 :             expVal += OString( "4" );
    3482           2 :             aStrBuf.append( input, radix );
    3483             : 
    3484           4 :             CPPUNIT_ASSERT_MESSAGE
    3485             :             (
    3486             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
    3487             :                 aStrBuf.getStr()== expVal &&
    3488             :                     aStrBuf.getLength() == expVal.getLength()
    3489           4 :             );
    3490             : 
    3491           2 :         }
    3492             : 
    3493           2 :         void append_015()
    3494             :         {
    3495           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3496           2 :             OString                expVal( aStrBuf.getStr() );
    3497           2 :             sal_Int32              input = 8;
    3498           2 :             sal_Int16              radix = 16;
    3499             : 
    3500           2 :             expVal += OString( "8" );
    3501           2 :             aStrBuf.append( input, radix );
    3502             : 
    3503           4 :             CPPUNIT_ASSERT_MESSAGE
    3504             :             (
    3505             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
    3506             :                 aStrBuf.getStr()== expVal &&
    3507             :                     aStrBuf.getLength() == expVal.getLength()
    3508           4 :             );
    3509             : 
    3510           2 :         }
    3511             : 
    3512           2 :         void append_016()
    3513             :         {
    3514           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3515           2 :             OString                expVal( aStrBuf.getStr() );
    3516           2 :             sal_Int32              input = 15;
    3517           2 :             sal_Int16              radix = 16;
    3518             : 
    3519           2 :             expVal += OString( "f" );
    3520           2 :             aStrBuf.append( input, radix );
    3521             : 
    3522           4 :             CPPUNIT_ASSERT_MESSAGE
    3523             :             (
    3524             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
    3525             :                 aStrBuf.getStr()== expVal &&
    3526             :                     aStrBuf.getLength() == expVal.getLength()
    3527           4 :             );
    3528             : 
    3529           2 :         }
    3530             : 
    3531           2 :         void append_017()
    3532             :         {
    3533           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3534           2 :             OString                expVal( aStrBuf.getStr() );
    3535           2 :             sal_Int32              input = 0;
    3536           2 :             sal_Int16              radix = 36;
    3537             : 
    3538           2 :             expVal += OString( "0" );
    3539           2 :             aStrBuf.append( input, radix );
    3540             : 
    3541           4 :             CPPUNIT_ASSERT_MESSAGE
    3542             :             (
    3543             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
    3544             :                 aStrBuf.getStr()== expVal &&
    3545             :                     aStrBuf.getLength() == expVal.getLength()
    3546           4 :             );
    3547             : 
    3548           2 :         }
    3549             : 
    3550           2 :         void append_018()
    3551             :         {
    3552           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3553           2 :             OString                expVal( aStrBuf.getStr() );
    3554           2 :             sal_Int32              input = 4;
    3555           2 :             sal_Int16              radix = 36;
    3556             : 
    3557           2 :             expVal += OString( "4" );
    3558           2 :             aStrBuf.append( input, radix );
    3559             : 
    3560           4 :             CPPUNIT_ASSERT_MESSAGE
    3561             :             (
    3562             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
    3563             :                 aStrBuf.getStr()== expVal &&
    3564             :                     aStrBuf.getLength() == expVal.getLength()
    3565           4 :             );
    3566             : 
    3567           2 :         }
    3568             : 
    3569           2 :         void append_019()
    3570             :         {
    3571           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3572           2 :             OString                expVal( aStrBuf.getStr() );
    3573           2 :             sal_Int32              input = 8;
    3574           2 :             sal_Int16              radix = 36;
    3575             : 
    3576           2 :             expVal += OString( "8" );
    3577           2 :             aStrBuf.append( input, radix );
    3578             : 
    3579           4 :             CPPUNIT_ASSERT_MESSAGE
    3580             :             (
    3581             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
    3582             :                 aStrBuf.getStr()== expVal &&
    3583             :                     aStrBuf.getLength() == expVal.getLength()
    3584           4 :             );
    3585             : 
    3586           2 :         }
    3587             : 
    3588           2 :         void append_020()
    3589             :         {
    3590           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    3591           2 :             OString                expVal( aStrBuf.getStr() );
    3592           2 :             sal_Int32              input = 35;
    3593           2 :             sal_Int16              radix = 36;
    3594             : 
    3595           2 :             expVal += OString( "z" );
    3596           2 :             aStrBuf.append( input, radix );
    3597             : 
    3598           4 :             CPPUNIT_ASSERT_MESSAGE
    3599             :             (
    3600             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
    3601             :                 aStrBuf.getStr()== expVal &&
    3602             :                     aStrBuf.getLength() == expVal.getLength()
    3603           4 :             );
    3604             : 
    3605           2 :         }
    3606             : 
    3607           2 :         void append_021()
    3608             :         {
    3609           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3610           2 :             OString                expVal( aStrBuf.getStr() );
    3611           2 :             sal_Int32              input = 0;
    3612           2 :             sal_Int16              radix = 2;
    3613             : 
    3614           2 :             expVal += OString( "0" );
    3615           2 :             aStrBuf.append( input, radix );
    3616             : 
    3617           4 :             CPPUNIT_ASSERT_MESSAGE
    3618             :             (
    3619             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
    3620             :                 aStrBuf.getStr()== expVal &&
    3621             :                     aStrBuf.getLength() == expVal.getLength()
    3622           4 :             );
    3623             : 
    3624           2 :         }
    3625             : 
    3626           2 :         void append_022()
    3627             :         {
    3628           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3629           2 :             OString                expVal( aStrBuf.getStr() );
    3630           2 :             sal_Int32              input = 4;
    3631           2 :             sal_Int16              radix = 2;
    3632             : 
    3633           2 :             expVal += OString( "100" );
    3634           2 :             aStrBuf.append( input, radix );
    3635             : 
    3636           4 :             CPPUNIT_ASSERT_MESSAGE
    3637             :             (
    3638             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
    3639             :                 aStrBuf.getStr()== expVal &&
    3640             :                     aStrBuf.getLength() == expVal.getLength()
    3641           4 :             );
    3642             : 
    3643           2 :         }
    3644             : 
    3645           2 :         void append_023()
    3646             :         {
    3647           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3648           2 :             OString                expVal( aStrBuf.getStr() );
    3649           2 :             sal_Int32              input = 8;
    3650           2 :             sal_Int16              radix = 2;
    3651             : 
    3652           2 :             expVal += OString( "1000" );
    3653           2 :             aStrBuf.append( input, radix );
    3654             : 
    3655           4 :             CPPUNIT_ASSERT_MESSAGE
    3656             :             (
    3657             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
    3658             :                 aStrBuf.getStr()== expVal &&
    3659             :                     aStrBuf.getLength() == expVal.getLength()
    3660           4 :             );
    3661             : 
    3662           2 :         }
    3663             : 
    3664           2 :         void append_024()
    3665             :         {
    3666           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3667           2 :             OString                expVal( aStrBuf.getStr() );
    3668           2 :             sal_Int32              input = 15;
    3669           2 :             sal_Int16              radix = 2;
    3670             : 
    3671           2 :             expVal += OString( "1111" );
    3672           2 :             aStrBuf.append( input, radix );
    3673             : 
    3674           4 :             CPPUNIT_ASSERT_MESSAGE
    3675             :             (
    3676             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
    3677             :                 aStrBuf.getStr()== expVal &&
    3678             :                     aStrBuf.getLength() == expVal.getLength()
    3679           4 :             );
    3680             : 
    3681           2 :         }
    3682             : 
    3683           2 :         void append_025()
    3684             :         {
    3685           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3686           2 :             OString                expVal( aStrBuf.getStr() );
    3687           2 :             sal_Int32              input = 0;
    3688           2 :             sal_Int16              radix = 8;
    3689             : 
    3690           2 :             expVal += OString( "0" );
    3691           2 :             aStrBuf.append( input, radix );
    3692             : 
    3693           4 :             CPPUNIT_ASSERT_MESSAGE
    3694             :             (
    3695             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
    3696             :                 aStrBuf.getStr()== expVal &&
    3697             :                     aStrBuf.getLength() == expVal.getLength()
    3698           4 :             );
    3699             : 
    3700           2 :         }
    3701             : 
    3702           2 :         void append_026()
    3703             :         {
    3704           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3705           2 :             OString                expVal( aStrBuf.getStr() );
    3706           2 :             sal_Int32              input = 4;
    3707           2 :             sal_Int16              radix = 8;
    3708             : 
    3709           2 :             expVal += OString( "4" );
    3710           2 :             aStrBuf.append( input, radix );
    3711             : 
    3712           4 :             CPPUNIT_ASSERT_MESSAGE
    3713             :             (
    3714             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
    3715             :                 aStrBuf.getStr()== expVal &&
    3716             :                     aStrBuf.getLength() == expVal.getLength()
    3717           4 :             );
    3718             : 
    3719           2 :         }
    3720             : 
    3721           2 :         void append_027()
    3722             :         {
    3723           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3724           2 :             OString                expVal( aStrBuf.getStr() );
    3725           2 :             sal_Int32              input = 8;
    3726           2 :             sal_Int16              radix = 8;
    3727             : 
    3728           2 :             expVal += OString( "10" );
    3729           2 :             aStrBuf.append( input, radix );
    3730             : 
    3731           4 :             CPPUNIT_ASSERT_MESSAGE
    3732             :             (
    3733             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
    3734             :                 aStrBuf.getStr()== expVal &&
    3735             :                     aStrBuf.getLength() == expVal.getLength()
    3736           4 :             );
    3737             : 
    3738           2 :         }
    3739             : 
    3740           2 :         void append_028()
    3741             :         {
    3742           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3743           2 :             OString                expVal( aStrBuf.getStr() );
    3744           2 :             sal_Int32              input = 15;
    3745           2 :             sal_Int16              radix = 8;
    3746             : 
    3747           2 :             expVal += OString( "17" );
    3748           2 :             aStrBuf.append( input, radix );
    3749             : 
    3750           4 :             CPPUNIT_ASSERT_MESSAGE
    3751             :             (
    3752             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
    3753             :                 aStrBuf.getStr()== expVal &&
    3754             :                     aStrBuf.getLength() == expVal.getLength()
    3755           4 :             );
    3756             : 
    3757           2 :         }
    3758             : 
    3759           2 :         void append_029()
    3760             :         {
    3761           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3762           2 :             OString                expVal( aStrBuf.getStr() );
    3763           2 :             sal_Int32              input = 0;
    3764           2 :             sal_Int16              radix = 10;
    3765             : 
    3766           2 :             expVal += OString( "0" );
    3767           2 :             aStrBuf.append( input, radix );
    3768             : 
    3769           4 :             CPPUNIT_ASSERT_MESSAGE
    3770             :             (
    3771             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
    3772             :                 aStrBuf.getStr()== expVal &&
    3773             :                     aStrBuf.getLength() == expVal.getLength()
    3774           4 :             );
    3775             : 
    3776           2 :         }
    3777             : 
    3778           2 :         void append_030()
    3779             :         {
    3780           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3781           2 :             OString                expVal( aStrBuf.getStr() );
    3782           2 :             sal_Int32              input = 4;
    3783           2 :             sal_Int16              radix = 10;
    3784             : 
    3785           2 :             expVal += OString( "4" );
    3786           2 :             aStrBuf.append( input, radix );
    3787             : 
    3788           4 :             CPPUNIT_ASSERT_MESSAGE
    3789             :             (
    3790             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
    3791             :                 aStrBuf.getStr()== expVal &&
    3792             :                     aStrBuf.getLength() == expVal.getLength()
    3793           4 :             );
    3794             : 
    3795           2 :         }
    3796             : 
    3797           2 :         void append_031()
    3798             :         {
    3799           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3800           2 :             OString                expVal( aStrBuf.getStr() );
    3801           2 :             sal_Int32              input = 8;
    3802           2 :             sal_Int16              radix = 10;
    3803             : 
    3804           2 :             expVal += OString( "8" );
    3805           2 :             aStrBuf.append( input, radix );
    3806             : 
    3807           4 :             CPPUNIT_ASSERT_MESSAGE
    3808             :             (
    3809             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
    3810             :                 aStrBuf.getStr()== expVal &&
    3811             :                     aStrBuf.getLength() == expVal.getLength()
    3812           4 :             );
    3813             : 
    3814           2 :         }
    3815             : 
    3816           2 :         void append_032()
    3817             :         {
    3818           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3819           2 :             OString                expVal( aStrBuf.getStr() );
    3820           2 :             sal_Int32              input = 15;
    3821           2 :             sal_Int16              radix = 10;
    3822             : 
    3823           2 :             expVal += OString( "15" );
    3824           2 :             aStrBuf.append( input, radix );
    3825             : 
    3826           4 :             CPPUNIT_ASSERT_MESSAGE
    3827             :             (
    3828             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
    3829             :                 aStrBuf.getStr()== expVal &&
    3830             :                     aStrBuf.getLength() == expVal.getLength()
    3831           4 :             );
    3832             : 
    3833           2 :         }
    3834             : 
    3835           2 :         void append_033()
    3836             :         {
    3837           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3838           2 :             OString                expVal( aStrBuf.getStr() );
    3839           2 :             sal_Int32              input = 0;
    3840           2 :             sal_Int16              radix = 16;
    3841             : 
    3842           2 :             expVal += OString( "0" );
    3843           2 :             aStrBuf.append( input, radix );
    3844             : 
    3845           4 :             CPPUNIT_ASSERT_MESSAGE
    3846             :             (
    3847             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
    3848             :                 aStrBuf.getStr()== expVal &&
    3849             :                     aStrBuf.getLength() == expVal.getLength()
    3850           4 :             );
    3851             : 
    3852           2 :         }
    3853             : 
    3854           2 :         void append_034()
    3855             :         {
    3856           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3857           2 :             OString                expVal( aStrBuf.getStr() );
    3858           2 :             sal_Int32              input = 4;
    3859           2 :             sal_Int16              radix = 16;
    3860             : 
    3861           2 :             expVal += OString( "4" );
    3862           2 :             aStrBuf.append( input, radix );
    3863             : 
    3864           4 :             CPPUNIT_ASSERT_MESSAGE
    3865             :             (
    3866             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
    3867             :                 aStrBuf.getStr()== expVal &&
    3868             :                     aStrBuf.getLength() == expVal.getLength()
    3869           4 :             );
    3870             : 
    3871           2 :         }
    3872             : 
    3873           2 :         void append_035()
    3874             :         {
    3875           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3876           2 :             OString                expVal( aStrBuf.getStr() );
    3877           2 :             sal_Int32              input = 8;
    3878           2 :             sal_Int16              radix = 16;
    3879             : 
    3880           2 :             expVal += OString( "8" );
    3881           2 :             aStrBuf.append( input, radix );
    3882             : 
    3883           4 :             CPPUNIT_ASSERT_MESSAGE
    3884             :             (
    3885             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
    3886             :                 aStrBuf.getStr()== expVal &&
    3887             :                     aStrBuf.getLength() == expVal.getLength()
    3888           4 :             );
    3889             : 
    3890           2 :         }
    3891             : 
    3892           2 :         void append_036()
    3893             :         {
    3894           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3895           2 :             OString                expVal( aStrBuf.getStr() );
    3896           2 :             sal_Int32              input = 15;
    3897           2 :             sal_Int16              radix = 16;
    3898             : 
    3899           2 :             expVal += OString( "f" );
    3900           2 :             aStrBuf.append( input, radix );
    3901             : 
    3902           4 :             CPPUNIT_ASSERT_MESSAGE
    3903             :             (
    3904             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
    3905             :                 aStrBuf.getStr()== expVal &&
    3906             :                     aStrBuf.getLength() == expVal.getLength()
    3907           4 :             );
    3908             : 
    3909           2 :         }
    3910             : 
    3911           2 :         void append_037()
    3912             :         {
    3913           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3914           2 :             OString                expVal( aStrBuf.getStr() );
    3915           2 :             sal_Int32              input = 0;
    3916           2 :             sal_Int16              radix = 36;
    3917             : 
    3918           2 :             expVal += OString( "0" );
    3919           2 :             aStrBuf.append( input, radix );
    3920             : 
    3921           4 :             CPPUNIT_ASSERT_MESSAGE
    3922             :             (
    3923             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
    3924             :                 aStrBuf.getStr()== expVal &&
    3925             :                     aStrBuf.getLength() == expVal.getLength()
    3926           4 :             );
    3927             : 
    3928           2 :         }
    3929             : 
    3930           2 :         void append_038()
    3931             :         {
    3932           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3933           2 :             OString                expVal( aStrBuf.getStr() );
    3934           2 :             sal_Int32              input = 4;
    3935           2 :             sal_Int16              radix = 36;
    3936             : 
    3937           2 :             expVal += OString( "4" );
    3938           2 :             aStrBuf.append( input, radix );
    3939             : 
    3940           4 :             CPPUNIT_ASSERT_MESSAGE
    3941             :             (
    3942             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
    3943             :                 aStrBuf.getStr()== expVal &&
    3944             :                     aStrBuf.getLength() == expVal.getLength()
    3945           4 :             );
    3946             : 
    3947           2 :         }
    3948             : 
    3949           2 :         void append_039()
    3950             :         {
    3951           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3952           2 :             OString                expVal( aStrBuf.getStr() );
    3953           2 :             sal_Int32              input = 8;
    3954           2 :             sal_Int16              radix = 36;
    3955             : 
    3956           2 :             expVal += OString( "8" );
    3957           2 :             aStrBuf.append( input, radix );
    3958             : 
    3959           4 :             CPPUNIT_ASSERT_MESSAGE
    3960             :             (
    3961             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
    3962             :                 aStrBuf.getStr()== expVal &&
    3963             :                     aStrBuf.getLength() == expVal.getLength()
    3964           4 :             );
    3965             : 
    3966           2 :         }
    3967             : 
    3968           2 :         void append_040()
    3969             :         {
    3970           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    3971           2 :             OString                expVal( aStrBuf.getStr() );
    3972           2 :             sal_Int32              input = 35;
    3973           2 :             sal_Int16              radix = 36;
    3974             : 
    3975           2 :             expVal += OString( "z" );
    3976           2 :             aStrBuf.append( input, radix );
    3977             : 
    3978           4 :             CPPUNIT_ASSERT_MESSAGE
    3979             :             (
    3980             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
    3981             :                 aStrBuf.getStr()== expVal &&
    3982             :                     aStrBuf.getLength() == expVal.getLength()
    3983           4 :             );
    3984             : 
    3985           2 :         }
    3986             : 
    3987           2 :         void append_041()
    3988             :         {
    3989           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    3990           2 :             OString                expVal( aStrBuf.getStr() );
    3991           2 :             sal_Int32              input = 0;
    3992           2 :             sal_Int16              radix = 2;
    3993             : 
    3994           2 :             expVal += OString( "0" );
    3995           2 :             aStrBuf.append( input, radix );
    3996             : 
    3997           4 :             CPPUNIT_ASSERT_MESSAGE
    3998             :             (
    3999             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
    4000             :                 aStrBuf.getStr()== expVal &&
    4001             :                     aStrBuf.getLength() == expVal.getLength()
    4002           4 :             );
    4003             : 
    4004           2 :         }
    4005             : 
    4006           2 :         void append_042()
    4007             :         {
    4008           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4009           2 :             OString                expVal( aStrBuf.getStr() );
    4010           2 :             sal_Int32              input = 4;
    4011           2 :             sal_Int16              radix = 2;
    4012             : 
    4013           2 :             expVal += OString( "100" );
    4014           2 :             aStrBuf.append( input, radix );
    4015             : 
    4016           4 :             CPPUNIT_ASSERT_MESSAGE
    4017             :             (
    4018             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
    4019             :                 aStrBuf.getStr()== expVal &&
    4020             :                     aStrBuf.getLength() == expVal.getLength()
    4021           4 :             );
    4022             : 
    4023           2 :         }
    4024             : 
    4025           2 :         void append_043()
    4026             :         {
    4027           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4028           2 :             OString                expVal( aStrBuf.getStr() );
    4029           2 :             sal_Int32              input = 8;
    4030           2 :             sal_Int16              radix = 2;
    4031             : 
    4032           2 :             expVal += OString( "1000" );
    4033           2 :             aStrBuf.append( input, radix );
    4034             : 
    4035           4 :             CPPUNIT_ASSERT_MESSAGE
    4036             :             (
    4037             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
    4038             :                 aStrBuf.getStr()== expVal &&
    4039             :                     aStrBuf.getLength() == expVal.getLength()
    4040           4 :             );
    4041             : 
    4042           2 :         }
    4043             : 
    4044           2 :         void append_044()
    4045             :         {
    4046           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4047           2 :             OString                expVal( aStrBuf.getStr() );
    4048           2 :             sal_Int32              input = 15;
    4049           2 :             sal_Int16              radix = 2;
    4050             : 
    4051           2 :             expVal += OString( "1111" );
    4052           2 :             aStrBuf.append( input, radix );
    4053             : 
    4054           4 :             CPPUNIT_ASSERT_MESSAGE
    4055             :             (
    4056             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
    4057             :                 aStrBuf.getStr()== expVal &&
    4058             :                     aStrBuf.getLength() == expVal.getLength()
    4059           4 :             );
    4060             : 
    4061           2 :         }
    4062             : 
    4063           2 :         void append_045()
    4064             :         {
    4065           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4066           2 :             OString                expVal( aStrBuf.getStr() );
    4067           2 :             sal_Int32              input = 0;
    4068           2 :             sal_Int16              radix = 8;
    4069             : 
    4070           2 :             expVal += OString( "0" );
    4071           2 :             aStrBuf.append( input, radix );
    4072             : 
    4073           4 :             CPPUNIT_ASSERT_MESSAGE
    4074             :             (
    4075             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
    4076             :                 aStrBuf.getStr()== expVal &&
    4077             :                     aStrBuf.getLength() == expVal.getLength()
    4078           4 :             );
    4079             : 
    4080           2 :         }
    4081             : 
    4082           2 :         void append_046()
    4083             :         {
    4084           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4085           2 :             OString                expVal( aStrBuf.getStr() );
    4086           2 :             sal_Int32              input = 4;
    4087           2 :             sal_Int16              radix = 8;
    4088             : 
    4089           2 :             expVal += OString( "4" );
    4090           2 :             aStrBuf.append( input, radix );
    4091             : 
    4092           4 :             CPPUNIT_ASSERT_MESSAGE
    4093             :             (
    4094             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
    4095             :                 aStrBuf.getStr()== expVal &&
    4096             :                     aStrBuf.getLength() == expVal.getLength()
    4097           4 :             );
    4098             : 
    4099           2 :         }
    4100             : 
    4101           2 :         void append_047()
    4102             :         {
    4103           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4104           2 :             OString                expVal( aStrBuf.getStr() );
    4105           2 :             sal_Int32              input = 8;
    4106           2 :             sal_Int16              radix = 8;
    4107             : 
    4108           2 :             expVal += OString( "10" );
    4109           2 :             aStrBuf.append( input, radix );
    4110             : 
    4111           4 :             CPPUNIT_ASSERT_MESSAGE
    4112             :             (
    4113             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
    4114             :                 aStrBuf.getStr()== expVal &&
    4115             :                     aStrBuf.getLength() == expVal.getLength()
    4116           4 :             );
    4117             : 
    4118           2 :         }
    4119             : 
    4120           2 :         void append_048()
    4121             :         {
    4122           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4123           2 :             OString                expVal( aStrBuf.getStr() );
    4124           2 :             sal_Int32              input = 15;
    4125           2 :             sal_Int16              radix = 8;
    4126             : 
    4127           2 :             expVal += OString( "17" );
    4128           2 :             aStrBuf.append( input, radix );
    4129             : 
    4130           4 :             CPPUNIT_ASSERT_MESSAGE
    4131             :             (
    4132             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
    4133             :                 aStrBuf.getStr()== expVal &&
    4134             :                     aStrBuf.getLength() == expVal.getLength()
    4135           4 :             );
    4136             : 
    4137           2 :         }
    4138             : 
    4139           2 :         void append_049()
    4140             :         {
    4141           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4142           2 :             OString                expVal( aStrBuf.getStr() );
    4143           2 :             sal_Int32              input = 0;
    4144           2 :             sal_Int16              radix = 10;
    4145             : 
    4146           2 :             expVal += OString( "0" );
    4147           2 :             aStrBuf.append( input, radix );
    4148             : 
    4149           4 :             CPPUNIT_ASSERT_MESSAGE
    4150             :             (
    4151             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
    4152             :                 aStrBuf.getStr()== expVal &&
    4153             :                     aStrBuf.getLength() == expVal.getLength()
    4154           4 :             );
    4155             : 
    4156           2 :         }
    4157             : 
    4158           2 :         void append_050()
    4159             :         {
    4160           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4161           2 :             OString                expVal( aStrBuf.getStr() );
    4162           2 :             sal_Int32              input = 4;
    4163           2 :             sal_Int16              radix = 10;
    4164             : 
    4165           2 :             expVal += OString( "4" );
    4166           2 :             aStrBuf.append( input, radix );
    4167             : 
    4168           4 :             CPPUNIT_ASSERT_MESSAGE
    4169             :             (
    4170             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
    4171             :                 aStrBuf.getStr()== expVal &&
    4172             :                     aStrBuf.getLength() == expVal.getLength()
    4173           4 :             );
    4174             : 
    4175           2 :         }
    4176             : 
    4177           2 :         void append_051()
    4178             :         {
    4179           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4180           2 :             OString                expVal( aStrBuf.getStr() );
    4181           2 :             sal_Int32              input = 8;
    4182           2 :             sal_Int16              radix = 10;
    4183             : 
    4184           2 :             expVal += OString( "8" );
    4185           2 :             aStrBuf.append( input, radix );
    4186             : 
    4187           4 :             CPPUNIT_ASSERT_MESSAGE
    4188             :             (
    4189             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
    4190             :                 aStrBuf.getStr()== expVal &&
    4191             :                     aStrBuf.getLength() == expVal.getLength()
    4192           4 :             );
    4193             : 
    4194           2 :         }
    4195             : 
    4196           2 :         void append_052()
    4197             :         {
    4198           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4199           2 :             OString                expVal( aStrBuf.getStr() );
    4200           2 :             sal_Int32              input = 15;
    4201           2 :             sal_Int16              radix = 10;
    4202             : 
    4203           2 :             expVal += OString( "15" );
    4204           2 :             aStrBuf.append( input, radix );
    4205             : 
    4206           4 :             CPPUNIT_ASSERT_MESSAGE
    4207             :             (
    4208             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
    4209             :                 aStrBuf.getStr()== expVal &&
    4210             :                     aStrBuf.getLength() == expVal.getLength()
    4211           4 :             );
    4212             : 
    4213           2 :         }
    4214             : 
    4215           2 :         void append_053()
    4216             :         {
    4217           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4218           2 :             OString                expVal( aStrBuf.getStr() );
    4219           2 :             sal_Int32              input = 0;
    4220           2 :             sal_Int16              radix = 16;
    4221             : 
    4222           2 :             expVal += OString( "0" );
    4223           2 :             aStrBuf.append( input, radix );
    4224             : 
    4225           4 :             CPPUNIT_ASSERT_MESSAGE
    4226             :             (
    4227             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
    4228             :                 aStrBuf.getStr()== expVal &&
    4229             :                     aStrBuf.getLength() == expVal.getLength()
    4230           4 :             );
    4231             : 
    4232           2 :         }
    4233             : 
    4234           2 :         void append_054()
    4235             :         {
    4236           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4237           2 :             OString                expVal( aStrBuf.getStr() );
    4238           2 :             sal_Int32              input = 4;
    4239           2 :             sal_Int16              radix = 16;
    4240             : 
    4241           2 :             expVal += OString( "4" );
    4242           2 :             aStrBuf.append( input, radix );
    4243             : 
    4244           4 :             CPPUNIT_ASSERT_MESSAGE
    4245             :             (
    4246             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
    4247             :                 aStrBuf.getStr()== expVal &&
    4248             :                     aStrBuf.getLength() == expVal.getLength()
    4249           4 :             );
    4250             : 
    4251           2 :         }
    4252             : 
    4253           2 :         void append_055()
    4254             :         {
    4255           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4256           2 :             OString                expVal( aStrBuf.getStr() );
    4257           2 :             sal_Int32              input = 8;
    4258           2 :             sal_Int16              radix = 16;
    4259             : 
    4260           2 :             expVal += OString( "8" );
    4261           2 :             aStrBuf.append( input, radix );
    4262             : 
    4263           4 :             CPPUNIT_ASSERT_MESSAGE
    4264             :             (
    4265             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
    4266             :                 aStrBuf.getStr()== expVal &&
    4267             :                     aStrBuf.getLength() == expVal.getLength()
    4268           4 :             );
    4269             : 
    4270           2 :         }
    4271             : 
    4272           2 :         void append_056()
    4273             :         {
    4274           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4275           2 :             OString                expVal( aStrBuf.getStr() );
    4276           2 :             sal_Int32              input = 15;
    4277           2 :             sal_Int16              radix = 16;
    4278             : 
    4279           2 :             expVal += OString( "f" );
    4280           2 :             aStrBuf.append( input, radix );
    4281             : 
    4282           4 :             CPPUNIT_ASSERT_MESSAGE
    4283             :             (
    4284             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
    4285             :                 aStrBuf.getStr()== expVal &&
    4286             :                     aStrBuf.getLength() == expVal.getLength()
    4287           4 :             );
    4288             : 
    4289           2 :         }
    4290             : 
    4291           2 :         void append_057()
    4292             :         {
    4293           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4294           2 :             OString                expVal( aStrBuf.getStr() );
    4295           2 :             sal_Int32              input = 0;
    4296           2 :             sal_Int16              radix = 36;
    4297             : 
    4298           2 :             expVal += OString( "0" );
    4299           2 :             aStrBuf.append( input, radix );
    4300             : 
    4301           4 :             CPPUNIT_ASSERT_MESSAGE
    4302             :             (
    4303             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
    4304             :                 aStrBuf.getStr()== expVal &&
    4305             :                     aStrBuf.getLength() == expVal.getLength()
    4306           4 :             );
    4307             : 
    4308           2 :         }
    4309             : 
    4310           2 :         void append_058()
    4311             :         {
    4312           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4313           2 :             OString                expVal( aStrBuf.getStr() );
    4314           2 :             sal_Int32              input = 4;
    4315           2 :             sal_Int16              radix = 36;
    4316             : 
    4317           2 :             expVal += OString( "4" );
    4318           2 :             aStrBuf.append( input, radix );
    4319             : 
    4320           4 :             CPPUNIT_ASSERT_MESSAGE
    4321             :             (
    4322             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
    4323             :                 aStrBuf.getStr()== expVal &&
    4324             :                     aStrBuf.getLength() == expVal.getLength()
    4325           4 :             );
    4326             : 
    4327           2 :         }
    4328             : 
    4329           2 :         void append_059()
    4330             :         {
    4331           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4332           2 :             OString                expVal( aStrBuf.getStr() );
    4333           2 :             sal_Int32              input = 8;
    4334           2 :             sal_Int16              radix = 36;
    4335             : 
    4336           2 :             expVal += OString( "8" );
    4337           2 :             aStrBuf.append( input, radix );
    4338             : 
    4339           4 :             CPPUNIT_ASSERT_MESSAGE
    4340             :             (
    4341             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
    4342             :                 aStrBuf.getStr()== expVal &&
    4343             :                     aStrBuf.getLength() == expVal.getLength()
    4344           4 :             );
    4345             : 
    4346           2 :         }
    4347             : 
    4348           2 :         void append_060()
    4349             :         {
    4350           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    4351           2 :             OString                expVal( aStrBuf.getStr() );
    4352           2 :             sal_Int32              input = 35;
    4353           2 :             sal_Int16              radix = 36;
    4354             : 
    4355           2 :             expVal += OString( "z" );
    4356           2 :             aStrBuf.append( input, radix );
    4357             : 
    4358           4 :             CPPUNIT_ASSERT_MESSAGE
    4359             :             (
    4360             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
    4361             :                 aStrBuf.getStr()== expVal &&
    4362             :                     aStrBuf.getLength() == expVal.getLength()
    4363           4 :             );
    4364             : 
    4365           2 :         }
    4366             : 
    4367           2 :         void append_061()
    4368             :         {
    4369           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4370           2 :             OString                expVal( aStrBuf.getStr() );
    4371           2 :             sal_Int32              input = 0;
    4372           2 :             sal_Int16              radix = 2;
    4373             : 
    4374           2 :             expVal += OString( "0" );
    4375           2 :             aStrBuf.append( input, radix );
    4376             : 
    4377           4 :             CPPUNIT_ASSERT_MESSAGE
    4378             :             (
    4379             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
    4380             :                 aStrBuf.getStr()== expVal &&
    4381             :                     aStrBuf.getLength() == expVal.getLength()
    4382           4 :             );
    4383             : 
    4384           2 :         }
    4385             : 
    4386           2 :         void append_062()
    4387             :         {
    4388           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4389           2 :             OString                expVal( aStrBuf.getStr() );
    4390           2 :             sal_Int32              input = 4;
    4391           2 :             sal_Int16              radix = 2;
    4392             : 
    4393           2 :             expVal += OString( "100" );
    4394           2 :             aStrBuf.append( input, radix );
    4395             : 
    4396           4 :             CPPUNIT_ASSERT_MESSAGE
    4397             :             (
    4398             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
    4399             :                 aStrBuf.getStr()== expVal &&
    4400             :                     aStrBuf.getLength() == expVal.getLength()
    4401           4 :             );
    4402             : 
    4403           2 :         }
    4404             : 
    4405           2 :         void append_063()
    4406             :         {
    4407           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4408           2 :             OString                expVal( aStrBuf.getStr() );
    4409           2 :             sal_Int32              input = 8;
    4410           2 :             sal_Int16              radix = 2;
    4411             : 
    4412           2 :             expVal += OString( "1000" );
    4413           2 :             aStrBuf.append( input, radix );
    4414             : 
    4415           4 :             CPPUNIT_ASSERT_MESSAGE
    4416             :             (
    4417             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
    4418             :                 aStrBuf.getStr()== expVal &&
    4419             :                     aStrBuf.getLength() == expVal.getLength()
    4420           4 :             );
    4421             : 
    4422           2 :         }
    4423             : 
    4424           2 :         void append_064()
    4425             :         {
    4426           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4427           2 :             OString                expVal( aStrBuf.getStr() );
    4428           2 :             sal_Int32              input = 15;
    4429           2 :             sal_Int16              radix = 2;
    4430             : 
    4431           2 :             expVal += OString( "1111" );
    4432           2 :             aStrBuf.append( input, radix );
    4433             : 
    4434           4 :             CPPUNIT_ASSERT_MESSAGE
    4435             :             (
    4436             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
    4437             :                 aStrBuf.getStr()== expVal &&
    4438             :                     aStrBuf.getLength() == expVal.getLength()
    4439           4 :             );
    4440             : 
    4441           2 :         }
    4442             : 
    4443           2 :         void append_065()
    4444             :         {
    4445           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4446           2 :             OString                expVal( aStrBuf.getStr() );
    4447           2 :             sal_Int32              input = 0;
    4448           2 :             sal_Int16              radix = 8;
    4449             : 
    4450           2 :             expVal += OString( "0" );
    4451           2 :             aStrBuf.append( input, radix );
    4452             : 
    4453           4 :             CPPUNIT_ASSERT_MESSAGE
    4454             :             (
    4455             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
    4456             :                 aStrBuf.getStr()== expVal &&
    4457             :                     aStrBuf.getLength() == expVal.getLength()
    4458           4 :             );
    4459             : 
    4460           2 :         }
    4461             : 
    4462           2 :         void append_066()
    4463             :         {
    4464           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4465           2 :             OString                expVal( aStrBuf.getStr() );
    4466           2 :             sal_Int32              input = 4;
    4467           2 :             sal_Int16              radix = 8;
    4468             : 
    4469           2 :             expVal += OString( "4" );
    4470           2 :             aStrBuf.append( input, radix );
    4471             : 
    4472           4 :             CPPUNIT_ASSERT_MESSAGE
    4473             :             (
    4474             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
    4475             :                 aStrBuf.getStr()== expVal &&
    4476             :                     aStrBuf.getLength() == expVal.getLength()
    4477           4 :             );
    4478             : 
    4479           2 :         }
    4480             : 
    4481           2 :         void append_067()
    4482             :         {
    4483           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4484           2 :             OString                expVal( aStrBuf.getStr() );
    4485           2 :             sal_Int32              input = 8;
    4486           2 :             sal_Int16              radix = 8;
    4487             : 
    4488           2 :             expVal += OString( "10" );
    4489           2 :             aStrBuf.append( input, radix );
    4490             : 
    4491           4 :             CPPUNIT_ASSERT_MESSAGE
    4492             :             (
    4493             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
    4494             :                 aStrBuf.getStr()== expVal &&
    4495             :                     aStrBuf.getLength() == expVal.getLength()
    4496           4 :             );
    4497             : 
    4498           2 :         }
    4499             : 
    4500           2 :         void append_068()
    4501             :         {
    4502           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4503           2 :             OString                expVal( aStrBuf.getStr() );
    4504           2 :             sal_Int32              input = 15;
    4505           2 :             sal_Int16              radix = 8;
    4506             : 
    4507           2 :             expVal += OString( "17" );
    4508           2 :             aStrBuf.append( input, radix );
    4509             : 
    4510           4 :             CPPUNIT_ASSERT_MESSAGE
    4511             :             (
    4512             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
    4513             :                 aStrBuf.getStr()== expVal &&
    4514             :                     aStrBuf.getLength() == expVal.getLength()
    4515           4 :             );
    4516             : 
    4517           2 :         }
    4518             : 
    4519           2 :         void append_069()
    4520             :         {
    4521           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4522           2 :             OString                expVal( aStrBuf.getStr() );
    4523           2 :             sal_Int32              input = 0;
    4524           2 :             sal_Int16              radix = 10;
    4525             : 
    4526           2 :             expVal += OString( "0" );
    4527           2 :             aStrBuf.append( input, radix );
    4528             : 
    4529           4 :             CPPUNIT_ASSERT_MESSAGE
    4530             :             (
    4531             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
    4532             :                 aStrBuf.getStr()== expVal &&
    4533             :                     aStrBuf.getLength() == expVal.getLength()
    4534           4 :             );
    4535             : 
    4536           2 :         }
    4537             : 
    4538           2 :         void append_070()
    4539             :         {
    4540           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4541           2 :             OString                expVal( aStrBuf.getStr() );
    4542           2 :             sal_Int32              input = 4;
    4543           2 :             sal_Int16              radix = 10;
    4544             : 
    4545           2 :             expVal += OString( "4" );
    4546           2 :             aStrBuf.append( input, radix );
    4547             : 
    4548           4 :             CPPUNIT_ASSERT_MESSAGE
    4549             :             (
    4550             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
    4551             :                 aStrBuf.getStr()== expVal &&
    4552             :                     aStrBuf.getLength() == expVal.getLength()
    4553           4 :             );
    4554             : 
    4555           2 :         }
    4556             : 
    4557           2 :         void append_071()
    4558             :         {
    4559           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4560           2 :             OString                expVal( aStrBuf.getStr() );
    4561           2 :             sal_Int32              input = 8;
    4562           2 :             sal_Int16              radix = 10;
    4563             : 
    4564           2 :             expVal += OString( "8" );
    4565           2 :             aStrBuf.append( input, radix );
    4566             : 
    4567           4 :             CPPUNIT_ASSERT_MESSAGE
    4568             :             (
    4569             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
    4570             :                 aStrBuf.getStr()== expVal &&
    4571             :                     aStrBuf.getLength() == expVal.getLength()
    4572           4 :             );
    4573             : 
    4574           2 :         }
    4575             : 
    4576           2 :         void append_072()
    4577             :         {
    4578           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4579           2 :             OString                expVal( aStrBuf.getStr() );
    4580           2 :             sal_Int32              input = 15;
    4581           2 :             sal_Int16              radix = 10;
    4582             : 
    4583           2 :             expVal += OString( "15" );
    4584           2 :             aStrBuf.append( input, radix );
    4585             : 
    4586           4 :             CPPUNIT_ASSERT_MESSAGE
    4587             :             (
    4588             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
    4589             :                 aStrBuf.getStr()== expVal &&
    4590             :                     aStrBuf.getLength() == expVal.getLength()
    4591           4 :             );
    4592             : 
    4593           2 :         }
    4594             : 
    4595           2 :         void append_073()
    4596             :         {
    4597           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4598           2 :             OString                expVal( aStrBuf.getStr() );
    4599           2 :             sal_Int32              input = 0;
    4600           2 :             sal_Int16              radix = 16;
    4601             : 
    4602           2 :             expVal += OString( "0" );
    4603           2 :             aStrBuf.append( input, radix );
    4604             : 
    4605           4 :             CPPUNIT_ASSERT_MESSAGE
    4606             :             (
    4607             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
    4608             :                 aStrBuf.getStr()== expVal &&
    4609             :                     aStrBuf.getLength() == expVal.getLength()
    4610           4 :             );
    4611             : 
    4612           2 :         }
    4613             : 
    4614           2 :         void append_074()
    4615             :         {
    4616           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4617           2 :             OString                expVal( aStrBuf.getStr() );
    4618           2 :             sal_Int32              input = 4;
    4619           2 :             sal_Int16              radix = 16;
    4620             : 
    4621           2 :             expVal += OString( "4" );
    4622           2 :             aStrBuf.append( input, radix );
    4623             : 
    4624           4 :             CPPUNIT_ASSERT_MESSAGE
    4625             :             (
    4626             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
    4627             :                 aStrBuf.getStr()== expVal &&
    4628             :                     aStrBuf.getLength() == expVal.getLength()
    4629           4 :             );
    4630             : 
    4631           2 :         }
    4632             : 
    4633           2 :         void append_075()
    4634             :         {
    4635           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4636           2 :             OString                expVal( aStrBuf.getStr() );
    4637           2 :             sal_Int32              input = 8;
    4638           2 :             sal_Int16              radix = 16;
    4639             : 
    4640           2 :             expVal += OString( "8" );
    4641           2 :             aStrBuf.append( input, radix );
    4642             : 
    4643           4 :             CPPUNIT_ASSERT_MESSAGE
    4644             :             (
    4645             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
    4646             :                 aStrBuf.getStr()== expVal &&
    4647             :                     aStrBuf.getLength() == expVal.getLength()
    4648           4 :             );
    4649             : 
    4650           2 :         }
    4651             : 
    4652           2 :         void append_076()
    4653             :         {
    4654           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4655           2 :             OString                expVal( aStrBuf.getStr() );
    4656           2 :             sal_Int32              input = 15;
    4657           2 :             sal_Int16              radix = 16;
    4658             : 
    4659           2 :             expVal += OString( "f" );
    4660           2 :             aStrBuf.append( input, radix );
    4661             : 
    4662           4 :             CPPUNIT_ASSERT_MESSAGE
    4663             :             (
    4664             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
    4665             :                 aStrBuf.getStr()== expVal &&
    4666             :                     aStrBuf.getLength() == expVal.getLength()
    4667           4 :             );
    4668             : 
    4669           2 :         }
    4670             : 
    4671           2 :         void append_077()
    4672             :         {
    4673           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4674           2 :             OString                expVal( aStrBuf.getStr() );
    4675           2 :             sal_Int32              input = 0;
    4676           2 :             sal_Int16              radix = 36;
    4677             : 
    4678           2 :             expVal += OString( "0" );
    4679           2 :             aStrBuf.append( input, radix );
    4680             : 
    4681           4 :             CPPUNIT_ASSERT_MESSAGE
    4682             :             (
    4683             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
    4684             :                 aStrBuf.getStr()== expVal &&
    4685             :                     aStrBuf.getLength() == expVal.getLength()
    4686           4 :             );
    4687             : 
    4688           2 :         }
    4689             : 
    4690           2 :         void append_078()
    4691             :         {
    4692           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4693           2 :             OString                expVal( aStrBuf.getStr() );
    4694           2 :             sal_Int32              input = 4;
    4695           2 :             sal_Int16              radix = 36;
    4696             : 
    4697           2 :             expVal += OString( "4" );
    4698           2 :             aStrBuf.append( input, radix );
    4699             : 
    4700           4 :             CPPUNIT_ASSERT_MESSAGE
    4701             :             (
    4702             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
    4703             :                 aStrBuf.getStr()== expVal &&
    4704             :                     aStrBuf.getLength() == expVal.getLength()
    4705           4 :             );
    4706             : 
    4707           2 :         }
    4708             : 
    4709           2 :         void append_079()
    4710             :         {
    4711           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4712           2 :             OString                expVal( aStrBuf.getStr() );
    4713           2 :             sal_Int32              input = 8;
    4714           2 :             sal_Int16              radix = 36;
    4715             : 
    4716           2 :             expVal += OString( "8" );
    4717           2 :             aStrBuf.append( input, radix );
    4718             : 
    4719           4 :             CPPUNIT_ASSERT_MESSAGE
    4720             :             (
    4721             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
    4722             :                 aStrBuf.getStr()== expVal &&
    4723             :                     aStrBuf.getLength() == expVal.getLength()
    4724           4 :             );
    4725             : 
    4726           2 :         }
    4727             : 
    4728           2 :         void append_080()
    4729             :         {
    4730           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    4731           2 :             OString                expVal( aStrBuf.getStr() );
    4732           2 :             sal_Int32              input = 35;
    4733           2 :             sal_Int16              radix = 36;
    4734             : 
    4735           2 :             expVal += OString( "z" );
    4736           2 :             aStrBuf.append( input, radix );
    4737             : 
    4738           4 :             CPPUNIT_ASSERT_MESSAGE
    4739             :             (
    4740             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
    4741             :                 aStrBuf.getStr()== expVal &&
    4742             :                     aStrBuf.getLength() == expVal.getLength()
    4743           4 :             );
    4744             : 
    4745           2 :         }
    4746             : 
    4747           2 :         void append_081()
    4748             :         {
    4749           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    4750           2 :             OString                expVal( aStrBuf.getStr() );
    4751           2 :             sal_Int32              input = 0;
    4752           2 :             sal_Int16              radix = 2;
    4753             : 
    4754           2 :             expVal += OString( "0" );
    4755           2 :             aStrBuf.append( input, radix );
    4756             : 
    4757           4 :             CPPUNIT_ASSERT_MESSAGE
    4758             :             (
    4759             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
    4760             :                 aStrBuf.getStr()== expVal &&
    4761             :                     aStrBuf.getLength() == expVal.getLength()
    4762           4 :             );
    4763             : 
    4764           2 :         }
    4765             : 
    4766           2 :         void append_082()
    4767             :         {
    4768           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    4769           2 :             OString                expVal( aStrBuf.getStr() );
    4770           2 :             sal_Int32              input = 4;
    4771           2 :             sal_Int16              radix = 2;
    4772             : 
    4773           2 :             expVal += OString( "100" );
    4774           2 :             aStrBuf.append( input, radix );
    4775             : 
    4776           4 :             CPPUNIT_ASSERT_MESSAGE
    4777             :             (
    4778             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
    4779             :                 aStrBuf.getStr()== expVal &&
    4780             :                     aStrBuf.getLength() == expVal.getLength()
    4781           4 :             );
    4782             : 
    4783           2 :         }
    4784             : 
    4785           2 :         void append_083()
    4786             :         {
    4787           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    4788           2 :             OString                expVal( aStrBuf.getStr() );
    4789           2 :             sal_Int32              input = 8;
    4790           2 :             sal_Int16              radix = 2;
    4791             : 
    4792           2 :             expVal += OString( "1000" );
    4793           2 :             aStrBuf.append( input, radix );
    4794             : 
    4795           4 :             CPPUNIT_ASSERT_MESSAGE
    4796             :             (
    4797             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
    4798             :                 aStrBuf.getStr()== expVal &&
    4799             :                     aStrBuf.getLength() == expVal.getLength()
    4800           4 :             );
    4801             : 
    4802           2 :         }
    4803             : 
    4804           2 :         void append_084()
    4805             :         {
    4806           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    4807           2 :             OString                expVal( aStrBuf.getStr() );
    4808           2 :             sal_Int32              input = 15;
    4809           2 :             sal_Int16              radix = 2;
    4810             : 
    4811           2 :             expVal += OString( "1111" );
    4812           2 :             aStrBuf.append( input, radix );
    4813             : 
    4814           4 :             CPPUNIT_ASSERT_MESSAGE
    4815             :             (
    4816             :                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
    4817             :                 aStrBuf.getStr()== expVal &&
    4818             :                     aStrBuf.getLength() == expVal.getLength()
    4819           4 :             );
    4820             : 
    4821           2 :         }
    4822             : 
    4823           2 :         void append_085()
    4824             :         {
    4825           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    4826           2 :             OString                expVal( aStrBuf.getStr() );
    4827           2 :             sal_Int32              input = 0;
    4828           2 :             sal_Int16              radix = 8;
    4829             : 
    4830           2 :             expVal += OString( "0" );
    4831           2 :             aStrBuf.append( input, radix );
    4832             : 
    4833           4 :             CPPUNIT_ASSERT_MESSAGE
    4834             :             (
    4835             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
    4836             :                 aStrBuf.getStr()== expVal &&
    4837             :                     aStrBuf.getLength() == expVal.getLength()
    4838           4 :             );
    4839             : 
    4840           2 :         }
    4841             : 
    4842           2 :         void append_086()
    4843             :         {
    4844           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    4845           2 :             OString                expVal( aStrBuf.getStr() );
    4846           2 :             sal_Int32              input = 4;
    4847           2 :             sal_Int16              radix = 8;
    4848             : 
    4849           2 :             expVal += OString( "4" );
    4850           2 :             aStrBuf.append( input, radix );
    4851             : 
    4852           4 :             CPPUNIT_ASSERT_MESSAGE
    4853             :             (
    4854             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
    4855             :                 aStrBuf.getStr()== expVal &&
    4856             :                     aStrBuf.getLength() == expVal.getLength()
    4857           4 :             );
    4858             : 
    4859           2 :         }
    4860             : 
    4861           2 :         void append_087()
    4862             :         {
    4863           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    4864           2 :             OString                expVal( aStrBuf.getStr() );
    4865           2 :             sal_Int32              input = 8;
    4866           2 :             sal_Int16              radix = 8;
    4867             : 
    4868           2 :             expVal += OString( "10" );
    4869           2 :             aStrBuf.append( input, radix );
    4870             : 
    4871           4 :             CPPUNIT_ASSERT_MESSAGE
    4872             :             (
    4873             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
    4874             :                 aStrBuf.getStr()== expVal &&
    4875             :                     aStrBuf.getLength() == expVal.getLength()
    4876           4 :             );
    4877             : 
    4878           2 :         }
    4879             : 
    4880           2 :         void append_088()
    4881             :         {
    4882           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    4883           2 :             OString                expVal( aStrBuf.getStr() );
    4884           2 :             sal_Int32              input = 15;
    4885           2 :             sal_Int16              radix = 8;
    4886             : 
    4887           2 :             expVal += OString( "17" );
    4888           2 :             aStrBuf.append( input, radix );
    4889             : 
    4890           4 :             CPPUNIT_ASSERT_MESSAGE
    4891             :             (
    4892             :                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
    4893             :                 aStrBuf.getStr()== expVal &&
    4894             :                     aStrBuf.getLength() == expVal.getLength()
    4895           4 :             );
    4896             : 
    4897           2 :         }
    4898             : 
    4899           2 :         void append_089()
    4900             :         {
    4901           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    4902           2 :             OString                expVal( aStrBuf.getStr() );
    4903           2 :             sal_Int32              input = 0;
    4904           2 :             sal_Int16              radix = 10;
    4905             : 
    4906           2 :             expVal += OString( "0" );
    4907           2 :             aStrBuf.append( input, radix );
    4908             : 
    4909           4 :             CPPUNIT_ASSERT_MESSAGE
    4910             :             (
    4911             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
    4912             :                 aStrBuf.getStr()== expVal &&
    4913             :                     aStrBuf.getLength() == expVal.getLength()
    4914           4 :             );
    4915             : 
    4916           2 :         }
    4917             : 
    4918           2 :         void append_090()
    4919             :         {
    4920           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    4921           2 :             OString                expVal( aStrBuf.getStr() );
    4922           2 :             sal_Int32              input = 4;
    4923           2 :             sal_Int16              radix = 10;
    4924             : 
    4925           2 :             expVal += OString( "4" );
    4926           2 :             aStrBuf.append( input, radix );
    4927             : 
    4928           4 :             CPPUNIT_ASSERT_MESSAGE
    4929             :             (
    4930             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
    4931             :                 aStrBuf.getStr()== expVal &&
    4932             :                     aStrBuf.getLength() == expVal.getLength()
    4933           4 :             );
    4934             : 
    4935           2 :         }
    4936             : 
    4937           2 :         void append_091()
    4938             :         {
    4939           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    4940           2 :             OString                expVal( aStrBuf.getStr() );
    4941           2 :             sal_Int32              input = 8;
    4942           2 :             sal_Int16              radix = 10;
    4943             : 
    4944           2 :             expVal += OString( "8" );
    4945           2 :             aStrBuf.append( input, radix );
    4946             : 
    4947           4 :             CPPUNIT_ASSERT_MESSAGE
    4948             :             (
    4949             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
    4950             :                 aStrBuf.getStr()== expVal &&
    4951             :                     aStrBuf.getLength() == expVal.getLength()
    4952           4 :             );
    4953             : 
    4954           2 :         }
    4955             : 
    4956           2 :         void append_092()
    4957             :         {
    4958           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    4959           2 :             OString                expVal( aStrBuf.getStr() );
    4960           2 :             sal_Int32              input = 15;
    4961           2 :             sal_Int16              radix = 10;
    4962             : 
    4963           2 :             expVal += OString( "15" );
    4964           2 :             aStrBuf.append( input, radix );
    4965             : 
    4966           4 :             CPPUNIT_ASSERT_MESSAGE
    4967             :             (
    4968             :                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
    4969             :                 aStrBuf.getStr()== expVal &&
    4970             :                     aStrBuf.getLength() == expVal.getLength()
    4971           4 :             );
    4972             : 
    4973           2 :         }
    4974             : 
    4975           2 :         void append_093()
    4976             :         {
    4977           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    4978           2 :             OString                expVal( aStrBuf.getStr() );
    4979           2 :             sal_Int32              input = 0;
    4980           2 :             sal_Int16              radix = 16;
    4981             : 
    4982           2 :             expVal += OString( "0" );
    4983           2 :             aStrBuf.append( input, radix );
    4984             : 
    4985           4 :             CPPUNIT_ASSERT_MESSAGE
    4986             :             (
    4987             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
    4988             :                 aStrBuf.getStr()== expVal &&
    4989             :                     aStrBuf.getLength() == expVal.getLength()
    4990           4 :             );
    4991             : 
    4992           2 :         }
    4993             : 
    4994           2 :         void append_094()
    4995             :         {
    4996           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    4997           2 :             OString                expVal( aStrBuf.getStr() );
    4998           2 :             sal_Int32              input = 4;
    4999           2 :             sal_Int16              radix = 16;
    5000             : 
    5001           2 :             expVal += OString( "4" );
    5002           2 :             aStrBuf.append( input, radix );
    5003             : 
    5004           4 :             CPPUNIT_ASSERT_MESSAGE
    5005             :             (
    5006             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
    5007             :                 aStrBuf.getStr()== expVal &&
    5008             :                     aStrBuf.getLength() == expVal.getLength()
    5009           4 :             );
    5010             : 
    5011           2 :         }
    5012             : 
    5013           2 :         void append_095()
    5014             :         {
    5015           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    5016           2 :             OString                expVal( aStrBuf.getStr() );
    5017           2 :             sal_Int32              input = 8;
    5018           2 :             sal_Int16              radix = 16;
    5019             : 
    5020           2 :             expVal += OString( "8" );
    5021           2 :             aStrBuf.append( input, radix );
    5022             : 
    5023           4 :             CPPUNIT_ASSERT_MESSAGE
    5024             :             (
    5025             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
    5026             :                 aStrBuf.getStr()== expVal &&
    5027             :                     aStrBuf.getLength() == expVal.getLength()
    5028           4 :             );
    5029             : 
    5030           2 :         }
    5031             : 
    5032           2 :         void append_096()
    5033             :         {
    5034           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    5035           2 :             OString                expVal( aStrBuf.getStr() );
    5036           2 :             sal_Int32              input = 15;
    5037           2 :             sal_Int16              radix = 16;
    5038             : 
    5039           2 :             expVal += OString( "f" );
    5040           2 :             aStrBuf.append( input, radix );
    5041             : 
    5042           4 :             CPPUNIT_ASSERT_MESSAGE
    5043             :             (
    5044             :                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
    5045             :                 aStrBuf.getStr()== expVal &&
    5046             :                     aStrBuf.getLength() == expVal.getLength()
    5047           4 :             );
    5048             : 
    5049           2 :         }
    5050             : 
    5051           2 :         void append_097()
    5052             :         {
    5053           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    5054           2 :             OString                expVal( aStrBuf.getStr() );
    5055           2 :             sal_Int32              input = 0;
    5056           2 :             sal_Int16              radix = 36;
    5057             : 
    5058           2 :             expVal += OString( "0" );
    5059           2 :             aStrBuf.append( input, radix );
    5060             : 
    5061           4 :             CPPUNIT_ASSERT_MESSAGE
    5062             :             (
    5063             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
    5064             :                 aStrBuf.getStr()== expVal &&
    5065             :                     aStrBuf.getLength() == expVal.getLength()
    5066           4 :             );
    5067             : 
    5068           2 :         }
    5069             : 
    5070           2 :         void append_098()
    5071             :         {
    5072           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    5073           2 :             OString                expVal( aStrBuf.getStr() );
    5074           2 :             sal_Int32              input = 4;
    5075           2 :             sal_Int16              radix = 36;
    5076             : 
    5077           2 :             expVal += OString( "4" );
    5078           2 :             aStrBuf.append( input, radix );
    5079             : 
    5080           4 :             CPPUNIT_ASSERT_MESSAGE
    5081             :             (
    5082             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
    5083             :                 aStrBuf.getStr()== expVal &&
    5084             :                     aStrBuf.getLength() == expVal.getLength()
    5085           4 :             );
    5086             : 
    5087           2 :         }
    5088             : 
    5089           2 :         void append_099()
    5090             :         {
    5091           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    5092           2 :             OString                expVal( aStrBuf.getStr() );
    5093           2 :             sal_Int32              input = 8;
    5094           2 :             sal_Int16              radix = 36;
    5095             : 
    5096           2 :             expVal += OString( "8" );
    5097           2 :             aStrBuf.append( input, radix );
    5098             : 
    5099           4 :             CPPUNIT_ASSERT_MESSAGE
    5100             :             (
    5101             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
    5102             :                 aStrBuf.getStr()== expVal &&
    5103             :                     aStrBuf.getLength() == expVal.getLength()
    5104           4 :             );
    5105             : 
    5106           2 :         }
    5107             : 
    5108           2 :         void append_100()
    5109             :         {
    5110           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    5111           2 :             OString                expVal( aStrBuf.getStr() );
    5112           2 :             sal_Int32              input = 35;
    5113           2 :             sal_Int16              radix = 36;
    5114             : 
    5115           2 :             expVal += OString( "z" );
    5116           2 :             aStrBuf.append( input, radix );
    5117             : 
    5118           4 :             CPPUNIT_ASSERT_MESSAGE
    5119             :             (
    5120             :                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
    5121             :                 aStrBuf.getStr()== expVal &&
    5122             :                     aStrBuf.getLength() == expVal.getLength()
    5123           4 :             );
    5124             : 
    5125           2 :         }
    5126             : 
    5127           4 :         CPPUNIT_TEST_SUITE( append_006_Int32 );
    5128           2 :         CPPUNIT_TEST( append_001 ); CPPUNIT_TEST( append_002 );
    5129           2 :         CPPUNIT_TEST( append_003 ); CPPUNIT_TEST( append_004 );
    5130           2 :         CPPUNIT_TEST( append_005 ); CPPUNIT_TEST( append_006 );
    5131           2 :         CPPUNIT_TEST( append_007 ); CPPUNIT_TEST( append_008 );
    5132           2 :         CPPUNIT_TEST( append_009 ); CPPUNIT_TEST( append_010 );
    5133           2 :         CPPUNIT_TEST( append_011 ); CPPUNIT_TEST( append_012 );
    5134           2 :         CPPUNIT_TEST( append_013 ); CPPUNIT_TEST( append_014 );
    5135           2 :         CPPUNIT_TEST( append_015 ); CPPUNIT_TEST( append_016 );
    5136           2 :         CPPUNIT_TEST( append_017 ); CPPUNIT_TEST( append_018 );
    5137           2 :         CPPUNIT_TEST( append_019 ); CPPUNIT_TEST( append_020 );
    5138           2 :         CPPUNIT_TEST( append_021 ); CPPUNIT_TEST( append_022 );
    5139           2 :         CPPUNIT_TEST( append_023 ); CPPUNIT_TEST( append_024 );
    5140           2 :         CPPUNIT_TEST( append_025 ); CPPUNIT_TEST( append_026 );
    5141           2 :         CPPUNIT_TEST( append_027 ); CPPUNIT_TEST( append_028 );
    5142           2 :         CPPUNIT_TEST( append_029 ); CPPUNIT_TEST( append_030 );
    5143           2 :         CPPUNIT_TEST( append_031 ); CPPUNIT_TEST( append_032 );
    5144           2 :         CPPUNIT_TEST( append_033 ); CPPUNIT_TEST( append_034 );
    5145           2 :         CPPUNIT_TEST( append_035 ); CPPUNIT_TEST( append_036 );
    5146           2 :         CPPUNIT_TEST( append_037 ); CPPUNIT_TEST( append_038 );
    5147           2 :         CPPUNIT_TEST( append_039 ); CPPUNIT_TEST( append_040 );
    5148           2 :         CPPUNIT_TEST( append_041 ); CPPUNIT_TEST( append_042 );
    5149           2 :         CPPUNIT_TEST( append_043 ); CPPUNIT_TEST( append_044 );
    5150           2 :         CPPUNIT_TEST( append_045 ); CPPUNIT_TEST( append_046 );
    5151           2 :         CPPUNIT_TEST( append_047 ); CPPUNIT_TEST( append_048 );
    5152           2 :         CPPUNIT_TEST( append_049 ); CPPUNIT_TEST( append_050 );
    5153           2 :         CPPUNIT_TEST( append_051 ); CPPUNIT_TEST( append_052 );
    5154           2 :         CPPUNIT_TEST( append_053 ); CPPUNIT_TEST( append_054 );
    5155           2 :         CPPUNIT_TEST( append_055 ); CPPUNIT_TEST( append_056 );
    5156           2 :         CPPUNIT_TEST( append_057 ); CPPUNIT_TEST( append_058 );
    5157           2 :         CPPUNIT_TEST( append_059 ); CPPUNIT_TEST( append_060 );
    5158           2 :         CPPUNIT_TEST( append_061 ); CPPUNIT_TEST( append_062 );
    5159           2 :         CPPUNIT_TEST( append_063 ); CPPUNIT_TEST( append_064 );
    5160           2 :         CPPUNIT_TEST( append_065 ); CPPUNIT_TEST( append_066 );
    5161           2 :         CPPUNIT_TEST( append_067 ); CPPUNIT_TEST( append_068 );
    5162           2 :         CPPUNIT_TEST( append_069 ); CPPUNIT_TEST( append_070 );
    5163           2 :         CPPUNIT_TEST( append_071 ); CPPUNIT_TEST( append_072 );
    5164           2 :         CPPUNIT_TEST( append_073 ); CPPUNIT_TEST( append_074 );
    5165           2 :         CPPUNIT_TEST( append_075 ); CPPUNIT_TEST( append_076 );
    5166           2 :         CPPUNIT_TEST( append_077 ); CPPUNIT_TEST( append_078 );
    5167           2 :         CPPUNIT_TEST( append_079 ); CPPUNIT_TEST( append_080 );
    5168           2 :         CPPUNIT_TEST( append_081 ); CPPUNIT_TEST( append_082 );
    5169           2 :         CPPUNIT_TEST( append_083 ); CPPUNIT_TEST( append_084 );
    5170           2 :         CPPUNIT_TEST( append_085 ); CPPUNIT_TEST( append_086 );
    5171           2 :         CPPUNIT_TEST( append_087 ); CPPUNIT_TEST( append_088 );
    5172           2 :         CPPUNIT_TEST( append_089 ); CPPUNIT_TEST( append_090 );
    5173           2 :         CPPUNIT_TEST( append_091 ); CPPUNIT_TEST( append_092 );
    5174           2 :         CPPUNIT_TEST( append_093 ); CPPUNIT_TEST( append_094 );
    5175           2 :         CPPUNIT_TEST( append_095 ); CPPUNIT_TEST( append_096 );
    5176           2 :         CPPUNIT_TEST( append_097 ); CPPUNIT_TEST( append_098 );
    5177           2 :         CPPUNIT_TEST( append_099 ); CPPUNIT_TEST( append_100 );
    5178           4 :         CPPUNIT_TEST_SUITE_END();
    5179             :     };
    5180             : //------------------------------------------------------------------------
    5181             : // testing the method append( sal_Int32 i, sal_Int16 radix=2 )
    5182             : // where i = large constants
    5183             : // testing the method append( sal_Int32 i, sal_Int16 radix=8 )
    5184             : // where i = large constants
    5185             : // testing the method append( sal_Int32 i, sal_Int16 radix=10 )
    5186             : // where i = large constants
    5187             : // testing the method append( sal_Int32 i, sal_Int16 radix=16 )
    5188             : // where i = large constants
    5189             : // testing the method append( sal_Int32 i, sal_Int16 radix=36 )
    5190             : // where i = large constants
    5191             : //------------------------------------------------------------------------
    5192         300 :     class  append_006_Int32_Bounderies : public CppUnit::TestFixture
    5193             :     {
    5194             :         OString* arrOUS[5];
    5195             : 
    5196             :     public:
    5197         100 :         void setUp()
    5198             :         {
    5199         100 :             arrOUS[0] = new OString( kTestStr7 );
    5200         100 :             arrOUS[1] = new OString(  );
    5201         100 :             arrOUS[2] = new OString( kTestStr25 );
    5202         100 :             arrOUS[3] = new OString( "" );
    5203         100 :             arrOUS[4] = new OString( kTestStr28 );
    5204             : 
    5205         100 :         }
    5206             : 
    5207         100 :         void tearDown()
    5208             :         {
    5209         100 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
    5210         100 :             delete arrOUS[3]; delete arrOUS[4];
    5211         100 :         }
    5212             : 
    5213           2 :         void append_001()
    5214             :         {
    5215           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    5216           2 :             OString                expVal( aStrBuf.getStr() );
    5217           2 :             sal_Int32              input = kSInt8Max;
    5218           2 :             sal_Int16              radix = 2;
    5219             : 
    5220           2 :             expVal += OString( "1111111" );
    5221           2 :             aStrBuf.append( input, radix );
    5222             : 
    5223           4 :             CPPUNIT_ASSERT_MESSAGE
    5224             :             (
    5225             :                 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
    5226             :                 aStrBuf.getStr()== expVal &&
    5227             :                     aStrBuf.getLength() == expVal.getLength()
    5228           4 :             );
    5229             : 
    5230           2 :         }
    5231             : 
    5232           2 :         void append_002()
    5233             :         {
    5234           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    5235           2 :             OString                expVal( aStrBuf.getStr() );
    5236           2 :             sal_Int32              input = kSInt32Max;
    5237           2 :             sal_Int16              radix = 2;
    5238             : 
    5239           2 :             expVal += OString( "1111111111111111111111111111111" );
    5240           2 :             aStrBuf.append( input, radix );
    5241             : 
    5242           4 :             CPPUNIT_ASSERT_MESSAGE
    5243             :             (
    5244             :                 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
    5245             :                 aStrBuf.getStr()== expVal &&
    5246             :                     aStrBuf.getLength() == expVal.getLength()
    5247           4 :             );
    5248             : 
    5249           2 :         }
    5250             : 
    5251           2 :         void append_003()
    5252             :         {
    5253           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    5254           2 :             OString                expVal( aStrBuf.getStr() );
    5255           2 :             sal_Int32              input = kSInt8Max;
    5256           2 :             sal_Int16              radix = 8;
    5257             : 
    5258           2 :             expVal += OString( "177" );
    5259           2 :             aStrBuf.append( input, radix );
    5260             : 
    5261           4 :             CPPUNIT_ASSERT_MESSAGE
    5262             :             (
    5263             :                 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
    5264             :                 aStrBuf.getStr()== expVal &&
    5265             :                     aStrBuf.getLength() == expVal.getLength()
    5266           4 :             );
    5267             : 
    5268           2 :         }
    5269             : 
    5270           2 :         void append_004()
    5271             :         {
    5272           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    5273           2 :             OString                expVal( aStrBuf.getStr() );
    5274           2 :             sal_Int32              input = kSInt32Max;
    5275           2 :             sal_Int16              radix = 8;
    5276             : 
    5277           2 :             expVal += OString( "17777777777" );
    5278           2 :             aStrBuf.append( input, radix );
    5279             : 
    5280           4 :             CPPUNIT_ASSERT_MESSAGE
    5281             :             (
    5282             :                 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
    5283             :                 aStrBuf.getStr()== expVal &&
    5284             :                     aStrBuf.getLength() == expVal.getLength()
    5285           4 :             );
    5286             : 
    5287           2 :         }
    5288             : 
    5289           2 :         void append_005()
    5290             :         {
    5291           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    5292           2 :             OString                expVal( aStrBuf.getStr() );
    5293           2 :             sal_Int32              input = kSInt8Max;
    5294           2 :             sal_Int16              radix = 10;
    5295             : 
    5296           2 :             expVal += OString( "127" );
    5297           2 :             aStrBuf.append( input, radix );
    5298             : 
    5299           4 :             CPPUNIT_ASSERT_MESSAGE
    5300             :             (
    5301             :                 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
    5302             :                 aStrBuf.getStr()== expVal &&
    5303             :                     aStrBuf.getLength() == expVal.getLength()
    5304           4 :             );
    5305             : 
    5306           2 :         }
    5307             : 
    5308           2 :         void append_006()
    5309             :         {
    5310           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    5311           2 :             OString                expVal( aStrBuf.getStr() );
    5312           2 :             sal_Int32              input = kSInt32Max;
    5313           2 :             sal_Int16              radix = 10;
    5314             : 
    5315           2 :             expVal += OString( "2147483647" );
    5316           2 :             aStrBuf.append( input, radix );
    5317             : 
    5318           4 :             CPPUNIT_ASSERT_MESSAGE
    5319             :             (
    5320             :                 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
    5321             :                 aStrBuf.getStr()== expVal &&
    5322             :                     aStrBuf.getLength() == expVal.getLength()
    5323           4 :             );
    5324             : 
    5325           2 :         }
    5326             : 
    5327           2 :         void append_007()
    5328             :         {
    5329           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    5330           2 :             OString                expVal( aStrBuf.getStr() );
    5331           2 :             sal_Int32              input = kSInt8Max;
    5332           2 :             sal_Int16              radix = 16;
    5333             : 
    5334           2 :             expVal += OString( "7f" );
    5335           2 :             aStrBuf.append( input, radix );
    5336             : 
    5337           4 :             CPPUNIT_ASSERT_MESSAGE
    5338             :             (
    5339             :                 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
    5340             :                 aStrBuf.getStr()== expVal &&
    5341             :                     aStrBuf.getLength() == expVal.getLength()
    5342           4 :             );
    5343             : 
    5344           2 :         }
    5345             : 
    5346           2 :         void append_008()
    5347             :         {
    5348           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    5349           2 :             OString                expVal( aStrBuf.getStr() );
    5350           2 :             sal_Int32              input = kSInt32Max;
    5351           2 :             sal_Int16              radix = 16;
    5352             : 
    5353           2 :             expVal += OString( "7fffffff" );
    5354           2 :             aStrBuf.append( input, radix );
    5355             : 
    5356           4 :             CPPUNIT_ASSERT_MESSAGE
    5357             :             (
    5358             :                 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
    5359             :                 aStrBuf.getStr()== expVal &&
    5360             :                     aStrBuf.getLength() == expVal.getLength()
    5361           4 :             );
    5362             : 
    5363           2 :         }
    5364             : 
    5365           2 :         void append_009()
    5366             :         {
    5367           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    5368           2 :             OString                expVal( aStrBuf.getStr() );
    5369           2 :             sal_Int32              input = kSInt8Max;
    5370           2 :             sal_Int16              radix = 36;
    5371             : 
    5372           2 :             expVal += OString( "3j" );
    5373           2 :             aStrBuf.append( input, radix );
    5374             : 
    5375           4 :             CPPUNIT_ASSERT_MESSAGE
    5376             :             (
    5377             :                 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
    5378             :                 aStrBuf.getStr()== expVal &&
    5379             :                     aStrBuf.getLength() == expVal.getLength()
    5380           4 :             );
    5381             : 
    5382           2 :         }
    5383             : 
    5384           2 :         void append_010()
    5385             :         {
    5386           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    5387           2 :             OString                expVal( aStrBuf.getStr() );
    5388           2 :             sal_Int32              input = kSInt32Max;
    5389           2 :             sal_Int16              radix = 36;
    5390             : 
    5391           2 :             expVal += OString( "zik0zj" );
    5392           2 :             aStrBuf.append( input, radix );
    5393             : 
    5394           4 :             CPPUNIT_ASSERT_MESSAGE
    5395             :             (
    5396             :                 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
    5397             :                 aStrBuf.getStr()== expVal &&
    5398             :                     aStrBuf.getLength() == expVal.getLength()
    5399           4 :             );
    5400             : 
    5401           2 :         }
    5402             : 
    5403           2 :         void append_011()
    5404             :         {
    5405           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    5406           2 :             OString                expVal( aStrBuf.getStr() );
    5407           2 :             sal_Int32              input = kSInt8Max;
    5408           2 :             sal_Int16              radix = 2;
    5409             : 
    5410           2 :             expVal += OString( "1111111" );
    5411           2 :             aStrBuf.append( input, radix );
    5412             : 
    5413           4 :             CPPUNIT_ASSERT_MESSAGE
    5414             :             (
    5415             :                 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
    5416             :                 aStrBuf.getStr()== expVal &&
    5417             :                     aStrBuf.getLength() == expVal.getLength()
    5418           4 :             );
    5419             : 
    5420           2 :         }
    5421             : 
    5422           2 :         void append_012()
    5423             :         {
    5424           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    5425           2 :             OString                expVal( aStrBuf.getStr() );
    5426           2 :             sal_Int32              input = kSInt32Max;
    5427           2 :             sal_Int16              radix = 2;
    5428             : 
    5429           2 :             expVal += OString( "1111111111111111111111111111111" );
    5430           2 :             aStrBuf.append( input, radix );
    5431             : 
    5432           4 :             CPPUNIT_ASSERT_MESSAGE
    5433             :             (
    5434             :                 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
    5435             :                 aStrBuf.getStr()== expVal &&
    5436             :                     aStrBuf.getLength() == expVal.getLength()
    5437           4 :             );
    5438             : 
    5439           2 :         }
    5440             : 
    5441           2 :         void append_013()
    5442             :         {
    5443           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    5444           2 :             OString                expVal( aStrBuf.getStr() );
    5445           2 :             sal_Int32              input = kSInt8Max;
    5446           2 :             sal_Int16              radix = 8;
    5447             : 
    5448           2 :             expVal += OString( "177" );
    5449           2 :             aStrBuf.append( input, radix );
    5450             : 
    5451           4 :             CPPUNIT_ASSERT_MESSAGE
    5452             :             (
    5453             :                 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
    5454             :                 aStrBuf.getStr()== expVal &&
    5455             :                     aStrBuf.getLength() == expVal.getLength()
    5456           4 :             );
    5457             : 
    5458           2 :         }
    5459             : 
    5460           2 :         void append_014()
    5461             :         {
    5462           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    5463           2 :             OString                expVal( aStrBuf.getStr() );
    5464           2 :             sal_Int32              input = kSInt32Max;
    5465           2 :             sal_Int16              radix = 8;
    5466             : 
    5467           2 :             expVal += OString( "17777777777" );
    5468           2 :             aStrBuf.append( input, radix );
    5469             : 
    5470           4 :             CPPUNIT_ASSERT_MESSAGE
    5471             :             (
    5472             :                 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
    5473             :                 aStrBuf.getStr()== expVal &&
    5474             :                     aStrBuf.getLength() == expVal.getLength()
    5475           4 :             );
    5476             : 
    5477           2 :         }
    5478             : 
    5479           2 :         void append_015()
    5480             :         {
    5481           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    5482           2 :             OString                expVal( aStrBuf.getStr() );
    5483           2 :             sal_Int32              input = kSInt8Max;
    5484           2 :             sal_Int16              radix = 10;
    5485             : 
    5486           2 :             expVal += OString( "127" );
    5487           2 :             aStrBuf.append( input, radix );
    5488             : 
    5489           4 :             CPPUNIT_ASSERT_MESSAGE
    5490             :             (
    5491             :                 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
    5492             :                 aStrBuf.getStr()== expVal &&
    5493             :                     aStrBuf.getLength() == expVal.getLength()
    5494           4 :             );
    5495             : 
    5496           2 :         }
    5497             : 
    5498           2 :         void append_016()
    5499             :         {
    5500           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    5501           2 :             OString                expVal( aStrBuf.getStr() );
    5502           2 :             sal_Int32              input = kSInt32Max;
    5503           2 :             sal_Int16              radix = 10;
    5504             : 
    5505           2 :             expVal += OString( "2147483647" );
    5506           2 :             aStrBuf.append( input, radix );
    5507             : 
    5508           4 :             CPPUNIT_ASSERT_MESSAGE
    5509             :             (
    5510             :                 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
    5511             :                 aStrBuf.getStr()== expVal &&
    5512             :                     aStrBuf.getLength() == expVal.getLength()
    5513           4 :             );
    5514             : 
    5515           2 :         }
    5516             : 
    5517           2 :         void append_017()
    5518             :         {
    5519           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    5520           2 :             OString                expVal( aStrBuf.getStr() );
    5521           2 :             sal_Int32              input = kSInt8Max;
    5522           2 :             sal_Int16              radix = 16;
    5523             : 
    5524           2 :             expVal += OString( "7f" );
    5525           2 :             aStrBuf.append( input, radix );
    5526             : 
    5527           4 :             CPPUNIT_ASSERT_MESSAGE
    5528             :             (
    5529             :                 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
    5530             :                 aStrBuf.getStr()== expVal &&
    5531             :                     aStrBuf.getLength() == expVal.getLength()
    5532           4 :             );
    5533             : 
    5534           2 :         }
    5535             : 
    5536           2 :         void append_018()
    5537             :         {
    5538           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    5539           2 :             OString                expVal( aStrBuf.getStr() );
    5540           2 :             sal_Int32              input = kSInt32Max;
    5541           2 :             sal_Int16              radix = 16;
    5542             : 
    5543           2 :             expVal += OString( "7fffffff" );
    5544           2 :             aStrBuf.append( input, radix );
    5545             : 
    5546           4 :             CPPUNIT_ASSERT_MESSAGE
    5547             :             (
    5548             :                 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
    5549             :                 aStrBuf.getStr()== expVal &&
    5550             :                     aStrBuf.getLength() == expVal.getLength()
    5551           4 :             );
    5552             : 
    5553           2 :         }
    5554             : 
    5555           2 :         void append_019()
    5556             :         {
    5557           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    5558           2 :             OString                expVal( aStrBuf.getStr() );
    5559           2 :             sal_Int32              input = kSInt8Max;
    5560           2 :             sal_Int16              radix = 36;
    5561             : 
    5562           2 :             expVal += OString( "3j" );
    5563           2 :             aStrBuf.append( input, radix );
    5564             : 
    5565           4 :             CPPUNIT_ASSERT_MESSAGE
    5566             :             (
    5567             :                 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
    5568             :                 aStrBuf.getStr()== expVal &&
    5569             :                     aStrBuf.getLength() == expVal.getLength()
    5570           4 :             );
    5571             : 
    5572           2 :         }
    5573             : 
    5574           2 :         void append_020()
    5575             :         {
    5576           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    5577           2 :             OString                expVal( aStrBuf.getStr() );
    5578           2 :             sal_Int32              input = kSInt32Max;
    5579           2 :             sal_Int16              radix = 36;
    5580             : 
    5581           2 :             expVal += OString( "zik0zj" );
    5582           2 :             aStrBuf.append( input, radix );
    5583             : 
    5584           4 :             CPPUNIT_ASSERT_MESSAGE
    5585             :             (
    5586             :                 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
    5587             :                 aStrBuf.getStr()== expVal &&
    5588             :                     aStrBuf.getLength() == expVal.getLength()
    5589           4 :             );
    5590             : 
    5591           2 :         }
    5592             : 
    5593           2 :         void append_021()
    5594             :         {
    5595           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    5596           2 :             OString                expVal( aStrBuf.getStr() );
    5597           2 :             sal_Int32              input = kSInt8Max;
    5598           2 :             sal_Int16              radix = 2;
    5599             : 
    5600           2 :             expVal += OString( "1111111" );
    5601           2 :             aStrBuf.append( input, radix );
    5602             : 
    5603           4 :             CPPUNIT_ASSERT_MESSAGE
    5604             :             (
    5605             :                 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
    5606             :                 aStrBuf.getStr()== expVal &&
    5607             :                     aStrBuf.getLength() == expVal.getLength()
    5608           4 :             );
    5609             : 
    5610           2 :         }
    5611             : 
    5612           2 :         void append_022()
    5613             :         {
    5614           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    5615           2 :             OString                expVal( aStrBuf.getStr() );
    5616           2 :             sal_Int32              input = kSInt32Max;
    5617           2 :             sal_Int16              radix = 2;
    5618             : 
    5619           2 :             expVal += OString( "1111111111111111111111111111111" );
    5620           2 :             aStrBuf.append( input, radix );
    5621             : 
    5622           4 :             CPPUNIT_ASSERT_MESSAGE
    5623             :             (
    5624             :                 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
    5625             :                 aStrBuf.getStr()== expVal &&
    5626             :                     aStrBuf.getLength() == expVal.getLength()
    5627           4 :             );
    5628             : 
    5629           2 :         }
    5630             : 
    5631           2 :         void append_023()
    5632             :         {
    5633           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    5634           2 :             OString                expVal( aStrBuf.getStr() );
    5635           2 :             sal_Int32              input = kSInt8Max;
    5636           2 :             sal_Int16              radix = 8;
    5637             : 
    5638           2 :             expVal += OString( "177" );
    5639           2 :             aStrBuf.append( input, radix );
    5640             : 
    5641           4 :             CPPUNIT_ASSERT_MESSAGE
    5642             :             (
    5643             :                 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
    5644             :                 aStrBuf.getStr()== expVal &&
    5645             :                     aStrBuf.getLength() == expVal.getLength()
    5646           4 :             );
    5647             : 
    5648           2 :         }
    5649             : 
    5650           2 :         void append_024()
    5651             :         {
    5652           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    5653           2 :             OString                expVal( aStrBuf.getStr() );
    5654           2 :             sal_Int32              input = kSInt32Max;
    5655           2 :             sal_Int16              radix = 8;
    5656             : 
    5657           2 :             expVal += OString( "17777777777" );
    5658           2 :             aStrBuf.append( input, radix );
    5659             : 
    5660           4 :             CPPUNIT_ASSERT_MESSAGE
    5661             :             (
    5662             :                 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
    5663             :                 aStrBuf.getStr()== expVal &&
    5664             :                     aStrBuf.getLength() == expVal.getLength()
    5665           4 :             );
    5666             : 
    5667           2 :         }
    5668             : 
    5669           2 :         void append_025()
    5670             :         {
    5671           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    5672           2 :             OString                expVal( aStrBuf.getStr() );
    5673           2 :             sal_Int32              input = kSInt8Max;
    5674           2 :             sal_Int16              radix = 10;
    5675             : 
    5676           2 :             expVal += OString( "127" );
    5677           2 :             aStrBuf.append( input, radix );
    5678             : 
    5679           4 :             CPPUNIT_ASSERT_MESSAGE
    5680             :             (
    5681             :                 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
    5682             :                 aStrBuf.getStr()== expVal &&
    5683             :                     aStrBuf.getLength() == expVal.getLength()
    5684           4 :             );
    5685             : 
    5686           2 :         }
    5687             : 
    5688           2 :         void append_026()
    5689             :         {
    5690           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    5691           2 :             OString                expVal( aStrBuf.getStr() );
    5692           2 :             sal_Int32              input = kSInt32Max;
    5693           2 :             sal_Int16              radix = 10;
    5694             : 
    5695           2 :             expVal += OString( "2147483647" );
    5696           2 :             aStrBuf.append( input, radix );
    5697             : 
    5698           4 :             CPPUNIT_ASSERT_MESSAGE
    5699             :             (
    5700             :                 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
    5701             :                 aStrBuf.getStr()== expVal &&
    5702             :                     aStrBuf.getLength() == expVal.getLength()
    5703           4 :             );
    5704             : 
    5705           2 :         }
    5706             : 
    5707           2 :         void append_027()
    5708             :         {
    5709           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    5710           2 :             OString                expVal( aStrBuf.getStr() );
    5711           2 :             sal_Int32              input = kSInt8Max;
    5712           2 :             sal_Int16              radix = 16;
    5713             : 
    5714           2 :             expVal += OString( "7f" );
    5715           2 :             aStrBuf.append( input, radix );
    5716             : 
    5717           4 :             CPPUNIT_ASSERT_MESSAGE
    5718             :             (
    5719             :                 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
    5720             :                 aStrBuf.getStr()== expVal &&
    5721             :                     aStrBuf.getLength() == expVal.getLength()
    5722           4 :             );
    5723             : 
    5724           2 :         }
    5725             : 
    5726           2 :         void append_028()
    5727             :         {
    5728           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    5729           2 :             OString                expVal( aStrBuf.getStr() );
    5730           2 :             sal_Int32              input = kSInt32Max;
    5731           2 :             sal_Int16              radix = 16;
    5732             : 
    5733           2 :             expVal += OString( "7fffffff" );
    5734           2 :             aStrBuf.append( input, radix );
    5735             : 
    5736           4 :             CPPUNIT_ASSERT_MESSAGE
    5737             :             (
    5738             :                 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
    5739             :                 aStrBuf.getStr()== expVal &&
    5740             :                     aStrBuf.getLength() == expVal.getLength()
    5741           4 :             );
    5742             : 
    5743           2 :         }
    5744             : 
    5745           2 :         void append_029()
    5746             :         {
    5747           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    5748           2 :             OString                expVal( aStrBuf.getStr() );
    5749           2 :             sal_Int32              input = kSInt8Max;
    5750           2 :             sal_Int16              radix = 36;
    5751             : 
    5752           2 :             expVal += OString( "3j" );
    5753           2 :             aStrBuf.append( input, radix );
    5754             : 
    5755           4 :             CPPUNIT_ASSERT_MESSAGE
    5756             :             (
    5757             :                 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
    5758             :                 aStrBuf.getStr()== expVal &&
    5759             :                     aStrBuf.getLength() == expVal.getLength()
    5760           4 :             );
    5761             : 
    5762           2 :         }
    5763             : 
    5764           2 :         void append_030()
    5765             :         {
    5766           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    5767           2 :             OString                expVal( aStrBuf.getStr() );
    5768           2 :             sal_Int32              input = kSInt32Max;
    5769           2 :             sal_Int16              radix = 36;
    5770             : 
    5771           2 :             expVal += OString( "zik0zj" );
    5772           2 :             aStrBuf.append( input, radix );
    5773             : 
    5774           4 :             CPPUNIT_ASSERT_MESSAGE
    5775             :             (
    5776             :                 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
    5777             :                 aStrBuf.getStr()== expVal &&
    5778             :                     aStrBuf.getLength() == expVal.getLength()
    5779           4 :             );
    5780             : 
    5781           2 :         }
    5782             : 
    5783           2 :         void append_031()
    5784             :         {
    5785           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    5786           2 :             OString                expVal( aStrBuf.getStr() );
    5787           2 :             sal_Int32              input = kSInt8Max;
    5788           2 :             sal_Int16              radix = 2;
    5789             : 
    5790           2 :             expVal += OString( "1111111" );
    5791           2 :             aStrBuf.append( input, radix );
    5792             : 
    5793           4 :             CPPUNIT_ASSERT_MESSAGE
    5794             :             (
    5795             :                 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
    5796             :                 aStrBuf.getStr()== expVal &&
    5797             :                     aStrBuf.getLength() == expVal.getLength()
    5798           4 :             );
    5799             : 
    5800           2 :         }
    5801             : 
    5802           2 :         void append_032()
    5803             :         {
    5804           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    5805           2 :             OString                expVal( aStrBuf.getStr() );
    5806           2 :             sal_Int32              input = kSInt32Max;
    5807           2 :             sal_Int16              radix = 2;
    5808             : 
    5809           2 :             expVal += OString( "1111111111111111111111111111111" );
    5810           2 :             aStrBuf.append( input, radix );
    5811             : 
    5812           4 :             CPPUNIT_ASSERT_MESSAGE
    5813             :             (
    5814             :                 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
    5815             :                 aStrBuf.getStr()== expVal &&
    5816             :                     aStrBuf.getLength() == expVal.getLength()
    5817           4 :             );
    5818             : 
    5819           2 :         }
    5820             : 
    5821           2 :         void append_033()
    5822             :         {
    5823           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    5824           2 :             OString                expVal( aStrBuf.getStr() );
    5825           2 :             sal_Int32              input = kSInt8Max;
    5826           2 :             sal_Int16              radix = 8;
    5827             : 
    5828           2 :             expVal += OString( "177" );
    5829           2 :             aStrBuf.append( input, radix );
    5830             : 
    5831           4 :             CPPUNIT_ASSERT_MESSAGE
    5832             :             (
    5833             :                 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
    5834             :                 aStrBuf.getStr()== expVal &&
    5835             :                     aStrBuf.getLength() == expVal.getLength()
    5836           4 :             );
    5837             : 
    5838           2 :         }
    5839             : 
    5840           2 :         void append_034()
    5841             :         {
    5842           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    5843           2 :             OString                expVal( aStrBuf.getStr() );
    5844           2 :             sal_Int32              input = kSInt32Max;
    5845           2 :             sal_Int16              radix = 8;
    5846             : 
    5847           2 :             expVal += OString( "17777777777" );
    5848           2 :             aStrBuf.append( input, radix );
    5849             : 
    5850           4 :             CPPUNIT_ASSERT_MESSAGE
    5851             :             (
    5852             :                 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
    5853             :                 aStrBuf.getStr()== expVal &&
    5854             :                     aStrBuf.getLength() == expVal.getLength()
    5855           4 :             );
    5856             : 
    5857           2 :         }
    5858             : 
    5859           2 :         void append_035()
    5860             :         {
    5861           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    5862           2 :             OString                expVal( aStrBuf.getStr() );
    5863           2 :             sal_Int32              input = kSInt8Max;
    5864           2 :             sal_Int16              radix = 10;
    5865             : 
    5866           2 :             expVal += OString( "127" );
    5867           2 :             aStrBuf.append( input, radix );
    5868             : 
    5869           4 :             CPPUNIT_ASSERT_MESSAGE
    5870             :             (
    5871             :                 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
    5872             :                 aStrBuf.getStr()== expVal &&
    5873             :                     aStrBuf.getLength() == expVal.getLength()
    5874           4 :             );
    5875             : 
    5876           2 :         }
    5877             : 
    5878           2 :         void append_036()
    5879             :         {
    5880           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    5881           2 :             OString                expVal( aStrBuf.getStr() );
    5882           2 :             sal_Int32              input = kSInt32Max;
    5883           2 :             sal_Int16              radix = 10;
    5884             : 
    5885           2 :             expVal += OString( "2147483647" );
    5886           2 :             aStrBuf.append( input, radix );
    5887             : 
    5888           4 :             CPPUNIT_ASSERT_MESSAGE
    5889             :             (
    5890             :                 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
    5891             :                 aStrBuf.getStr()== expVal &&
    5892             :                     aStrBuf.getLength() == expVal.getLength()
    5893           4 :             );
    5894             : 
    5895           2 :         }
    5896             : 
    5897           2 :         void append_037()
    5898             :         {
    5899           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    5900           2 :             OString                expVal( aStrBuf.getStr() );
    5901           2 :             sal_Int32              input = kSInt8Max;
    5902           2 :             sal_Int16              radix = 16;
    5903             : 
    5904           2 :             expVal += OString( "7f" );
    5905           2 :             aStrBuf.append( input, radix );
    5906             : 
    5907           4 :             CPPUNIT_ASSERT_MESSAGE
    5908             :             (
    5909             :                 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
    5910             :                 aStrBuf.getStr()== expVal &&
    5911             :                     aStrBuf.getLength() == expVal.getLength()
    5912           4 :             );
    5913             : 
    5914           2 :         }
    5915             : 
    5916           2 :         void append_038()
    5917             :         {
    5918           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    5919           2 :             OString                expVal( aStrBuf.getStr() );
    5920           2 :             sal_Int32              input = kSInt32Max;
    5921           2 :             sal_Int16              radix = 16;
    5922             : 
    5923           2 :             expVal += OString( "7fffffff" );
    5924           2 :             aStrBuf.append( input, radix );
    5925             : 
    5926           4 :             CPPUNIT_ASSERT_MESSAGE
    5927             :             (
    5928             :                 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
    5929             :                 aStrBuf.getStr()== expVal &&
    5930             :                     aStrBuf.getLength() == expVal.getLength()
    5931           4 :             );
    5932             : 
    5933           2 :         }
    5934             : 
    5935           2 :         void append_039()
    5936             :         {
    5937           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    5938           2 :             OString                expVal( aStrBuf.getStr() );
    5939           2 :             sal_Int32              input = kSInt8Max;
    5940           2 :             sal_Int16              radix = 36;
    5941             : 
    5942           2 :             expVal += OString( "3j" );
    5943           2 :             aStrBuf.append( input, radix );
    5944             : 
    5945           4 :             CPPUNIT_ASSERT_MESSAGE
    5946             :             (
    5947             :                 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
    5948             :                 aStrBuf.getStr()== expVal &&
    5949             :                     aStrBuf.getLength() == expVal.getLength()
    5950           4 :             );
    5951             : 
    5952           2 :         }
    5953             : 
    5954           2 :         void append_040()
    5955             :         {
    5956           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    5957           2 :             OString                expVal( aStrBuf.getStr() );
    5958           2 :             sal_Int32              input = kSInt32Max;
    5959           2 :             sal_Int16              radix = 36;
    5960             : 
    5961           2 :             expVal += OString( "zik0zj" );
    5962           2 :             aStrBuf.append( input, radix );
    5963             : 
    5964           4 :             CPPUNIT_ASSERT_MESSAGE
    5965             :             (
    5966             :                 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
    5967             :                 aStrBuf.getStr()== expVal &&
    5968             :                     aStrBuf.getLength() == expVal.getLength()
    5969           4 :             );
    5970             : 
    5971           2 :         }
    5972             : 
    5973           2 :         void append_041()
    5974             :         {
    5975           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    5976           2 :             OString                expVal( aStrBuf.getStr() );
    5977           2 :             sal_Int32              input = kSInt8Max;
    5978           2 :             sal_Int16              radix = 2;
    5979             : 
    5980           2 :             expVal += OString( "1111111" );
    5981           2 :             aStrBuf.append( input, radix );
    5982             : 
    5983           4 :             CPPUNIT_ASSERT_MESSAGE
    5984             :             (
    5985             :                 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
    5986             :                 aStrBuf.getStr()== expVal &&
    5987             :                     aStrBuf.getLength() == expVal.getLength()
    5988           4 :             );
    5989             : 
    5990           2 :         }
    5991             : 
    5992           2 :         void append_042()
    5993             :         {
    5994           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    5995           2 :             OString                expVal( aStrBuf.getStr() );
    5996           2 :             sal_Int32              input = kSInt32Max;
    5997           2 :             sal_Int16              radix = 2;
    5998             : 
    5999           2 :             expVal += OString( "1111111111111111111111111111111" );
    6000           2 :             aStrBuf.append( input, radix );
    6001             : 
    6002           4 :             CPPUNIT_ASSERT_MESSAGE
    6003             :             (
    6004             :                 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
    6005             :                 aStrBuf.getStr()== expVal &&
    6006             :                     aStrBuf.getLength() == expVal.getLength()
    6007           4 :             );
    6008             : 
    6009           2 :         }
    6010             : 
    6011           2 :         void append_043()
    6012             :         {
    6013           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    6014           2 :             OString                expVal( aStrBuf.getStr() );
    6015           2 :             sal_Int32              input = kSInt8Max;
    6016           2 :             sal_Int16              radix = 8;
    6017             : 
    6018           2 :             expVal += OString( "177" );
    6019           2 :             aStrBuf.append( input, radix );
    6020             : 
    6021           4 :             CPPUNIT_ASSERT_MESSAGE
    6022             :             (
    6023             :                 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
    6024             :                 aStrBuf.getStr()== expVal &&
    6025             :                     aStrBuf.getLength() == expVal.getLength()
    6026           4 :             );
    6027             : 
    6028           2 :         }
    6029             : 
    6030           2 :         void append_044()
    6031             :         {
    6032           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    6033           2 :             OString                expVal( aStrBuf.getStr() );
    6034           2 :             sal_Int32              input = kSInt32Max;
    6035           2 :             sal_Int16              radix = 8;
    6036             : 
    6037           2 :             expVal += OString( "17777777777" );
    6038           2 :             aStrBuf.append( input, radix );
    6039             : 
    6040           4 :             CPPUNIT_ASSERT_MESSAGE
    6041             :             (
    6042             :                 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
    6043             :                 aStrBuf.getStr()== expVal &&
    6044             :                     aStrBuf.getLength() == expVal.getLength()
    6045           4 :             );
    6046             : 
    6047           2 :         }
    6048             : 
    6049           2 :         void append_045()
    6050             :         {
    6051           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    6052           2 :             OString                expVal( aStrBuf.getStr() );
    6053           2 :             sal_Int32              input = kSInt8Max;
    6054           2 :             sal_Int16              radix = 10;
    6055             : 
    6056           2 :             expVal += OString( "127" );
    6057           2 :             aStrBuf.append( input, radix );
    6058             : 
    6059           4 :             CPPUNIT_ASSERT_MESSAGE
    6060             :             (
    6061             :                 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
    6062             :                 aStrBuf.getStr()== expVal &&
    6063             :                     aStrBuf.getLength() == expVal.getLength()
    6064           4 :             );
    6065             : 
    6066           2 :         }
    6067             : 
    6068           2 :         void append_046()
    6069             :         {
    6070           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    6071           2 :             OString                expVal( aStrBuf.getStr() );
    6072           2 :             sal_Int32              input = kSInt32Max;
    6073           2 :             sal_Int16              radix = 10;
    6074             : 
    6075           2 :             expVal += OString( "2147483647" );
    6076           2 :             aStrBuf.append( input, radix );
    6077             : 
    6078           4 :             CPPUNIT_ASSERT_MESSAGE
    6079             :             (
    6080             :                 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
    6081             :                 aStrBuf.getStr()== expVal &&
    6082             :                     aStrBuf.getLength() == expVal.getLength()
    6083           4 :             );
    6084             : 
    6085           2 :         }
    6086             : 
    6087           2 :         void append_047()
    6088             :         {
    6089           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    6090           2 :             OString                expVal( aStrBuf.getStr() );
    6091           2 :             sal_Int32              input = kSInt8Max;
    6092           2 :             sal_Int16              radix = 16;
    6093             : 
    6094           2 :             expVal += OString( "7f" );
    6095           2 :             aStrBuf.append( input, radix );
    6096             : 
    6097           4 :             CPPUNIT_ASSERT_MESSAGE
    6098             :             (
    6099             :                 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
    6100             :                 aStrBuf.getStr()== expVal &&
    6101             :                     aStrBuf.getLength() == expVal.getLength()
    6102           4 :             );
    6103             : 
    6104           2 :         }
    6105             : 
    6106           2 :         void append_048()
    6107             :         {
    6108           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    6109           2 :             OString                expVal( aStrBuf.getStr() );
    6110           2 :             sal_Int32              input = kSInt32Max;
    6111           2 :             sal_Int16              radix = 16;
    6112             : 
    6113           2 :             expVal += OString( "7fffffff" );
    6114           2 :             aStrBuf.append( input, radix );
    6115             : 
    6116           4 :             CPPUNIT_ASSERT_MESSAGE
    6117             :             (
    6118             :                 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
    6119             :                 aStrBuf.getStr()== expVal &&
    6120             :                     aStrBuf.getLength() == expVal.getLength()
    6121           4 :             );
    6122             : 
    6123           2 :         }
    6124             : 
    6125           2 :         void append_049()
    6126             :         {
    6127           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    6128           2 :             OString                expVal( aStrBuf.getStr() );
    6129           2 :             sal_Int32              input = kSInt8Max;
    6130           2 :             sal_Int16              radix = 36;
    6131             : 
    6132           2 :             expVal += OString( "3j" );
    6133           2 :             aStrBuf.append( input, radix );
    6134             : 
    6135           4 :             CPPUNIT_ASSERT_MESSAGE
    6136             :             (
    6137             :                 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
    6138             :                 aStrBuf.getStr()== expVal &&
    6139             :                     aStrBuf.getLength() == expVal.getLength()
    6140           4 :             );
    6141             : 
    6142           2 :         }
    6143             : 
    6144           2 :         void append_050()
    6145             :         {
    6146           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    6147           2 :             OString                expVal( aStrBuf.getStr() );
    6148           2 :             sal_Int32              input = kSInt32Max;
    6149           2 :             sal_Int16              radix = 36;
    6150             : 
    6151           2 :             expVal += OString( "zik0zj" );
    6152           2 :             aStrBuf.append( input, radix );
    6153             : 
    6154           4 :             CPPUNIT_ASSERT_MESSAGE
    6155             :             (
    6156             :                 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
    6157             :                 aStrBuf.getStr()== expVal &&
    6158             :                     aStrBuf.getLength() == expVal.getLength()
    6159           4 :             );
    6160             : 
    6161           2 :         }
    6162             : 
    6163           4 :         CPPUNIT_TEST_SUITE( append_006_Int32_Bounderies );
    6164           2 :         CPPUNIT_TEST( append_001 ); CPPUNIT_TEST( append_002 );
    6165           2 :         CPPUNIT_TEST( append_003 ); CPPUNIT_TEST( append_004 );
    6166           2 :         CPPUNIT_TEST( append_005 ); CPPUNIT_TEST( append_006 );
    6167           2 :         CPPUNIT_TEST( append_007 ); CPPUNIT_TEST( append_008 );
    6168           2 :         CPPUNIT_TEST( append_009 ); CPPUNIT_TEST( append_010 );
    6169           2 :         CPPUNIT_TEST( append_011 ); CPPUNIT_TEST( append_012 );
    6170           2 :         CPPUNIT_TEST( append_013 ); CPPUNIT_TEST( append_014 );
    6171           2 :         CPPUNIT_TEST( append_015 ); CPPUNIT_TEST( append_016 );
    6172           2 :         CPPUNIT_TEST( append_017 ); CPPUNIT_TEST( append_018 );
    6173           2 :         CPPUNIT_TEST( append_019 ); CPPUNIT_TEST( append_020 );
    6174           2 :         CPPUNIT_TEST( append_021 ); CPPUNIT_TEST( append_022 );
    6175           2 :         CPPUNIT_TEST( append_023 ); CPPUNIT_TEST( append_024 );
    6176           2 :         CPPUNIT_TEST( append_025 ); CPPUNIT_TEST( append_026 );
    6177           2 :         CPPUNIT_TEST( append_027 ); CPPUNIT_TEST( append_028 );
    6178           2 :         CPPUNIT_TEST( append_029 ); CPPUNIT_TEST( append_030 );
    6179           2 :         CPPUNIT_TEST( append_031 ); CPPUNIT_TEST( append_032 );
    6180           2 :         CPPUNIT_TEST( append_033 ); CPPUNIT_TEST( append_034 );
    6181           2 :         CPPUNIT_TEST( append_035 ); CPPUNIT_TEST( append_036 );
    6182           2 :         CPPUNIT_TEST( append_037 ); CPPUNIT_TEST( append_038 );
    6183           2 :         CPPUNIT_TEST( append_039 ); CPPUNIT_TEST( append_040 );
    6184           2 :         CPPUNIT_TEST( append_041 ); CPPUNIT_TEST( append_042 );
    6185           2 :         CPPUNIT_TEST( append_043 ); CPPUNIT_TEST( append_044 );
    6186           2 :         CPPUNIT_TEST( append_045 ); CPPUNIT_TEST( append_046 );
    6187           2 :         CPPUNIT_TEST( append_047 ); CPPUNIT_TEST( append_048 );
    6188           2 :         CPPUNIT_TEST( append_049 ); CPPUNIT_TEST( append_050 );
    6189           4 :         CPPUNIT_TEST_SUITE_END();
    6190             :     };
    6191             : //------------------------------------------------------------------------
    6192             : // testing the method append( sal_Int32 i, sal_Int16 radix=2 )
    6193             : // for negative value
    6194             : // testing the method append( sal_Int32 i, sal_Int16 radix=8 )
    6195             : // for negative value
    6196             : // testing the method append( sal_Int32 i, sal_Int16 radix=10 )
    6197             : // for negative value
    6198             : // testing the method append( sal_Int32 i, sal_Int16 radix=16 )
    6199             : // for negative value
    6200             : // testing the method append( sal_Int32 i, sal_Int16 radix=36 )
    6201             : // for negative value
    6202             : //------------------------------------------------------------------------
    6203         600 :     class  append_006_Int32_Negative : public CppUnit::TestFixture
    6204             :     {
    6205             :         OString* arrOUS[5];
    6206             : 
    6207             :     public:
    6208         200 :         void setUp()
    6209             :         {
    6210         200 :             arrOUS[0] = new OString( kTestStr7 );
    6211         200 :             arrOUS[1] = new OString(  );
    6212         200 :             arrOUS[2] = new OString( kTestStr25 );
    6213         200 :             arrOUS[3] = new OString( "" );
    6214         200 :             arrOUS[4] = new OString( kTestStr28 );
    6215             : 
    6216         200 :         }
    6217             : 
    6218         200 :         void tearDown()
    6219             :         {
    6220         200 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
    6221         200 :             delete arrOUS[3]; delete arrOUS[4];
    6222         200 :         }
    6223             : 
    6224           2 :         void append_001()
    6225             :         {
    6226           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6227           2 :             OString                expVal( aStrBuf.getStr() );
    6228           2 :             sal_Int32              input = -0;
    6229           2 :             sal_Int16              radix = 2;
    6230             : 
    6231           2 :             expVal += OString( "0" );
    6232           2 :             aStrBuf.append( input, radix );
    6233             : 
    6234           4 :             CPPUNIT_ASSERT_MESSAGE
    6235             :             (
    6236             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
    6237             :                 aStrBuf.getStr()== expVal &&
    6238             :                     aStrBuf.getLength() == expVal.getLength()
    6239           4 :             );
    6240             : 
    6241           2 :         }
    6242             : 
    6243           2 :         void append_002()
    6244             :         {
    6245           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6246           2 :             OString                expVal( aStrBuf.getStr() );
    6247           2 :             sal_Int32              input = -4;
    6248           2 :             sal_Int16              radix = 2;
    6249             : 
    6250           2 :             expVal += OString( "-" );
    6251           2 :             expVal += OString( "100" );
    6252           2 :             aStrBuf.append( input, radix );
    6253             : 
    6254           4 :             CPPUNIT_ASSERT_MESSAGE
    6255             :             (
    6256             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
    6257             :                 aStrBuf.getStr()== expVal &&
    6258             :                     aStrBuf.getLength() == expVal.getLength()
    6259           4 :             );
    6260             : 
    6261           2 :         }
    6262             : 
    6263           2 :         void append_003()
    6264             :         {
    6265           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6266           2 :             OString                expVal( aStrBuf.getStr() );
    6267           2 :             sal_Int32              input = -8;
    6268           2 :             sal_Int16              radix = 2;
    6269             : 
    6270           2 :             expVal += OString( "-" );
    6271           2 :             expVal += OString( "1000" );
    6272           2 :             aStrBuf.append( input, radix );
    6273             : 
    6274           4 :             CPPUNIT_ASSERT_MESSAGE
    6275             :             (
    6276             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
    6277             :                 aStrBuf.getStr()== expVal &&
    6278             :                     aStrBuf.getLength() == expVal.getLength()
    6279           4 :             );
    6280             : 
    6281           2 :         }
    6282             : 
    6283           2 :         void append_004()
    6284             :         {
    6285           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6286           2 :             OString                expVal( aStrBuf.getStr() );
    6287           2 :             sal_Int32              input = -15;
    6288           2 :             sal_Int16              radix = 2;
    6289             : 
    6290           2 :             expVal += OString( "-" );
    6291           2 :             expVal += OString( "1111" );
    6292           2 :             aStrBuf.append( input, radix );
    6293             : 
    6294           4 :             CPPUNIT_ASSERT_MESSAGE
    6295             :             (
    6296             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
    6297             :                 aStrBuf.getStr()== expVal &&
    6298             :                     aStrBuf.getLength() == expVal.getLength()
    6299           4 :             );
    6300             : 
    6301           2 :         }
    6302             : 
    6303           2 :         void append_005()
    6304             :         {
    6305           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6306           2 :             OString                expVal( aStrBuf.getStr() );
    6307           2 :             sal_Int32              input = -0;
    6308           2 :             sal_Int16              radix = 8;
    6309             : 
    6310           2 :             expVal += OString( "0" );
    6311           2 :             aStrBuf.append( input, radix );
    6312             : 
    6313           4 :             CPPUNIT_ASSERT_MESSAGE
    6314             :             (
    6315             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
    6316             :                 aStrBuf.getStr()== expVal &&
    6317             :                     aStrBuf.getLength() == expVal.getLength()
    6318           4 :             );
    6319             : 
    6320           2 :         }
    6321             : 
    6322           2 :         void append_006()
    6323             :         {
    6324           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6325           2 :             OString                expVal( aStrBuf.getStr() );
    6326           2 :             sal_Int32              input = -4;
    6327           2 :             sal_Int16              radix = 8;
    6328             : 
    6329           2 :             expVal += OString( "-" );
    6330           2 :             expVal += OString( "4" );
    6331           2 :             aStrBuf.append( input, radix );
    6332             : 
    6333           4 :             CPPUNIT_ASSERT_MESSAGE
    6334             :             (
    6335             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
    6336             :                 aStrBuf.getStr()== expVal &&
    6337             :                     aStrBuf.getLength() == expVal.getLength()
    6338           4 :             );
    6339             : 
    6340           2 :         }
    6341             : 
    6342           2 :         void append_007()
    6343             :         {
    6344           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6345           2 :             OString                expVal( aStrBuf.getStr() );
    6346           2 :             sal_Int32              input = -8;
    6347           2 :             sal_Int16              radix = 8;
    6348             : 
    6349           2 :             expVal += OString( "-" );
    6350           2 :             expVal += OString( "10" );
    6351           2 :             aStrBuf.append( input, radix );
    6352             : 
    6353           4 :             CPPUNIT_ASSERT_MESSAGE
    6354             :             (
    6355             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
    6356             :                 aStrBuf.getStr()== expVal &&
    6357             :                     aStrBuf.getLength() == expVal.getLength()
    6358           4 :             );
    6359             : 
    6360           2 :         }
    6361             : 
    6362           2 :         void append_008()
    6363             :         {
    6364           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6365           2 :             OString                expVal( aStrBuf.getStr() );
    6366           2 :             sal_Int32              input = -15;
    6367           2 :             sal_Int16              radix = 8;
    6368             : 
    6369           2 :             expVal += OString( "-" );
    6370           2 :             expVal += OString( "17" );
    6371           2 :             aStrBuf.append( input, radix );
    6372             : 
    6373           4 :             CPPUNIT_ASSERT_MESSAGE
    6374             :             (
    6375             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
    6376             :                 aStrBuf.getStr()== expVal &&
    6377             :                     aStrBuf.getLength() == expVal.getLength()
    6378           4 :             );
    6379             : 
    6380           2 :         }
    6381             : 
    6382           2 :         void append_009()
    6383             :         {
    6384           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6385           2 :             OString                expVal( aStrBuf.getStr() );
    6386           2 :             sal_Int32              input = -0;
    6387           2 :             sal_Int16              radix = 10;
    6388             : 
    6389           2 :             expVal += OString( "0" );
    6390           2 :             aStrBuf.append( input, radix );
    6391             : 
    6392           4 :             CPPUNIT_ASSERT_MESSAGE
    6393             :             (
    6394             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
    6395             :                 aStrBuf.getStr()== expVal &&
    6396             :                     aStrBuf.getLength() == expVal.getLength()
    6397           4 :             );
    6398             : 
    6399           2 :         }
    6400             : 
    6401           2 :         void append_010()
    6402             :         {
    6403           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6404           2 :             OString                expVal( aStrBuf.getStr() );
    6405           2 :             sal_Int32              input = -4;
    6406           2 :             sal_Int16              radix = 10;
    6407             : 
    6408           2 :             expVal += OString( "-" );
    6409           2 :             expVal += OString( "4" );
    6410           2 :             aStrBuf.append( input, radix );
    6411             : 
    6412           4 :             CPPUNIT_ASSERT_MESSAGE
    6413             :             (
    6414             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
    6415             :                 aStrBuf.getStr()== expVal &&
    6416             :                     aStrBuf.getLength() == expVal.getLength()
    6417           4 :             );
    6418             : 
    6419           2 :         }
    6420             : 
    6421           2 :         void append_011()
    6422             :         {
    6423           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6424           2 :             OString                expVal( aStrBuf.getStr() );
    6425           2 :             sal_Int32              input = -8;
    6426           2 :             sal_Int16              radix = 10;
    6427             : 
    6428           2 :             expVal += OString( "-" );
    6429           2 :             expVal += OString( "8" );
    6430           2 :             aStrBuf.append( input, radix );
    6431             : 
    6432           4 :             CPPUNIT_ASSERT_MESSAGE
    6433             :             (
    6434             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
    6435             :                 aStrBuf.getStr()== expVal &&
    6436             :                     aStrBuf.getLength() == expVal.getLength()
    6437           4 :             );
    6438             : 
    6439           2 :         }
    6440             : 
    6441           2 :         void append_012()
    6442             :         {
    6443           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6444           2 :             OString                expVal( aStrBuf.getStr() );
    6445           2 :             sal_Int32              input = -15;
    6446           2 :             sal_Int16              radix = 10;
    6447             : 
    6448           2 :             expVal += OString( "-" );
    6449           2 :             expVal += OString( "15" );
    6450           2 :             aStrBuf.append( input, radix );
    6451             : 
    6452           4 :             CPPUNIT_ASSERT_MESSAGE
    6453             :             (
    6454             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
    6455             :                 aStrBuf.getStr()== expVal &&
    6456             :                     aStrBuf.getLength() == expVal.getLength()
    6457           4 :             );
    6458             : 
    6459           2 :         }
    6460             : 
    6461           2 :         void append_013()
    6462             :         {
    6463           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6464           2 :             OString                expVal( aStrBuf.getStr() );
    6465           2 :             sal_Int32              input = -0;
    6466           2 :             sal_Int16              radix = 16;
    6467             : 
    6468           2 :             expVal += OString( "0" );
    6469           2 :             aStrBuf.append( input, radix );
    6470             : 
    6471           4 :             CPPUNIT_ASSERT_MESSAGE
    6472             :             (
    6473             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
    6474             :                 aStrBuf.getStr()== expVal &&
    6475             :                     aStrBuf.getLength() == expVal.getLength()
    6476           4 :             );
    6477             : 
    6478           2 :         }
    6479             : 
    6480           2 :         void append_014()
    6481             :         {
    6482           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6483           2 :             OString                expVal( aStrBuf.getStr() );
    6484           2 :             sal_Int32              input = -4;
    6485           2 :             sal_Int16              radix = 16;
    6486             : 
    6487           2 :             expVal += OString( "-" );
    6488           2 :             expVal += OString( "4" );
    6489           2 :             aStrBuf.append( input, radix );
    6490             : 
    6491           4 :             CPPUNIT_ASSERT_MESSAGE
    6492             :             (
    6493             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
    6494             :                 aStrBuf.getStr()== expVal &&
    6495             :                     aStrBuf.getLength() == expVal.getLength()
    6496           4 :             );
    6497             : 
    6498           2 :         }
    6499             : 
    6500           2 :         void append_015()
    6501             :         {
    6502           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6503           2 :             OString                expVal( aStrBuf.getStr() );
    6504           2 :             sal_Int32              input = -8;
    6505           2 :             sal_Int16              radix = 16;
    6506             : 
    6507           2 :             expVal += OString( "-" );
    6508           2 :             expVal += OString( "8" );
    6509           2 :             aStrBuf.append( input, radix );
    6510             : 
    6511           4 :             CPPUNIT_ASSERT_MESSAGE
    6512             :             (
    6513             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
    6514             :                 aStrBuf.getStr()== expVal &&
    6515             :                     aStrBuf.getLength() == expVal.getLength()
    6516           4 :             );
    6517             : 
    6518           2 :         }
    6519             : 
    6520           2 :         void append_016()
    6521             :         {
    6522           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6523           2 :             OString                expVal( aStrBuf.getStr() );
    6524           2 :             sal_Int32              input = -15;
    6525           2 :             sal_Int16              radix = 16;
    6526             : 
    6527           2 :             expVal += OString( "-" );
    6528           2 :             expVal += OString( "f" );
    6529           2 :             aStrBuf.append( input, radix );
    6530             : 
    6531           4 :             CPPUNIT_ASSERT_MESSAGE
    6532             :             (
    6533             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
    6534             :                 aStrBuf.getStr()== expVal &&
    6535             :                     aStrBuf.getLength() == expVal.getLength()
    6536           4 :             );
    6537             : 
    6538           2 :         }
    6539             : 
    6540           2 :         void append_017()
    6541             :         {
    6542           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6543           2 :             OString                expVal( aStrBuf.getStr() );
    6544           2 :             sal_Int32              input = -0;
    6545           2 :             sal_Int16              radix = 36;
    6546             : 
    6547           2 :             expVal += OString( "0" );
    6548           2 :             aStrBuf.append( input, radix );
    6549             : 
    6550           4 :             CPPUNIT_ASSERT_MESSAGE
    6551             :             (
    6552             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
    6553             :                 aStrBuf.getStr()== expVal &&
    6554             :                     aStrBuf.getLength() == expVal.getLength()
    6555           4 :             );
    6556             : 
    6557           2 :         }
    6558             : 
    6559           2 :         void append_018()
    6560             :         {
    6561           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6562           2 :             OString                expVal( aStrBuf.getStr() );
    6563           2 :             sal_Int32              input = -4;
    6564           2 :             sal_Int16              radix = 36;
    6565             : 
    6566           2 :             expVal += OString( "-" );
    6567           2 :             expVal += OString( "4" );
    6568           2 :             aStrBuf.append( input, radix );
    6569             : 
    6570           4 :             CPPUNIT_ASSERT_MESSAGE
    6571             :             (
    6572             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
    6573             :                 aStrBuf.getStr()== expVal &&
    6574             :                     aStrBuf.getLength() == expVal.getLength()
    6575           4 :             );
    6576             : 
    6577           2 :         }
    6578             : 
    6579           2 :         void append_019()
    6580             :         {
    6581           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6582           2 :             OString                expVal( aStrBuf.getStr() );
    6583           2 :             sal_Int32              input = -8;
    6584           2 :             sal_Int16              radix = 36;
    6585             : 
    6586           2 :             expVal += OString( "-" );
    6587           2 :             expVal += OString( "8" );
    6588           2 :             aStrBuf.append( input, radix );
    6589             : 
    6590           4 :             CPPUNIT_ASSERT_MESSAGE
    6591             :             (
    6592             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
    6593             :                 aStrBuf.getStr()== expVal &&
    6594             :                     aStrBuf.getLength() == expVal.getLength()
    6595           4 :             );
    6596             : 
    6597           2 :         }
    6598             : 
    6599           2 :         void append_020()
    6600             :         {
    6601           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    6602           2 :             OString                expVal( aStrBuf.getStr() );
    6603           2 :             sal_Int32              input = -35;
    6604           2 :             sal_Int16              radix = 36;
    6605             : 
    6606           2 :             expVal += OString( "-" );
    6607           2 :             expVal += OString( "z" );
    6608           2 :             aStrBuf.append( input, radix );
    6609             : 
    6610           4 :             CPPUNIT_ASSERT_MESSAGE
    6611             :             (
    6612             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
    6613             :                 aStrBuf.getStr()== expVal &&
    6614             :                     aStrBuf.getLength() == expVal.getLength()
    6615           4 :             );
    6616             : 
    6617           2 :         }
    6618             : 
    6619           2 :         void append_021()
    6620             :         {
    6621           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6622           2 :             OString                expVal( aStrBuf.getStr() );
    6623           2 :             sal_Int32              input = -0;
    6624           2 :             sal_Int16              radix = 2;
    6625             : 
    6626           2 :             expVal += OString( "0" );
    6627           2 :             aStrBuf.append( input, radix );
    6628             : 
    6629           4 :             CPPUNIT_ASSERT_MESSAGE
    6630             :             (
    6631             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
    6632             :                 aStrBuf.getStr()== expVal &&
    6633             :                     aStrBuf.getLength() == expVal.getLength()
    6634           4 :             );
    6635             : 
    6636           2 :         }
    6637             : 
    6638           2 :         void append_022()
    6639             :         {
    6640           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6641           2 :             OString                expVal( aStrBuf.getStr() );
    6642           2 :             sal_Int32              input = -4;
    6643           2 :             sal_Int16              radix = 2;
    6644             : 
    6645           2 :             expVal += OString( "-" );
    6646           2 :             expVal += OString( "100" );
    6647           2 :             aStrBuf.append( input, radix );
    6648             : 
    6649           4 :             CPPUNIT_ASSERT_MESSAGE
    6650             :             (
    6651             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
    6652             :                 aStrBuf.getStr()== expVal &&
    6653             :                     aStrBuf.getLength() == expVal.getLength()
    6654           4 :             );
    6655             : 
    6656           2 :         }
    6657             : 
    6658           2 :         void append_023()
    6659             :         {
    6660           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6661           2 :             OString                expVal( aStrBuf.getStr() );
    6662           2 :             sal_Int32              input = -8;
    6663           2 :             sal_Int16              radix = 2;
    6664             : 
    6665           2 :             expVal += OString( "-" );
    6666           2 :             expVal += OString( "1000" );
    6667           2 :             aStrBuf.append( input, radix );
    6668             : 
    6669           4 :             CPPUNIT_ASSERT_MESSAGE
    6670             :             (
    6671             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
    6672             :                 aStrBuf.getStr()== expVal &&
    6673             :                     aStrBuf.getLength() == expVal.getLength()
    6674           4 :             );
    6675             : 
    6676           2 :         }
    6677             : 
    6678           2 :         void append_024()
    6679             :         {
    6680           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6681           2 :             OString                expVal( aStrBuf.getStr() );
    6682           2 :             sal_Int32              input = -15;
    6683           2 :             sal_Int16              radix = 2;
    6684             : 
    6685           2 :             expVal += OString( "-" );
    6686           2 :             expVal += OString( "1111" );
    6687           2 :             aStrBuf.append( input, radix );
    6688             : 
    6689           4 :             CPPUNIT_ASSERT_MESSAGE
    6690             :             (
    6691             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
    6692             :                 aStrBuf.getStr()== expVal &&
    6693             :                     aStrBuf.getLength() == expVal.getLength()
    6694           4 :             );
    6695             : 
    6696           2 :         }
    6697             : 
    6698           2 :         void append_025()
    6699             :         {
    6700           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6701           2 :             OString                expVal( aStrBuf.getStr() );
    6702           2 :             sal_Int32              input = -0;
    6703           2 :             sal_Int16              radix = 8;
    6704             : 
    6705           2 :             expVal += OString( "0" );
    6706           2 :             aStrBuf.append( input, radix );
    6707             : 
    6708           4 :             CPPUNIT_ASSERT_MESSAGE
    6709             :             (
    6710             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
    6711             :                 aStrBuf.getStr()== expVal &&
    6712             :                     aStrBuf.getLength() == expVal.getLength()
    6713           4 :             );
    6714             : 
    6715           2 :         }
    6716             : 
    6717           2 :         void append_026()
    6718             :         {
    6719           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6720           2 :             OString                expVal( aStrBuf.getStr() );
    6721           2 :             sal_Int32              input = -4;
    6722           2 :             sal_Int16              radix = 8;
    6723             : 
    6724           2 :             expVal += OString( "-" );
    6725           2 :             expVal += OString( "4" );
    6726           2 :             aStrBuf.append( input, radix );
    6727             : 
    6728           4 :             CPPUNIT_ASSERT_MESSAGE
    6729             :             (
    6730             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
    6731             :                 aStrBuf.getStr()== expVal &&
    6732             :                     aStrBuf.getLength() == expVal.getLength()
    6733           4 :             );
    6734             : 
    6735           2 :         }
    6736             : 
    6737           2 :         void append_027()
    6738             :         {
    6739           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6740           2 :             OString                expVal( aStrBuf.getStr() );
    6741           2 :             sal_Int32              input = -8;
    6742           2 :             sal_Int16              radix = 8;
    6743             : 
    6744           2 :             expVal += OString( "-" );
    6745           2 :             expVal += OString( "10" );
    6746           2 :             aStrBuf.append( input, radix );
    6747             : 
    6748           4 :             CPPUNIT_ASSERT_MESSAGE
    6749             :             (
    6750             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
    6751             :                 aStrBuf.getStr()== expVal &&
    6752             :                     aStrBuf.getLength() == expVal.getLength()
    6753           4 :             );
    6754             : 
    6755           2 :         }
    6756             : 
    6757           2 :         void append_028()
    6758             :         {
    6759           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6760           2 :             OString                expVal( aStrBuf.getStr() );
    6761           2 :             sal_Int32              input = -15;
    6762           2 :             sal_Int16              radix = 8;
    6763             : 
    6764           2 :             expVal += OString( "-" );
    6765           2 :             expVal += OString( "17" );
    6766           2 :             aStrBuf.append( input, radix );
    6767             : 
    6768           4 :             CPPUNIT_ASSERT_MESSAGE
    6769             :             (
    6770             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
    6771             :                 aStrBuf.getStr()== expVal &&
    6772             :                     aStrBuf.getLength() == expVal.getLength()
    6773           4 :             );
    6774             : 
    6775           2 :         }
    6776             : 
    6777           2 :         void append_029()
    6778             :         {
    6779           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6780           2 :             OString                expVal( aStrBuf.getStr() );
    6781           2 :             sal_Int32              input = -0;
    6782           2 :             sal_Int16              radix = 10;
    6783             : 
    6784           2 :             expVal += OString( "0" );
    6785           2 :             aStrBuf.append( input, radix );
    6786             : 
    6787           4 :             CPPUNIT_ASSERT_MESSAGE
    6788             :             (
    6789             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
    6790             :                 aStrBuf.getStr()== expVal &&
    6791             :                     aStrBuf.getLength() == expVal.getLength()
    6792           4 :             );
    6793             : 
    6794           2 :         }
    6795             : 
    6796           2 :         void append_030()
    6797             :         {
    6798           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6799           2 :             OString                expVal( aStrBuf.getStr() );
    6800           2 :             sal_Int32              input = -4;
    6801           2 :             sal_Int16              radix = 10;
    6802             : 
    6803           2 :             expVal += OString( "-" );
    6804           2 :             expVal += OString( "4" );
    6805           2 :             aStrBuf.append( input, radix );
    6806             : 
    6807           4 :             CPPUNIT_ASSERT_MESSAGE
    6808             :             (
    6809             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
    6810             :                 aStrBuf.getStr()== expVal &&
    6811             :                     aStrBuf.getLength() == expVal.getLength()
    6812           4 :             );
    6813             : 
    6814           2 :         }
    6815             : 
    6816           2 :         void append_031()
    6817             :         {
    6818           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6819           2 :             OString                expVal( aStrBuf.getStr() );
    6820           2 :             sal_Int32              input = -8;
    6821           2 :             sal_Int16              radix = 10;
    6822             : 
    6823           2 :             expVal += OString( "-" );
    6824           2 :             expVal += OString( "8" );
    6825           2 :             aStrBuf.append( input, radix );
    6826             : 
    6827           4 :             CPPUNIT_ASSERT_MESSAGE
    6828             :             (
    6829             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
    6830             :                 aStrBuf.getStr()== expVal &&
    6831             :                     aStrBuf.getLength() == expVal.getLength()
    6832           4 :             );
    6833             : 
    6834           2 :         }
    6835             : 
    6836           2 :         void append_032()
    6837             :         {
    6838           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6839           2 :             OString                expVal( aStrBuf.getStr() );
    6840           2 :             sal_Int32              input = -15;
    6841           2 :             sal_Int16              radix = 10;
    6842             : 
    6843           2 :             expVal += OString( "-" );
    6844           2 :             expVal += OString( "15" );
    6845           2 :             aStrBuf.append( input, radix );
    6846             : 
    6847           4 :             CPPUNIT_ASSERT_MESSAGE
    6848             :             (
    6849             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
    6850             :                 aStrBuf.getStr()== expVal &&
    6851             :                     aStrBuf.getLength() == expVal.getLength()
    6852           4 :             );
    6853             : 
    6854           2 :         }
    6855             : 
    6856           2 :         void append_033()
    6857             :         {
    6858           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6859           2 :             OString                expVal( aStrBuf.getStr() );
    6860           2 :             sal_Int32              input = -0;
    6861           2 :             sal_Int16              radix = 16;
    6862             : 
    6863           2 :             expVal += OString( "0" );
    6864           2 :             aStrBuf.append( input, radix );
    6865             : 
    6866           4 :             CPPUNIT_ASSERT_MESSAGE
    6867             :             (
    6868             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
    6869             :                 aStrBuf.getStr()== expVal &&
    6870             :                     aStrBuf.getLength() == expVal.getLength()
    6871           4 :             );
    6872             : 
    6873           2 :         }
    6874             : 
    6875           2 :         void append_034()
    6876             :         {
    6877           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6878           2 :             OString                expVal( aStrBuf.getStr() );
    6879           2 :             sal_Int32              input = -4;
    6880           2 :             sal_Int16              radix = 16;
    6881             : 
    6882           2 :             expVal += OString( "-" );
    6883           2 :             expVal += OString( "4" );
    6884           2 :             aStrBuf.append( input, radix );
    6885             : 
    6886           4 :             CPPUNIT_ASSERT_MESSAGE
    6887             :             (
    6888             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
    6889             :                 aStrBuf.getStr()== expVal &&
    6890             :                     aStrBuf.getLength() == expVal.getLength()
    6891           4 :             );
    6892             : 
    6893           2 :         }
    6894             : 
    6895           2 :         void append_035()
    6896             :         {
    6897           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6898           2 :             OString                expVal( aStrBuf.getStr() );
    6899           2 :             sal_Int32              input = -8;
    6900           2 :             sal_Int16              radix = 16;
    6901             : 
    6902           2 :             expVal += OString( "-" );
    6903           2 :             expVal += OString( "8" );
    6904           2 :             aStrBuf.append( input, radix );
    6905             : 
    6906           4 :             CPPUNIT_ASSERT_MESSAGE
    6907             :             (
    6908             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
    6909             :                 aStrBuf.getStr()== expVal &&
    6910             :                     aStrBuf.getLength() == expVal.getLength()
    6911           4 :             );
    6912             : 
    6913           2 :         }
    6914             : 
    6915           2 :         void append_036()
    6916             :         {
    6917           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6918           2 :             OString                expVal( aStrBuf.getStr() );
    6919           2 :             sal_Int32              input = -15;
    6920           2 :             sal_Int16              radix = 16;
    6921             : 
    6922           2 :             expVal += OString( "-" );
    6923           2 :             expVal += OString( "f" );
    6924           2 :             aStrBuf.append( input, radix );
    6925             : 
    6926           4 :             CPPUNIT_ASSERT_MESSAGE
    6927             :             (
    6928             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
    6929             :                 aStrBuf.getStr()== expVal &&
    6930             :                     aStrBuf.getLength() == expVal.getLength()
    6931           4 :             );
    6932             : 
    6933           2 :         }
    6934             : 
    6935           2 :         void append_037()
    6936             :         {
    6937           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6938           2 :             OString                expVal( aStrBuf.getStr() );
    6939           2 :             sal_Int32              input = -0;
    6940           2 :             sal_Int16              radix = 36;
    6941             : 
    6942           2 :             expVal += OString( "0" );
    6943           2 :             aStrBuf.append( input, radix );
    6944             : 
    6945           4 :             CPPUNIT_ASSERT_MESSAGE
    6946             :             (
    6947             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
    6948             :                 aStrBuf.getStr()== expVal &&
    6949             :                     aStrBuf.getLength() == expVal.getLength()
    6950           4 :             );
    6951             : 
    6952           2 :         }
    6953             : 
    6954           2 :         void append_038()
    6955             :         {
    6956           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6957           2 :             OString                expVal( aStrBuf.getStr() );
    6958           2 :             sal_Int32              input = -4;
    6959           2 :             sal_Int16              radix = 36;
    6960             : 
    6961           2 :             expVal += OString( "-" );
    6962           2 :             expVal += OString( "4" );
    6963           2 :             aStrBuf.append( input, radix );
    6964             : 
    6965           4 :             CPPUNIT_ASSERT_MESSAGE
    6966             :             (
    6967             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
    6968             :                 aStrBuf.getStr()== expVal &&
    6969             :                     aStrBuf.getLength() == expVal.getLength()
    6970           4 :             );
    6971             : 
    6972           2 :         }
    6973             : 
    6974           2 :         void append_039()
    6975             :         {
    6976           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6977           2 :             OString                expVal( aStrBuf.getStr() );
    6978           2 :             sal_Int32              input = -8;
    6979           2 :             sal_Int16              radix = 36;
    6980             : 
    6981           2 :             expVal += OString( "-" );
    6982           2 :             expVal += OString( "8" );
    6983           2 :             aStrBuf.append( input, radix );
    6984             : 
    6985           4 :             CPPUNIT_ASSERT_MESSAGE
    6986             :             (
    6987             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
    6988             :                 aStrBuf.getStr()== expVal &&
    6989             :                     aStrBuf.getLength() == expVal.getLength()
    6990           4 :             );
    6991             : 
    6992           2 :         }
    6993             : 
    6994           2 :         void append_040()
    6995             :         {
    6996           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    6997           2 :             OString                expVal( aStrBuf.getStr() );
    6998           2 :             sal_Int32              input = -35;
    6999           2 :             sal_Int16              radix = 36;
    7000             : 
    7001           2 :             expVal += OString( "-" );
    7002           2 :             expVal += OString( "z" );
    7003           2 :             aStrBuf.append( input, radix );
    7004             : 
    7005           4 :             CPPUNIT_ASSERT_MESSAGE
    7006             :             (
    7007             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
    7008             :                 aStrBuf.getStr()== expVal &&
    7009             :                     aStrBuf.getLength() == expVal.getLength()
    7010           4 :             );
    7011             : 
    7012           2 :         }
    7013             : 
    7014           2 :         void append_041()
    7015             :         {
    7016           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7017           2 :             OString                expVal( aStrBuf.getStr() );
    7018           2 :             sal_Int32              input = -0;
    7019           2 :             sal_Int16              radix = 2;
    7020             : 
    7021           2 :             expVal += OString( "0" );
    7022           2 :             aStrBuf.append( input, radix );
    7023             : 
    7024           4 :             CPPUNIT_ASSERT_MESSAGE
    7025             :             (
    7026             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
    7027             :                 aStrBuf.getStr()== expVal &&
    7028             :                     aStrBuf.getLength() == expVal.getLength()
    7029           4 :             );
    7030             : 
    7031           2 :         }
    7032             : 
    7033           2 :         void append_042()
    7034             :         {
    7035           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7036           2 :             OString                expVal( aStrBuf.getStr() );
    7037           2 :             sal_Int32              input = -4;
    7038           2 :             sal_Int16              radix = 2;
    7039             : 
    7040           2 :             expVal += OString( "-" );
    7041           2 :             expVal += OString( "100" );
    7042           2 :             aStrBuf.append( input, radix );
    7043             : 
    7044           4 :             CPPUNIT_ASSERT_MESSAGE
    7045             :             (
    7046             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
    7047             :                 aStrBuf.getStr()== expVal &&
    7048             :                     aStrBuf.getLength() == expVal.getLength()
    7049           4 :             );
    7050             : 
    7051           2 :         }
    7052             : 
    7053           2 :         void append_043()
    7054             :         {
    7055           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7056           2 :             OString                expVal( aStrBuf.getStr() );
    7057           2 :             sal_Int32              input = -8;
    7058           2 :             sal_Int16              radix = 2;
    7059             : 
    7060           2 :             expVal += OString( "-" );
    7061           2 :             expVal += OString( "1000" );
    7062           2 :             aStrBuf.append( input, radix );
    7063             : 
    7064           4 :             CPPUNIT_ASSERT_MESSAGE
    7065             :             (
    7066             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
    7067             :                 aStrBuf.getStr()== expVal &&
    7068             :                     aStrBuf.getLength() == expVal.getLength()
    7069           4 :             );
    7070             : 
    7071           2 :         }
    7072             : 
    7073           2 :         void append_044()
    7074             :         {
    7075           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7076           2 :             OString                expVal( aStrBuf.getStr() );
    7077           2 :             sal_Int32              input = -15;
    7078           2 :             sal_Int16              radix = 2;
    7079             : 
    7080           2 :             expVal += OString( "-" );
    7081           2 :             expVal += OString( "1111" );
    7082           2 :             aStrBuf.append( input, radix );
    7083             : 
    7084           4 :             CPPUNIT_ASSERT_MESSAGE
    7085             :             (
    7086             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
    7087             :                 aStrBuf.getStr()== expVal &&
    7088             :                     aStrBuf.getLength() == expVal.getLength()
    7089           4 :             );
    7090             : 
    7091           2 :         }
    7092             : 
    7093           2 :         void append_045()
    7094             :         {
    7095           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7096           2 :             OString                expVal( aStrBuf.getStr() );
    7097           2 :             sal_Int32              input = -0;
    7098           2 :             sal_Int16              radix = 8;
    7099             : 
    7100           2 :             expVal += OString( "0" );
    7101           2 :             aStrBuf.append( input, radix );
    7102             : 
    7103           4 :             CPPUNIT_ASSERT_MESSAGE
    7104             :             (
    7105             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
    7106             :                 aStrBuf.getStr()== expVal &&
    7107             :                     aStrBuf.getLength() == expVal.getLength()
    7108           4 :             );
    7109             : 
    7110           2 :         }
    7111             : 
    7112           2 :         void append_046()
    7113             :         {
    7114           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7115           2 :             OString                expVal( aStrBuf.getStr() );
    7116           2 :             sal_Int32              input = -4;
    7117           2 :             sal_Int16              radix = 8;
    7118             : 
    7119           2 :             expVal += OString( "-" );
    7120           2 :             expVal += OString( "4" );
    7121           2 :             aStrBuf.append( input, radix );
    7122             : 
    7123           4 :             CPPUNIT_ASSERT_MESSAGE
    7124             :             (
    7125             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
    7126             :                 aStrBuf.getStr()== expVal &&
    7127             :                     aStrBuf.getLength() == expVal.getLength()
    7128           4 :             );
    7129             : 
    7130           2 :         }
    7131             : 
    7132           2 :         void append_047()
    7133             :         {
    7134           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7135           2 :             OString                expVal( aStrBuf.getStr() );
    7136           2 :             sal_Int32              input = -8;
    7137           2 :             sal_Int16              radix = 8;
    7138             : 
    7139           2 :             expVal += OString( "-" );
    7140           2 :             expVal += OString( "10" );
    7141           2 :             aStrBuf.append( input, radix );
    7142             : 
    7143           4 :             CPPUNIT_ASSERT_MESSAGE
    7144             :             (
    7145             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
    7146             :                 aStrBuf.getStr()== expVal &&
    7147             :                     aStrBuf.getLength() == expVal.getLength()
    7148           4 :             );
    7149             : 
    7150           2 :         }
    7151             : 
    7152           2 :         void append_048()
    7153             :         {
    7154           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7155           2 :             OString                expVal( aStrBuf.getStr() );
    7156           2 :             sal_Int32              input = -15;
    7157           2 :             sal_Int16              radix = 8;
    7158             : 
    7159           2 :             expVal += OString( "-" );
    7160           2 :             expVal += OString( "17" );
    7161           2 :             aStrBuf.append( input, radix );
    7162             : 
    7163           4 :             CPPUNIT_ASSERT_MESSAGE
    7164             :             (
    7165             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
    7166             :                 aStrBuf.getStr()== expVal &&
    7167             :                     aStrBuf.getLength() == expVal.getLength()
    7168           4 :             );
    7169             : 
    7170           2 :         }
    7171             : 
    7172           2 :         void append_049()
    7173             :         {
    7174           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7175           2 :             OString                expVal( aStrBuf.getStr() );
    7176           2 :             sal_Int32              input = -0;
    7177           2 :             sal_Int16              radix = 10;
    7178             : 
    7179           2 :             expVal += OString( "0" );
    7180           2 :             aStrBuf.append( input, radix );
    7181             : 
    7182           4 :             CPPUNIT_ASSERT_MESSAGE
    7183             :             (
    7184             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
    7185             :                 aStrBuf.getStr()== expVal &&
    7186             :                     aStrBuf.getLength() == expVal.getLength()
    7187           4 :             );
    7188             : 
    7189           2 :         }
    7190             : 
    7191           2 :         void append_050()
    7192             :         {
    7193           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7194           2 :             OString                expVal( aStrBuf.getStr() );
    7195           2 :             sal_Int32              input = -4;
    7196           2 :             sal_Int16              radix = 10;
    7197             : 
    7198           2 :             expVal += OString( "-" );
    7199           2 :             expVal += OString( "4" );
    7200           2 :             aStrBuf.append( input, radix );
    7201             : 
    7202           4 :             CPPUNIT_ASSERT_MESSAGE
    7203             :             (
    7204             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
    7205             :                 aStrBuf.getStr()== expVal &&
    7206             :                     aStrBuf.getLength() == expVal.getLength()
    7207           4 :             );
    7208             : 
    7209           2 :         }
    7210             : 
    7211           2 :         void append_051()
    7212             :         {
    7213           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7214           2 :             OString                expVal( aStrBuf.getStr() );
    7215           2 :             sal_Int32              input = -8;
    7216           2 :             sal_Int16              radix = 10;
    7217             : 
    7218           2 :             expVal += OString( "-" );
    7219           2 :             expVal += OString( "8" );
    7220           2 :             aStrBuf.append( input, radix );
    7221             : 
    7222           4 :             CPPUNIT_ASSERT_MESSAGE
    7223             :             (
    7224             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
    7225             :                 aStrBuf.getStr()== expVal &&
    7226             :                     aStrBuf.getLength() == expVal.getLength()
    7227           4 :             );
    7228             : 
    7229           2 :         }
    7230             : 
    7231           2 :         void append_052()
    7232             :         {
    7233           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7234           2 :             OString                expVal( aStrBuf.getStr() );
    7235           2 :             sal_Int32              input = -15;
    7236           2 :             sal_Int16              radix = 10;
    7237             : 
    7238           2 :             expVal += OString( "-" );
    7239           2 :             expVal += OString( "15" );
    7240           2 :             aStrBuf.append( input, radix );
    7241             : 
    7242           4 :             CPPUNIT_ASSERT_MESSAGE
    7243             :             (
    7244             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
    7245             :                 aStrBuf.getStr()== expVal &&
    7246             :                     aStrBuf.getLength() == expVal.getLength()
    7247           4 :             );
    7248             : 
    7249           2 :         }
    7250             : 
    7251           2 :         void append_053()
    7252             :         {
    7253           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7254           2 :             OString                expVal( aStrBuf.getStr() );
    7255           2 :             sal_Int32              input = -0;
    7256           2 :             sal_Int16              radix = 16;
    7257             : 
    7258           2 :             expVal += OString( "0" );
    7259           2 :             aStrBuf.append( input, radix );
    7260             : 
    7261           4 :             CPPUNIT_ASSERT_MESSAGE
    7262             :             (
    7263             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
    7264             :                 aStrBuf.getStr()== expVal &&
    7265             :                     aStrBuf.getLength() == expVal.getLength()
    7266           4 :             );
    7267             : 
    7268           2 :         }
    7269             : 
    7270           2 :         void append_054()
    7271             :         {
    7272           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7273           2 :             OString                expVal( aStrBuf.getStr() );
    7274           2 :             sal_Int32              input = -4;
    7275           2 :             sal_Int16              radix = 16;
    7276             : 
    7277           2 :             expVal += OString( "-" );
    7278           2 :             expVal += OString( "4" );
    7279           2 :             aStrBuf.append( input, radix );
    7280             : 
    7281           4 :             CPPUNIT_ASSERT_MESSAGE
    7282             :             (
    7283             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
    7284             :                 aStrBuf.getStr()== expVal &&
    7285             :                     aStrBuf.getLength() == expVal.getLength()
    7286           4 :             );
    7287             : 
    7288           2 :         }
    7289             : 
    7290           2 :         void append_055()
    7291             :         {
    7292           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7293           2 :             OString                expVal( aStrBuf.getStr() );
    7294           2 :             sal_Int32              input = -8;
    7295           2 :             sal_Int16              radix = 16;
    7296             : 
    7297           2 :             expVal += OString( "-" );
    7298           2 :             expVal += OString( "8" );
    7299           2 :             aStrBuf.append( input, radix );
    7300             : 
    7301           4 :             CPPUNIT_ASSERT_MESSAGE
    7302             :             (
    7303             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
    7304             :                 aStrBuf.getStr()== expVal &&
    7305             :                     aStrBuf.getLength() == expVal.getLength()
    7306           4 :             );
    7307             : 
    7308           2 :         }
    7309             : 
    7310           2 :         void append_056()
    7311             :         {
    7312           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7313           2 :             OString                expVal( aStrBuf.getStr() );
    7314           2 :             sal_Int32              input = -15;
    7315           2 :             sal_Int16              radix = 16;
    7316             : 
    7317           2 :             expVal += OString( "-" );
    7318           2 :             expVal += OString( "f" );
    7319           2 :             aStrBuf.append( input, radix );
    7320             : 
    7321           4 :             CPPUNIT_ASSERT_MESSAGE
    7322             :             (
    7323             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
    7324             :                 aStrBuf.getStr()== expVal &&
    7325             :                     aStrBuf.getLength() == expVal.getLength()
    7326           4 :             );
    7327             : 
    7328           2 :         }
    7329             : 
    7330           2 :         void append_057()
    7331             :         {
    7332           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7333           2 :             OString                expVal( aStrBuf.getStr() );
    7334           2 :             sal_Int32              input = -0;
    7335           2 :             sal_Int16              radix = 36;
    7336             : 
    7337           2 :             expVal += OString( "0" );
    7338           2 :             aStrBuf.append( input, radix );
    7339             : 
    7340           4 :             CPPUNIT_ASSERT_MESSAGE
    7341             :             (
    7342             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
    7343             :                 aStrBuf.getStr()== expVal &&
    7344             :                     aStrBuf.getLength() == expVal.getLength()
    7345           4 :             );
    7346             : 
    7347           2 :         }
    7348             : 
    7349           2 :         void append_058()
    7350             :         {
    7351           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7352           2 :             OString                expVal( aStrBuf.getStr() );
    7353           2 :             sal_Int32              input = -4;
    7354           2 :             sal_Int16              radix = 36;
    7355             : 
    7356           2 :             expVal += OString( "-" );
    7357           2 :             expVal += OString( "4" );
    7358           2 :             aStrBuf.append( input, radix );
    7359             : 
    7360           4 :             CPPUNIT_ASSERT_MESSAGE
    7361             :             (
    7362             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
    7363             :                 aStrBuf.getStr()== expVal &&
    7364             :                     aStrBuf.getLength() == expVal.getLength()
    7365           4 :             );
    7366             : 
    7367           2 :         }
    7368             : 
    7369           2 :         void append_059()
    7370             :         {
    7371           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7372           2 :             OString                expVal( aStrBuf.getStr() );
    7373           2 :             sal_Int32              input = -8;
    7374           2 :             sal_Int16              radix = 36;
    7375             : 
    7376           2 :             expVal += OString( "-" );
    7377           2 :             expVal += OString( "8" );
    7378           2 :             aStrBuf.append( input, radix );
    7379             : 
    7380           4 :             CPPUNIT_ASSERT_MESSAGE
    7381             :             (
    7382             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
    7383             :                 aStrBuf.getStr()== expVal &&
    7384             :                     aStrBuf.getLength() == expVal.getLength()
    7385           4 :             );
    7386             : 
    7387           2 :         }
    7388             : 
    7389           2 :         void append_060()
    7390             :         {
    7391           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    7392           2 :             OString                expVal( aStrBuf.getStr() );
    7393           2 :             sal_Int32              input = -35;
    7394           2 :             sal_Int16              radix = 36;
    7395             : 
    7396           2 :             expVal += OString( "-" );
    7397           2 :             expVal += OString( "z" );
    7398           2 :             aStrBuf.append( input, radix );
    7399             : 
    7400           4 :             CPPUNIT_ASSERT_MESSAGE
    7401             :             (
    7402             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
    7403             :                 aStrBuf.getStr()== expVal &&
    7404             :                     aStrBuf.getLength() == expVal.getLength()
    7405           4 :             );
    7406             : 
    7407           2 :         }
    7408             : 
    7409           2 :         void append_061()
    7410             :         {
    7411           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7412           2 :             OString                expVal( aStrBuf.getStr() );
    7413           2 :             sal_Int32              input = -0;
    7414           2 :             sal_Int16              radix = 2;
    7415             : 
    7416           2 :             expVal += OString( "0" );
    7417           2 :             aStrBuf.append( input, radix );
    7418             : 
    7419           4 :             CPPUNIT_ASSERT_MESSAGE
    7420             :             (
    7421             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
    7422             :                 aStrBuf.getStr()== expVal &&
    7423             :                     aStrBuf.getLength() == expVal.getLength()
    7424           4 :             );
    7425             : 
    7426           2 :         }
    7427             : 
    7428           2 :         void append_062()
    7429             :         {
    7430           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7431           2 :             OString                expVal( aStrBuf.getStr() );
    7432           2 :             sal_Int32              input = -4;
    7433           2 :             sal_Int16              radix = 2;
    7434             : 
    7435           2 :             expVal += OString( "-" );
    7436           2 :             expVal += OString( "100" );
    7437           2 :             aStrBuf.append( input, radix );
    7438             : 
    7439           4 :             CPPUNIT_ASSERT_MESSAGE
    7440             :             (
    7441             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
    7442             :                 aStrBuf.getStr()== expVal &&
    7443             :                     aStrBuf.getLength() == expVal.getLength()
    7444           4 :             );
    7445             : 
    7446           2 :         }
    7447             : 
    7448           2 :         void append_063()
    7449             :         {
    7450           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7451           2 :             OString                expVal( aStrBuf.getStr() );
    7452           2 :             sal_Int32              input = -8;
    7453           2 :             sal_Int16              radix = 2;
    7454             : 
    7455           2 :             expVal += OString( "-" );
    7456           2 :             expVal += OString( "1000" );
    7457           2 :             aStrBuf.append( input, radix );
    7458             : 
    7459           4 :             CPPUNIT_ASSERT_MESSAGE
    7460             :             (
    7461             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
    7462             :                 aStrBuf.getStr()== expVal &&
    7463             :                     aStrBuf.getLength() == expVal.getLength()
    7464           4 :             );
    7465             : 
    7466           2 :         }
    7467             : 
    7468           2 :         void append_064()
    7469             :         {
    7470           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7471           2 :             OString                expVal( aStrBuf.getStr() );
    7472           2 :             sal_Int32              input = -15;
    7473           2 :             sal_Int16              radix = 2;
    7474             : 
    7475           2 :             expVal += OString( "-" );
    7476           2 :             expVal += OString( "1111" );
    7477           2 :             aStrBuf.append( input, radix );
    7478             : 
    7479           4 :             CPPUNIT_ASSERT_MESSAGE
    7480             :             (
    7481             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
    7482             :                 aStrBuf.getStr()== expVal &&
    7483             :                     aStrBuf.getLength() == expVal.getLength()
    7484           4 :             );
    7485             : 
    7486           2 :         }
    7487             : 
    7488           2 :         void append_065()
    7489             :         {
    7490           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7491           2 :             OString                expVal( aStrBuf.getStr() );
    7492           2 :             sal_Int32              input = -0;
    7493           2 :             sal_Int16              radix = 8;
    7494             : 
    7495           2 :             expVal += OString( "0" );
    7496           2 :             aStrBuf.append( input, radix );
    7497             : 
    7498           4 :             CPPUNIT_ASSERT_MESSAGE
    7499             :             (
    7500             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
    7501             :                 aStrBuf.getStr()== expVal &&
    7502             :                     aStrBuf.getLength() == expVal.getLength()
    7503           4 :             );
    7504             : 
    7505           2 :         }
    7506             : 
    7507           2 :         void append_066()
    7508             :         {
    7509           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7510           2 :             OString                expVal( aStrBuf.getStr() );
    7511           2 :             sal_Int32              input = -4;
    7512           2 :             sal_Int16              radix = 8;
    7513             : 
    7514           2 :             expVal += OString( "-" );
    7515           2 :             expVal += OString( "4" );
    7516           2 :             aStrBuf.append( input, radix );
    7517             : 
    7518           4 :             CPPUNIT_ASSERT_MESSAGE
    7519             :             (
    7520             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
    7521             :                 aStrBuf.getStr()== expVal &&
    7522             :                     aStrBuf.getLength() == expVal.getLength()
    7523           4 :             );
    7524             : 
    7525           2 :         }
    7526             : 
    7527           2 :         void append_067()
    7528             :         {
    7529           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7530           2 :             OString                expVal( aStrBuf.getStr() );
    7531           2 :             sal_Int32              input = -8;
    7532           2 :             sal_Int16              radix = 8;
    7533             : 
    7534           2 :             expVal += OString( "-" );
    7535           2 :             expVal += OString( "10" );
    7536           2 :             aStrBuf.append( input, radix );
    7537             : 
    7538           4 :             CPPUNIT_ASSERT_MESSAGE
    7539             :             (
    7540             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
    7541             :                 aStrBuf.getStr()== expVal &&
    7542             :                     aStrBuf.getLength() == expVal.getLength()
    7543           4 :             );
    7544             : 
    7545           2 :         }
    7546             : 
    7547           2 :         void append_068()
    7548             :         {
    7549           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7550           2 :             OString                expVal( aStrBuf.getStr() );
    7551           2 :             sal_Int32              input = -15;
    7552           2 :             sal_Int16              radix = 8;
    7553             : 
    7554           2 :             expVal += OString( "-" );
    7555           2 :             expVal += OString( "17" );
    7556           2 :             aStrBuf.append( input, radix );
    7557             : 
    7558           4 :             CPPUNIT_ASSERT_MESSAGE
    7559             :             (
    7560             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
    7561             :                 aStrBuf.getStr()== expVal &&
    7562             :                     aStrBuf.getLength() == expVal.getLength()
    7563           4 :             );
    7564             : 
    7565           2 :         }
    7566             : 
    7567           2 :         void append_069()
    7568             :         {
    7569           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7570           2 :             OString                expVal( aStrBuf.getStr() );
    7571           2 :             sal_Int32              input = -0;
    7572           2 :             sal_Int16              radix = 10;
    7573             : 
    7574           2 :             expVal += OString( "0" );
    7575           2 :             aStrBuf.append( input, radix );
    7576             : 
    7577           4 :             CPPUNIT_ASSERT_MESSAGE
    7578             :             (
    7579             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
    7580             :                 aStrBuf.getStr()== expVal &&
    7581             :                     aStrBuf.getLength() == expVal.getLength()
    7582           4 :             );
    7583             : 
    7584           2 :         }
    7585             : 
    7586           2 :         void append_070()
    7587             :         {
    7588           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7589           2 :             OString                expVal( aStrBuf.getStr() );
    7590           2 :             sal_Int32              input = -4;
    7591           2 :             sal_Int16              radix = 10;
    7592             : 
    7593           2 :             expVal += OString( "-" );
    7594           2 :             expVal += OString( "4" );
    7595           2 :             aStrBuf.append( input, radix );
    7596             : 
    7597           4 :             CPPUNIT_ASSERT_MESSAGE
    7598             :             (
    7599             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
    7600             :                 aStrBuf.getStr()== expVal &&
    7601             :                     aStrBuf.getLength() == expVal.getLength()
    7602           4 :             );
    7603             : 
    7604           2 :         }
    7605             : 
    7606           2 :         void append_071()
    7607             :         {
    7608           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7609           2 :             OString                expVal( aStrBuf.getStr() );
    7610           2 :             sal_Int32              input = -8;
    7611           2 :             sal_Int16              radix = 10;
    7612             : 
    7613           2 :             expVal += OString( "-" );
    7614           2 :             expVal += OString( "8" );
    7615           2 :             aStrBuf.append( input, radix );
    7616             : 
    7617           4 :             CPPUNIT_ASSERT_MESSAGE
    7618             :             (
    7619             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
    7620             :                 aStrBuf.getStr()== expVal &&
    7621             :                     aStrBuf.getLength() == expVal.getLength()
    7622           4 :             );
    7623             : 
    7624           2 :         }
    7625             : 
    7626           2 :         void append_072()
    7627             :         {
    7628           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7629           2 :             OString                expVal( aStrBuf.getStr() );
    7630           2 :             sal_Int32              input = -15;
    7631           2 :             sal_Int16              radix = 10;
    7632             : 
    7633           2 :             expVal += OString( "-" );
    7634           2 :             expVal += OString( "15" );
    7635           2 :             aStrBuf.append( input, radix );
    7636             : 
    7637           4 :             CPPUNIT_ASSERT_MESSAGE
    7638             :             (
    7639             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
    7640             :                 aStrBuf.getStr()== expVal &&
    7641             :                     aStrBuf.getLength() == expVal.getLength()
    7642           4 :             );
    7643             : 
    7644           2 :         }
    7645             : 
    7646           2 :         void append_073()
    7647             :         {
    7648           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7649           2 :             OString                expVal( aStrBuf.getStr() );
    7650           2 :             sal_Int32              input = -0;
    7651           2 :             sal_Int16              radix = 16;
    7652             : 
    7653           2 :             expVal += OString( "0" );
    7654           2 :             aStrBuf.append( input, radix );
    7655             : 
    7656           4 :             CPPUNIT_ASSERT_MESSAGE
    7657             :             (
    7658             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
    7659             :                 aStrBuf.getStr()== expVal &&
    7660             :                     aStrBuf.getLength() == expVal.getLength()
    7661           4 :             );
    7662             : 
    7663           2 :         }
    7664             : 
    7665           2 :         void append_074()
    7666             :         {
    7667           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7668           2 :             OString                expVal( aStrBuf.getStr() );
    7669           2 :             sal_Int32              input = -4;
    7670           2 :             sal_Int16              radix = 16;
    7671             : 
    7672           2 :             expVal += OString( "-" );
    7673           2 :             expVal += OString( "4" );
    7674           2 :             aStrBuf.append( input, radix );
    7675             : 
    7676           4 :             CPPUNIT_ASSERT_MESSAGE
    7677             :             (
    7678             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
    7679             :                 aStrBuf.getStr()== expVal &&
    7680             :                     aStrBuf.getLength() == expVal.getLength()
    7681           4 :             );
    7682             : 
    7683           2 :         }
    7684             : 
    7685           2 :         void append_075()
    7686             :         {
    7687           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7688           2 :             OString                expVal( aStrBuf.getStr() );
    7689           2 :             sal_Int32              input = -8;
    7690           2 :             sal_Int16              radix = 16;
    7691             : 
    7692           2 :             expVal += OString( "-" );
    7693           2 :             expVal += OString( "8" );
    7694           2 :             aStrBuf.append( input, radix );
    7695             : 
    7696           4 :             CPPUNIT_ASSERT_MESSAGE
    7697             :             (
    7698             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
    7699             :                 aStrBuf.getStr()== expVal &&
    7700             :                     aStrBuf.getLength() == expVal.getLength()
    7701           4 :             );
    7702             : 
    7703           2 :         }
    7704             : 
    7705           2 :         void append_076()
    7706             :         {
    7707           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7708           2 :             OString                expVal( aStrBuf.getStr() );
    7709           2 :             sal_Int32              input = -15;
    7710           2 :             sal_Int16              radix = 16;
    7711             : 
    7712           2 :             expVal += OString( "-" );
    7713           2 :             expVal += OString( "f" );
    7714           2 :             aStrBuf.append( input, radix );
    7715             : 
    7716           4 :             CPPUNIT_ASSERT_MESSAGE
    7717             :             (
    7718             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
    7719             :                 aStrBuf.getStr()== expVal &&
    7720             :                     aStrBuf.getLength() == expVal.getLength()
    7721           4 :             );
    7722             : 
    7723           2 :         }
    7724             : 
    7725           2 :         void append_077()
    7726             :         {
    7727           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7728           2 :             OString                expVal( aStrBuf.getStr() );
    7729           2 :             sal_Int32              input = -0;
    7730           2 :             sal_Int16              radix = 36;
    7731             : 
    7732           2 :             expVal += OString( "0" );
    7733           2 :             aStrBuf.append( input, radix );
    7734             : 
    7735           4 :             CPPUNIT_ASSERT_MESSAGE
    7736             :             (
    7737             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
    7738             :                 aStrBuf.getStr()== expVal &&
    7739             :                     aStrBuf.getLength() == expVal.getLength()
    7740           4 :             );
    7741             : 
    7742           2 :         }
    7743             : 
    7744           2 :         void append_078()
    7745             :         {
    7746           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7747           2 :             OString                expVal( aStrBuf.getStr() );
    7748           2 :             sal_Int32              input = -4;
    7749           2 :             sal_Int16              radix = 36;
    7750             : 
    7751           2 :             expVal += OString( "-" );
    7752           2 :             expVal += OString( "4" );
    7753           2 :             aStrBuf.append( input, radix );
    7754             : 
    7755           4 :             CPPUNIT_ASSERT_MESSAGE
    7756             :             (
    7757             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
    7758             :                 aStrBuf.getStr()== expVal &&
    7759             :                     aStrBuf.getLength() == expVal.getLength()
    7760           4 :             );
    7761             : 
    7762           2 :         }
    7763             : 
    7764           2 :         void append_079()
    7765             :         {
    7766           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7767           2 :             OString                expVal( aStrBuf.getStr() );
    7768           2 :             sal_Int32              input = -8;
    7769           2 :             sal_Int16              radix = 36;
    7770             : 
    7771           2 :             expVal += OString( "-" );
    7772           2 :             expVal += OString( "8" );
    7773           2 :             aStrBuf.append( input, radix );
    7774             : 
    7775           4 :             CPPUNIT_ASSERT_MESSAGE
    7776             :             (
    7777             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
    7778             :                 aStrBuf.getStr()== expVal &&
    7779             :                     aStrBuf.getLength() == expVal.getLength()
    7780           4 :             );
    7781             : 
    7782           2 :         }
    7783             : 
    7784           2 :         void append_080()
    7785             :         {
    7786           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    7787           2 :             OString                expVal( aStrBuf.getStr() );
    7788           2 :             sal_Int32              input = -35;
    7789           2 :             sal_Int16              radix = 36;
    7790             : 
    7791           2 :             expVal += OString( "-" );
    7792           2 :             expVal += OString( "z" );
    7793           2 :             aStrBuf.append( input, radix );
    7794             : 
    7795           4 :             CPPUNIT_ASSERT_MESSAGE
    7796             :             (
    7797             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
    7798             :                 aStrBuf.getStr()== expVal &&
    7799             :                     aStrBuf.getLength() == expVal.getLength()
    7800           4 :             );
    7801             : 
    7802           2 :         }
    7803             : 
    7804           2 :         void append_081()
    7805             :         {
    7806           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    7807           2 :             OString                expVal( aStrBuf.getStr() );
    7808           2 :             sal_Int32              input = -0;
    7809           2 :             sal_Int16              radix = 2;
    7810             : 
    7811           2 :             expVal += OString( "0" );
    7812           2 :             aStrBuf.append( input, radix );
    7813             : 
    7814           4 :             CPPUNIT_ASSERT_MESSAGE
    7815             :             (
    7816             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
    7817             :                 aStrBuf.getStr()== expVal &&
    7818             :                     aStrBuf.getLength() == expVal.getLength()
    7819           4 :             );
    7820             : 
    7821           2 :         }
    7822             : 
    7823           2 :         void append_082()
    7824             :         {
    7825           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    7826           2 :             OString                expVal( aStrBuf.getStr() );
    7827           2 :             sal_Int32              input = -4;
    7828           2 :             sal_Int16              radix = 2;
    7829             : 
    7830           2 :             expVal += OString( "-" );
    7831           2 :             expVal += OString( "100" );
    7832           2 :             aStrBuf.append( input, radix );
    7833             : 
    7834           4 :             CPPUNIT_ASSERT_MESSAGE
    7835             :             (
    7836             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
    7837             :                 aStrBuf.getStr()== expVal &&
    7838             :                     aStrBuf.getLength() == expVal.getLength()
    7839           4 :             );
    7840             : 
    7841           2 :         }
    7842             : 
    7843           2 :         void append_083()
    7844             :         {
    7845           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    7846           2 :             OString                expVal( aStrBuf.getStr() );
    7847           2 :             sal_Int32              input = -8;
    7848           2 :             sal_Int16              radix = 2;
    7849             : 
    7850           2 :             expVal += OString( "-" );
    7851           2 :             expVal += OString( "1000" );
    7852           2 :             aStrBuf.append( input, radix );
    7853             : 
    7854           4 :             CPPUNIT_ASSERT_MESSAGE
    7855             :             (
    7856             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
    7857             :                 aStrBuf.getStr()== expVal &&
    7858             :                     aStrBuf.getLength() == expVal.getLength()
    7859           4 :             );
    7860             : 
    7861           2 :         }
    7862             : 
    7863           2 :         void append_084()
    7864             :         {
    7865           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    7866           2 :             OString                expVal( aStrBuf.getStr() );
    7867           2 :             sal_Int32              input = -15;
    7868           2 :             sal_Int16              radix = 2;
    7869             : 
    7870           2 :             expVal += OString( "-" );
    7871           2 :             expVal += OString( "1111" );
    7872           2 :             aStrBuf.append( input, radix );
    7873             : 
    7874           4 :             CPPUNIT_ASSERT_MESSAGE
    7875             :             (
    7876             :                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
    7877             :                 aStrBuf.getStr()== expVal &&
    7878             :                     aStrBuf.getLength() == expVal.getLength()
    7879           4 :             );
    7880             : 
    7881           2 :         }
    7882             : 
    7883           2 :         void append_085()
    7884             :         {
    7885           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    7886           2 :             OString                expVal( aStrBuf.getStr() );
    7887           2 :             sal_Int32              input = -0;
    7888           2 :             sal_Int16              radix = 8;
    7889             : 
    7890           2 :             expVal += OString( "0" );
    7891           2 :             aStrBuf.append( input, radix );
    7892             : 
    7893           4 :             CPPUNIT_ASSERT_MESSAGE
    7894             :             (
    7895             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
    7896             :                 aStrBuf.getStr()== expVal &&
    7897             :                     aStrBuf.getLength() == expVal.getLength()
    7898           4 :             );
    7899             : 
    7900           2 :         }
    7901             : 
    7902           2 :         void append_086()
    7903             :         {
    7904           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    7905           2 :             OString                expVal( aStrBuf.getStr() );
    7906           2 :             sal_Int32              input = -4;
    7907           2 :             sal_Int16              radix = 8;
    7908             : 
    7909           2 :             expVal += OString( "-" );
    7910           2 :             expVal += OString( "4" );
    7911           2 :             aStrBuf.append( input, radix );
    7912             : 
    7913           4 :             CPPUNIT_ASSERT_MESSAGE
    7914             :             (
    7915             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
    7916             :                 aStrBuf.getStr()== expVal &&
    7917             :                     aStrBuf.getLength() == expVal.getLength()
    7918           4 :             );
    7919             : 
    7920           2 :         }
    7921             : 
    7922           2 :         void append_087()
    7923             :         {
    7924           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    7925           2 :             OString                expVal( aStrBuf.getStr() );
    7926           2 :             sal_Int32              input = -8;
    7927           2 :             sal_Int16              radix = 8;
    7928             : 
    7929           2 :             expVal += OString( "-" );
    7930           2 :             expVal += OString( "10" );
    7931           2 :             aStrBuf.append( input, radix );
    7932             : 
    7933           4 :             CPPUNIT_ASSERT_MESSAGE
    7934             :             (
    7935             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
    7936             :                 aStrBuf.getStr()== expVal &&
    7937             :                     aStrBuf.getLength() == expVal.getLength()
    7938           4 :             );
    7939             : 
    7940           2 :         }
    7941             : 
    7942           2 :         void append_088()
    7943             :         {
    7944           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    7945           2 :             OString                expVal( aStrBuf.getStr() );
    7946           2 :             sal_Int32              input = -15;
    7947           2 :             sal_Int16              radix = 8;
    7948             : 
    7949           2 :             expVal += OString( "-" );
    7950           2 :             expVal += OString( "17" );
    7951           2 :             aStrBuf.append( input, radix );
    7952             : 
    7953           4 :             CPPUNIT_ASSERT_MESSAGE
    7954             :             (
    7955             :                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
    7956             :                 aStrBuf.getStr()== expVal &&
    7957             :                     aStrBuf.getLength() == expVal.getLength()
    7958           4 :             );
    7959             : 
    7960           2 :         }
    7961             : 
    7962           2 :         void append_089()
    7963             :         {
    7964           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    7965           2 :             OString                expVal( aStrBuf.getStr() );
    7966           2 :             sal_Int32              input = -0;
    7967           2 :             sal_Int16              radix = 10;
    7968             : 
    7969           2 :             expVal += OString( "0" );
    7970           2 :             aStrBuf.append( input, radix );
    7971             : 
    7972           4 :             CPPUNIT_ASSERT_MESSAGE
    7973             :             (
    7974             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
    7975             :                 aStrBuf.getStr()== expVal &&
    7976             :                     aStrBuf.getLength() == expVal.getLength()
    7977           4 :             );
    7978             : 
    7979           2 :         }
    7980             : 
    7981           2 :         void append_090()
    7982             :         {
    7983           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    7984           2 :             OString                expVal( aStrBuf.getStr() );
    7985           2 :             sal_Int32              input = -4;
    7986           2 :             sal_Int16              radix = 10;
    7987             : 
    7988           2 :             expVal += OString( "-" );
    7989           2 :             expVal += OString( "4" );
    7990           2 :             aStrBuf.append( input, radix );
    7991             : 
    7992           4 :             CPPUNIT_ASSERT_MESSAGE
    7993             :             (
    7994             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
    7995             :                 aStrBuf.getStr()== expVal &&
    7996             :                     aStrBuf.getLength() == expVal.getLength()
    7997           4 :             );
    7998             : 
    7999           2 :         }
    8000             : 
    8001           2 :         void append_091()
    8002             :         {
    8003           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8004           2 :             OString                expVal( aStrBuf.getStr() );
    8005           2 :             sal_Int32              input = -8;
    8006           2 :             sal_Int16              radix = 10;
    8007             : 
    8008           2 :             expVal += OString( "-" );
    8009           2 :             expVal += OString( "8" );
    8010           2 :             aStrBuf.append( input, radix );
    8011             : 
    8012           4 :             CPPUNIT_ASSERT_MESSAGE
    8013             :             (
    8014             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
    8015             :                 aStrBuf.getStr()== expVal &&
    8016             :                     aStrBuf.getLength() == expVal.getLength()
    8017           4 :             );
    8018             : 
    8019           2 :         }
    8020             : 
    8021           2 :         void append_092()
    8022             :         {
    8023           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8024           2 :             OString                expVal( aStrBuf.getStr() );
    8025           2 :             sal_Int32              input = -15;
    8026           2 :             sal_Int16              radix = 10;
    8027             : 
    8028           2 :             expVal += OString( "-" );
    8029           2 :             expVal += OString( "15" );
    8030           2 :             aStrBuf.append( input, radix );
    8031             : 
    8032           4 :             CPPUNIT_ASSERT_MESSAGE
    8033             :             (
    8034             :                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
    8035             :                 aStrBuf.getStr()== expVal &&
    8036             :                     aStrBuf.getLength() == expVal.getLength()
    8037           4 :             );
    8038             : 
    8039           2 :         }
    8040             : 
    8041           2 :         void append_093()
    8042             :         {
    8043           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8044           2 :             OString                expVal( aStrBuf.getStr() );
    8045           2 :             sal_Int32              input = -0;
    8046           2 :             sal_Int16              radix = 16;
    8047             : 
    8048           2 :             expVal += OString( "0" );
    8049           2 :             aStrBuf.append( input, radix );
    8050             : 
    8051           4 :             CPPUNIT_ASSERT_MESSAGE
    8052             :             (
    8053             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
    8054             :                 aStrBuf.getStr()== expVal &&
    8055             :                     aStrBuf.getLength() == expVal.getLength()
    8056           4 :             );
    8057             : 
    8058           2 :         }
    8059             : 
    8060           2 :         void append_094()
    8061             :         {
    8062           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8063           2 :             OString                expVal( aStrBuf.getStr() );
    8064           2 :             sal_Int32              input = -4;
    8065           2 :             sal_Int16              radix = 16;
    8066             : 
    8067           2 :             expVal += OString( "-" );
    8068           2 :             expVal += OString( "4" );
    8069           2 :             aStrBuf.append( input, radix );
    8070             : 
    8071           4 :             CPPUNIT_ASSERT_MESSAGE
    8072             :             (
    8073             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
    8074             :                 aStrBuf.getStr()== expVal &&
    8075             :                     aStrBuf.getLength() == expVal.getLength()
    8076           4 :             );
    8077             : 
    8078           2 :         }
    8079             : 
    8080           2 :         void append_095()
    8081             :         {
    8082           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8083           2 :             OString                expVal( aStrBuf.getStr() );
    8084           2 :             sal_Int32              input = -8;
    8085           2 :             sal_Int16              radix = 16;
    8086             : 
    8087           2 :             expVal += OString( "-" );
    8088           2 :             expVal += OString( "8" );
    8089           2 :             aStrBuf.append( input, radix );
    8090             : 
    8091           4 :             CPPUNIT_ASSERT_MESSAGE
    8092             :             (
    8093             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
    8094             :                 aStrBuf.getStr()== expVal &&
    8095             :                     aStrBuf.getLength() == expVal.getLength()
    8096           4 :             );
    8097             : 
    8098           2 :         }
    8099             : 
    8100           2 :         void append_096()
    8101             :         {
    8102           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8103           2 :             OString                expVal( aStrBuf.getStr() );
    8104           2 :             sal_Int32              input = -15;
    8105           2 :             sal_Int16              radix = 16;
    8106             : 
    8107           2 :             expVal += OString( "-" );
    8108           2 :             expVal += OString( "f" );
    8109           2 :             aStrBuf.append( input, radix );
    8110             : 
    8111           4 :             CPPUNIT_ASSERT_MESSAGE
    8112             :             (
    8113             :                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
    8114             :                 aStrBuf.getStr()== expVal &&
    8115             :                     aStrBuf.getLength() == expVal.getLength()
    8116           4 :             );
    8117             : 
    8118           2 :         }
    8119             : 
    8120           2 :         void append_097()
    8121             :         {
    8122           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8123           2 :             OString                expVal( aStrBuf.getStr() );
    8124           2 :             sal_Int32              input = -0;
    8125           2 :             sal_Int16              radix = 36;
    8126             : 
    8127           2 :             expVal += OString( "0" );
    8128           2 :             aStrBuf.append( input, radix );
    8129             : 
    8130           4 :             CPPUNIT_ASSERT_MESSAGE
    8131             :             (
    8132             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
    8133             :                 aStrBuf.getStr()== expVal &&
    8134             :                     aStrBuf.getLength() == expVal.getLength()
    8135           4 :             );
    8136             : 
    8137           2 :         }
    8138             : 
    8139           2 :         void append_098()
    8140             :         {
    8141           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8142           2 :             OString                expVal( aStrBuf.getStr() );
    8143           2 :             sal_Int32              input = -4;
    8144           2 :             sal_Int16              radix = 36;
    8145             : 
    8146           2 :             expVal += OString( "-" );
    8147           2 :             expVal += OString( "4" );
    8148           2 :             aStrBuf.append( input, radix );
    8149             : 
    8150           4 :             CPPUNIT_ASSERT_MESSAGE
    8151             :             (
    8152             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
    8153             :                 aStrBuf.getStr()== expVal &&
    8154             :                     aStrBuf.getLength() == expVal.getLength()
    8155           4 :             );
    8156           2 :         }
    8157             : 
    8158           2 :         void append_099()
    8159             :         {
    8160           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8161           2 :             OString                expVal( aStrBuf.getStr() );
    8162           2 :             sal_Int32              input = -8;
    8163           2 :             sal_Int16              radix = 36;
    8164             : 
    8165           2 :             expVal += OString( "-" );
    8166           2 :             expVal += OString( "8" );
    8167           2 :             aStrBuf.append( input, radix );
    8168             : 
    8169           4 :             CPPUNIT_ASSERT_MESSAGE
    8170             :             (
    8171             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
    8172             :                 aStrBuf.getStr()== expVal &&
    8173             :                     aStrBuf.getLength() == expVal.getLength()
    8174           4 :             );
    8175           2 :         }
    8176             : 
    8177           2 :         void append_100()
    8178             :         {
    8179           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8180           2 :             OString                expVal( aStrBuf.getStr() );
    8181           2 :             sal_Int32              input = -35;
    8182           2 :             sal_Int16              radix = 36;
    8183             : 
    8184           2 :             expVal += OString( "-" );
    8185           2 :             expVal += OString( "z" );
    8186           2 :             aStrBuf.append( input, radix );
    8187             : 
    8188           4 :             CPPUNIT_ASSERT_MESSAGE
    8189             :             (
    8190             :                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
    8191             :                 aStrBuf.getStr()== expVal &&
    8192             :                     aStrBuf.getLength() == expVal.getLength()
    8193           4 :             );
    8194           2 :         }
    8195             : 
    8196           4 :         CPPUNIT_TEST_SUITE( append_006_Int32_Negative );
    8197           2 :         CPPUNIT_TEST( append_001 ); CPPUNIT_TEST( append_002 );
    8198           2 :         CPPUNIT_TEST( append_003 ); CPPUNIT_TEST( append_004 );
    8199           2 :         CPPUNIT_TEST( append_005 ); CPPUNIT_TEST( append_006 );
    8200           2 :         CPPUNIT_TEST( append_007 ); CPPUNIT_TEST( append_008 );
    8201           2 :         CPPUNIT_TEST( append_009 ); CPPUNIT_TEST( append_010 );
    8202           2 :         CPPUNIT_TEST( append_011 ); CPPUNIT_TEST( append_012 );
    8203           2 :         CPPUNIT_TEST( append_013 ); CPPUNIT_TEST( append_014 );
    8204           2 :         CPPUNIT_TEST( append_015 ); CPPUNIT_TEST( append_016 );
    8205           2 :         CPPUNIT_TEST( append_017 ); CPPUNIT_TEST( append_018 );
    8206           2 :         CPPUNIT_TEST( append_019 ); CPPUNIT_TEST( append_020 );
    8207           2 :         CPPUNIT_TEST( append_021 ); CPPUNIT_TEST( append_022 );
    8208           2 :         CPPUNIT_TEST( append_023 ); CPPUNIT_TEST( append_024 );
    8209           2 :         CPPUNIT_TEST( append_025 ); CPPUNIT_TEST( append_026 );
    8210           2 :         CPPUNIT_TEST( append_027 ); CPPUNIT_TEST( append_028 );
    8211           2 :         CPPUNIT_TEST( append_029 ); CPPUNIT_TEST( append_030 );
    8212           2 :         CPPUNIT_TEST( append_031 ); CPPUNIT_TEST( append_032 );
    8213           2 :         CPPUNIT_TEST( append_033 ); CPPUNIT_TEST( append_034 );
    8214           2 :         CPPUNIT_TEST( append_035 ); CPPUNIT_TEST( append_036 );
    8215           2 :         CPPUNIT_TEST( append_037 ); CPPUNIT_TEST( append_038 );
    8216           2 :         CPPUNIT_TEST( append_039 ); CPPUNIT_TEST( append_040 );
    8217           2 :         CPPUNIT_TEST( append_041 ); CPPUNIT_TEST( append_042 );
    8218           2 :         CPPUNIT_TEST( append_043 ); CPPUNIT_TEST( append_044 );
    8219           2 :         CPPUNIT_TEST( append_045 ); CPPUNIT_TEST( append_046 );
    8220           2 :         CPPUNIT_TEST( append_047 ); CPPUNIT_TEST( append_048 );
    8221           2 :         CPPUNIT_TEST( append_049 ); CPPUNIT_TEST( append_050 );
    8222           2 :         CPPUNIT_TEST( append_051 ); CPPUNIT_TEST( append_052 );
    8223           2 :         CPPUNIT_TEST( append_053 ); CPPUNIT_TEST( append_054 );
    8224           2 :         CPPUNIT_TEST( append_055 ); CPPUNIT_TEST( append_056 );
    8225           2 :         CPPUNIT_TEST( append_057 ); CPPUNIT_TEST( append_058 );
    8226           2 :         CPPUNIT_TEST( append_059 ); CPPUNIT_TEST( append_060 );
    8227           2 :         CPPUNIT_TEST( append_061 ); CPPUNIT_TEST( append_062 );
    8228           2 :         CPPUNIT_TEST( append_063 ); CPPUNIT_TEST( append_064 );
    8229           2 :         CPPUNIT_TEST( append_065 ); CPPUNIT_TEST( append_066 );
    8230           2 :         CPPUNIT_TEST( append_067 ); CPPUNIT_TEST( append_068 );
    8231           2 :         CPPUNIT_TEST( append_069 ); CPPUNIT_TEST( append_070 );
    8232           2 :         CPPUNIT_TEST( append_071 ); CPPUNIT_TEST( append_072 );
    8233           2 :         CPPUNIT_TEST( append_073 ); CPPUNIT_TEST( append_074 );
    8234           2 :         CPPUNIT_TEST( append_075 ); CPPUNIT_TEST( append_076 );
    8235           2 :         CPPUNIT_TEST( append_077 ); CPPUNIT_TEST( append_078 );
    8236           2 :         CPPUNIT_TEST( append_079 ); CPPUNIT_TEST( append_080 );
    8237           2 :         CPPUNIT_TEST( append_081 ); CPPUNIT_TEST( append_082 );
    8238           2 :         CPPUNIT_TEST( append_083 ); CPPUNIT_TEST( append_084 );
    8239           2 :         CPPUNIT_TEST( append_085 ); CPPUNIT_TEST( append_086 );
    8240           2 :         CPPUNIT_TEST( append_087 ); CPPUNIT_TEST( append_088 );
    8241           2 :         CPPUNIT_TEST( append_089 ); CPPUNIT_TEST( append_090 );
    8242           2 :         CPPUNIT_TEST( append_091 ); CPPUNIT_TEST( append_092 );
    8243           2 :         CPPUNIT_TEST( append_093 ); CPPUNIT_TEST( append_094 );
    8244           2 :         CPPUNIT_TEST( append_095 ); CPPUNIT_TEST( append_096 );
    8245           2 :         CPPUNIT_TEST( append_097 ); CPPUNIT_TEST( append_098 );
    8246           2 :         CPPUNIT_TEST( append_099 ); CPPUNIT_TEST( append_100 );
    8247           4 :         CPPUNIT_TEST_SUITE_END();
    8248             :     };
    8249             : //------------------------------------------------------------------------
    8250             : // testing the method append( sal_Int32 i, sal_Int16 radix ) where radix = -5
    8251             : //------------------------------------------------------------------------
    8252          30 :     class  append_006_Int32_WrongRadix : public CppUnit::TestFixture
    8253             :     {
    8254             :         OString* arrOUS[5];
    8255             :         sal_Int32 intVal;
    8256             : 
    8257             :     public:
    8258          10 :         void setUp()
    8259             :         {
    8260          10 :             arrOUS[0] = new OString( kTestStr7 );
    8261          10 :             arrOUS[1] = new OString(  );
    8262          10 :             arrOUS[2] = new OString( kTestStr25 );
    8263          10 :             arrOUS[3] = new OString( "" );
    8264          10 :             arrOUS[4] = new OString( kTestStr28 );
    8265          10 :             intVal = 11;
    8266             : 
    8267          10 :         }
    8268             : 
    8269          10 :         void tearDown()
    8270             :         {
    8271          10 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
    8272          10 :             delete arrOUS[3]; delete arrOUS[4];
    8273          10 :         }
    8274             : 
    8275           2 :         void append_001()
    8276             :         {
    8277           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    8278           2 :             OString                expVal( kTestStr59 );
    8279             : 
    8280           2 :             aStrBuf.append( intVal, -5 );
    8281             : 
    8282           4 :             CPPUNIT_ASSERT_MESSAGE
    8283             :             (
    8284             :                 "Appends the WrongRadix to the string buffer arrOUS[0]",
    8285             :                 aStrBuf.getStr()== expVal &&
    8286             :                     aStrBuf.getLength() == expVal.getLength()
    8287           4 :             );
    8288           2 :         }
    8289             : 
    8290           2 :         void append_002()
    8291             :         {
    8292           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    8293           2 :             OString                expVal( kTestStr60 );
    8294             : 
    8295           2 :             aStrBuf.append( intVal, -5 );
    8296             : 
    8297           4 :             CPPUNIT_ASSERT_MESSAGE
    8298             :             (
    8299             :                 "Appends the WrongRadix to the string buffer arrOUS[1]",
    8300             :                 aStrBuf.getStr()== expVal &&
    8301             :                     aStrBuf.getLength() == expVal.getLength()
    8302           4 :             );
    8303           2 :         }
    8304             : 
    8305           2 :         void append_003()
    8306             :         {
    8307           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    8308           2 :             OString                expVal( kTestStr60 );
    8309             : 
    8310           2 :             aStrBuf.append( intVal, -5 );
    8311             : 
    8312           4 :             CPPUNIT_ASSERT_MESSAGE
    8313             :             (
    8314             :                 "Appends the WrongRadix to the string buffer arrOUS[2]",
    8315             :                 aStrBuf.getStr()== expVal &&
    8316             :                     aStrBuf.getLength() == expVal.getLength()
    8317           4 :             );
    8318             : 
    8319           2 :         }
    8320             : 
    8321           2 :         void append_004()
    8322             :         {
    8323           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    8324           2 :             OString                expVal( kTestStr60 );
    8325             : 
    8326           2 :             aStrBuf.append( intVal, -5 );
    8327             : 
    8328           4 :             CPPUNIT_ASSERT_MESSAGE
    8329             :             (
    8330             :                 "Appends the WrongRadix to the string buffer arrOUS[3]",
    8331             :                 aStrBuf.getStr()== expVal &&
    8332             :                     aStrBuf.getLength() == expVal.getLength()
    8333           4 :             );
    8334             : 
    8335           2 :         }
    8336             : 
    8337           2 :         void append_005()
    8338             :         {
    8339           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8340           2 :             OString                expVal( kTestStr61 );
    8341             : 
    8342           2 :             aStrBuf.append( intVal, -5 );
    8343             : 
    8344           4 :             CPPUNIT_ASSERT_MESSAGE
    8345             :             (
    8346             :                 "Appends the WrongRadix to the string buffer arrOUS[4]",
    8347             :                 (aStrBuf.toString() == expVal &&
    8348             :                  aStrBuf.getLength() == expVal.getLength())
    8349           4 :             );
    8350           2 :         }
    8351             : #ifdef WITH_CORE
    8352             :         void append_006()
    8353             :         {
    8354             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
    8355             :             OString                expVal( kTestStr60 );
    8356             : 
    8357             :             aStrBuf.append( intVal, -5 );
    8358             : 
    8359             :             CPPUNIT_ASSERT_MESSAGE
    8360             :             (
    8361             :                 "Appends the WrongRadix to the string buffer(with INT_MAX)",
    8362             :                 aStrBuf.getStr()== expVal &&
    8363             :                     aStrBuf.getLength() == expVal.getLength()
    8364             :             );
    8365             : 
    8366             :         }
    8367             : #endif
    8368             : 
    8369           4 :         CPPUNIT_TEST_SUITE( append_006_Int32_WrongRadix );
    8370           2 :         CPPUNIT_TEST( append_001 );
    8371           2 :         CPPUNIT_TEST( append_002 );
    8372           2 :         CPPUNIT_TEST( append_003 );
    8373           2 :         CPPUNIT_TEST( append_004 );
    8374           2 :         CPPUNIT_TEST( append_005 );
    8375             : #ifdef WITH_CORE
    8376             :         CPPUNIT_TEST( append_006 );
    8377             : #endif
    8378           4 :         CPPUNIT_TEST_SUITE_END();
    8379             :     };
    8380             : //------------------------------------------------------------------------
    8381         150 :     class  append_006_Int32_defaultParam : public CppUnit::TestFixture
    8382             :     {
    8383             :         OString* arrOUS[5];
    8384             : 
    8385             :     public:
    8386          50 :         void setUp()
    8387             :         {
    8388          50 :             arrOUS[0] = new OString( kTestStr7 );
    8389          50 :             arrOUS[1] = new OString(  );
    8390          50 :             arrOUS[2] = new OString( kTestStr25 );
    8391          50 :             arrOUS[3] = new OString( "" );
    8392          50 :             arrOUS[4] = new OString( kTestStr28 );
    8393             : 
    8394          50 :         }
    8395             : 
    8396          50 :         void tearDown()
    8397             :         {
    8398          50 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
    8399          50 :             delete arrOUS[3]; delete arrOUS[4];
    8400          50 :         }
    8401             : 
    8402           2 :         void append_001()
    8403             :         {
    8404           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    8405           2 :             OString                expVal( kTestStr59 );
    8406           2 :             sal_Int32              input = 11;
    8407             : 
    8408           2 :             aStrBuf.append( input );
    8409             : 
    8410           4 :             CPPUNIT_ASSERT_MESSAGE
    8411             :             (
    8412             :                 "input Int32 11 and return OStringBuffer[0]+11",
    8413             :                 (aStrBuf.toString() == expVal &&
    8414             :                  aStrBuf.getLength() == expVal.getLength())
    8415           4 :             );
    8416             : 
    8417           2 :         }
    8418             : 
    8419           2 :         void append_002()
    8420             :         {
    8421           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    8422           2 :             OString                expVal( kTestStr62 );
    8423           2 :             sal_Int32              input = 0;
    8424             : 
    8425           2 :             aStrBuf.append( input );
    8426             : 
    8427           4 :             CPPUNIT_ASSERT_MESSAGE
    8428             :             (
    8429             :                 "input Int32 0 and return OStringBuffer[0]+0",
    8430             :                 (aStrBuf.toString() == expVal &&
    8431             :                  aStrBuf.getLength() == expVal.getLength())
    8432           4 :             );
    8433             : 
    8434           2 :         }
    8435             : 
    8436           2 :         void append_003()
    8437             :         {
    8438           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    8439           2 :             OString                expVal( kTestStr63 );
    8440           2 :             sal_Int32              input = -11;
    8441             : 
    8442           2 :             aStrBuf.append( input );
    8443             : 
    8444           4 :             CPPUNIT_ASSERT_MESSAGE
    8445             :             (
    8446             :                 "input Int32 -11 and return OStringBuffer[0]+(-11)",
    8447             :                 (aStrBuf.toString() == expVal &&
    8448             :                  aStrBuf.getLength() == expVal.getLength())
    8449           4 :             );
    8450             : 
    8451           2 :         }
    8452             : 
    8453           2 :         void append_004()
    8454             :         {
    8455           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    8456           2 :             OString                expVal( kTestStr64 );
    8457           2 :             sal_Int32              input = 2147483647;
    8458             : 
    8459           2 :             aStrBuf.append( input );
    8460             : 
    8461           4 :             CPPUNIT_ASSERT_MESSAGE
    8462             :             (
    8463             :                 "input Int32 2147483647 and return OStringBuffer[0]+2147483647",
    8464             :                 (aStrBuf.toString() == expVal &&
    8465             :                  aStrBuf.getLength() == expVal.getLength())
    8466           4 :             );
    8467             : 
    8468           2 :         }
    8469             : 
    8470           2 :         void append_005()
    8471             :         {
    8472           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    8473           2 :             OString                expVal( kTestStr65 );
    8474           2 :             sal_Int32              input = kNonSInt32Max;
    8475             : 
    8476           2 :             aStrBuf.append( input );
    8477             : 
    8478           4 :             CPPUNIT_ASSERT_MESSAGE
    8479             :             (
    8480             :                 "input Int32 -2147483648 and return OStringBuffer[0]+(-2147483648)",
    8481             :                 (aStrBuf.toString() == expVal &&
    8482             :                  aStrBuf.getLength() == expVal.getLength())
    8483           4 :             );
    8484             : 
    8485           2 :         }
    8486             : 
    8487           2 :         void append_006()
    8488             :         {
    8489           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    8490           2 :             OString                expVal( kTestStr60 );
    8491           2 :             sal_Int32              input = 11;
    8492             : 
    8493           2 :             aStrBuf.append( input );
    8494             : 
    8495           4 :             CPPUNIT_ASSERT_MESSAGE
    8496             :             (
    8497             :                 "input Int32 11 and return OStringBuffer[1]+11",
    8498             :                 (aStrBuf.toString() == expVal &&
    8499             :                  aStrBuf.getLength() == expVal.getLength())
    8500           4 :             );
    8501             : 
    8502           2 :         }
    8503             : 
    8504           2 :         void append_007()
    8505             :         {
    8506           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    8507           2 :             OString                expVal( kTestStr66 );
    8508           2 :             sal_Int32              input = 0;
    8509             : 
    8510           2 :             aStrBuf.append( input );
    8511             : 
    8512           4 :             CPPUNIT_ASSERT_MESSAGE
    8513             :             (
    8514             :                 "input Int32 0 and return OStringBuffer[1]+0",
    8515             :                 (aStrBuf.toString() == expVal &&
    8516             :                  aStrBuf.getLength() == expVal.getLength())
    8517           4 :             );
    8518             : 
    8519           2 :         }
    8520             : 
    8521           2 :         void append_008()
    8522             :         {
    8523           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    8524           2 :             OString                expVal( kTestStr67 );
    8525           2 :             sal_Int32              input = -11;
    8526             : 
    8527           2 :             aStrBuf.append( input );
    8528             : 
    8529           4 :             CPPUNIT_ASSERT_MESSAGE
    8530             :             (
    8531             :                 "input Int32 -11 and return OStringBuffer[1]+(-11)",
    8532             :                 (aStrBuf.toString() == expVal &&
    8533             :                  aStrBuf.getLength() == expVal.getLength())
    8534           4 :             );
    8535             : 
    8536           2 :         }
    8537             : 
    8538           2 :         void append_009()
    8539             :         {
    8540           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    8541           2 :             OString                expVal( kTestStr68 );
    8542           2 :             sal_Int32              input = 2147483647;
    8543             : 
    8544           2 :             aStrBuf.append( input );
    8545             : 
    8546           4 :             CPPUNIT_ASSERT_MESSAGE
    8547             :             (
    8548             :                 "input Int32 2147483647 and return OStringBuffer[1]+2147483647",
    8549             :                 (aStrBuf.toString() == expVal &&
    8550             :                  aStrBuf.getLength() == expVal.getLength())
    8551           4 :             );
    8552             : 
    8553           2 :         }
    8554             : 
    8555           2 :         void append_010()
    8556             :         {
    8557           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    8558           2 :             OString                expVal( kTestStr69 );
    8559           2 :             sal_Int32              input = SAL_MIN_INT32 /*-2147483648*/;
    8560             : 
    8561           2 :             aStrBuf.append( input );
    8562             : 
    8563           4 :             CPPUNIT_ASSERT_MESSAGE
    8564             :             (
    8565             :                 "input Int32 -2147483648 and return OStringBuffer[1]+(-2147483648)",
    8566             :                 (aStrBuf.toString() == expVal &&
    8567             :                  aStrBuf.getLength() == expVal.getLength())
    8568           4 :             );
    8569             : 
    8570           2 :         }
    8571             : 
    8572           2 :         void append_011()
    8573             :         {
    8574           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    8575           2 :             OString                expVal( kTestStr60 );
    8576           2 :             sal_Int32              input = 11;
    8577             : 
    8578           2 :             aStrBuf.append( input );
    8579             : 
    8580           4 :             CPPUNIT_ASSERT_MESSAGE
    8581             :             (
    8582             :                 "input Int32 11 and return OStringBuffer[2]+11",
    8583             :                 (aStrBuf.toString() == expVal &&
    8584             :                  aStrBuf.getLength() == expVal.getLength())
    8585           4 :             );
    8586             : 
    8587           2 :         }
    8588             : 
    8589           2 :         void append_012()
    8590             :         {
    8591           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    8592           2 :             OString                expVal( kTestStr66 );
    8593           2 :             sal_Int32              input = 0;
    8594             : 
    8595           2 :             aStrBuf.append( input );
    8596             : 
    8597           4 :             CPPUNIT_ASSERT_MESSAGE
    8598             :             (
    8599             :                 "input Int32 0 and return OUStringBuffer[2]+0",
    8600             :                 (aStrBuf.toString() == expVal &&
    8601             :                  aStrBuf.getLength() == expVal.getLength())
    8602           4 :             );
    8603             : 
    8604           2 :         }
    8605             : 
    8606           2 :         void append_013()
    8607             :         {
    8608           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    8609           2 :             OString                expVal( kTestStr67 );
    8610           2 :             sal_Int32              input = -11;
    8611             : 
    8612           2 :             aStrBuf.append( input );
    8613             : 
    8614           4 :             CPPUNIT_ASSERT_MESSAGE
    8615             :             (
    8616             :                 "input Int32 -11 and return OUStringBuffer[2]+(-11)",
    8617             :                 (aStrBuf.toString() == expVal &&
    8618             :                  aStrBuf.getLength() == expVal.getLength())
    8619           4 :             );
    8620             : 
    8621           2 :         }
    8622             : 
    8623           2 :         void append_014()
    8624             :         {
    8625           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    8626           2 :             OString                expVal( kTestStr68 );
    8627           2 :             sal_Int32              input = 2147483647;
    8628             : 
    8629           2 :             aStrBuf.append( input );
    8630             : 
    8631           4 :             CPPUNIT_ASSERT_MESSAGE
    8632             :             (
    8633             :                 "input Int32 2147483647 and return OStringBuffer[2]+2147483647",
    8634             :                 (aStrBuf.toString() == expVal &&
    8635             :                  aStrBuf.getLength() == expVal.getLength())
    8636           4 :             );
    8637             : 
    8638           2 :         }
    8639             : 
    8640           2 :         void append_015()
    8641             :         {
    8642           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    8643           2 :             OString                expVal( kTestStr69 );
    8644           2 :             sal_Int32              input = SAL_MIN_INT32;
    8645             : 
    8646           2 :             aStrBuf.append( input );
    8647             : 
    8648           4 :             CPPUNIT_ASSERT_MESSAGE
    8649             :             (
    8650             :                 "input Int32 -2147483648 and return OStringBuffer[2]+(-2147483648)",
    8651             :                 (aStrBuf.toString() == expVal &&
    8652             :                  aStrBuf.getLength() == expVal.getLength())
    8653           4 :             );
    8654             : 
    8655           2 :         }
    8656             : 
    8657           2 :         void append_016()
    8658             :         {
    8659           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    8660           2 :             OString                expVal( kTestStr60 );
    8661           2 :             sal_Int32              input = 11;
    8662             : 
    8663           2 :             aStrBuf.append( input );
    8664             : 
    8665           4 :             CPPUNIT_ASSERT_MESSAGE
    8666             :             (
    8667             :                 "input Int32 11 and return OStringBuffer[3]+11",
    8668             :                 (aStrBuf.toString() == expVal &&
    8669             :                  aStrBuf.getLength() == expVal.getLength())
    8670           4 :             );
    8671             : 
    8672           2 :         }
    8673             : 
    8674           2 :         void append_017()
    8675             :         {
    8676           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    8677           2 :             OString                expVal( kTestStr66 );
    8678           2 :             sal_Int32              input = 0;
    8679             : 
    8680           2 :             aStrBuf.append( input );
    8681             : 
    8682           4 :             CPPUNIT_ASSERT_MESSAGE
    8683             :             (
    8684             :                 "input Int32 0 and return OStringBuffer[3]+0",
    8685             :                 (aStrBuf.toString() == expVal &&
    8686             :                  aStrBuf.getLength() == expVal.getLength())
    8687           4 :             );
    8688             : 
    8689           2 :         }
    8690             : 
    8691           2 :         void append_018()
    8692             :         {
    8693           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    8694           2 :             OString                expVal( kTestStr67 );
    8695           2 :             sal_Int32              input = -11;
    8696             : 
    8697           2 :             aStrBuf.append( input );
    8698             : 
    8699           4 :             CPPUNIT_ASSERT_MESSAGE
    8700             :             (
    8701             :                 "input Int32 -11 and return OStringBuffer[3]+(-11)",
    8702             :                 (aStrBuf.toString() == expVal &&
    8703             :                  aStrBuf.getLength() == expVal.getLength())
    8704           4 :             );
    8705             : 
    8706           2 :         }
    8707             : 
    8708           2 :         void append_019()
    8709             :         {
    8710           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    8711           2 :             OString                expVal( kTestStr68 );
    8712           2 :             sal_Int32              input = 2147483647;
    8713             : 
    8714           2 :             aStrBuf.append( input );
    8715             : 
    8716           4 :             CPPUNIT_ASSERT_MESSAGE
    8717             :             (
    8718             :                 "input Int32 2147483647 and return OStringBuffer[3]+2147483647",
    8719             :                 (aStrBuf.toString() == expVal &&
    8720             :                  aStrBuf.getLength() == expVal.getLength())
    8721           4 :             );
    8722             : 
    8723           2 :         }
    8724             : 
    8725           2 :         void append_020()
    8726             :         {
    8727           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
    8728           2 :             OString                expVal( kTestStr69 );
    8729           2 :             sal_Int32              input = SAL_MIN_INT32;
    8730             : 
    8731           2 :             aStrBuf.append( input );
    8732             : 
    8733           4 :             CPPUNIT_ASSERT_MESSAGE
    8734             :             (
    8735             :                 "input Int32 -2147483648 and return OStringBuffer[3]+(-2147483648)",
    8736             :                 (aStrBuf.toString() == expVal &&
    8737             :                  aStrBuf.getLength() == expVal.getLength())
    8738           4 :             );
    8739             : 
    8740           2 :         }
    8741             : 
    8742           2 :         void append_021()
    8743             :         {
    8744           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8745           2 :             OString                expVal( kTestStr61 );
    8746           2 :             sal_Int32              input = 11;
    8747             : 
    8748           2 :             aStrBuf.append( input );
    8749             : 
    8750           4 :             CPPUNIT_ASSERT_MESSAGE
    8751             :             (
    8752             :                 "input Int32 11 and return OStringBuffer[4]+11",
    8753             :                 (aStrBuf.toString() == expVal &&
    8754             :                  aStrBuf.getLength() == expVal.getLength())
    8755           4 :             );
    8756             : 
    8757           2 :         }
    8758             : 
    8759           2 :         void append_022()
    8760             :         {
    8761           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8762           2 :             OString                expVal( kTestStr70 );
    8763           2 :             sal_Int32              input = 0;
    8764             : 
    8765           2 :             aStrBuf.append( input );
    8766             : 
    8767           4 :             CPPUNIT_ASSERT_MESSAGE
    8768             :             (
    8769             :                 "input Int32 0 and return OStringBuffer[4]+0",
    8770             :                 (aStrBuf.toString() == expVal &&
    8771             :                  aStrBuf.getLength() == expVal.getLength())
    8772           4 :             );
    8773             : 
    8774           2 :         }
    8775             : 
    8776           2 :         void append_023()
    8777             :         {
    8778           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8779           2 :             OString                expVal( kTestStr71 );
    8780           2 :             sal_Int32              input = -11;
    8781             : 
    8782           2 :             aStrBuf.append( input );
    8783             : 
    8784           4 :             CPPUNIT_ASSERT_MESSAGE
    8785             :             (
    8786             :                 "input Int32 -11 and return OStringBuffer[4]+(-11)",
    8787             :                 (aStrBuf.toString() == expVal &&
    8788             :                  aStrBuf.getLength() == expVal.getLength())
    8789           4 :             );
    8790             : 
    8791           2 :         }
    8792             : 
    8793           2 :         void append_024()
    8794             :         {
    8795           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8796           2 :             OString                expVal( kTestStr72 );
    8797           2 :             sal_Int32              input = 2147483647;
    8798             : 
    8799           2 :             aStrBuf.append( input );
    8800             : 
    8801           4 :             CPPUNIT_ASSERT_MESSAGE
    8802             :             (
    8803             :                 "input Int32 2147483647 and return OStringBuffer[4]+2147483647",
    8804             :                 (aStrBuf.toString() == expVal &&
    8805             :                  aStrBuf.getLength() == expVal.getLength())
    8806           4 :             );
    8807             : 
    8808           2 :         }
    8809             : 
    8810           2 :         void append_025()
    8811             :         {
    8812           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
    8813           2 :             OString                expVal( kTestStr73 );
    8814           2 :             sal_Int32              input = SAL_MIN_INT32;
    8815             : 
    8816           2 :             aStrBuf.append( input );
    8817             : 
    8818           4 :             CPPUNIT_ASSERT_MESSAGE
    8819             :             (
    8820             :                 "input Int32 -2147483648 and return OStringBuffer[4]+(-2147483648)",
    8821             :                 (aStrBuf.toString() == expVal &&
    8822             :                  aStrBuf.getLength() == expVal.getLength())
    8823           4 :             );
    8824             : 
    8825           2 :         }
    8826             : #ifdef WITH_CORE
    8827             :         void append_026()
    8828             :         {
    8829             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
    8830             :             OString                expVal( kTestStr60 );
    8831             :             sal_Int32              input = 11;
    8832             : 
    8833             :             aStrBuf.append( input );
    8834             : 
    8835             :             CPPUNIT_ASSERT_MESSAGE
    8836             :             (
    8837             :                 "input Int32 11 and return OStringBuffer(kSInt32Max)+11",
    8838             :                 (aStrBuf.toString() == expVal &&
    8839             :                  aStrBuf.getLength() == expVal.getLength())
    8840             :             );
    8841             : 
    8842             :         }
    8843             : 
    8844             :         void append_027()
    8845             :         {
    8846             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
    8847             :             OString                expVal( kTestStr66 );
    8848             :             sal_Int32              input = 0;
    8849             : 
    8850             :             aStrBuf.append( input );
    8851             : 
    8852             :             CPPUNIT_ASSERT_MESSAGE
    8853             :             (
    8854             :                 "input Int32 0 and return OStringBuffer(kSInt32Max)+0",
    8855             :                 (aStrBuf.toString() == expVal &&
    8856             :                  aStrBuf.getLength() == expVal.getLength())
    8857             :             );
    8858             : 
    8859             :         }
    8860             : 
    8861             :         void append_028()
    8862             :         {
    8863             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
    8864             :             OString                expVal( kTestStr67 );
    8865             :             sal_Int32              input = -11;
    8866             : 
    8867             :             aStrBuf.append( input );
    8868             : 
    8869             :             CPPUNIT_ASSERT_MESSAGE
    8870             :             (
    8871             :                 "input Int32 -11 and return OStringBuffer(kSInt32Max)+(-11)",
    8872             :                 (aStrBuf.toString() == expVal &&
    8873             :                  aStrBuf.getLength() == expVal.getLength())
    8874             :             );
    8875             : 
    8876             :         }
    8877             : 
    8878             :         void append_029()
    8879             :         {
    8880             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
    8881             :             OString                expVal( kTestStr68 );
    8882             :             sal_Int32              input = 2147483647;
    8883             : 
    8884             :             aStrBuf.append( input );
    8885             : 
    8886             :             CPPUNIT_ASSERT_MESSAGE
    8887             :             (
    8888             :                 "input Int32 2147483647 and return OStringBuffer(kSInt32Max)+2147483647",
    8889             :                 (aStrBuf.toString() == expVal &&
    8890             :                  aStrBuf.getLength() == expVal.getLength())
    8891             :             );
    8892             : 
    8893             :         }
    8894             : 
    8895             :         void append_030()
    8896             :         {
    8897             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
    8898             :             OString                expVal( kTestStr69 );
    8899             :             sal_Int32              input = SAL_MIN_INT32;
    8900             : 
    8901             :             aStrBuf.append( input );
    8902             : 
    8903             :             CPPUNIT_ASSERT_MESSAGE
    8904             :             (
    8905             :                 "input Int32 -2147483648 and return OStringBuffer(kSInt32Max)+(-2147483648)",
    8906             :                 (aStrBuf.toString() == expVal &&
    8907             :                  aStrBuf.getLength() == expVal.getLength())
    8908             :             );
    8909             : 
    8910             :         }
    8911             : #endif
    8912             : 
    8913           4 :         CPPUNIT_TEST_SUITE( append_006_Int32_defaultParam );
    8914           2 :         CPPUNIT_TEST( append_001 );
    8915           2 :         CPPUNIT_TEST( append_002 );
    8916           2 :         CPPUNIT_TEST( append_003 );
    8917           2 :         CPPUNIT_TEST( append_004 );
    8918           2 :         CPPUNIT_TEST( append_005 );
    8919           2 :         CPPUNIT_TEST( append_006 );
    8920           2 :         CPPUNIT_TEST( append_007 );
    8921           2 :         CPPUNIT_TEST( append_008 );
    8922           2 :         CPPUNIT_TEST( append_009 );
    8923           2 :         CPPUNIT_TEST( append_010 );
    8924           2 :         CPPUNIT_TEST( append_011 );
    8925           2 :         CPPUNIT_TEST( append_012 );
    8926           2 :         CPPUNIT_TEST( append_013 );
    8927           2 :         CPPUNIT_TEST( append_014 );
    8928           2 :         CPPUNIT_TEST( append_015 );
    8929           2 :         CPPUNIT_TEST( append_016 );
    8930           2 :         CPPUNIT_TEST( append_017 );
    8931           2 :         CPPUNIT_TEST( append_018 );
    8932           2 :         CPPUNIT_TEST( append_019 );
    8933           2 :         CPPUNIT_TEST( append_020 );
    8934           2 :         CPPUNIT_TEST( append_021 );
    8935           2 :         CPPUNIT_TEST( append_022 );
    8936           2 :         CPPUNIT_TEST( append_023 );
    8937           2 :         CPPUNIT_TEST( append_024 );
    8938           2 :         CPPUNIT_TEST( append_025 );
    8939             : #ifdef WITH_CORE
    8940             :         CPPUNIT_TEST( append_026 );
    8941             :         CPPUNIT_TEST( append_027 );
    8942             :         CPPUNIT_TEST( append_028 );
    8943             :         CPPUNIT_TEST( append_029 );
    8944             :         CPPUNIT_TEST( append_030 );
    8945             : #endif
    8946           4 :         CPPUNIT_TEST_SUITE_END();
    8947             :     };
    8948             : //------------------------------------------------------------------------
    8949             : // testing the method append( sal_Int64 l, sal_Int16 radix=2 )
    8950             : // testing the method append( sal_Int64 l, sal_Int16 radix=8 )
    8951             : // testing the method append( sal_Int64 l, sal_Int16 radix=10 )
    8952             : // testing the method append( sal_Int64 l, sal_Int16 radix=16 )
    8953             : // testing the method append( sal_Int64 l, sal_Int16 radix=36 )
    8954             : //------------------------------------------------------------------------
    8955         600 :     class  append_007_Int64 : public CppUnit::TestFixture
    8956             :     {
    8957             :         OString* arrOUS[5];
    8958             : 
    8959             :     public:
    8960         200 :         void setUp()
    8961             :         {
    8962         200 :             arrOUS[0] = new OString( kTestStr7 );
    8963         200 :             arrOUS[1] = new OString(  );
    8964         200 :             arrOUS[2] = new OString( kTestStr25 );
    8965         200 :             arrOUS[3] = new OString( "" );
    8966         200 :             arrOUS[4] = new OString( kTestStr28 );
    8967             : 
    8968         200 :         }
    8969             : 
    8970         200 :         void tearDown()
    8971             :         {
    8972         200 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
    8973         200 :             delete arrOUS[3]; delete arrOUS[4];
    8974         200 :         }
    8975             : 
    8976           2 :         void append_001()
    8977             :         {
    8978           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    8979           2 :             OString                expVal( aStrBuf.getStr() );
    8980           2 :             sal_Int64              input = 0;
    8981           2 :             sal_Int16              radix = 2;
    8982             : 
    8983           2 :             expVal += OString( "0" );
    8984           2 :             aStrBuf.append( input, radix );
    8985             : 
    8986           4 :             CPPUNIT_ASSERT_MESSAGE
    8987             :             (
    8988             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
    8989             :                 aStrBuf.getStr()== expVal &&
    8990             :                     aStrBuf.getLength() == expVal.getLength()
    8991           4 :             );
    8992             : 
    8993           2 :         }
    8994             : 
    8995           2 :         void append_002()
    8996             :         {
    8997           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    8998           2 :             OString                expVal( aStrBuf.getStr() );
    8999           2 :             sal_Int64              input = 4;
    9000           2 :             sal_Int16              radix = 2;
    9001             : 
    9002           2 :             expVal += OString( "100" );
    9003           2 :             aStrBuf.append( input, radix );
    9004             : 
    9005           4 :             CPPUNIT_ASSERT_MESSAGE
    9006             :             (
    9007             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
    9008             :                 aStrBuf.getStr()== expVal &&
    9009             :                     aStrBuf.getLength() == expVal.getLength()
    9010           4 :             );
    9011             : 
    9012           2 :         }
    9013             : 
    9014           2 :         void append_003()
    9015             :         {
    9016           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9017           2 :             OString                expVal( aStrBuf.getStr() );
    9018           2 :             sal_Int64              input = 8;
    9019           2 :             sal_Int16              radix = 2;
    9020             : 
    9021           2 :             expVal += OString( "1000" );
    9022           2 :             aStrBuf.append( input, radix );
    9023             : 
    9024           4 :             CPPUNIT_ASSERT_MESSAGE
    9025             :             (
    9026             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
    9027             :                 aStrBuf.getStr()== expVal &&
    9028             :                     aStrBuf.getLength() == expVal.getLength()
    9029           4 :             );
    9030             : 
    9031           2 :         }
    9032             : 
    9033           2 :         void append_004()
    9034             :         {
    9035           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9036           2 :             OString                expVal( aStrBuf.getStr() );
    9037           2 :             sal_Int64              input = 15;
    9038           2 :             sal_Int16              radix = 2;
    9039             : 
    9040           2 :             expVal += OString( "1111" );
    9041           2 :             aStrBuf.append( input, radix );
    9042             : 
    9043           4 :             CPPUNIT_ASSERT_MESSAGE
    9044             :             (
    9045             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
    9046             :                 aStrBuf.getStr()== expVal &&
    9047             :                     aStrBuf.getLength() == expVal.getLength()
    9048           4 :             );
    9049             : 
    9050           2 :         }
    9051             : 
    9052           2 :         void append_005()
    9053             :         {
    9054           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9055           2 :             OString                expVal( aStrBuf.getStr() );
    9056           2 :             sal_Int64              input = 0;
    9057           2 :             sal_Int16              radix = 8;
    9058             : 
    9059           2 :             expVal += OString( "0" );
    9060           2 :             aStrBuf.append( input, radix );
    9061             : 
    9062           4 :             CPPUNIT_ASSERT_MESSAGE
    9063             :             (
    9064             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
    9065             :                 aStrBuf.getStr()== expVal &&
    9066             :                     aStrBuf.getLength() == expVal.getLength()
    9067           4 :             );
    9068             : 
    9069           2 :         }
    9070             : 
    9071           2 :         void append_006()
    9072             :         {
    9073           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9074           2 :             OString                expVal( aStrBuf.getStr() );
    9075           2 :             sal_Int64              input = 4;
    9076           2 :             sal_Int16              radix = 8;
    9077             : 
    9078           2 :             expVal += OString( "4" );
    9079           2 :             aStrBuf.append( input, radix );
    9080             : 
    9081           4 :             CPPUNIT_ASSERT_MESSAGE
    9082             :             (
    9083             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
    9084             :                 aStrBuf.getStr()== expVal &&
    9085             :                     aStrBuf.getLength() == expVal.getLength()
    9086           4 :             );
    9087             : 
    9088           2 :         }
    9089             : 
    9090           2 :         void append_007()
    9091             :         {
    9092           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9093           2 :             OString                expVal( aStrBuf.getStr() );
    9094           2 :             sal_Int64              input = 8;
    9095           2 :             sal_Int16              radix = 8;
    9096             : 
    9097           2 :             expVal += OString( "10" );
    9098           2 :             aStrBuf.append( input, radix );
    9099             : 
    9100           4 :             CPPUNIT_ASSERT_MESSAGE
    9101             :             (
    9102             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
    9103             :                 aStrBuf.getStr()== expVal &&
    9104             :                     aStrBuf.getLength() == expVal.getLength()
    9105           4 :             );
    9106             : 
    9107           2 :         }
    9108             : 
    9109           2 :         void append_008()
    9110             :         {
    9111           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9112           2 :             OString                expVal( aStrBuf.getStr() );
    9113           2 :             sal_Int64              input = 15;
    9114           2 :             sal_Int16              radix = 8;
    9115             : 
    9116           2 :             expVal += OString( "17" );
    9117           2 :             aStrBuf.append( input, radix );
    9118             : 
    9119           4 :             CPPUNIT_ASSERT_MESSAGE
    9120             :             (
    9121             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
    9122             :                 aStrBuf.getStr()== expVal &&
    9123             :                     aStrBuf.getLength() == expVal.getLength()
    9124           4 :             );
    9125             : 
    9126           2 :         }
    9127             : 
    9128           2 :         void append_009()
    9129             :         {
    9130           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9131           2 :             OString                expVal( aStrBuf.getStr() );
    9132           2 :             sal_Int64             input = 0;
    9133           2 :             sal_Int16              radix = 10;
    9134             : 
    9135           2 :             expVal += OString( "0" );
    9136           2 :             aStrBuf.append( input, radix );
    9137             : 
    9138           4 :             CPPUNIT_ASSERT_MESSAGE
    9139             :             (
    9140             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
    9141             :                 aStrBuf.getStr()== expVal &&
    9142             :                     aStrBuf.getLength() == expVal.getLength()
    9143           4 :             );
    9144             : 
    9145           2 :         }
    9146             : 
    9147           2 :         void append_010()
    9148             :         {
    9149           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9150           2 :             OString                expVal( aStrBuf.getStr() );
    9151           2 :             sal_Int64              input = 4;
    9152           2 :             sal_Int16              radix = 10;
    9153             : 
    9154           2 :             expVal += OString( "4" );
    9155           2 :             aStrBuf.append( input, radix );
    9156             : 
    9157           4 :             CPPUNIT_ASSERT_MESSAGE
    9158             :             (
    9159             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
    9160             :                 aStrBuf.getStr()== expVal &&
    9161             :                     aStrBuf.getLength() == expVal.getLength()
    9162           4 :             );
    9163             : 
    9164           2 :         }
    9165             : 
    9166           2 :         void append_011()
    9167             :         {
    9168           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9169           2 :             OString                expVal( aStrBuf.getStr() );
    9170           2 :             sal_Int64              input = 8;
    9171           2 :             sal_Int16              radix = 10;
    9172             : 
    9173           2 :             expVal += OString( "8" );
    9174           2 :             aStrBuf.append( input, radix );
    9175             : 
    9176           4 :             CPPUNIT_ASSERT_MESSAGE
    9177             :             (
    9178             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
    9179             :                 aStrBuf.getStr()== expVal &&
    9180             :                     aStrBuf.getLength() == expVal.getLength()
    9181           4 :             );
    9182             : 
    9183           2 :         }
    9184             : 
    9185           2 :         void append_012()
    9186             :         {
    9187           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9188           2 :             OString                expVal( aStrBuf.getStr() );
    9189           2 :             sal_Int64              input = 15;
    9190           2 :             sal_Int16              radix = 10;
    9191             : 
    9192           2 :             expVal += OString( "15" );
    9193           2 :             aStrBuf.append( input, radix );
    9194             : 
    9195           4 :             CPPUNIT_ASSERT_MESSAGE
    9196             :             (
    9197             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
    9198             :                 aStrBuf.getStr()== expVal &&
    9199             :                     aStrBuf.getLength() == expVal.getLength()
    9200           4 :             );
    9201             : 
    9202           2 :         }
    9203             : 
    9204           2 :         void append_013()
    9205             :         {
    9206           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9207           2 :             OString                expVal( aStrBuf.getStr() );
    9208           2 :             sal_Int64              input = 0;
    9209           2 :             sal_Int16              radix = 16;
    9210             : 
    9211           2 :             expVal += OString( "0" );
    9212           2 :             aStrBuf.append( input, radix );
    9213             : 
    9214           4 :             CPPUNIT_ASSERT_MESSAGE
    9215             :             (
    9216             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
    9217             :                 aStrBuf.getStr()== expVal &&
    9218             :                     aStrBuf.getLength() == expVal.getLength()
    9219           4 :             );
    9220             : 
    9221           2 :         }
    9222             : 
    9223           2 :         void append_014()
    9224             :         {
    9225           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9226           2 :             OString                expVal( aStrBuf.getStr() );
    9227           2 :             sal_Int64              input = 4;
    9228           2 :             sal_Int16              radix = 16;
    9229             : 
    9230           2 :             expVal += OString( "4" );
    9231           2 :             aStrBuf.append( input, radix );
    9232             : 
    9233           4 :             CPPUNIT_ASSERT_MESSAGE
    9234             :             (
    9235             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
    9236             :                 aStrBuf.getStr()== expVal &&
    9237             :                     aStrBuf.getLength() == expVal.getLength()
    9238           4 :             );
    9239             : 
    9240           2 :         }
    9241             : 
    9242           2 :         void append_015()
    9243             :         {
    9244           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9245           2 :             OString                expVal( aStrBuf.getStr() );
    9246           2 :             sal_Int64              input = 8;
    9247           2 :             sal_Int16              radix = 16;
    9248             : 
    9249           2 :             expVal += OString( "8" );
    9250           2 :             aStrBuf.append( input, radix );
    9251             : 
    9252           4 :             CPPUNIT_ASSERT_MESSAGE
    9253             :             (
    9254             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
    9255             :                 aStrBuf.getStr()== expVal &&
    9256             :                     aStrBuf.getLength() == expVal.getLength()
    9257           4 :             );
    9258             : 
    9259           2 :         }
    9260             : 
    9261           2 :         void append_016()
    9262             :         {
    9263           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9264           2 :             OString                expVal( aStrBuf.getStr() );
    9265           2 :             sal_Int64              input = 15;
    9266           2 :             sal_Int16              radix = 16;
    9267             : 
    9268           2 :             expVal += OString( "f" );
    9269           2 :             aStrBuf.append( input, radix );
    9270             : 
    9271           4 :             CPPUNIT_ASSERT_MESSAGE
    9272             :             (
    9273             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
    9274             :                 aStrBuf.getStr()== expVal &&
    9275             :                     aStrBuf.getLength() == expVal.getLength()
    9276           4 :             );
    9277             : 
    9278           2 :         }
    9279             : 
    9280           2 :         void append_017()
    9281             :         {
    9282           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9283           2 :             OString                expVal( aStrBuf.getStr() );
    9284           2 :             sal_Int64              input = 0;
    9285           2 :             sal_Int16              radix = 36;
    9286             : 
    9287           2 :             expVal += OString( "0" );
    9288           2 :             aStrBuf.append( input, radix );
    9289             : 
    9290           4 :             CPPUNIT_ASSERT_MESSAGE
    9291             :             (
    9292             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
    9293             :                 aStrBuf.getStr()== expVal &&
    9294             :                     aStrBuf.getLength() == expVal.getLength()
    9295           4 :             );
    9296             : 
    9297           2 :         }
    9298             : 
    9299           2 :         void append_018()
    9300             :         {
    9301           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9302           2 :             OString                expVal( aStrBuf.getStr() );
    9303           2 :             sal_Int64              input = 4;
    9304           2 :             sal_Int16              radix = 36;
    9305             : 
    9306           2 :             expVal += OString( "4" );
    9307           2 :             aStrBuf.append( input, radix );
    9308             : 
    9309           4 :             CPPUNIT_ASSERT_MESSAGE
    9310             :             (
    9311             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
    9312             :                 aStrBuf.getStr()== expVal &&
    9313             :                     aStrBuf.getLength() == expVal.getLength()
    9314           4 :             );
    9315             : 
    9316           2 :         }
    9317             : 
    9318           2 :         void append_019()
    9319             :         {
    9320           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9321           2 :             OString                expVal( aStrBuf.getStr() );
    9322           2 :             sal_Int64              input = 8;
    9323           2 :             sal_Int16              radix = 36;
    9324             : 
    9325           2 :             expVal += OString( "8" );
    9326           2 :             aStrBuf.append( input, radix );
    9327             : 
    9328           4 :             CPPUNIT_ASSERT_MESSAGE
    9329             :             (
    9330             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
    9331             :                 aStrBuf.getStr()== expVal &&
    9332             :                     aStrBuf.getLength() == expVal.getLength()
    9333           4 :             );
    9334             : 
    9335           2 :         }
    9336             : 
    9337           2 :         void append_020()
    9338             :         {
    9339           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
    9340           2 :             OString                expVal( aStrBuf.getStr() );
    9341           2 :             sal_Int64              input = 35;
    9342           2 :             sal_Int16              radix = 36;
    9343             : 
    9344           2 :             expVal += OString( "z" );
    9345           2 :             aStrBuf.append( input, radix );
    9346             : 
    9347           4 :             CPPUNIT_ASSERT_MESSAGE
    9348             :             (
    9349             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
    9350             :                 aStrBuf.getStr()== expVal &&
    9351             :                     aStrBuf.getLength() == expVal.getLength()
    9352           4 :             );
    9353             : 
    9354           2 :         }
    9355             : 
    9356           2 :         void append_021()
    9357             :         {
    9358           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9359           2 :             OString                expVal( aStrBuf.getStr() );
    9360           2 :             sal_Int64              input = 0;
    9361           2 :             sal_Int16              radix = 2;
    9362             : 
    9363           2 :             expVal += OString( "0" );
    9364           2 :             aStrBuf.append( input, radix );
    9365             : 
    9366           4 :             CPPUNIT_ASSERT_MESSAGE
    9367             :             (
    9368             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
    9369             :                 aStrBuf.getStr()== expVal &&
    9370             :                     aStrBuf.getLength() == expVal.getLength()
    9371           4 :             );
    9372             : 
    9373           2 :         }
    9374             : 
    9375           2 :         void append_022()
    9376             :         {
    9377           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9378           2 :             OString                expVal( aStrBuf.getStr() );
    9379           2 :             sal_Int64              input = 4;
    9380           2 :             sal_Int16              radix = 2;
    9381             : 
    9382           2 :             expVal += OString( "100" );
    9383           2 :             aStrBuf.append( input, radix );
    9384             : 
    9385           4 :             CPPUNIT_ASSERT_MESSAGE
    9386             :             (
    9387             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
    9388             :                 aStrBuf.getStr()== expVal &&
    9389             :                     aStrBuf.getLength() == expVal.getLength()
    9390           4 :             );
    9391             : 
    9392           2 :         }
    9393             : 
    9394           2 :         void append_023()
    9395             :         {
    9396           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9397           2 :             OString                expVal( aStrBuf.getStr() );
    9398           2 :             sal_Int64              input = 8;
    9399           2 :             sal_Int16              radix = 2;
    9400             : 
    9401           2 :             expVal += OString( "1000" );
    9402           2 :             aStrBuf.append( input, radix );
    9403             : 
    9404           4 :             CPPUNIT_ASSERT_MESSAGE
    9405             :             (
    9406             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
    9407             :                 aStrBuf.getStr()== expVal &&
    9408             :                     aStrBuf.getLength() == expVal.getLength()
    9409           4 :             );
    9410             : 
    9411           2 :         }
    9412             : 
    9413           2 :         void append_024()
    9414             :         {
    9415           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9416           2 :             OString                expVal( aStrBuf.getStr() );
    9417           2 :             sal_Int64              input = 15;
    9418           2 :             sal_Int16              radix = 2;
    9419             : 
    9420           2 :             expVal += OString( "1111" );
    9421           2 :             aStrBuf.append( input, radix );
    9422             : 
    9423           4 :             CPPUNIT_ASSERT_MESSAGE
    9424             :             (
    9425             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
    9426             :                 aStrBuf.getStr()== expVal &&
    9427             :                     aStrBuf.getLength() == expVal.getLength()
    9428           4 :             );
    9429             : 
    9430           2 :         }
    9431             : 
    9432           2 :         void append_025()
    9433             :         {
    9434           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9435           2 :             OString                expVal( aStrBuf.getStr() );
    9436           2 :             sal_Int64              input = 0;
    9437           2 :             sal_Int16              radix = 8;
    9438             : 
    9439           2 :             expVal += OString( "0" );
    9440           2 :             aStrBuf.append( input, radix );
    9441             : 
    9442           4 :             CPPUNIT_ASSERT_MESSAGE
    9443             :             (
    9444             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
    9445             :                 aStrBuf.getStr()== expVal &&
    9446             :                     aStrBuf.getLength() == expVal.getLength()
    9447           4 :             );
    9448             : 
    9449           2 :         }
    9450             : 
    9451           2 :         void append_026()
    9452             :         {
    9453           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9454           2 :             OString                expVal( aStrBuf.getStr() );
    9455           2 :             sal_Int64              input = 4;
    9456           2 :             sal_Int16              radix = 8;
    9457             : 
    9458           2 :             expVal += OString( "4" );
    9459           2 :             aStrBuf.append( input, radix );
    9460             : 
    9461           4 :             CPPUNIT_ASSERT_MESSAGE
    9462             :             (
    9463             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
    9464             :                 aStrBuf.getStr()== expVal &&
    9465             :                     aStrBuf.getLength() == expVal.getLength()
    9466           4 :             );
    9467             : 
    9468           2 :         }
    9469             : 
    9470           2 :         void append_027()
    9471             :         {
    9472           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9473           2 :             OString                expVal( aStrBuf.getStr() );
    9474           2 :             sal_Int64              input = 8;
    9475           2 :             sal_Int16              radix = 8;
    9476             : 
    9477           2 :             expVal += OString( "10" );
    9478           2 :             aStrBuf.append( input, radix );
    9479             : 
    9480           4 :             CPPUNIT_ASSERT_MESSAGE
    9481             :             (
    9482             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
    9483             :                 aStrBuf.getStr()== expVal &&
    9484             :                     aStrBuf.getLength() == expVal.getLength()
    9485           4 :             );
    9486             : 
    9487           2 :         }
    9488             : 
    9489           2 :         void append_028()
    9490             :         {
    9491           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9492           2 :             OString                expVal( aStrBuf.getStr() );
    9493           2 :             sal_Int64              input = 15;
    9494           2 :             sal_Int16              radix = 8;
    9495             : 
    9496           2 :             expVal += OString( "17" );
    9497           2 :             aStrBuf.append( input, radix );
    9498             : 
    9499           4 :             CPPUNIT_ASSERT_MESSAGE
    9500             :             (
    9501             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
    9502             :                 aStrBuf.getStr()== expVal &&
    9503             :                     aStrBuf.getLength() == expVal.getLength()
    9504           4 :             );
    9505             : 
    9506           2 :         }
    9507             : 
    9508           2 :         void append_029()
    9509             :         {
    9510           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9511           2 :             OString                expVal( aStrBuf.getStr() );
    9512           2 :             sal_Int64              input = 0;
    9513           2 :             sal_Int16              radix = 10;
    9514             : 
    9515           2 :             expVal += OString( "0" );
    9516           2 :             aStrBuf.append( input, radix );
    9517             : 
    9518           4 :             CPPUNIT_ASSERT_MESSAGE
    9519             :             (
    9520             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
    9521             :                 aStrBuf.getStr()== expVal &&
    9522             :                     aStrBuf.getLength() == expVal.getLength()
    9523           4 :             );
    9524             : 
    9525           2 :         }
    9526             : 
    9527           2 :         void append_030()
    9528             :         {
    9529           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9530           2 :             OString                expVal( aStrBuf.getStr() );
    9531           2 :             sal_Int64              input = 4;
    9532           2 :             sal_Int16              radix = 10;
    9533             : 
    9534           2 :             expVal += OString( "4" );
    9535           2 :             aStrBuf.append( input, radix );
    9536             : 
    9537           4 :             CPPUNIT_ASSERT_MESSAGE
    9538             :             (
    9539             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
    9540             :                 aStrBuf.getStr()== expVal &&
    9541             :                     aStrBuf.getLength() == expVal.getLength()
    9542           4 :             );
    9543             : 
    9544           2 :         }
    9545             : 
    9546           2 :         void append_031()
    9547             :         {
    9548           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9549           2 :             OString                expVal( aStrBuf.getStr() );
    9550           2 :             sal_Int64              input = 8;
    9551           2 :             sal_Int16              radix = 10;
    9552             : 
    9553           2 :             expVal += OString( "8" );
    9554           2 :             aStrBuf.append( input, radix );
    9555             : 
    9556           4 :             CPPUNIT_ASSERT_MESSAGE
    9557             :             (
    9558             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
    9559             :                 aStrBuf.getStr()== expVal &&
    9560             :                     aStrBuf.getLength() == expVal.getLength()
    9561           4 :             );
    9562             : 
    9563           2 :         }
    9564             : 
    9565           2 :         void append_032()
    9566             :         {
    9567           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9568           2 :             OString                expVal( aStrBuf.getStr() );
    9569           2 :             sal_Int64              input = 15;
    9570           2 :             sal_Int16              radix = 10;
    9571             : 
    9572           2 :             expVal += OString( "15" );
    9573           2 :             aStrBuf.append( input, radix );
    9574             : 
    9575           4 :             CPPUNIT_ASSERT_MESSAGE
    9576             :             (
    9577             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
    9578             :                 aStrBuf.getStr()== expVal &&
    9579             :                     aStrBuf.getLength() == expVal.getLength()
    9580           4 :             );
    9581             : 
    9582           2 :         }
    9583             : 
    9584           2 :         void append_033()
    9585             :         {
    9586           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9587           2 :             OString                expVal( aStrBuf.getStr() );
    9588           2 :             sal_Int64              input = 0;
    9589           2 :             sal_Int16              radix = 16;
    9590             : 
    9591           2 :             expVal += OString( "0" );
    9592           2 :             aStrBuf.append( input, radix );
    9593             : 
    9594           4 :             CPPUNIT_ASSERT_MESSAGE
    9595             :             (
    9596             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
    9597             :                 aStrBuf.getStr()== expVal &&
    9598             :                     aStrBuf.getLength() == expVal.getLength()
    9599           4 :             );
    9600             : 
    9601           2 :         }
    9602             : 
    9603           2 :         void append_034()
    9604             :         {
    9605           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9606           2 :             OString                expVal( aStrBuf.getStr() );
    9607           2 :             sal_Int64              input = 4;
    9608           2 :             sal_Int16              radix = 16;
    9609             : 
    9610           2 :             expVal += OString( "4" );
    9611           2 :             aStrBuf.append( input, radix );
    9612             : 
    9613           4 :             CPPUNIT_ASSERT_MESSAGE
    9614             :             (
    9615             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
    9616             :                 aStrBuf.getStr()== expVal &&
    9617             :                     aStrBuf.getLength() == expVal.getLength()
    9618           4 :             );
    9619             : 
    9620           2 :         }
    9621             : 
    9622           2 :         void append_035()
    9623             :         {
    9624           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9625           2 :             OString                expVal( aStrBuf.getStr() );
    9626           2 :             sal_Int64              input = 8;
    9627           2 :             sal_Int16              radix = 16;
    9628             : 
    9629           2 :             expVal += OString( "8" );
    9630           2 :             aStrBuf.append( input, radix );
    9631             : 
    9632           4 :             CPPUNIT_ASSERT_MESSAGE
    9633             :             (
    9634             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
    9635             :                 aStrBuf.getStr()== expVal &&
    9636             :                     aStrBuf.getLength() == expVal.getLength()
    9637           4 :             );
    9638             : 
    9639           2 :         }
    9640             : 
    9641           2 :         void append_036()
    9642             :         {
    9643           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9644           2 :             OString                expVal( aStrBuf.getStr() );
    9645           2 :             sal_Int64              input = 15;
    9646           2 :             sal_Int16              radix = 16;
    9647             : 
    9648           2 :             expVal += OString( "f" );
    9649           2 :             aStrBuf.append( input, radix );
    9650             : 
    9651           4 :             CPPUNIT_ASSERT_MESSAGE
    9652             :             (
    9653             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
    9654             :                 aStrBuf.getStr()== expVal &&
    9655             :                     aStrBuf.getLength() == expVal.getLength()
    9656           4 :             );
    9657             : 
    9658           2 :         }
    9659             : 
    9660           2 :         void append_037()
    9661             :         {
    9662           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9663           2 :             OString                expVal( aStrBuf.getStr() );
    9664           2 :             sal_Int64              input = 0;
    9665           2 :             sal_Int16              radix = 36;
    9666             : 
    9667           2 :             expVal += OString( "0" );
    9668           2 :             aStrBuf.append( input, radix );
    9669             : 
    9670           4 :             CPPUNIT_ASSERT_MESSAGE
    9671             :             (
    9672             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
    9673             :                 aStrBuf.getStr()== expVal &&
    9674             :                     aStrBuf.getLength() == expVal.getLength()
    9675           4 :             );
    9676             : 
    9677           2 :         }
    9678             : 
    9679           2 :         void append_038()
    9680             :         {
    9681           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9682           2 :             OString                expVal( aStrBuf.getStr() );
    9683           2 :             sal_Int64              input = 4;
    9684           2 :             sal_Int16              radix = 36;
    9685             : 
    9686           2 :             expVal += OString( "4" );
    9687           2 :             aStrBuf.append( input, radix );
    9688             : 
    9689           4 :             CPPUNIT_ASSERT_MESSAGE
    9690             :             (
    9691             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
    9692             :                 aStrBuf.getStr()== expVal &&
    9693             :                     aStrBuf.getLength() == expVal.getLength()
    9694           4 :             );
    9695             : 
    9696           2 :         }
    9697             : 
    9698           2 :         void append_039()
    9699             :         {
    9700           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9701           2 :             OString                expVal( aStrBuf.getStr() );
    9702           2 :             sal_Int64              input = 8;
    9703           2 :             sal_Int16              radix = 36;
    9704             : 
    9705           2 :             expVal += OString( "8" );
    9706           2 :             aStrBuf.append( input, radix );
    9707             : 
    9708           4 :             CPPUNIT_ASSERT_MESSAGE
    9709             :             (
    9710             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
    9711             :                 aStrBuf.getStr()== expVal &&
    9712             :                     aStrBuf.getLength() == expVal.getLength()
    9713           4 :             );
    9714             : 
    9715           2 :         }
    9716             : 
    9717           2 :         void append_040()
    9718             :         {
    9719           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
    9720           2 :             OString                expVal( aStrBuf.getStr() );
    9721           2 :             sal_Int64              input = 35;
    9722           2 :             sal_Int16              radix = 36;
    9723             : 
    9724           2 :             expVal += OString( "z" );
    9725           2 :             aStrBuf.append( input, radix );
    9726             : 
    9727           4 :             CPPUNIT_ASSERT_MESSAGE
    9728             :             (
    9729             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
    9730             :                 aStrBuf.getStr()== expVal &&
    9731             :                     aStrBuf.getLength() == expVal.getLength()
    9732           4 :             );
    9733             : 
    9734           2 :         }
    9735             : 
    9736           2 :         void append_041()
    9737             :         {
    9738           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    9739           2 :             OString                expVal( aStrBuf.getStr() );
    9740           2 :             sal_Int64              input = 0;
    9741           2 :             sal_Int16              radix = 2;
    9742             : 
    9743           2 :             expVal += OString( "0" );
    9744           2 :             aStrBuf.append( input, radix );
    9745             : 
    9746           4 :             CPPUNIT_ASSERT_MESSAGE
    9747             :             (
    9748             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
    9749             :                 aStrBuf.getStr()== expVal &&
    9750             :                     aStrBuf.getLength() == expVal.getLength()
    9751           4 :             );
    9752             : 
    9753           2 :         }
    9754             : 
    9755           2 :         void append_042()
    9756             :         {
    9757           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    9758           2 :             OString                expVal( aStrBuf.getStr() );
    9759           2 :             sal_Int64              input = 4;
    9760           2 :             sal_Int16              radix = 2;
    9761             : 
    9762           2 :             expVal += OString( "100" );
    9763           2 :             aStrBuf.append( input, radix );
    9764             : 
    9765           4 :             CPPUNIT_ASSERT_MESSAGE
    9766             :             (
    9767             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
    9768             :                 aStrBuf.getStr()== expVal &&
    9769             :                     aStrBuf.getLength() == expVal.getLength()
    9770           4 :             );
    9771             : 
    9772           2 :         }
    9773             : 
    9774           2 :         void append_043()
    9775             :         {
    9776           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    9777           2 :             OString                expVal( aStrBuf.getStr() );
    9778           2 :             sal_Int64              input = 8;
    9779           2 :             sal_Int16              radix = 2;
    9780             : 
    9781           2 :             expVal += OString( "1000" );
    9782           2 :             aStrBuf.append( input, radix );
    9783             : 
    9784           4 :             CPPUNIT_ASSERT_MESSAGE
    9785             :             (
    9786             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
    9787             :                 aStrBuf.getStr()== expVal &&
    9788             :                     aStrBuf.getLength() == expVal.getLength()
    9789           4 :             );
    9790             : 
    9791           2 :         }
    9792             : 
    9793           2 :         void append_044()
    9794             :         {
    9795           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    9796           2 :             OString                expVal( aStrBuf.getStr() );
    9797           2 :             sal_Int64              input = 15;
    9798           2 :             sal_Int16              radix = 2;
    9799             : 
    9800           2 :             expVal += OString( "1111" );
    9801           2 :             aStrBuf.append( input, radix );
    9802             : 
    9803           4 :             CPPUNIT_ASSERT_MESSAGE
    9804             :             (
    9805             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
    9806             :                 aStrBuf.getStr()== expVal &&
    9807             :                     aStrBuf.getLength() == expVal.getLength()
    9808           4 :             );
    9809             : 
    9810           2 :         }
    9811             : 
    9812           2 :         void append_045()
    9813             :         {
    9814           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    9815           2 :             OString                expVal( aStrBuf.getStr() );
    9816           2 :             sal_Int64              input = 0;
    9817           2 :             sal_Int16              radix = 8;
    9818             : 
    9819           2 :             expVal += OString( "0" );
    9820           2 :             aStrBuf.append( input, radix );
    9821             : 
    9822           4 :             CPPUNIT_ASSERT_MESSAGE
    9823             :             (
    9824             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
    9825             :                 aStrBuf.getStr()== expVal &&
    9826             :                     aStrBuf.getLength() == expVal.getLength()
    9827           4 :             );
    9828             : 
    9829           2 :         }
    9830             : 
    9831           2 :         void append_046()
    9832             :         {
    9833           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    9834           2 :             OString                expVal( aStrBuf.getStr() );
    9835           2 :             sal_Int64              input = 4;
    9836           2 :             sal_Int16              radix = 8;
    9837             : 
    9838           2 :             expVal += OString( "4" );
    9839           2 :             aStrBuf.append( input, radix );
    9840             : 
    9841           4 :             CPPUNIT_ASSERT_MESSAGE
    9842             :             (
    9843             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
    9844             :                 aStrBuf.getStr()== expVal &&
    9845             :                     aStrBuf.getLength() == expVal.getLength()
    9846           4 :             );
    9847             : 
    9848           2 :         }
    9849             : 
    9850           2 :         void append_047()
    9851             :         {
    9852           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    9853           2 :             OString                expVal( aStrBuf.getStr() );
    9854           2 :             sal_Int64              input = 8;
    9855           2 :             sal_Int16              radix = 8;
    9856             : 
    9857           2 :             expVal += OString( "10" );
    9858           2 :             aStrBuf.append( input, radix );
    9859             : 
    9860           4 :             CPPUNIT_ASSERT_MESSAGE
    9861             :             (
    9862             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
    9863             :                 aStrBuf.getStr()== expVal &&
    9864             :                     aStrBuf.getLength() == expVal.getLength()
    9865           4 :             );
    9866             : 
    9867           2 :         }
    9868             : 
    9869           2 :         void append_048()
    9870             :         {
    9871           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    9872           2 :             OString                expVal( aStrBuf.getStr() );
    9873           2 :             sal_Int64              input = 15;
    9874           2 :             sal_Int16              radix = 8;
    9875             : 
    9876           2 :             expVal += OString( "17" );
    9877           2 :             aStrBuf.append( input, radix );
    9878             : 
    9879           4 :             CPPUNIT_ASSERT_MESSAGE
    9880             :             (
    9881             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
    9882             :                 aStrBuf.getStr()== expVal &&
    9883             :                     aStrBuf.getLength() == expVal.getLength()
    9884           4 :             );
    9885             : 
    9886           2 :         }
    9887             : 
    9888           2 :         void append_049()
    9889             :         {
    9890           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    9891           2 :             OString                expVal( aStrBuf.getStr() );
    9892           2 :             sal_Int64              input = 0;
    9893           2 :             sal_Int16              radix = 10;
    9894             : 
    9895           2 :             expVal += OString( "0" );
    9896           2 :             aStrBuf.append( input, radix );
    9897             : 
    9898           4 :             CPPUNIT_ASSERT_MESSAGE
    9899             :             (
    9900             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
    9901             :                 aStrBuf.getStr()== expVal &&
    9902             :                     aStrBuf.getLength() == expVal.getLength()
    9903           4 :             );
    9904             : 
    9905           2 :         }
    9906             : 
    9907           2 :         void append_050()
    9908             :         {
    9909           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    9910           2 :             OString                expVal( aStrBuf.getStr() );
    9911           2 :             sal_Int64              input = 4;
    9912           2 :             sal_Int16              radix = 10;
    9913             : 
    9914           2 :             expVal += OString( "4" );
    9915           2 :             aStrBuf.append( input, radix );
    9916             : 
    9917           4 :             CPPUNIT_ASSERT_MESSAGE
    9918             :             (
    9919             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
    9920             :                 aStrBuf.getStr()== expVal &&
    9921             :                     aStrBuf.getLength() == expVal.getLength()
    9922           4 :             );
    9923             : 
    9924           2 :         }
    9925             : 
    9926           2 :         void append_051()
    9927             :         {
    9928           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    9929           2 :             OString                expVal( aStrBuf.getStr() );
    9930           2 :             sal_Int64              input = 8;
    9931           2 :             sal_Int16              radix = 10;
    9932             : 
    9933           2 :             expVal += OString( "8" );
    9934           2 :             aStrBuf.append( input, radix );
    9935             : 
    9936           4 :             CPPUNIT_ASSERT_MESSAGE
    9937             :             (
    9938             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
    9939             :                 aStrBuf.getStr()== expVal &&
    9940             :                     aStrBuf.getLength() == expVal.getLength()
    9941           4 :             );
    9942             : 
    9943           2 :         }
    9944             : 
    9945           2 :         void append_052()
    9946             :         {
    9947           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    9948           2 :             OString                expVal( aStrBuf.getStr() );
    9949           2 :             sal_Int64              input = 15;
    9950           2 :             sal_Int16              radix = 10;
    9951             : 
    9952           2 :             expVal += OString( "15" );
    9953           2 :             aStrBuf.append( input, radix );
    9954             : 
    9955           4 :             CPPUNIT_ASSERT_MESSAGE
    9956             :             (
    9957             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
    9958             :                 aStrBuf.getStr()== expVal &&
    9959             :                     aStrBuf.getLength() == expVal.getLength()
    9960           4 :             );
    9961             : 
    9962           2 :         }
    9963             : 
    9964           2 :         void append_053()
    9965             :         {
    9966           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    9967           2 :             OString                expVal( aStrBuf.getStr() );
    9968           2 :             sal_Int64              input = 0;
    9969           2 :             sal_Int16              radix = 16;
    9970             : 
    9971           2 :             expVal += OString( "0" );
    9972           2 :             aStrBuf.append( input, radix );
    9973             : 
    9974           4 :             CPPUNIT_ASSERT_MESSAGE
    9975             :             (
    9976             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
    9977             :                 aStrBuf.getStr()== expVal &&
    9978             :                     aStrBuf.getLength() == expVal.getLength()
    9979           4 :             );
    9980             : 
    9981           2 :         }
    9982             : 
    9983           2 :         void append_054()
    9984             :         {
    9985           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
    9986           2 :             OString                expVal( aStrBuf.getStr() );
    9987           2 :             sal_Int64              input = 4;
    9988           2 :             sal_Int16              radix = 16;
    9989             : 
    9990           2 :             expVal += OString( "4" );
    9991           2 :             aStrBuf.append( input, radix );
    9992             : 
    9993           4 :             CPPUNIT_ASSERT_MESSAGE
    9994             :             (
    9995             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
    9996             :                 aStrBuf.getStr()== expVal &&
    9997             :                     aStrBuf.getLength() == expVal.getLength()
    9998           4 :             );
    9999             : 
   10000           2 :         }
   10001             : 
   10002           2 :         void append_055()
   10003             :         {
   10004           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   10005           2 :             OString                expVal( aStrBuf.getStr() );
   10006           2 :             sal_Int64              input = 8;
   10007           2 :             sal_Int16              radix = 16;
   10008             : 
   10009           2 :             expVal += OString( "8" );
   10010           2 :             aStrBuf.append( input, radix );
   10011             : 
   10012           4 :             CPPUNIT_ASSERT_MESSAGE
   10013             :             (
   10014             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
   10015             :                 aStrBuf.getStr()== expVal &&
   10016             :                     aStrBuf.getLength() == expVal.getLength()
   10017           4 :             );
   10018             : 
   10019           2 :         }
   10020             : 
   10021           2 :         void append_056()
   10022             :         {
   10023           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   10024           2 :             OString                expVal( aStrBuf.getStr() );
   10025           2 :             sal_Int64              input = 15;
   10026           2 :             sal_Int16              radix = 16;
   10027             : 
   10028           2 :             expVal += OString( "f" );
   10029           2 :             aStrBuf.append( input, radix );
   10030             : 
   10031           4 :             CPPUNIT_ASSERT_MESSAGE
   10032             :             (
   10033             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
   10034             :                 aStrBuf.getStr()== expVal &&
   10035             :                     aStrBuf.getLength() == expVal.getLength()
   10036           4 :             );
   10037             : 
   10038           2 :         }
   10039             : 
   10040           2 :         void append_057()
   10041             :         {
   10042           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   10043           2 :             OString                expVal( aStrBuf.getStr() );
   10044           2 :             sal_Int64              input = 0;
   10045           2 :             sal_Int16              radix = 36;
   10046             : 
   10047           2 :             expVal += OString( "0" );
   10048           2 :             aStrBuf.append( input, radix );
   10049             : 
   10050           4 :             CPPUNIT_ASSERT_MESSAGE
   10051             :             (
   10052             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
   10053             :                 aStrBuf.getStr()== expVal &&
   10054             :                     aStrBuf.getLength() == expVal.getLength()
   10055           4 :             );
   10056             : 
   10057           2 :         }
   10058             : 
   10059           2 :         void append_058()
   10060             :         {
   10061           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   10062           2 :             OString                expVal( aStrBuf.getStr() );
   10063           2 :             sal_Int64              input = 4;
   10064           2 :             sal_Int16              radix = 36;
   10065             : 
   10066           2 :             expVal += OString( "4" );
   10067           2 :             aStrBuf.append( input, radix );
   10068             : 
   10069           4 :             CPPUNIT_ASSERT_MESSAGE
   10070             :             (
   10071             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
   10072             :                 aStrBuf.getStr()== expVal &&
   10073             :                     aStrBuf.getLength() == expVal.getLength()
   10074           4 :             );
   10075             : 
   10076           2 :         }
   10077             : 
   10078           2 :         void append_059()
   10079             :         {
   10080           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   10081           2 :             OString                expVal( aStrBuf.getStr() );
   10082           2 :             sal_Int64              input = 8;
   10083           2 :             sal_Int16              radix = 36;
   10084             : 
   10085           2 :             expVal += OString( "8" );
   10086           2 :             aStrBuf.append( input, radix );
   10087             : 
   10088           4 :             CPPUNIT_ASSERT_MESSAGE
   10089             :             (
   10090             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
   10091             :                 aStrBuf.getStr()== expVal &&
   10092             :                     aStrBuf.getLength() == expVal.getLength()
   10093           4 :             );
   10094             : 
   10095           2 :         }
   10096             : 
   10097           2 :         void append_060()
   10098             :         {
   10099           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   10100           2 :             OString                expVal( aStrBuf.getStr() );
   10101           2 :             sal_Int64              input = 35;
   10102           2 :             sal_Int16              radix = 36;
   10103             : 
   10104           2 :             expVal += OString( "z" );
   10105           2 :             aStrBuf.append( input, radix );
   10106             : 
   10107           4 :             CPPUNIT_ASSERT_MESSAGE
   10108             :             (
   10109             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
   10110             :                 aStrBuf.getStr()== expVal &&
   10111             :                     aStrBuf.getLength() == expVal.getLength()
   10112           4 :             );
   10113             : 
   10114           2 :         }
   10115             : 
   10116           2 :         void append_061()
   10117             :         {
   10118           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10119           2 :             OString                expVal( aStrBuf.getStr() );
   10120           2 :             sal_Int64              input = 0;
   10121           2 :             sal_Int16              radix = 2;
   10122             : 
   10123           2 :             expVal += OString( "0" );
   10124           2 :             aStrBuf.append( input, radix );
   10125             : 
   10126           4 :             CPPUNIT_ASSERT_MESSAGE
   10127             :             (
   10128             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
   10129             :                 aStrBuf.getStr()== expVal &&
   10130             :                     aStrBuf.getLength() == expVal.getLength()
   10131           4 :             );
   10132             : 
   10133           2 :         }
   10134             : 
   10135           2 :         void append_062()
   10136             :         {
   10137           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10138           2 :             OString                expVal( aStrBuf.getStr() );
   10139           2 :             sal_Int64              input = 4;
   10140           2 :             sal_Int16              radix = 2;
   10141             : 
   10142           2 :             expVal += OString( "100" );
   10143           2 :             aStrBuf.append( input, radix );
   10144             : 
   10145           4 :             CPPUNIT_ASSERT_MESSAGE
   10146             :             (
   10147             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
   10148             :                 aStrBuf.getStr()== expVal &&
   10149             :                     aStrBuf.getLength() == expVal.getLength()
   10150           4 :             );
   10151             : 
   10152           2 :         }
   10153             : 
   10154           2 :         void append_063()
   10155             :         {
   10156           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10157           2 :             OString                expVal( aStrBuf.getStr() );
   10158           2 :             sal_Int64              input = 8;
   10159           2 :             sal_Int16              radix = 2;
   10160             : 
   10161           2 :             expVal += OString( "1000" );
   10162           2 :             aStrBuf.append( input, radix );
   10163             : 
   10164           4 :             CPPUNIT_ASSERT_MESSAGE
   10165             :             (
   10166             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
   10167             :                 aStrBuf.getStr()== expVal &&
   10168             :                     aStrBuf.getLength() == expVal.getLength()
   10169           4 :             );
   10170             : 
   10171           2 :         }
   10172             : 
   10173           2 :         void append_064()
   10174             :         {
   10175           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10176           2 :             OString                expVal( aStrBuf.getStr() );
   10177           2 :             sal_Int64              input = 15;
   10178           2 :             sal_Int16              radix = 2;
   10179             : 
   10180           2 :             expVal += OString( "1111" );
   10181           2 :             aStrBuf.append( input, radix );
   10182             : 
   10183           4 :             CPPUNIT_ASSERT_MESSAGE
   10184             :             (
   10185             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
   10186             :                 aStrBuf.getStr()== expVal &&
   10187             :                     aStrBuf.getLength() == expVal.getLength()
   10188           4 :             );
   10189             : 
   10190           2 :         }
   10191             : 
   10192           2 :         void append_065()
   10193             :         {
   10194           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10195           2 :             OString                expVal( aStrBuf.getStr() );
   10196           2 :             sal_Int64              input = 0;
   10197           2 :             sal_Int16              radix = 8;
   10198             : 
   10199           2 :             expVal += OString( "0" );
   10200           2 :             aStrBuf.append( input, radix );
   10201             : 
   10202           4 :             CPPUNIT_ASSERT_MESSAGE
   10203             :             (
   10204             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
   10205             :                 aStrBuf.getStr()== expVal &&
   10206             :                     aStrBuf.getLength() == expVal.getLength()
   10207           4 :             );
   10208             : 
   10209           2 :         }
   10210             : 
   10211           2 :         void append_066()
   10212             :         {
   10213           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10214           2 :             OString                expVal( aStrBuf.getStr() );
   10215           2 :             sal_Int64              input = 4;
   10216           2 :             sal_Int16              radix = 8;
   10217             : 
   10218           2 :             expVal += OString( "4" );
   10219           2 :             aStrBuf.append( input, radix );
   10220             : 
   10221           4 :             CPPUNIT_ASSERT_MESSAGE
   10222             :             (
   10223             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
   10224             :                 aStrBuf.getStr()== expVal &&
   10225             :                     aStrBuf.getLength() == expVal.getLength()
   10226           4 :             );
   10227             : 
   10228           2 :         }
   10229             : 
   10230           2 :         void append_067()
   10231             :         {
   10232           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10233           2 :             OString                expVal( aStrBuf.getStr() );
   10234           2 :             sal_Int64              input = 8;
   10235           2 :             sal_Int16              radix = 8;
   10236             : 
   10237           2 :             expVal += OString( "10" );
   10238           2 :             aStrBuf.append( input, radix );
   10239             : 
   10240           4 :             CPPUNIT_ASSERT_MESSAGE
   10241             :             (
   10242             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
   10243             :                 aStrBuf.getStr()== expVal &&
   10244             :                     aStrBuf.getLength() == expVal.getLength()
   10245           4 :             );
   10246             : 
   10247           2 :         }
   10248             : 
   10249           2 :         void append_068()
   10250             :         {
   10251           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10252           2 :             OString                expVal( aStrBuf.getStr() );
   10253           2 :             sal_Int64              input = 15;
   10254           2 :             sal_Int16              radix = 8;
   10255             : 
   10256           2 :             expVal += OString( "17" );
   10257           2 :             aStrBuf.append( input, radix );
   10258             : 
   10259           4 :             CPPUNIT_ASSERT_MESSAGE
   10260             :             (
   10261             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
   10262             :                 aStrBuf.getStr()== expVal &&
   10263             :                     aStrBuf.getLength() == expVal.getLength()
   10264           4 :             );
   10265             : 
   10266           2 :         }
   10267             : 
   10268           2 :         void append_069()
   10269             :         {
   10270           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10271           2 :             OString                expVal( aStrBuf.getStr() );
   10272           2 :             sal_Int64              input = 0;
   10273           2 :             sal_Int16              radix = 10;
   10274             : 
   10275           2 :             expVal += OString( "0" );
   10276           2 :             aStrBuf.append( input, radix );
   10277             : 
   10278           4 :             CPPUNIT_ASSERT_MESSAGE
   10279             :             (
   10280             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
   10281             :                 aStrBuf.getStr()== expVal &&
   10282             :                     aStrBuf.getLength() == expVal.getLength()
   10283           4 :             );
   10284             : 
   10285           2 :         }
   10286             : 
   10287           2 :         void append_070()
   10288             :         {
   10289           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10290           2 :             OString                expVal( aStrBuf.getStr() );
   10291           2 :             sal_Int64              input = 4;
   10292           2 :             sal_Int16              radix = 10;
   10293             : 
   10294           2 :             expVal += OString( "4" );
   10295           2 :             aStrBuf.append( input, radix );
   10296             : 
   10297           4 :             CPPUNIT_ASSERT_MESSAGE
   10298             :             (
   10299             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
   10300             :                 aStrBuf.getStr()== expVal &&
   10301             :                     aStrBuf.getLength() == expVal.getLength()
   10302           4 :             );
   10303             : 
   10304           2 :         }
   10305             : 
   10306           2 :         void append_071()
   10307             :         {
   10308           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10309           2 :             OString                expVal( aStrBuf.getStr() );
   10310           2 :             sal_Int64              input = 8;
   10311           2 :             sal_Int16              radix = 10;
   10312             : 
   10313           2 :             expVal += OString( "8" );
   10314           2 :             aStrBuf.append( input, radix );
   10315             : 
   10316           4 :             CPPUNIT_ASSERT_MESSAGE
   10317             :             (
   10318             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
   10319             :                 aStrBuf.getStr()== expVal &&
   10320             :                     aStrBuf.getLength() == expVal.getLength()
   10321           4 :             );
   10322             : 
   10323           2 :         }
   10324             : 
   10325           2 :         void append_072()
   10326             :         {
   10327           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10328           2 :             OString                expVal( aStrBuf.getStr() );
   10329           2 :             sal_Int64              input = 15;
   10330           2 :             sal_Int16              radix = 10;
   10331             : 
   10332           2 :             expVal += OString( "15" );
   10333           2 :             aStrBuf.append( input, radix );
   10334             : 
   10335           4 :             CPPUNIT_ASSERT_MESSAGE
   10336             :             (
   10337             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
   10338             :                 aStrBuf.getStr()== expVal &&
   10339             :                     aStrBuf.getLength() == expVal.getLength()
   10340           4 :             );
   10341             : 
   10342           2 :         }
   10343             : 
   10344           2 :         void append_073()
   10345             :         {
   10346           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10347           2 :             OString                expVal( aStrBuf.getStr() );
   10348           2 :             sal_Int64              input = 0;
   10349           2 :             sal_Int16              radix = 16;
   10350             : 
   10351           2 :             expVal += OString( "0" );
   10352           2 :             aStrBuf.append( input, radix );
   10353             : 
   10354           4 :             CPPUNIT_ASSERT_MESSAGE
   10355             :             (
   10356             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
   10357             :                 aStrBuf.getStr()== expVal &&
   10358             :                     aStrBuf.getLength() == expVal.getLength()
   10359           4 :             );
   10360             : 
   10361           2 :         }
   10362             : 
   10363           2 :         void append_074()
   10364             :         {
   10365           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10366           2 :             OString                expVal( aStrBuf.getStr() );
   10367           2 :             sal_Int64              input = 4;
   10368           2 :             sal_Int16              radix = 16;
   10369             : 
   10370           2 :             expVal += OString( "4" );
   10371           2 :             aStrBuf.append( input, radix );
   10372             : 
   10373           4 :             CPPUNIT_ASSERT_MESSAGE
   10374             :             (
   10375             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
   10376             :                 aStrBuf.getStr()== expVal &&
   10377             :                     aStrBuf.getLength() == expVal.getLength()
   10378           4 :             );
   10379             : 
   10380           2 :         }
   10381             : 
   10382           2 :         void append_075()
   10383             :         {
   10384           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10385           2 :             OString                expVal( aStrBuf.getStr() );
   10386           2 :             sal_Int64              input = 8;
   10387           2 :             sal_Int16              radix = 16;
   10388             : 
   10389           2 :             expVal += OString( "8" );
   10390           2 :             aStrBuf.append( input, radix );
   10391             : 
   10392           4 :             CPPUNIT_ASSERT_MESSAGE
   10393             :             (
   10394             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
   10395             :                 aStrBuf.getStr()== expVal &&
   10396             :                     aStrBuf.getLength() == expVal.getLength()
   10397           4 :             );
   10398             : 
   10399           2 :         }
   10400             : 
   10401           2 :         void append_076()
   10402             :         {
   10403           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10404           2 :             OString                expVal( aStrBuf.getStr() );
   10405           2 :             sal_Int64              input = 15;
   10406           2 :             sal_Int16              radix = 16;
   10407             : 
   10408           2 :             expVal += OString( "f" );
   10409           2 :             aStrBuf.append( input, radix );
   10410             : 
   10411           4 :             CPPUNIT_ASSERT_MESSAGE
   10412             :             (
   10413             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
   10414             :                 aStrBuf.getStr()== expVal &&
   10415             :                     aStrBuf.getLength() == expVal.getLength()
   10416           4 :             );
   10417             : 
   10418           2 :         }
   10419             : 
   10420           2 :         void append_077()
   10421             :         {
   10422           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10423           2 :             OString                expVal( aStrBuf.getStr() );
   10424           2 :             sal_Int64              input = 0;
   10425           2 :             sal_Int16              radix = 36;
   10426             : 
   10427           2 :             expVal += OString( "0" );
   10428           2 :             aStrBuf.append( input, radix );
   10429             : 
   10430           4 :             CPPUNIT_ASSERT_MESSAGE
   10431             :             (
   10432             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
   10433             :                 aStrBuf.getStr()== expVal &&
   10434             :                     aStrBuf.getLength() == expVal.getLength()
   10435           4 :             );
   10436             : 
   10437           2 :         }
   10438             : 
   10439           2 :         void append_078()
   10440             :         {
   10441           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10442           2 :             OString                expVal( aStrBuf.getStr() );
   10443           2 :             sal_Int64              input = 4;
   10444           2 :             sal_Int16              radix = 36;
   10445             : 
   10446           2 :             expVal += OString( "4" );
   10447           2 :             aStrBuf.append( input, radix );
   10448             : 
   10449           4 :             CPPUNIT_ASSERT_MESSAGE
   10450             :             (
   10451             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
   10452             :                 aStrBuf.getStr()== expVal &&
   10453             :                     aStrBuf.getLength() == expVal.getLength()
   10454           4 :             );
   10455             : 
   10456           2 :         }
   10457             : 
   10458           2 :         void append_079()
   10459             :         {
   10460           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10461           2 :             OString                expVal( aStrBuf.getStr() );
   10462           2 :             sal_Int64              input = 8;
   10463           2 :             sal_Int16              radix = 36;
   10464             : 
   10465           2 :             expVal += OString( "8" );
   10466           2 :             aStrBuf.append( input, radix );
   10467             : 
   10468           4 :             CPPUNIT_ASSERT_MESSAGE
   10469             :             (
   10470             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
   10471             :                 aStrBuf.getStr()== expVal &&
   10472             :                     aStrBuf.getLength() == expVal.getLength()
   10473           4 :             );
   10474             : 
   10475           2 :         }
   10476             : 
   10477           2 :         void append_080()
   10478             :         {
   10479           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   10480           2 :             OString                expVal( aStrBuf.getStr() );
   10481           2 :             sal_Int64              input = 35;
   10482           2 :             sal_Int16              radix = 36;
   10483             : 
   10484           2 :             expVal += OString( "z" );
   10485           2 :             aStrBuf.append( input, radix );
   10486             : 
   10487           4 :             CPPUNIT_ASSERT_MESSAGE
   10488             :             (
   10489             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
   10490             :                 aStrBuf.getStr()== expVal &&
   10491             :                     aStrBuf.getLength() == expVal.getLength()
   10492           4 :             );
   10493             : 
   10494           2 :         }
   10495             : 
   10496           2 :         void append_081()
   10497             :         {
   10498           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10499           2 :             OString                expVal( aStrBuf.getStr() );
   10500           2 :             sal_Int64              input = 0;
   10501           2 :             sal_Int16              radix = 2;
   10502             : 
   10503           2 :             expVal += OString( "0" );
   10504           2 :             aStrBuf.append( input, radix );
   10505             : 
   10506           4 :             CPPUNIT_ASSERT_MESSAGE
   10507             :             (
   10508             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
   10509             :                 aStrBuf.getStr()== expVal &&
   10510             :                     aStrBuf.getLength() == expVal.getLength()
   10511           4 :             );
   10512             : 
   10513           2 :         }
   10514             : 
   10515           2 :         void append_082()
   10516             :         {
   10517           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10518           2 :             OString                expVal( aStrBuf.getStr() );
   10519           2 :             sal_Int64              input = 4;
   10520           2 :             sal_Int16              radix = 2;
   10521             : 
   10522           2 :             expVal += OString( "100" );
   10523           2 :             aStrBuf.append( input, radix );
   10524             : 
   10525           4 :             CPPUNIT_ASSERT_MESSAGE
   10526             :             (
   10527             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
   10528             :                 aStrBuf.getStr()== expVal &&
   10529             :                     aStrBuf.getLength() == expVal.getLength()
   10530           4 :             );
   10531             : 
   10532           2 :         }
   10533             : 
   10534           2 :         void append_083()
   10535             :         {
   10536           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10537           2 :             OString                expVal( aStrBuf.getStr() );
   10538           2 :             sal_Int64              input = 8;
   10539           2 :             sal_Int16              radix = 2;
   10540             : 
   10541           2 :             expVal += OString( "1000" );
   10542           2 :             aStrBuf.append( input, radix );
   10543             : 
   10544           4 :             CPPUNIT_ASSERT_MESSAGE
   10545             :             (
   10546             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
   10547             :                 aStrBuf.getStr()== expVal &&
   10548             :                     aStrBuf.getLength() == expVal.getLength()
   10549           4 :             );
   10550             : 
   10551           2 :         }
   10552             : 
   10553           2 :         void append_084()
   10554             :         {
   10555           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10556           2 :             OString                expVal( aStrBuf.getStr() );
   10557           2 :             sal_Int64              input = 15;
   10558           2 :             sal_Int16              radix = 2;
   10559             : 
   10560           2 :             expVal += OString( "1111" );
   10561           2 :             aStrBuf.append( input, radix );
   10562             : 
   10563           4 :             CPPUNIT_ASSERT_MESSAGE
   10564             :             (
   10565             :                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
   10566             :                 aStrBuf.getStr()== expVal &&
   10567             :                     aStrBuf.getLength() == expVal.getLength()
   10568           4 :             );
   10569             : 
   10570           2 :         }
   10571             : 
   10572           2 :         void append_085()
   10573             :         {
   10574           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10575           2 :             OString                expVal( aStrBuf.getStr() );
   10576           2 :             sal_Int64              input = 0;
   10577           2 :             sal_Int16              radix = 8;
   10578             : 
   10579           2 :             expVal += OString( "0" );
   10580           2 :             aStrBuf.append( input, radix );
   10581             : 
   10582           4 :             CPPUNIT_ASSERT_MESSAGE
   10583             :             (
   10584             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
   10585             :                 aStrBuf.getStr()== expVal &&
   10586             :                     aStrBuf.getLength() == expVal.getLength()
   10587           4 :             );
   10588             : 
   10589           2 :         }
   10590             : 
   10591           2 :         void append_086()
   10592             :         {
   10593           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10594           2 :             OString                expVal( aStrBuf.getStr() );
   10595           2 :             sal_Int64              input = 4;
   10596           2 :             sal_Int16              radix = 8;
   10597             : 
   10598           2 :             expVal += OString( "4" );
   10599           2 :             aStrBuf.append( input, radix );
   10600             : 
   10601           4 :             CPPUNIT_ASSERT_MESSAGE
   10602             :             (
   10603             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
   10604             :                 aStrBuf.getStr()== expVal &&
   10605             :                     aStrBuf.getLength() == expVal.getLength()
   10606           4 :             );
   10607             : 
   10608           2 :         }
   10609             : 
   10610           2 :         void append_087()
   10611             :         {
   10612           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10613           2 :             OString                expVal( aStrBuf.getStr() );
   10614           2 :             sal_Int64              input = 8;
   10615           2 :             sal_Int16              radix = 8;
   10616             : 
   10617           2 :             expVal += OString( "10" );
   10618           2 :             aStrBuf.append( input, radix );
   10619             : 
   10620           4 :             CPPUNIT_ASSERT_MESSAGE
   10621             :             (
   10622             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
   10623             :                 aStrBuf.getStr()== expVal &&
   10624             :                     aStrBuf.getLength() == expVal.getLength()
   10625           4 :             );
   10626             : 
   10627           2 :         }
   10628             : 
   10629           2 :         void append_088()
   10630             :         {
   10631           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10632           2 :             OString                expVal( aStrBuf.getStr() );
   10633           2 :             sal_Int64              input = 15;
   10634           2 :             sal_Int16              radix = 8;
   10635             : 
   10636           2 :             expVal += OString( "17" );
   10637           2 :             aStrBuf.append( input, radix );
   10638             : 
   10639           4 :             CPPUNIT_ASSERT_MESSAGE
   10640             :             (
   10641             :                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
   10642             :                 aStrBuf.getStr()== expVal &&
   10643             :                     aStrBuf.getLength() == expVal.getLength()
   10644           4 :             );
   10645             : 
   10646           2 :         }
   10647             : 
   10648           2 :         void append_089()
   10649             :         {
   10650           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10651           2 :             OString                expVal( aStrBuf.getStr() );
   10652           2 :             sal_Int64              input = 0;
   10653           2 :             sal_Int16              radix = 10;
   10654             : 
   10655           2 :             expVal += OString( "0" );
   10656           2 :             aStrBuf.append( input, radix );
   10657             : 
   10658           4 :             CPPUNIT_ASSERT_MESSAGE
   10659             :             (
   10660             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
   10661             :                 aStrBuf.getStr()== expVal &&
   10662             :                     aStrBuf.getLength() == expVal.getLength()
   10663           4 :             );
   10664             : 
   10665           2 :         }
   10666             : 
   10667           2 :         void append_090()
   10668             :         {
   10669           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10670           2 :             OString                expVal( aStrBuf.getStr() );
   10671           2 :             sal_Int64              input = 4;
   10672           2 :             sal_Int16              radix = 10;
   10673             : 
   10674           2 :             expVal += OString( "4" );
   10675           2 :             aStrBuf.append( input, radix );
   10676             : 
   10677           4 :             CPPUNIT_ASSERT_MESSAGE
   10678             :             (
   10679             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
   10680             :                 aStrBuf.getStr()== expVal &&
   10681             :                     aStrBuf.getLength() == expVal.getLength()
   10682           4 :             );
   10683             : 
   10684           2 :         }
   10685             : 
   10686           2 :         void append_091()
   10687             :         {
   10688           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10689           2 :             OString                expVal( aStrBuf.getStr() );
   10690           2 :             sal_Int64              input = 8;
   10691           2 :             sal_Int16              radix = 10;
   10692             : 
   10693           2 :             expVal += OString( "8" );
   10694           2 :             aStrBuf.append( input, radix );
   10695             : 
   10696           4 :             CPPUNIT_ASSERT_MESSAGE
   10697             :             (
   10698             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
   10699             :                 aStrBuf.getStr()== expVal &&
   10700             :                     aStrBuf.getLength() == expVal.getLength()
   10701           4 :             );
   10702             : 
   10703           2 :         }
   10704             : 
   10705           2 :         void append_092()
   10706             :         {
   10707           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10708           2 :             OString                expVal( aStrBuf.getStr() );
   10709           2 :             sal_Int64              input = 15;
   10710           2 :             sal_Int16              radix = 10;
   10711             : 
   10712           2 :             expVal += OString( "15" );
   10713           2 :             aStrBuf.append( input, radix );
   10714             : 
   10715           4 :             CPPUNIT_ASSERT_MESSAGE
   10716             :             (
   10717             :                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
   10718             :                 aStrBuf.getStr()== expVal &&
   10719             :                     aStrBuf.getLength() == expVal.getLength()
   10720           4 :             );
   10721             : 
   10722           2 :         }
   10723             : 
   10724           2 :         void append_093()
   10725             :         {
   10726           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10727           2 :             OString                expVal( aStrBuf.getStr() );
   10728           2 :             sal_Int64              input = 0;
   10729           2 :             sal_Int16              radix = 16;
   10730             : 
   10731           2 :             expVal += OString( "0" );
   10732           2 :             aStrBuf.append( input, radix );
   10733             : 
   10734           4 :             CPPUNIT_ASSERT_MESSAGE
   10735             :             (
   10736             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
   10737             :                 aStrBuf.getStr()== expVal &&
   10738             :                     aStrBuf.getLength() == expVal.getLength()
   10739           4 :             );
   10740             : 
   10741           2 :         }
   10742             : 
   10743           2 :         void append_094()
   10744             :         {
   10745           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10746           2 :             OString                expVal( aStrBuf.getStr() );
   10747           2 :             sal_Int64              input = 4;
   10748           2 :             sal_Int16              radix = 16;
   10749             : 
   10750           2 :             expVal += OString( "4" );
   10751           2 :             aStrBuf.append( input, radix );
   10752             : 
   10753           4 :             CPPUNIT_ASSERT_MESSAGE
   10754             :             (
   10755             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
   10756             :                 aStrBuf.getStr()== expVal &&
   10757             :                     aStrBuf.getLength() == expVal.getLength()
   10758           4 :             );
   10759             : 
   10760           2 :         }
   10761             : 
   10762           2 :         void append_095()
   10763             :         {
   10764           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10765           2 :             OString                expVal( aStrBuf.getStr() );
   10766           2 :             sal_Int64              input = 8;
   10767           2 :             sal_Int16              radix = 16;
   10768             : 
   10769           2 :             expVal += OString( "8" );
   10770           2 :             aStrBuf.append( input, radix );
   10771             : 
   10772           4 :             CPPUNIT_ASSERT_MESSAGE
   10773             :             (
   10774             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
   10775             :                 aStrBuf.getStr()== expVal &&
   10776             :                     aStrBuf.getLength() == expVal.getLength()
   10777           4 :             );
   10778             : 
   10779           2 :         }
   10780             : 
   10781           2 :         void append_096()
   10782             :         {
   10783           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10784           2 :             OString                expVal( aStrBuf.getStr() );
   10785           2 :             sal_Int64              input = 15;
   10786           2 :             sal_Int16              radix = 16;
   10787             : 
   10788           2 :             expVal += OString( "f" );
   10789           2 :             aStrBuf.append( input, radix );
   10790             : 
   10791           4 :             CPPUNIT_ASSERT_MESSAGE
   10792             :             (
   10793             :                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
   10794             :                 aStrBuf.getStr()== expVal &&
   10795             :                     aStrBuf.getLength() == expVal.getLength()
   10796           4 :             );
   10797             : 
   10798           2 :         }
   10799             : 
   10800           2 :         void append_097()
   10801             :         {
   10802           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10803           2 :             OString                expVal( aStrBuf.getStr() );
   10804           2 :             sal_Int64              input = 0;
   10805           2 :             sal_Int16              radix = 36;
   10806             : 
   10807           2 :             expVal += OString( "0" );
   10808           2 :             aStrBuf.append( input, radix );
   10809             : 
   10810           4 :             CPPUNIT_ASSERT_MESSAGE
   10811             :             (
   10812             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
   10813             :                 aStrBuf.getStr()== expVal &&
   10814             :                     aStrBuf.getLength() == expVal.getLength()
   10815           4 :             );
   10816             : 
   10817           2 :         }
   10818             : 
   10819           2 :         void append_098()
   10820             :         {
   10821           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10822           2 :             OString                expVal( aStrBuf.getStr() );
   10823           2 :             sal_Int64              input = 4;
   10824           2 :             sal_Int16              radix = 36;
   10825             : 
   10826           2 :             expVal += OString( "4" );
   10827           2 :             aStrBuf.append( input, radix );
   10828             : 
   10829           4 :             CPPUNIT_ASSERT_MESSAGE
   10830             :             (
   10831             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
   10832             :                 aStrBuf.getStr()== expVal &&
   10833             :                     aStrBuf.getLength() == expVal.getLength()
   10834           4 :             );
   10835             : 
   10836           2 :         }
   10837             : 
   10838           2 :         void append_099()
   10839             :         {
   10840           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10841           2 :             OString                expVal( aStrBuf.getStr() );
   10842           2 :             sal_Int64              input = 8;
   10843           2 :             sal_Int16              radix = 36;
   10844             : 
   10845           2 :             expVal += OString( "8" );
   10846           2 :             aStrBuf.append( input, radix );
   10847             : 
   10848           4 :             CPPUNIT_ASSERT_MESSAGE
   10849             :             (
   10850             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
   10851             :                 aStrBuf.getStr()== expVal &&
   10852             :                     aStrBuf.getLength() == expVal.getLength()
   10853           4 :             );
   10854             : 
   10855           2 :         }
   10856             : 
   10857           2 :         void append_100()
   10858             :         {
   10859           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   10860           2 :             OString                expVal( aStrBuf.getStr() );
   10861           2 :             sal_Int64              input = 35;
   10862           2 :             sal_Int16              radix = 36;
   10863             : 
   10864           2 :             expVal += OString( "z" );
   10865           2 :             aStrBuf.append( input, radix );
   10866             : 
   10867           4 :             CPPUNIT_ASSERT_MESSAGE
   10868             :             (
   10869             :                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
   10870             :                 aStrBuf.getStr()== expVal &&
   10871             :                     aStrBuf.getLength() == expVal.getLength()
   10872           4 :             );
   10873             : 
   10874           2 :         }
   10875             : 
   10876           4 :         CPPUNIT_TEST_SUITE( append_007_Int64 );
   10877           2 :         CPPUNIT_TEST( append_001 ); CPPUNIT_TEST( append_002 );
   10878           2 :         CPPUNIT_TEST( append_003 ); CPPUNIT_TEST( append_004 );
   10879           2 :         CPPUNIT_TEST( append_005 ); CPPUNIT_TEST( append_006 );
   10880           2 :         CPPUNIT_TEST( append_007 ); CPPUNIT_TEST( append_008 );
   10881           2 :         CPPUNIT_TEST( append_009 ); CPPUNIT_TEST( append_010 );
   10882           2 :         CPPUNIT_TEST( append_011 ); CPPUNIT_TEST( append_012 );
   10883           2 :         CPPUNIT_TEST( append_013 ); CPPUNIT_TEST( append_014 );
   10884           2 :         CPPUNIT_TEST( append_015 ); CPPUNIT_TEST( append_016 );
   10885           2 :         CPPUNIT_TEST( append_017 ); CPPUNIT_TEST( append_018 );
   10886           2 :         CPPUNIT_TEST( append_019 ); CPPUNIT_TEST( append_020 );
   10887           2 :         CPPUNIT_TEST( append_021 ); CPPUNIT_TEST( append_022 );
   10888           2 :         CPPUNIT_TEST( append_023 ); CPPUNIT_TEST( append_024 );
   10889           2 :         CPPUNIT_TEST( append_025 ); CPPUNIT_TEST( append_026 );
   10890           2 :         CPPUNIT_TEST( append_027 ); CPPUNIT_TEST( append_028 );
   10891           2 :         CPPUNIT_TEST( append_029 ); CPPUNIT_TEST( append_030 );
   10892           2 :         CPPUNIT_TEST( append_031 ); CPPUNIT_TEST( append_032 );
   10893           2 :         CPPUNIT_TEST( append_033 ); CPPUNIT_TEST( append_034 );
   10894           2 :         CPPUNIT_TEST( append_035 ); CPPUNIT_TEST( append_036 );
   10895           2 :         CPPUNIT_TEST( append_037 ); CPPUNIT_TEST( append_038 );
   10896           2 :         CPPUNIT_TEST( append_039 ); CPPUNIT_TEST( append_040 );
   10897           2 :         CPPUNIT_TEST( append_041 ); CPPUNIT_TEST( append_042 );
   10898           2 :         CPPUNIT_TEST( append_043 ); CPPUNIT_TEST( append_044 );
   10899           2 :         CPPUNIT_TEST( append_045 ); CPPUNIT_TEST( append_046 );
   10900           2 :         CPPUNIT_TEST( append_047 ); CPPUNIT_TEST( append_048 );
   10901           2 :         CPPUNIT_TEST( append_049 ); CPPUNIT_TEST( append_050 );
   10902           2 :         CPPUNIT_TEST( append_051 ); CPPUNIT_TEST( append_052 );
   10903           2 :         CPPUNIT_TEST( append_053 ); CPPUNIT_TEST( append_054 );
   10904           2 :         CPPUNIT_TEST( append_055 ); CPPUNIT_TEST( append_056 );
   10905           2 :         CPPUNIT_TEST( append_057 ); CPPUNIT_TEST( append_058 );
   10906           2 :         CPPUNIT_TEST( append_059 ); CPPUNIT_TEST( append_060 );
   10907           2 :         CPPUNIT_TEST( append_061 ); CPPUNIT_TEST( append_062 );
   10908           2 :         CPPUNIT_TEST( append_063 ); CPPUNIT_TEST( append_064 );
   10909           2 :         CPPUNIT_TEST( append_065 ); CPPUNIT_TEST( append_066 );
   10910           2 :         CPPUNIT_TEST( append_067 ); CPPUNIT_TEST( append_068 );
   10911           2 :         CPPUNIT_TEST( append_069 ); CPPUNIT_TEST( append_070 );
   10912           2 :         CPPUNIT_TEST( append_071 ); CPPUNIT_TEST( append_072 );
   10913           2 :         CPPUNIT_TEST( append_073 ); CPPUNIT_TEST( append_074 );
   10914           2 :         CPPUNIT_TEST( append_075 ); CPPUNIT_TEST( append_076 );
   10915           2 :         CPPUNIT_TEST( append_077 ); CPPUNIT_TEST( append_078 );
   10916           2 :         CPPUNIT_TEST( append_079 ); CPPUNIT_TEST( append_080 );
   10917           2 :         CPPUNIT_TEST( append_081 ); CPPUNIT_TEST( append_082 );
   10918           2 :         CPPUNIT_TEST( append_083 ); CPPUNIT_TEST( append_084 );
   10919           2 :         CPPUNIT_TEST( append_085 ); CPPUNIT_TEST( append_086 );
   10920           2 :         CPPUNIT_TEST( append_087 ); CPPUNIT_TEST( append_088 );
   10921           2 :         CPPUNIT_TEST( append_089 ); CPPUNIT_TEST( append_090 );
   10922           2 :         CPPUNIT_TEST( append_091 ); CPPUNIT_TEST( append_092 );
   10923           2 :         CPPUNIT_TEST( append_093 ); CPPUNIT_TEST( append_094 );
   10924           2 :         CPPUNIT_TEST( append_095 ); CPPUNIT_TEST( append_096 );
   10925           2 :         CPPUNIT_TEST( append_097 ); CPPUNIT_TEST( append_098 );
   10926           2 :         CPPUNIT_TEST( append_099 ); CPPUNIT_TEST( append_100 );
   10927           4 :         CPPUNIT_TEST_SUITE_END();
   10928             :     };
   10929             : //------------------------------------------------------------------------
   10930             : // testing the method append( sal_Int64 i, sal_Int16 radix=2 )
   10931             : // where i = large constants
   10932             : // testing the method append( sal_Int64 i, sal_Int16 radix=8 )
   10933             : // where i = large constants
   10934             : // testing the method append( sal_Int64 i, sal_Int16 radix=10 )
   10935             : // where i = large constants
   10936             : // testing the method append( sal_Int64 i, sal_Int16 radix=16 )
   10937             : // where i = large constants
   10938             : // testing the method append( sal_Int64 i, sal_Int16 radix=36 )
   10939             : // where i = large constants
   10940             : //------------------------------------------------------------------------
   10941         300 :     class  append_007_Int64_Bounderies : public CppUnit::TestFixture
   10942             :     {
   10943             :         OString* arrOUS[5];
   10944             : 
   10945             :     public:
   10946         100 :         void setUp()
   10947             :         {
   10948         100 :             arrOUS[0] = new OString( kTestStr7 );
   10949         100 :             arrOUS[1] = new OString(  );
   10950         100 :             arrOUS[2] = new OString( kTestStr25 );
   10951         100 :             arrOUS[3] = new OString( "" );
   10952         100 :             arrOUS[4] = new OString( kTestStr28 );
   10953             : 
   10954         100 :         }
   10955             : 
   10956         100 :         void tearDown()
   10957             :         {
   10958         100 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
   10959         100 :             delete arrOUS[3]; delete arrOUS[4];
   10960         100 :         }
   10961             : 
   10962           2 :         void append_001()
   10963             :         {
   10964           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   10965           2 :             OString                expVal( aStrBuf.getStr() );
   10966           2 :             sal_Int64              input = kSInt8Max;
   10967           2 :             sal_Int16              radix = 2;
   10968             : 
   10969           2 :             expVal += OString( "1111111" );
   10970           2 :             aStrBuf.append( input, radix );
   10971             : 
   10972           4 :             CPPUNIT_ASSERT_MESSAGE
   10973             :             (
   10974             :                 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
   10975             :                 aStrBuf.getStr()== expVal &&
   10976             :                     aStrBuf.getLength() == expVal.getLength()
   10977           4 :             );
   10978             : 
   10979           2 :         }
   10980             : 
   10981           2 :         void append_002()
   10982             :         {
   10983           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   10984           2 :             OString                expVal( aStrBuf.getStr() );
   10985           2 :             sal_Int64              input = kSInt64Max;
   10986           2 :             sal_Int16              radix = 2;
   10987             : 
   10988           2 :             expVal += OString( "111111111111111111111111111111111111111111111111111111111111111" );
   10989           2 :             aStrBuf.append( input, radix );
   10990             : 
   10991           4 :             CPPUNIT_ASSERT_MESSAGE
   10992             :             (
   10993             :                 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
   10994             :                 aStrBuf.getStr()== expVal &&
   10995             :                     aStrBuf.getLength() == expVal.getLength()
   10996           4 :             );
   10997             : 
   10998           2 :         }
   10999             : 
   11000           2 :         void append_003()
   11001             :         {
   11002           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   11003           2 :             OString                expVal( aStrBuf.getStr() );
   11004           2 :             sal_Int64              input = kSInt8Max;
   11005           2 :             sal_Int16              radix = 8;
   11006             : 
   11007           2 :             expVal += OString( "177" );
   11008           2 :             aStrBuf.append( input, radix );
   11009             : 
   11010           4 :             CPPUNIT_ASSERT_MESSAGE
   11011             :             (
   11012             :                 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
   11013             :                 aStrBuf.getStr()== expVal &&
   11014             :                     aStrBuf.getLength() == expVal.getLength()
   11015           4 :             );
   11016             : 
   11017           2 :         }
   11018             : 
   11019           2 :         void append_004()
   11020             :         {
   11021           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   11022           2 :             OString                expVal( aStrBuf.getStr() );
   11023           2 :             sal_Int64             input = kSInt64Max;
   11024           2 :             sal_Int16              radix = 8;
   11025             : 
   11026           2 :             expVal += OString( "777777777777777777777" );
   11027           2 :             aStrBuf.append( input, radix );
   11028             : 
   11029           4 :             CPPUNIT_ASSERT_MESSAGE
   11030             :             (
   11031             :                 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
   11032             :                 aStrBuf.getStr()== expVal &&
   11033             :                     aStrBuf.getLength() == expVal.getLength()
   11034           4 :             );
   11035             : 
   11036           2 :         }
   11037             : 
   11038           2 :         void append_005()
   11039             :         {
   11040           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   11041           2 :             OString                expVal( aStrBuf.getStr() );
   11042           2 :             sal_Int64              input = kSInt8Max;
   11043           2 :             sal_Int16              radix = 10;
   11044             : 
   11045           2 :             expVal += OString( "127" );
   11046           2 :             aStrBuf.append( input, radix );
   11047             : 
   11048           4 :             CPPUNIT_ASSERT_MESSAGE
   11049             :             (
   11050             :                 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
   11051             :                 aStrBuf.getStr()== expVal &&
   11052             :                     aStrBuf.getLength() == expVal.getLength()
   11053           4 :             );
   11054             : 
   11055           2 :         }
   11056             : 
   11057           2 :         void append_006()
   11058             :         {
   11059           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   11060           2 :             OString                expVal( aStrBuf.getStr() );
   11061           2 :             sal_Int64              input = kSInt64Max;
   11062           2 :             sal_Int16              radix = 10;
   11063             : 
   11064           2 :             expVal += OString( "9223372036854775807" );
   11065           2 :             aStrBuf.append( input, radix );
   11066             : 
   11067           4 :             CPPUNIT_ASSERT_MESSAGE
   11068             :             (
   11069             :                 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
   11070             :                 aStrBuf.getStr()== expVal &&
   11071             :                     aStrBuf.getLength() == expVal.getLength()
   11072           4 :             );
   11073             : 
   11074           2 :         }
   11075             : 
   11076           2 :         void append_007()
   11077             :         {
   11078           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   11079           2 :             OString                expVal( aStrBuf.getStr() );
   11080           2 :             sal_Int64              input = kSInt8Max;
   11081           2 :             sal_Int16              radix = 16;
   11082             : 
   11083           2 :             expVal += OString( "7f" );
   11084           2 :             aStrBuf.append( input, radix );
   11085             : 
   11086           4 :             CPPUNIT_ASSERT_MESSAGE
   11087             :             (
   11088             :                 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
   11089             :                 aStrBuf.getStr()== expVal &&
   11090             :                     aStrBuf.getLength() == expVal.getLength()
   11091           4 :             );
   11092             : 
   11093           2 :         }
   11094             : 
   11095           2 :         void append_008()
   11096             :         {
   11097           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   11098           2 :             OString                expVal( aStrBuf.getStr() );
   11099           2 :             sal_Int64              input = kSInt64Max;
   11100           2 :             sal_Int16              radix = 16;
   11101             : 
   11102           2 :             expVal += OString( "7fffffffffffffff" );
   11103           2 :             aStrBuf.append( input, radix );
   11104             : 
   11105           4 :             CPPUNIT_ASSERT_MESSAGE
   11106             :             (
   11107             :                 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
   11108             :                 aStrBuf.getStr()== expVal &&
   11109             :                     aStrBuf.getLength() == expVal.getLength()
   11110           4 :             );
   11111             : 
   11112           2 :         }
   11113             : 
   11114           2 :         void append_009()
   11115             :         {
   11116           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   11117           2 :             OString                expVal( aStrBuf.getStr() );
   11118           2 :             sal_Int64              input = kSInt8Max;
   11119           2 :             sal_Int16              radix = 36;
   11120             : 
   11121           2 :             expVal += OString( "3j" );
   11122           2 :             aStrBuf.append( input, radix );
   11123             : 
   11124           4 :             CPPUNIT_ASSERT_MESSAGE
   11125             :             (
   11126             :                 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
   11127             :                 aStrBuf.getStr()== expVal &&
   11128             :                     aStrBuf.getLength() == expVal.getLength()
   11129           4 :             );
   11130             : 
   11131           2 :         }
   11132             : 
   11133           2 :         void append_010()
   11134             :         {
   11135           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   11136           2 :             OString                expVal( aStrBuf.getStr() );
   11137           2 :             sal_Int64              input = kSInt64Max;
   11138           2 :             sal_Int16              radix = 36;
   11139             : 
   11140           2 :             expVal += OString( "1y2p0ij32e8e7" );
   11141           2 :             aStrBuf.append( input, radix );
   11142             : 
   11143           4 :             CPPUNIT_ASSERT_MESSAGE
   11144             :             (
   11145             :                 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
   11146             :                 aStrBuf.getStr()== expVal &&
   11147             :                     aStrBuf.getLength() == expVal.getLength()
   11148           4 :             );
   11149             : 
   11150           2 :         }
   11151             : 
   11152           2 :         void append_011()
   11153             :         {
   11154           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   11155           2 :             OString                expVal( aStrBuf.getStr() );
   11156           2 :             sal_Int64              input = kSInt8Max;
   11157           2 :             sal_Int16              radix = 2;
   11158             : 
   11159           2 :             expVal += OString( "1111111" );
   11160           2 :             aStrBuf.append( input, radix );
   11161             : 
   11162           4 :             CPPUNIT_ASSERT_MESSAGE
   11163             :             (
   11164             :                 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
   11165             :                 aStrBuf.getStr()== expVal &&
   11166             :                     aStrBuf.getLength() == expVal.getLength()
   11167           4 :             );
   11168             : 
   11169           2 :         }
   11170             : 
   11171           2 :         void append_012()
   11172             :         {
   11173           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   11174           2 :             OString                expVal( aStrBuf.getStr() );
   11175           2 :             sal_Int64              input = kSInt64Max;
   11176           2 :             sal_Int16              radix = 2;
   11177             : 
   11178           2 :             expVal += OString( "111111111111111111111111111111111111111111111111111111111111111" );
   11179           2 :             aStrBuf.append( input, radix );
   11180             : 
   11181           4 :             CPPUNIT_ASSERT_MESSAGE
   11182             :             (
   11183             :                 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
   11184             :                 aStrBuf.getStr()== expVal &&
   11185             :                     aStrBuf.getLength() == expVal.getLength()
   11186           4 :             );
   11187             : 
   11188           2 :         }
   11189             : 
   11190           2 :         void append_013()
   11191             :         {
   11192           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   11193           2 :             OString                expVal( aStrBuf.getStr() );
   11194           2 :             sal_Int64              input = kSInt8Max;
   11195           2 :             sal_Int16              radix = 8;
   11196             : 
   11197           2 :             expVal += OString( "177" );
   11198           2 :             aStrBuf.append( input, radix );
   11199             : 
   11200           4 :             CPPUNIT_ASSERT_MESSAGE
   11201             :             (
   11202             :                 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
   11203             :                 aStrBuf.getStr()== expVal &&
   11204             :                     aStrBuf.getLength() == expVal.getLength()
   11205           4 :             );
   11206             : 
   11207           2 :         }
   11208             : 
   11209           2 :         void append_014()
   11210             :         {
   11211           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   11212           2 :             OString                expVal( aStrBuf.getStr() );
   11213           2 :             sal_Int64              input = kSInt64Max;
   11214           2 :             sal_Int16              radix = 8;
   11215             : 
   11216           2 :             expVal += OString( "777777777777777777777" );
   11217           2 :             aStrBuf.append( input, radix );
   11218             : 
   11219           4 :             CPPUNIT_ASSERT_MESSAGE
   11220             :             (
   11221             :                 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
   11222             :                 aStrBuf.getStr()== expVal &&
   11223             :                     aStrBuf.getLength() == expVal.getLength()
   11224           4 :             );
   11225             : 
   11226           2 :         }
   11227             : 
   11228           2 :         void append_015()
   11229             :         {
   11230           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   11231           2 :             OString                expVal( aStrBuf.getStr() );
   11232           2 :             sal_Int64              input = kSInt8Max;
   11233           2 :             sal_Int16              radix = 10;
   11234             : 
   11235           2 :             expVal += OString( "127" );
   11236           2 :             aStrBuf.append( input, radix );
   11237             : 
   11238           4 :             CPPUNIT_ASSERT_MESSAGE
   11239             :             (
   11240             :                 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
   11241             :                 aStrBuf.getStr()== expVal &&
   11242             :                     aStrBuf.getLength() == expVal.getLength()
   11243           4 :             );
   11244             : 
   11245           2 :         }
   11246             : 
   11247           2 :         void append_016()
   11248             :         {
   11249           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   11250           2 :             OString                expVal( aStrBuf.getStr() );
   11251           2 :             sal_Int64              input = kSInt64Max;
   11252           2 :             sal_Int16              radix = 10;
   11253             : 
   11254           2 :             expVal += OString( "9223372036854775807" );
   11255           2 :             aStrBuf.append( input, radix );
   11256             : 
   11257           4 :             CPPUNIT_ASSERT_MESSAGE
   11258             :             (
   11259             :                 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
   11260             :                 aStrBuf.getStr()== expVal &&
   11261             :                     aStrBuf.getLength() == expVal.getLength()
   11262           4 :             );
   11263             : 
   11264           2 :         }
   11265             : 
   11266           2 :         void append_017()
   11267             :         {
   11268           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   11269           2 :             OString                expVal( aStrBuf.getStr() );
   11270           2 :             sal_Int64              input = kSInt8Max;
   11271           2 :             sal_Int16              radix = 16;
   11272             : 
   11273           2 :             expVal += OString( "7f" );
   11274           2 :             aStrBuf.append( input, radix );
   11275             : 
   11276           4 :             CPPUNIT_ASSERT_MESSAGE
   11277             :             (
   11278             :                 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
   11279             :                 aStrBuf.getStr()== expVal &&
   11280             :                     aStrBuf.getLength() == expVal.getLength()
   11281           4 :             );
   11282             : 
   11283           2 :         }
   11284             : 
   11285           2 :         void append_018()
   11286             :         {
   11287           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   11288           2 :             OString                expVal( aStrBuf.getStr() );
   11289           2 :             sal_Int64              input = kSInt64Max;
   11290           2 :             sal_Int16              radix = 16;
   11291             : 
   11292           2 :             expVal += OString( "7fffffffffffffff" );
   11293           2 :             aStrBuf.append( input, radix );
   11294             : 
   11295           4 :             CPPUNIT_ASSERT_MESSAGE
   11296             :             (
   11297             :                 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
   11298             :                 aStrBuf.getStr()== expVal &&
   11299             :                     aStrBuf.getLength() == expVal.getLength()
   11300           4 :             );
   11301             : 
   11302           2 :         }
   11303             : 
   11304           2 :         void append_019()
   11305             :         {
   11306           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   11307           2 :             OString                expVal( aStrBuf.getStr() );
   11308           2 :             sal_Int64              input = kSInt8Max;
   11309           2 :             sal_Int16              radix = 36;
   11310             : 
   11311           2 :             expVal += OString( "3j" );
   11312           2 :             aStrBuf.append( input, radix );
   11313             : 
   11314           4 :             CPPUNIT_ASSERT_MESSAGE
   11315             :             (
   11316             :                 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
   11317             :                 aStrBuf.getStr()== expVal &&
   11318             :                     aStrBuf.getLength() == expVal.getLength()
   11319           4 :             );
   11320             : 
   11321           2 :         }
   11322             : 
   11323           2 :         void append_020()
   11324             :         {
   11325           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   11326           2 :             OString                expVal( aStrBuf.getStr() );
   11327           2 :             sal_Int64              input = kSInt64Max;
   11328           2 :             sal_Int16              radix = 36;
   11329             : 
   11330           2 :             expVal += OString( "1y2p0ij32e8e7" );
   11331           2 :             aStrBuf.append( input, radix );
   11332             : 
   11333           4 :             CPPUNIT_ASSERT_MESSAGE
   11334             :             (
   11335             :                 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
   11336             :                 aStrBuf.getStr()== expVal &&
   11337             :                     aStrBuf.getLength() == expVal.getLength()
   11338           4 :             );
   11339             : 
   11340           2 :         }
   11341             : 
   11342           2 :         void append_021()
   11343             :         {
   11344           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   11345           2 :             OString                expVal( aStrBuf.getStr() );
   11346           2 :             sal_Int64              input = kSInt8Max;
   11347           2 :             sal_Int16              radix = 2;
   11348             : 
   11349           2 :             expVal += OString( "1111111" );
   11350           2 :             aStrBuf.append( input, radix );
   11351             : 
   11352           4 :             CPPUNIT_ASSERT_MESSAGE
   11353             :             (
   11354             :                 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
   11355             :                 aStrBuf.getStr()== expVal &&
   11356             :                     aStrBuf.getLength() == expVal.getLength()
   11357           4 :             );
   11358             : 
   11359           2 :         }
   11360             : 
   11361           2 :         void append_022()
   11362             :         {
   11363           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   11364           2 :             OString                expVal( aStrBuf.getStr() );
   11365           2 :             sal_Int64              input = kSInt64Max;
   11366           2 :             sal_Int16              radix = 2;
   11367             : 
   11368           2 :             expVal += OString( "111111111111111111111111111111111111111111111111111111111111111" );
   11369           2 :             aStrBuf.append( input, radix );
   11370             : 
   11371           4 :             CPPUNIT_ASSERT_MESSAGE
   11372             :             (
   11373             :                 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
   11374             :                 aStrBuf.getStr()== expVal &&
   11375             :                     aStrBuf.getLength() == expVal.getLength()
   11376           4 :             );
   11377             : 
   11378           2 :         }
   11379             : 
   11380           2 :         void append_023()
   11381             :         {
   11382           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   11383           2 :             OString                expVal( aStrBuf.getStr() );
   11384           2 :             sal_Int64              input = kSInt8Max;
   11385           2 :             sal_Int16              radix = 8;
   11386             : 
   11387           2 :             expVal += OString( "177" );
   11388           2 :             aStrBuf.append( input, radix );
   11389             : 
   11390           4 :             CPPUNIT_ASSERT_MESSAGE
   11391             :             (
   11392             :                 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
   11393             :                 aStrBuf.getStr()== expVal &&
   11394             :                     aStrBuf.getLength() == expVal.getLength()
   11395           4 :             );
   11396             : 
   11397           2 :         }
   11398             : 
   11399           2 :         void append_024()
   11400             :         {
   11401           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   11402           2 :             OString                expVal( aStrBuf.getStr() );
   11403           2 :             sal_Int64              input = kSInt64Max;
   11404           2 :             sal_Int16              radix = 8;
   11405             : 
   11406           2 :             expVal += OString( "777777777777777777777" );
   11407           2 :             aStrBuf.append( input, radix );
   11408             : 
   11409           4 :             CPPUNIT_ASSERT_MESSAGE
   11410             :             (
   11411             :                 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
   11412             :                 aStrBuf.getStr()== expVal &&
   11413             :                     aStrBuf.getLength() == expVal.getLength()
   11414           4 :             );
   11415             : 
   11416           2 :         }
   11417             : 
   11418           2 :         void append_025()
   11419             :         {
   11420           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   11421           2 :             OString                expVal( aStrBuf.getStr() );
   11422           2 :             sal_Int64              input = kSInt8Max;
   11423           2 :             sal_Int16              radix = 10;
   11424             : 
   11425           2 :             expVal += OString( "127" );
   11426           2 :             aStrBuf.append( input, radix );
   11427             : 
   11428           4 :             CPPUNIT_ASSERT_MESSAGE
   11429             :             (
   11430             :                 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
   11431             :                 aStrBuf.getStr()== expVal &&
   11432             :                     aStrBuf.getLength() == expVal.getLength()
   11433           4 :             );
   11434             : 
   11435           2 :         }
   11436             : 
   11437           2 :         void append_026()
   11438             :         {
   11439           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   11440           2 :             OString                expVal( aStrBuf.getStr() );
   11441           2 :             sal_Int64              input = kSInt64Max;
   11442           2 :             sal_Int16              radix = 10;
   11443             : 
   11444           2 :             expVal += OString( "9223372036854775807" );
   11445           2 :             aStrBuf.append( input, radix );
   11446             : 
   11447           4 :             CPPUNIT_ASSERT_MESSAGE
   11448             :             (
   11449             :                 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
   11450             :                 aStrBuf.getStr()== expVal &&
   11451             :                     aStrBuf.getLength() == expVal.getLength()
   11452           4 :             );
   11453             : 
   11454           2 :         }
   11455             : 
   11456           2 :         void append_027()
   11457             :         {
   11458           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   11459           2 :             OString                expVal( aStrBuf.getStr() );
   11460           2 :             sal_Int64              input = kSInt8Max;
   11461           2 :             sal_Int16              radix = 16;
   11462             : 
   11463           2 :             expVal += OString( "7f" );
   11464           2 :             aStrBuf.append( input, radix );
   11465             : 
   11466           4 :             CPPUNIT_ASSERT_MESSAGE
   11467             :             (
   11468             :                 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
   11469             :                 aStrBuf.getStr()== expVal &&
   11470             :                     aStrBuf.getLength() == expVal.getLength()
   11471           4 :             );
   11472             : 
   11473           2 :         }
   11474             : 
   11475           2 :         void append_028()
   11476             :         {
   11477           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   11478           2 :             OString                expVal( aStrBuf.getStr() );
   11479           2 :             sal_Int64              input = kSInt64Max;
   11480           2 :             sal_Int16              radix = 16;
   11481             : 
   11482           2 :             expVal += OString( "7fffffffffffffff" );
   11483           2 :             aStrBuf.append( input, radix );
   11484             : 
   11485           4 :             CPPUNIT_ASSERT_MESSAGE
   11486             :             (
   11487             :                 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
   11488             :                 aStrBuf.getStr()== expVal &&
   11489             :                     aStrBuf.getLength() == expVal.getLength()
   11490           4 :             );
   11491             : 
   11492           2 :         }
   11493             : 
   11494           2 :         void append_029()
   11495             :         {
   11496           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   11497           2 :             OString                expVal( aStrBuf.getStr() );
   11498           2 :             sal_Int64              input = kSInt8Max;
   11499           2 :             sal_Int16              radix = 36;
   11500             : 
   11501           2 :             expVal += OString( "3j" );
   11502           2 :             aStrBuf.append( input, radix );
   11503             : 
   11504           4 :             CPPUNIT_ASSERT_MESSAGE
   11505             :             (
   11506             :                 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
   11507             :                 aStrBuf.getStr()== expVal &&
   11508             :                     aStrBuf.getLength() == expVal.getLength()
   11509           4 :             );
   11510             : 
   11511           2 :         }
   11512             : 
   11513           2 :         void append_030()
   11514             :         {
   11515           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   11516           2 :             OString                expVal( aStrBuf.getStr() );
   11517           2 :             sal_Int64              input = kSInt64Max;
   11518           2 :             sal_Int16              radix = 36;
   11519             : 
   11520           2 :             expVal += OString( "1y2p0ij32e8e7" );
   11521           2 :             aStrBuf.append( input, radix );
   11522             : 
   11523           4 :             CPPUNIT_ASSERT_MESSAGE
   11524             :             (
   11525             :                 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
   11526             :                 aStrBuf.getStr()== expVal &&
   11527             :                     aStrBuf.getLength() == expVal.getLength()
   11528           4 :             );
   11529             : 
   11530           2 :         }
   11531             : 
   11532           2 :         void append_031()
   11533             :         {
   11534           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   11535           2 :             OString                expVal( aStrBuf.getStr() );
   11536           2 :             sal_Int64              input = kSInt8Max;
   11537           2 :             sal_Int16              radix = 2;
   11538             : 
   11539           2 :             expVal += OString( "1111111" );
   11540           2 :             aStrBuf.append( input, radix );
   11541             : 
   11542           4 :             CPPUNIT_ASSERT_MESSAGE
   11543             :             (
   11544             :                 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
   11545             :                 aStrBuf.getStr()== expVal &&
   11546             :                     aStrBuf.getLength() == expVal.getLength()
   11547           4 :             );
   11548             : 
   11549           2 :         }
   11550             : 
   11551           2 :         void append_032()
   11552             :         {
   11553           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   11554           2 :             OString                expVal( aStrBuf.getStr() );
   11555           2 :             sal_Int64              input = kSInt64Max;
   11556           2 :             sal_Int16              radix = 2;
   11557             : 
   11558           2 :             expVal += OString( "111111111111111111111111111111111111111111111111111111111111111" );
   11559           2 :             aStrBuf.append( input, radix );
   11560             : 
   11561           4 :             CPPUNIT_ASSERT_MESSAGE
   11562             :             (
   11563             :                 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
   11564             :                 aStrBuf.getStr()== expVal &&
   11565             :                     aStrBuf.getLength() == expVal.getLength()
   11566           4 :             );
   11567             : 
   11568           2 :         }
   11569             : 
   11570           2 :         void append_033()
   11571             :         {
   11572           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   11573           2 :             OString                expVal( aStrBuf.getStr() );
   11574           2 :             sal_Int64              input = kSInt8Max;
   11575           2 :             sal_Int16              radix = 8;
   11576             : 
   11577           2 :             expVal += OString( "177" );
   11578           2 :             aStrBuf.append( input, radix );
   11579             : 
   11580           4 :             CPPUNIT_ASSERT_MESSAGE
   11581             :             (
   11582             :                 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
   11583             :                 aStrBuf.getStr()== expVal &&
   11584             :                     aStrBuf.getLength() == expVal.getLength()
   11585           4 :             );
   11586             : 
   11587           2 :         }
   11588             : 
   11589           2 :         void append_034()
   11590             :         {
   11591           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   11592           2 :             OString                expVal( aStrBuf.getStr() );
   11593           2 :             sal_Int64              input = kSInt64Max;
   11594           2 :             sal_Int16              radix = 8;
   11595             : 
   11596           2 :             expVal += OString( "777777777777777777777" );
   11597           2 :             aStrBuf.append( input, radix );
   11598             : 
   11599           4 :             CPPUNIT_ASSERT_MESSAGE
   11600             :             (
   11601             :                 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
   11602             :                 aStrBuf.getStr()== expVal &&
   11603             :                     aStrBuf.getLength() == expVal.getLength()
   11604           4 :             );
   11605             : 
   11606           2 :         }
   11607             : 
   11608           2 :         void append_035()
   11609             :         {
   11610           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   11611           2 :             OString                expVal( aStrBuf.getStr() );
   11612           2 :             sal_Int64              input = kSInt8Max;
   11613           2 :             sal_Int16              radix = 10;
   11614             : 
   11615           2 :             expVal += OString( "127" );
   11616           2 :             aStrBuf.append( input, radix );
   11617             : 
   11618           4 :             CPPUNIT_ASSERT_MESSAGE
   11619             :             (
   11620             :                 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
   11621             :                 aStrBuf.getStr()== expVal &&
   11622             :                     aStrBuf.getLength() == expVal.getLength()
   11623           4 :             );
   11624             : 
   11625           2 :         }
   11626             : 
   11627           2 :         void append_036()
   11628             :         {
   11629           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   11630           2 :             OString                expVal( aStrBuf.getStr() );
   11631           2 :             sal_Int64              input = kSInt64Max;
   11632           2 :             sal_Int16              radix = 10;
   11633             : 
   11634           2 :             expVal += OString( "9223372036854775807" );
   11635           2 :             aStrBuf.append( input, radix );
   11636             : 
   11637           4 :             CPPUNIT_ASSERT_MESSAGE
   11638             :             (
   11639             :                 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
   11640             :                 aStrBuf.getStr()== expVal &&
   11641             :                     aStrBuf.getLength() == expVal.getLength()
   11642           4 :             );
   11643             : 
   11644           2 :         }
   11645             : 
   11646           2 :         void append_037()
   11647             :         {
   11648           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   11649           2 :             OString                expVal( aStrBuf.getStr() );
   11650           2 :             sal_Int64              input = kSInt8Max;
   11651           2 :             sal_Int16              radix = 16;
   11652             : 
   11653           2 :             expVal += OString( "7f" );
   11654           2 :             aStrBuf.append( input, radix );
   11655             : 
   11656           4 :             CPPUNIT_ASSERT_MESSAGE
   11657             :             (
   11658             :                 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
   11659             :                 aStrBuf.getStr()== expVal &&
   11660             :                     aStrBuf.getLength() == expVal.getLength()
   11661           4 :             );
   11662             : 
   11663           2 :         }
   11664             : 
   11665           2 :         void append_038()
   11666             :         {
   11667           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   11668           2 :             OString                expVal( aStrBuf.getStr() );
   11669           2 :             sal_Int64              input = kSInt64Max;
   11670           2 :             sal_Int16              radix = 16;
   11671             : 
   11672           2 :             expVal += OString( "7fffffffffffffff" );
   11673           2 :             aStrBuf.append( input, radix );
   11674             : 
   11675           4 :             CPPUNIT_ASSERT_MESSAGE
   11676             :             (
   11677             :                 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
   11678             :                 aStrBuf.getStr()== expVal &&
   11679             :                     aStrBuf.getLength() == expVal.getLength()
   11680           4 :             );
   11681             : 
   11682           2 :         }
   11683             : 
   11684           2 :         void append_039()
   11685             :         {
   11686           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   11687           2 :             OString                expVal( aStrBuf.getStr() );
   11688           2 :             sal_Int64              input = kSInt8Max;
   11689           2 :             sal_Int16              radix = 36;
   11690             : 
   11691           2 :             expVal += OString( "3j" );
   11692           2 :             aStrBuf.append( input, radix );
   11693             : 
   11694           4 :             CPPUNIT_ASSERT_MESSAGE
   11695             :             (
   11696             :                 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
   11697             :                 aStrBuf.getStr()== expVal &&
   11698             :                     aStrBuf.getLength() == expVal.getLength()
   11699           4 :             );
   11700             : 
   11701           2 :         }
   11702             : 
   11703           2 :         void append_040()
   11704             :         {
   11705           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   11706           2 :             OString                expVal( aStrBuf.getStr() );
   11707           2 :             sal_Int64              input = kSInt64Max;
   11708           2 :             sal_Int16              radix = 36;
   11709             : 
   11710           2 :             expVal += OString( "1y2p0ij32e8e7" );
   11711           2 :             aStrBuf.append( input, radix );
   11712             : 
   11713           4 :             CPPUNIT_ASSERT_MESSAGE
   11714             :             (
   11715             :                 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
   11716             :                 aStrBuf.getStr()== expVal &&
   11717             :                     aStrBuf.getLength() == expVal.getLength()
   11718           4 :             );
   11719             : 
   11720           2 :         }
   11721             : 
   11722           2 :         void append_041()
   11723             :         {
   11724           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   11725           2 :             OString                expVal( aStrBuf.getStr() );
   11726           2 :             sal_Int64              input = kSInt8Max;
   11727           2 :             sal_Int16              radix = 2;
   11728             : 
   11729           2 :             expVal += OString( "1111111" );
   11730           2 :             aStrBuf.append( input, radix );
   11731             : 
   11732           4 :             CPPUNIT_ASSERT_MESSAGE
   11733             :             (
   11734             :                 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
   11735             :                 aStrBuf.getStr()== expVal &&
   11736             :                     aStrBuf.getLength() == expVal.getLength()
   11737           4 :             );
   11738             : 
   11739           2 :         }
   11740             : 
   11741           2 :         void append_042()
   11742             :         {
   11743           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   11744           2 :             OString                expVal( aStrBuf.getStr() );
   11745           2 :             sal_Int64              input = kSInt64Max;
   11746           2 :             sal_Int16              radix = 2;
   11747             : 
   11748           2 :             expVal += OString( "111111111111111111111111111111111111111111111111111111111111111" );
   11749           2 :             aStrBuf.append( input, radix );
   11750             : 
   11751           4 :             CPPUNIT_ASSERT_MESSAGE
   11752             :             (
   11753             :                 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
   11754             :                 aStrBuf.getStr()== expVal &&
   11755             :                     aStrBuf.getLength() == expVal.getLength()
   11756           4 :             );
   11757             : 
   11758           2 :         }
   11759             : 
   11760           2 :         void append_043()
   11761             :         {
   11762           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   11763           2 :             OString                expVal( aStrBuf.getStr() );
   11764           2 :             sal_Int64              input = kSInt8Max;
   11765           2 :             sal_Int16              radix = 8;
   11766             : 
   11767           2 :             expVal += OString( "177" );
   11768           2 :             aStrBuf.append( input, radix );
   11769             : 
   11770           4 :             CPPUNIT_ASSERT_MESSAGE
   11771             :             (
   11772             :                 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
   11773             :                 aStrBuf.getStr()== expVal &&
   11774             :                     aStrBuf.getLength() == expVal.getLength()
   11775           4 :             );
   11776             : 
   11777           2 :         }
   11778             : 
   11779           2 :         void append_044()
   11780             :         {
   11781           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   11782           2 :             OString                expVal( aStrBuf.getStr() );
   11783           2 :             sal_Int64              input = kSInt64Max;
   11784           2 :             sal_Int16              radix = 8;
   11785             : 
   11786           2 :             expVal += OString( "777777777777777777777" );
   11787           2 :             aStrBuf.append( input, radix );
   11788             : 
   11789           4 :             CPPUNIT_ASSERT_MESSAGE
   11790             :             (
   11791             :                 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
   11792             :                 aStrBuf.getStr()== expVal &&
   11793             :                     aStrBuf.getLength() == expVal.getLength()
   11794           4 :             );
   11795             : 
   11796           2 :         }
   11797             : 
   11798           2 :         void append_045()
   11799             :         {
   11800           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   11801           2 :             OString                expVal( aStrBuf.getStr() );
   11802           2 :             sal_Int64              input = kSInt8Max;
   11803           2 :             sal_Int16              radix = 10;
   11804             : 
   11805           2 :             expVal += OString( "127" );
   11806           2 :             aStrBuf.append( input, radix );
   11807             : 
   11808           4 :             CPPUNIT_ASSERT_MESSAGE
   11809             :             (
   11810             :                 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
   11811             :                 aStrBuf.getStr()== expVal &&
   11812             :                     aStrBuf.getLength() == expVal.getLength()
   11813           4 :             );
   11814             : 
   11815           2 :         }
   11816             : 
   11817           2 :         void append_046()
   11818             :         {
   11819           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   11820           2 :             OString                expVal( aStrBuf.getStr() );
   11821           2 :             sal_Int64              input = kSInt64Max;
   11822           2 :             sal_Int16              radix = 10;
   11823             : 
   11824           2 :             expVal += OString( "9223372036854775807" );
   11825           2 :             aStrBuf.append( input, radix );
   11826             : 
   11827           4 :             CPPUNIT_ASSERT_MESSAGE
   11828             :             (
   11829             :                 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
   11830             :                 aStrBuf.getStr()== expVal &&
   11831             :                     aStrBuf.getLength() == expVal.getLength()
   11832           4 :             );
   11833             : 
   11834           2 :         }
   11835             : 
   11836           2 :         void append_047()
   11837             :         {
   11838           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   11839           2 :             OString                expVal( aStrBuf.getStr() );
   11840           2 :             sal_Int64              input = kSInt8Max;
   11841           2 :             sal_Int16              radix = 16;
   11842             : 
   11843           2 :             expVal += OString( "7f" );
   11844           2 :             aStrBuf.append( input, radix );
   11845             : 
   11846           4 :             CPPUNIT_ASSERT_MESSAGE
   11847             :             (
   11848             :                 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
   11849             :                 aStrBuf.getStr()== expVal &&
   11850             :                     aStrBuf.getLength() == expVal.getLength()
   11851           4 :             );
   11852             : 
   11853           2 :         }
   11854             : 
   11855           2 :         void append_048()
   11856             :         {
   11857           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   11858           2 :             OString                expVal( aStrBuf.getStr() );
   11859           2 :             sal_Int64              input = kSInt64Max;
   11860           2 :             sal_Int16              radix = 16;
   11861             : 
   11862           2 :             expVal += OString( "7fffffffffffffff" );
   11863           2 :             aStrBuf.append( input, radix );
   11864             : 
   11865           4 :             CPPUNIT_ASSERT_MESSAGE
   11866             :             (
   11867             :                 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
   11868             :                 aStrBuf.getStr()== expVal &&
   11869             :                     aStrBuf.getLength() == expVal.getLength()
   11870           4 :             );
   11871             : 
   11872           2 :         }
   11873             : 
   11874           2 :         void append_049()
   11875             :         {
   11876           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   11877           2 :             OString                expVal( aStrBuf.getStr() );
   11878           2 :             sal_Int64              input = kSInt8Max;
   11879           2 :             sal_Int16              radix = 36;
   11880             : 
   11881           2 :             expVal += OString( "3j" );
   11882           2 :             aStrBuf.append( input, radix );
   11883             : 
   11884           4 :             CPPUNIT_ASSERT_MESSAGE
   11885             :             (
   11886             :                 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
   11887             :                 aStrBuf.getStr()== expVal &&
   11888             :                     aStrBuf.getLength() == expVal.getLength()
   11889           4 :             );
   11890             : 
   11891           2 :         }
   11892             : 
   11893           2 :         void append_050()
   11894             :         {
   11895           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   11896           2 :             OString                expVal( aStrBuf.getStr() );
   11897           2 :             sal_Int64              input = kSInt64Max;
   11898           2 :             sal_Int16              radix = 36;
   11899             : 
   11900           2 :             expVal += OString( "1y2p0ij32e8e7" );
   11901           2 :             aStrBuf.append( input, radix );
   11902             : 
   11903           4 :             CPPUNIT_ASSERT_MESSAGE
   11904             :             (
   11905             :                 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
   11906             :                 aStrBuf.getStr()== expVal &&
   11907             :                     aStrBuf.getLength() == expVal.getLength()
   11908           4 :             );
   11909             : 
   11910           2 :         }
   11911             : 
   11912           4 :         CPPUNIT_TEST_SUITE( append_007_Int64_Bounderies );
   11913           2 :         CPPUNIT_TEST( append_001 ); CPPUNIT_TEST( append_002 );
   11914           2 :         CPPUNIT_TEST( append_003 ); CPPUNIT_TEST( append_004 );
   11915           2 :         CPPUNIT_TEST( append_005 ); CPPUNIT_TEST( append_006 );
   11916           2 :         CPPUNIT_TEST( append_007 ); CPPUNIT_TEST( append_008 );
   11917           2 :         CPPUNIT_TEST( append_009 ); CPPUNIT_TEST( append_010 );
   11918           2 :         CPPUNIT_TEST( append_011 ); CPPUNIT_TEST( append_012 );
   11919           2 :         CPPUNIT_TEST( append_013 ); CPPUNIT_TEST( append_014 );
   11920           2 :         CPPUNIT_TEST( append_015 ); CPPUNIT_TEST( append_016 );
   11921           2 :         CPPUNIT_TEST( append_017 ); CPPUNIT_TEST( append_018 );
   11922           2 :         CPPUNIT_TEST( append_019 ); CPPUNIT_TEST( append_020 );
   11923           2 :         CPPUNIT_TEST( append_021 ); CPPUNIT_TEST( append_022 );
   11924           2 :         CPPUNIT_TEST( append_023 ); CPPUNIT_TEST( append_024 );
   11925           2 :         CPPUNIT_TEST( append_025 ); CPPUNIT_TEST( append_026 );
   11926           2 :         CPPUNIT_TEST( append_027 ); CPPUNIT_TEST( append_028 );
   11927           2 :         CPPUNIT_TEST( append_029 ); CPPUNIT_TEST( append_030 );
   11928           2 :         CPPUNIT_TEST( append_031 ); CPPUNIT_TEST( append_032 );
   11929           2 :         CPPUNIT_TEST( append_033 ); CPPUNIT_TEST( append_034 );
   11930           2 :         CPPUNIT_TEST( append_035 ); CPPUNIT_TEST( append_036 );
   11931           2 :         CPPUNIT_TEST( append_037 ); CPPUNIT_TEST( append_038 );
   11932           2 :         CPPUNIT_TEST( append_039 ); CPPUNIT_TEST( append_040 );
   11933           2 :         CPPUNIT_TEST( append_041 ); CPPUNIT_TEST( append_042 );
   11934           2 :         CPPUNIT_TEST( append_043 ); CPPUNIT_TEST( append_044 );
   11935           2 :         CPPUNIT_TEST( append_045 ); CPPUNIT_TEST( append_046 );
   11936           2 :         CPPUNIT_TEST( append_047 ); CPPUNIT_TEST( append_048 );
   11937           2 :         CPPUNIT_TEST( append_049 ); CPPUNIT_TEST( append_050 );
   11938           4 :         CPPUNIT_TEST_SUITE_END();
   11939             :     };
   11940             : //------------------------------------------------------------------------
   11941             : // testing the method append( sal_Int64 i, sal_Int16 radix=2 )
   11942             : // for negative value
   11943             : // testing the method append( sal_Int64 i, sal_Int16 radix=8 )
   11944             : // for negative value
   11945             : // testing the method append( sal_Int64 i, sal_Int16 radix=10 )
   11946             : // for negative value
   11947             : // testing the method append( sal_Int64 i, sal_Int16 radix=16 )
   11948             : // for negative value
   11949             : // testing the method append( sal_Int64 i, sal_Int16 radix=36 )
   11950             : // for negative value
   11951             : //------------------------------------------------------------------------
   11952         600 :     class  append_007_Int64_Negative : public CppUnit::TestFixture
   11953             :     {
   11954             :         OString* arrOUS[5];
   11955             : 
   11956             :     public:
   11957         200 :         void setUp()
   11958             :         {
   11959         200 :             arrOUS[0] = new OString( kTestStr7 );
   11960         200 :             arrOUS[1] = new OString(  );
   11961         200 :             arrOUS[2] = new OString( kTestStr25 );
   11962         200 :             arrOUS[3] = new OString( "" );
   11963         200 :             arrOUS[4] = new OString( kTestStr28 );
   11964             : 
   11965         200 :         }
   11966             : 
   11967         200 :         void tearDown()
   11968             :         {
   11969         200 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
   11970         200 :             delete arrOUS[3]; delete arrOUS[4];
   11971         200 :         }
   11972             : 
   11973           2 :         void append_001()
   11974             :         {
   11975           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   11976           2 :             OString                expVal( aStrBuf.getStr() );
   11977           2 :             sal_Int64              input = -0;
   11978           2 :             sal_Int16              radix = 2;
   11979             : 
   11980           2 :             expVal += OString( "0" );
   11981           2 :             aStrBuf.append( input, radix );
   11982             : 
   11983           4 :             CPPUNIT_ASSERT_MESSAGE
   11984             :             (
   11985             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
   11986             :                 aStrBuf.getStr()== expVal &&
   11987             :                     aStrBuf.getLength() == expVal.getLength()
   11988           4 :             );
   11989             : 
   11990           2 :         }
   11991             : 
   11992           2 :         void append_002()
   11993             :         {
   11994           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   11995           2 :             OString                expVal( aStrBuf.getStr() );
   11996           2 :             sal_Int64              input = -4;
   11997           2 :             sal_Int16              radix = 2;
   11998             : 
   11999           2 :             expVal += OString( "-" );
   12000           2 :             expVal += OString( "100" );
   12001           2 :             aStrBuf.append( input, radix );
   12002             : 
   12003           4 :             CPPUNIT_ASSERT_MESSAGE
   12004             :             (
   12005             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
   12006             :                 aStrBuf.getStr()== expVal &&
   12007             :                     aStrBuf.getLength() == expVal.getLength()
   12008           4 :             );
   12009             : 
   12010           2 :         }
   12011             : 
   12012           2 :         void append_003()
   12013             :         {
   12014           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12015           2 :             OString                expVal( aStrBuf.getStr() );
   12016           2 :             sal_Int64              input = -8;
   12017           2 :             sal_Int16              radix = 2;
   12018             : 
   12019           2 :             expVal += OString( "-" );
   12020           2 :             expVal += OString( "1000" );
   12021           2 :             aStrBuf.append( input, radix );
   12022             : 
   12023           4 :             CPPUNIT_ASSERT_MESSAGE
   12024             :             (
   12025             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
   12026             :                 aStrBuf.getStr()== expVal &&
   12027             :                     aStrBuf.getLength() == expVal.getLength()
   12028           4 :             );
   12029             : 
   12030           2 :         }
   12031             : 
   12032           2 :         void append_004()
   12033             :         {
   12034           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12035           2 :             OString                expVal( aStrBuf.getStr() );
   12036           2 :             sal_Int64              input = -15;
   12037           2 :             sal_Int16              radix = 2;
   12038             : 
   12039           2 :             expVal += OString( "-" );
   12040           2 :             expVal += OString( "1111" );
   12041           2 :             aStrBuf.append( input, radix );
   12042             : 
   12043           4 :             CPPUNIT_ASSERT_MESSAGE
   12044             :             (
   12045             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
   12046             :                 aStrBuf.getStr()== expVal &&
   12047             :                     aStrBuf.getLength() == expVal.getLength()
   12048           4 :             );
   12049             : 
   12050           2 :         }
   12051             : 
   12052           2 :         void append_005()
   12053             :         {
   12054           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12055           2 :             OString                expVal( aStrBuf.getStr() );
   12056           2 :             sal_Int64              input = -0;
   12057           2 :             sal_Int16              radix = 8;
   12058             : 
   12059           2 :             expVal += OString( "0" );
   12060           2 :             aStrBuf.append( input, radix );
   12061             : 
   12062           4 :             CPPUNIT_ASSERT_MESSAGE
   12063             :             (
   12064             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
   12065             :                 aStrBuf.getStr()== expVal &&
   12066             :                     aStrBuf.getLength() == expVal.getLength()
   12067           4 :             );
   12068             : 
   12069           2 :         }
   12070             : 
   12071           2 :         void append_006()
   12072             :         {
   12073           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12074           2 :             OString                expVal( aStrBuf.getStr() );
   12075           2 :             sal_Int64              input = -4;
   12076           2 :             sal_Int16              radix = 8;
   12077             : 
   12078           2 :             expVal += OString( "-" );
   12079           2 :             expVal += OString( "4" );
   12080           2 :             aStrBuf.append( input, radix );
   12081             : 
   12082           4 :             CPPUNIT_ASSERT_MESSAGE
   12083             :             (
   12084             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
   12085             :                 aStrBuf.getStr()== expVal &&
   12086             :                     aStrBuf.getLength() == expVal.getLength()
   12087           4 :             );
   12088             : 
   12089           2 :         }
   12090             : 
   12091           2 :         void append_007()
   12092             :         {
   12093           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12094           2 :             OString                expVal( aStrBuf.getStr() );
   12095           2 :             sal_Int64              input = -8;
   12096           2 :             sal_Int16              radix = 8;
   12097             : 
   12098           2 :             expVal += OString( "-" );
   12099           2 :             expVal += OString( "10" );
   12100           2 :             aStrBuf.append( input, radix );
   12101             : 
   12102           4 :             CPPUNIT_ASSERT_MESSAGE
   12103             :             (
   12104             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
   12105             :                 aStrBuf.getStr()== expVal &&
   12106             :                     aStrBuf.getLength() == expVal.getLength()
   12107           4 :             );
   12108             : 
   12109           2 :         }
   12110             : 
   12111           2 :         void append_008()
   12112             :         {
   12113           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12114           2 :             OString                expVal( aStrBuf.getStr() );
   12115           2 :             sal_Int64              input = -15;
   12116           2 :             sal_Int16              radix = 8;
   12117             : 
   12118           2 :             expVal += OString( "-" );
   12119           2 :             expVal += OString( "17" );
   12120           2 :             aStrBuf.append( input, radix );
   12121             : 
   12122           4 :             CPPUNIT_ASSERT_MESSAGE
   12123             :             (
   12124             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
   12125             :                 aStrBuf.getStr()== expVal &&
   12126             :                     aStrBuf.getLength() == expVal.getLength()
   12127           4 :             );
   12128             : 
   12129           2 :         }
   12130             : 
   12131           2 :         void append_009()
   12132             :         {
   12133           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12134           2 :             OString                expVal( aStrBuf.getStr() );
   12135           2 :             sal_Int64              input = -0;
   12136           2 :             sal_Int16              radix = 10;
   12137             : 
   12138           2 :             expVal += OString( "0" );
   12139           2 :             aStrBuf.append( input, radix );
   12140             : 
   12141           4 :             CPPUNIT_ASSERT_MESSAGE
   12142             :             (
   12143             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
   12144             :                 aStrBuf.getStr()== expVal &&
   12145             :                     aStrBuf.getLength() == expVal.getLength()
   12146           4 :             );
   12147             : 
   12148           2 :         }
   12149             : 
   12150           2 :         void append_010()
   12151             :         {
   12152           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12153           2 :             OString                expVal( aStrBuf.getStr() );
   12154           2 :             sal_Int64              input = -4;
   12155           2 :             sal_Int16              radix = 10;
   12156             : 
   12157           2 :             expVal += OString( "-" );
   12158           2 :             expVal += OString( "4" );
   12159           2 :             aStrBuf.append( input, radix );
   12160             : 
   12161           4 :             CPPUNIT_ASSERT_MESSAGE
   12162             :             (
   12163             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
   12164             :                 aStrBuf.getStr()== expVal &&
   12165             :                     aStrBuf.getLength() == expVal.getLength()
   12166           4 :             );
   12167             : 
   12168           2 :         }
   12169             : 
   12170           2 :         void append_011()
   12171             :         {
   12172           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12173           2 :             OString                expVal( aStrBuf.getStr() );
   12174           2 :             sal_Int64              input = -8;
   12175           2 :             sal_Int16              radix = 10;
   12176             : 
   12177           2 :             expVal += OString( "-" );
   12178           2 :             expVal += OString( "8" );
   12179           2 :             aStrBuf.append( input, radix );
   12180             : 
   12181           4 :             CPPUNIT_ASSERT_MESSAGE
   12182             :             (
   12183             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
   12184             :                 aStrBuf.getStr()== expVal &&
   12185             :                     aStrBuf.getLength() == expVal.getLength()
   12186           4 :             );
   12187             : 
   12188           2 :         }
   12189             : 
   12190           2 :         void append_012()
   12191             :         {
   12192           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12193           2 :             OString                expVal( aStrBuf.getStr() );
   12194           2 :             sal_Int64              input = -15;
   12195           2 :             sal_Int16              radix = 10;
   12196             : 
   12197           2 :             expVal += OString( "-" );
   12198           2 :             expVal += OString( "15" );
   12199           2 :             aStrBuf.append( input, radix );
   12200             : 
   12201           4 :             CPPUNIT_ASSERT_MESSAGE
   12202             :             (
   12203             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
   12204             :                 aStrBuf.getStr()== expVal &&
   12205             :                     aStrBuf.getLength() == expVal.getLength()
   12206           4 :             );
   12207             : 
   12208           2 :         }
   12209             : 
   12210           2 :         void append_013()
   12211             :         {
   12212           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12213           2 :             OString                expVal( aStrBuf.getStr() );
   12214           2 :             sal_Int64              input = -0;
   12215           2 :             sal_Int16              radix = 16;
   12216             : 
   12217           2 :             expVal += OString( "0" );
   12218           2 :             aStrBuf.append( input, radix );
   12219             : 
   12220           4 :             CPPUNIT_ASSERT_MESSAGE
   12221             :             (
   12222             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
   12223             :                 aStrBuf.getStr()== expVal &&
   12224             :                     aStrBuf.getLength() == expVal.getLength()
   12225           4 :             );
   12226             : 
   12227           2 :         }
   12228             : 
   12229           2 :         void append_014()
   12230             :         {
   12231           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12232           2 :             OString                expVal( aStrBuf.getStr() );
   12233           2 :             sal_Int64              input = -4;
   12234           2 :             sal_Int16              radix = 16;
   12235             : 
   12236           2 :             expVal += OString( "-" );
   12237           2 :             expVal += OString( "4" );
   12238           2 :             aStrBuf.append( input, radix );
   12239             : 
   12240           4 :             CPPUNIT_ASSERT_MESSAGE
   12241             :             (
   12242             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
   12243             :                 aStrBuf.getStr()== expVal &&
   12244             :                     aStrBuf.getLength() == expVal.getLength()
   12245           4 :             );
   12246             : 
   12247           2 :         }
   12248             : 
   12249           2 :         void append_015()
   12250             :         {
   12251           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12252           2 :             OString                expVal( aStrBuf.getStr() );
   12253           2 :             sal_Int64              input = -8;
   12254           2 :             sal_Int16              radix = 16;
   12255             : 
   12256           2 :             expVal += OString( "-" );
   12257           2 :             expVal += OString( "8" );
   12258           2 :             aStrBuf.append( input, radix );
   12259             : 
   12260           4 :             CPPUNIT_ASSERT_MESSAGE
   12261             :             (
   12262             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
   12263             :                 aStrBuf.getStr()== expVal &&
   12264             :                     aStrBuf.getLength() == expVal.getLength()
   12265           4 :             );
   12266             : 
   12267           2 :         }
   12268             : 
   12269           2 :         void append_016()
   12270             :         {
   12271           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12272           2 :             OString                expVal( aStrBuf.getStr() );
   12273           2 :             sal_Int64              input = -15;
   12274           2 :             sal_Int16              radix = 16;
   12275             : 
   12276           2 :             expVal += OString( "-" );
   12277           2 :             expVal += OString( "f" );
   12278           2 :             aStrBuf.append( input, radix );
   12279             : 
   12280           4 :             CPPUNIT_ASSERT_MESSAGE
   12281             :             (
   12282             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
   12283             :                 aStrBuf.getStr()== expVal &&
   12284             :                     aStrBuf.getLength() == expVal.getLength()
   12285           4 :             );
   12286             : 
   12287           2 :         }
   12288             : 
   12289           2 :         void append_017()
   12290             :         {
   12291           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12292           2 :             OString                expVal( aStrBuf.getStr() );
   12293           2 :             sal_Int64              input = -0;
   12294           2 :             sal_Int16              radix = 36;
   12295             : 
   12296           2 :             expVal += OString( "0" );
   12297           2 :             aStrBuf.append( input, radix );
   12298             : 
   12299           4 :             CPPUNIT_ASSERT_MESSAGE
   12300             :             (
   12301             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
   12302             :                 aStrBuf.getStr()== expVal &&
   12303             :                     aStrBuf.getLength() == expVal.getLength()
   12304           4 :             );
   12305             : 
   12306           2 :         }
   12307             : 
   12308           2 :         void append_018()
   12309             :         {
   12310           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12311           2 :             OString                expVal( aStrBuf.getStr() );
   12312           2 :             sal_Int64              input = -4;
   12313           2 :             sal_Int16              radix = 36;
   12314             : 
   12315           2 :             expVal += OString( "-" );
   12316           2 :             expVal += OString( "4" );
   12317           2 :             aStrBuf.append( input, radix );
   12318             : 
   12319           4 :             CPPUNIT_ASSERT_MESSAGE
   12320             :             (
   12321             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
   12322             :                 aStrBuf.getStr()== expVal &&
   12323             :                     aStrBuf.getLength() == expVal.getLength()
   12324           4 :             );
   12325             : 
   12326           2 :         }
   12327             : 
   12328           2 :         void append_019()
   12329             :         {
   12330           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12331           2 :             OString                expVal( aStrBuf.getStr() );
   12332           2 :             sal_Int64              input = -8;
   12333           2 :             sal_Int16              radix = 36;
   12334             : 
   12335           2 :             expVal += OString( "-" );
   12336           2 :             expVal += OString( "8" );
   12337           2 :             aStrBuf.append( input, radix );
   12338             : 
   12339           4 :             CPPUNIT_ASSERT_MESSAGE
   12340             :             (
   12341             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
   12342             :                 aStrBuf.getStr()== expVal &&
   12343             :                     aStrBuf.getLength() == expVal.getLength()
   12344           4 :             );
   12345             : 
   12346           2 :         }
   12347             : 
   12348           2 :         void append_020()
   12349             :         {
   12350           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   12351           2 :             OString                expVal( aStrBuf.getStr() );
   12352           2 :             sal_Int64              input = -35;
   12353           2 :             sal_Int16              radix = 36;
   12354             : 
   12355           2 :             expVal += OString( "-" );
   12356           2 :             expVal += OString( "z" );
   12357           2 :             aStrBuf.append( input, radix );
   12358             : 
   12359           4 :             CPPUNIT_ASSERT_MESSAGE
   12360             :             (
   12361             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
   12362             :                 aStrBuf.getStr()== expVal &&
   12363             :                     aStrBuf.getLength() == expVal.getLength()
   12364           4 :             );
   12365             : 
   12366           2 :         }
   12367             : 
   12368           2 :         void append_021()
   12369             :         {
   12370           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12371           2 :             OString                expVal( aStrBuf.getStr() );
   12372           2 :             sal_Int64              input = -0;
   12373           2 :             sal_Int16              radix = 2;
   12374             : 
   12375           2 :             expVal += OString( "0" );
   12376           2 :             aStrBuf.append( input, radix );
   12377             : 
   12378           4 :             CPPUNIT_ASSERT_MESSAGE
   12379             :             (
   12380             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
   12381             :                 aStrBuf.getStr()== expVal &&
   12382             :                     aStrBuf.getLength() == expVal.getLength()
   12383           4 :             );
   12384             : 
   12385           2 :         }
   12386             : 
   12387           2 :         void append_022()
   12388             :         {
   12389           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12390           2 :             OString                expVal( aStrBuf.getStr() );
   12391           2 :             sal_Int64              input = -4;
   12392           2 :             sal_Int16              radix = 2;
   12393             : 
   12394           2 :             expVal += OString( "-" );
   12395           2 :             expVal += OString( "100" );
   12396           2 :             aStrBuf.append( input, radix );
   12397             : 
   12398           4 :             CPPUNIT_ASSERT_MESSAGE
   12399             :             (
   12400             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
   12401             :                 aStrBuf.getStr()== expVal &&
   12402             :                     aStrBuf.getLength() == expVal.getLength()
   12403           4 :             );
   12404             : 
   12405           2 :         }
   12406             : 
   12407           2 :         void append_023()
   12408             :         {
   12409           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12410           2 :             OString                expVal( aStrBuf.getStr() );
   12411           2 :             sal_Int64              input = -8;
   12412           2 :             sal_Int16              radix = 2;
   12413             : 
   12414           2 :             expVal += OString( "-" );
   12415           2 :             expVal += OString( "1000" );
   12416           2 :             aStrBuf.append( input, radix );
   12417             : 
   12418           4 :             CPPUNIT_ASSERT_MESSAGE
   12419             :             (
   12420             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
   12421             :                 aStrBuf.getStr()== expVal &&
   12422             :                     aStrBuf.getLength() == expVal.getLength()
   12423           4 :             );
   12424             : 
   12425           2 :         }
   12426             : 
   12427           2 :         void append_024()
   12428             :         {
   12429           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12430           2 :             OString                expVal( aStrBuf.getStr() );
   12431           2 :             sal_Int64              input = -15;
   12432           2 :             sal_Int16              radix = 2;
   12433             : 
   12434           2 :             expVal += OString( "-" );
   12435           2 :             expVal += OString( "1111" );
   12436           2 :             aStrBuf.append( input, radix );
   12437             : 
   12438           4 :             CPPUNIT_ASSERT_MESSAGE
   12439             :             (
   12440             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
   12441             :                 aStrBuf.getStr()== expVal &&
   12442             :                     aStrBuf.getLength() == expVal.getLength()
   12443           4 :             );
   12444             : 
   12445           2 :         }
   12446             : 
   12447           2 :         void append_025()
   12448             :         {
   12449           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12450           2 :             OString                expVal( aStrBuf.getStr() );
   12451           2 :             sal_Int64              input = -0;
   12452           2 :             sal_Int16              radix = 8;
   12453             : 
   12454           2 :             expVal += OString( "0" );
   12455           2 :             aStrBuf.append( input, radix );
   12456             : 
   12457           4 :             CPPUNIT_ASSERT_MESSAGE
   12458             :             (
   12459             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
   12460             :                 aStrBuf.getStr()== expVal &&
   12461             :                     aStrBuf.getLength() == expVal.getLength()
   12462           4 :             );
   12463             : 
   12464           2 :         }
   12465             : 
   12466           2 :         void append_026()
   12467             :         {
   12468           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12469           2 :             OString                expVal( aStrBuf.getStr() );
   12470           2 :             sal_Int64              input = -4;
   12471           2 :             sal_Int16              radix = 8;
   12472             : 
   12473           2 :             expVal += OString( "-" );
   12474           2 :             expVal += OString( "4" );
   12475           2 :             aStrBuf.append( input, radix );
   12476             : 
   12477           4 :             CPPUNIT_ASSERT_MESSAGE
   12478             :             (
   12479             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
   12480             :                 aStrBuf.getStr()== expVal &&
   12481             :                     aStrBuf.getLength() == expVal.getLength()
   12482           4 :             );
   12483             : 
   12484           2 :         }
   12485             : 
   12486           2 :         void append_027()
   12487             :         {
   12488           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12489           2 :             OString                expVal( aStrBuf.getStr() );
   12490           2 :             sal_Int64              input = -8;
   12491           2 :             sal_Int16              radix = 8;
   12492             : 
   12493           2 :             expVal += OString( "-" );
   12494           2 :             expVal += OString( "10" );
   12495           2 :             aStrBuf.append( input, radix );
   12496             : 
   12497           4 :             CPPUNIT_ASSERT_MESSAGE
   12498             :             (
   12499             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
   12500             :                 aStrBuf.getStr()== expVal &&
   12501             :                     aStrBuf.getLength() == expVal.getLength()
   12502           4 :             );
   12503             : 
   12504           2 :         }
   12505             : 
   12506           2 :         void append_028()
   12507             :         {
   12508           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12509           2 :             OString                expVal( aStrBuf.getStr() );
   12510           2 :             sal_Int64              input = -15;
   12511           2 :             sal_Int16              radix = 8;
   12512             : 
   12513           2 :             expVal += OString( "-" );
   12514           2 :             expVal += OString( "17" );
   12515           2 :             aStrBuf.append( input, radix );
   12516             : 
   12517           4 :             CPPUNIT_ASSERT_MESSAGE
   12518             :             (
   12519             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
   12520             :                 aStrBuf.getStr()== expVal &&
   12521             :                     aStrBuf.getLength() == expVal.getLength()
   12522           4 :             );
   12523             : 
   12524           2 :         }
   12525             : 
   12526           2 :         void append_029()
   12527             :         {
   12528           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12529           2 :             OString                expVal( aStrBuf.getStr() );
   12530           2 :             sal_Int64              input = -0;
   12531           2 :             sal_Int16              radix = 10;
   12532             : 
   12533           2 :             expVal += OString( "0" );
   12534           2 :             aStrBuf.append( input, radix );
   12535             : 
   12536           4 :             CPPUNIT_ASSERT_MESSAGE
   12537             :             (
   12538             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
   12539             :                 aStrBuf.getStr()== expVal &&
   12540             :                     aStrBuf.getLength() == expVal.getLength()
   12541           4 :             );
   12542             : 
   12543           2 :         }
   12544             : 
   12545           2 :         void append_030()
   12546             :         {
   12547           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12548           2 :             OString                expVal( aStrBuf.getStr() );
   12549           2 :             sal_Int64              input = -4;
   12550           2 :             sal_Int16              radix = 10;
   12551             : 
   12552           2 :             expVal += OString( "-" );
   12553           2 :             expVal += OString( "4" );
   12554           2 :             aStrBuf.append( input, radix );
   12555             : 
   12556           4 :             CPPUNIT_ASSERT_MESSAGE
   12557             :             (
   12558             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
   12559             :                 aStrBuf.getStr()== expVal &&
   12560             :                     aStrBuf.getLength() == expVal.getLength()
   12561           4 :             );
   12562             : 
   12563           2 :         }
   12564             : 
   12565           2 :         void append_031()
   12566             :         {
   12567           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12568           2 :             OString                expVal( aStrBuf.getStr() );
   12569           2 :             sal_Int64              input = -8;
   12570           2 :             sal_Int16              radix = 10;
   12571             : 
   12572           2 :             expVal += OString( "-" );
   12573           2 :             expVal += OString( "8" );
   12574           2 :             aStrBuf.append( input, radix );
   12575             : 
   12576           4 :             CPPUNIT_ASSERT_MESSAGE
   12577             :             (
   12578             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
   12579             :                 aStrBuf.getStr()== expVal &&
   12580             :                     aStrBuf.getLength() == expVal.getLength()
   12581           4 :             );
   12582             : 
   12583           2 :         }
   12584             : 
   12585           2 :         void append_032()
   12586             :         {
   12587           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12588           2 :             OString                expVal( aStrBuf.getStr() );
   12589           2 :             sal_Int64              input = -15;
   12590           2 :             sal_Int16              radix = 10;
   12591             : 
   12592           2 :             expVal += OString( "-" );
   12593           2 :             expVal += OString( "15" );
   12594           2 :             aStrBuf.append( input, radix );
   12595             : 
   12596           4 :             CPPUNIT_ASSERT_MESSAGE
   12597             :             (
   12598             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
   12599             :                 aStrBuf.getStr()== expVal &&
   12600             :                     aStrBuf.getLength() == expVal.getLength()
   12601           4 :             );
   12602             : 
   12603           2 :         }
   12604             : 
   12605           2 :         void append_033()
   12606             :         {
   12607           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12608           2 :             OString                expVal( aStrBuf.getStr() );
   12609           2 :             sal_Int64              input = -0;
   12610           2 :             sal_Int16              radix = 16;
   12611             : 
   12612           2 :             expVal += OString( "0" );
   12613           2 :             aStrBuf.append( input, radix );
   12614             : 
   12615           4 :             CPPUNIT_ASSERT_MESSAGE
   12616             :             (
   12617             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
   12618             :                 aStrBuf.getStr()== expVal &&
   12619             :                     aStrBuf.getLength() == expVal.getLength()
   12620           4 :             );
   12621             : 
   12622           2 :         }
   12623             : 
   12624           2 :         void append_034()
   12625             :         {
   12626           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12627           2 :             OString                expVal( aStrBuf.getStr() );
   12628           2 :             sal_Int64              input = -4;
   12629           2 :             sal_Int16              radix = 16;
   12630             : 
   12631           2 :             expVal += OString( "-" );
   12632           2 :             expVal += OString( "4" );
   12633           2 :             aStrBuf.append( input, radix );
   12634             : 
   12635           4 :             CPPUNIT_ASSERT_MESSAGE
   12636             :             (
   12637             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
   12638             :                 aStrBuf.getStr()== expVal &&
   12639             :                     aStrBuf.getLength() == expVal.getLength()
   12640           4 :             );
   12641             : 
   12642           2 :         }
   12643             : 
   12644           2 :         void append_035()
   12645             :         {
   12646           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12647           2 :             OString                expVal( aStrBuf.getStr() );
   12648           2 :             sal_Int64              input = -8;
   12649           2 :             sal_Int16              radix = 16;
   12650             : 
   12651           2 :             expVal += OString( "-" );
   12652           2 :             expVal += OString( "8" );
   12653           2 :             aStrBuf.append( input, radix );
   12654             : 
   12655           4 :             CPPUNIT_ASSERT_MESSAGE
   12656             :             (
   12657             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
   12658             :                 aStrBuf.getStr()== expVal &&
   12659             :                     aStrBuf.getLength() == expVal.getLength()
   12660           4 :             );
   12661             : 
   12662           2 :         }
   12663             : 
   12664           2 :         void append_036()
   12665             :         {
   12666           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12667           2 :             OString                expVal( aStrBuf.getStr() );
   12668           2 :             sal_Int64              input = -15;
   12669           2 :             sal_Int16              radix = 16;
   12670             : 
   12671           2 :             expVal += OString( "-" );
   12672           2 :             expVal += OString( "f" );
   12673           2 :             aStrBuf.append( input, radix );
   12674             : 
   12675           4 :             CPPUNIT_ASSERT_MESSAGE
   12676             :             (
   12677             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
   12678             :                 aStrBuf.getStr()== expVal &&
   12679             :                     aStrBuf.getLength() == expVal.getLength()
   12680           4 :             );
   12681             : 
   12682           2 :         }
   12683             : 
   12684           2 :         void append_037()
   12685             :         {
   12686           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12687           2 :             OString                expVal( aStrBuf.getStr() );
   12688           2 :             sal_Int64              input = -0;
   12689           2 :             sal_Int16              radix = 36;
   12690             : 
   12691           2 :             expVal += OString( "0" );
   12692           2 :             aStrBuf.append( input, radix );
   12693             : 
   12694           4 :             CPPUNIT_ASSERT_MESSAGE
   12695             :             (
   12696             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
   12697             :                 aStrBuf.getStr()== expVal &&
   12698             :                     aStrBuf.getLength() == expVal.getLength()
   12699           4 :             );
   12700             : 
   12701           2 :         }
   12702             : 
   12703           2 :         void append_038()
   12704             :         {
   12705           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12706           2 :             OString                expVal( aStrBuf.getStr() );
   12707           2 :             sal_Int64              input = -4;
   12708           2 :             sal_Int16              radix = 36;
   12709             : 
   12710           2 :             expVal += OString( "-" );
   12711           2 :             expVal += OString( "4" );
   12712           2 :             aStrBuf.append( input, radix );
   12713             : 
   12714           4 :             CPPUNIT_ASSERT_MESSAGE
   12715             :             (
   12716             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
   12717             :                 aStrBuf.getStr()== expVal &&
   12718             :                     aStrBuf.getLength() == expVal.getLength()
   12719           4 :             );
   12720             : 
   12721           2 :         }
   12722             : 
   12723           2 :         void append_039()
   12724             :         {
   12725           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12726           2 :             OString                expVal( aStrBuf.getStr() );
   12727           2 :             sal_Int64              input = -8;
   12728           2 :             sal_Int16              radix = 36;
   12729             : 
   12730           2 :             expVal += OString( "-" );
   12731           2 :             expVal += OString( "8" );
   12732           2 :             aStrBuf.append( input, radix );
   12733             : 
   12734           4 :             CPPUNIT_ASSERT_MESSAGE
   12735             :             (
   12736             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
   12737             :                 aStrBuf.getStr()== expVal &&
   12738             :                     aStrBuf.getLength() == expVal.getLength()
   12739           4 :             );
   12740             : 
   12741           2 :         }
   12742             : 
   12743           2 :         void append_040()
   12744             :         {
   12745           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   12746           2 :             OString                expVal( aStrBuf.getStr() );
   12747           2 :             sal_Int64              input = -35;
   12748           2 :             sal_Int16              radix = 36;
   12749             : 
   12750           2 :             expVal += OString( "-" );
   12751           2 :             expVal += OString( "z" );
   12752           2 :             aStrBuf.append( input, radix );
   12753             : 
   12754           4 :             CPPUNIT_ASSERT_MESSAGE
   12755             :             (
   12756             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
   12757             :                 aStrBuf.getStr()== expVal &&
   12758             :                     aStrBuf.getLength() == expVal.getLength()
   12759           4 :             );
   12760             : 
   12761           2 :         }
   12762             : 
   12763           2 :         void append_041()
   12764             :         {
   12765           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   12766           2 :             OString                expVal( aStrBuf.getStr() );
   12767           2 :             sal_Int64              input = -0;
   12768           2 :             sal_Int16              radix = 2;
   12769             : 
   12770           2 :             expVal += OString( "0" );
   12771           2 :             aStrBuf.append( input, radix );
   12772             : 
   12773           4 :             CPPUNIT_ASSERT_MESSAGE
   12774             :             (
   12775             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
   12776             :                 aStrBuf.getStr()== expVal &&
   12777             :                     aStrBuf.getLength() == expVal.getLength()
   12778           4 :             );
   12779             : 
   12780           2 :         }
   12781             : 
   12782           2 :         void append_042()
   12783             :         {
   12784           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   12785           2 :             OString                expVal( aStrBuf.getStr() );
   12786           2 :             sal_Int64              input = -4;
   12787           2 :             sal_Int16              radix = 2;
   12788             : 
   12789           2 :             expVal += OString( "-" );
   12790           2 :             expVal += OString( "100" );
   12791           2 :             aStrBuf.append( input, radix );
   12792             : 
   12793           4 :             CPPUNIT_ASSERT_MESSAGE
   12794             :             (
   12795             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
   12796             :                 aStrBuf.getStr()== expVal &&
   12797             :                     aStrBuf.getLength() == expVal.getLength()
   12798           4 :             );
   12799             : 
   12800           2 :         }
   12801             : 
   12802           2 :         void append_043()
   12803             :         {
   12804           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   12805           2 :             OString                expVal( aStrBuf.getStr() );
   12806           2 :             sal_Int64              input = -8;
   12807           2 :             sal_Int16              radix = 2;
   12808             : 
   12809           2 :             expVal += OString( "-" );
   12810           2 :             expVal += OString( "1000" );
   12811           2 :             aStrBuf.append( input, radix );
   12812             : 
   12813           4 :             CPPUNIT_ASSERT_MESSAGE
   12814             :             (
   12815             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
   12816             :                 aStrBuf.getStr()== expVal &&
   12817             :                     aStrBuf.getLength() == expVal.getLength()
   12818           4 :             );
   12819             : 
   12820           2 :         }
   12821             : 
   12822           2 :         void append_044()
   12823             :         {
   12824           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   12825           2 :             OString                expVal( aStrBuf.getStr() );
   12826           2 :             sal_Int64              input = -15;
   12827           2 :             sal_Int16              radix = 2;
   12828             : 
   12829           2 :             expVal += OString( "-" );
   12830           2 :             expVal += OString( "1111" );
   12831           2 :             aStrBuf.append( input, radix );
   12832             : 
   12833           4 :             CPPUNIT_ASSERT_MESSAGE
   12834             :             (
   12835             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
   12836             :                 aStrBuf.getStr()== expVal &&
   12837             :                     aStrBuf.getLength() == expVal.getLength()
   12838           4 :             );
   12839             : 
   12840           2 :         }
   12841             : 
   12842           2 :         void append_045()
   12843             :         {
   12844           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   12845           2 :             OString                expVal( aStrBuf.getStr() );
   12846           2 :             sal_Int64              input = -0;
   12847           2 :             sal_Int16              radix = 8;
   12848             : 
   12849           2 :             expVal += OString( "0" );
   12850           2 :             aStrBuf.append( input, radix );
   12851             : 
   12852           4 :             CPPUNIT_ASSERT_MESSAGE
   12853             :             (
   12854             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
   12855             :                 aStrBuf.getStr()== expVal &&
   12856             :                     aStrBuf.getLength() == expVal.getLength()
   12857           4 :             );
   12858             : 
   12859           2 :         }
   12860             : 
   12861           2 :         void append_046()
   12862             :         {
   12863           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   12864           2 :             OString                expVal( aStrBuf.getStr() );
   12865           2 :             sal_Int64              input = -4;
   12866           2 :             sal_Int16              radix = 8;
   12867             : 
   12868           2 :             expVal += OString( "-" );
   12869           2 :             expVal += OString( "4" );
   12870           2 :             aStrBuf.append( input, radix );
   12871             : 
   12872           4 :             CPPUNIT_ASSERT_MESSAGE
   12873             :             (
   12874             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
   12875             :                 aStrBuf.getStr()== expVal &&
   12876             :                     aStrBuf.getLength() == expVal.getLength()
   12877           4 :             );
   12878             : 
   12879           2 :         }
   12880             : 
   12881           2 :         void append_047()
   12882             :         {
   12883           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   12884           2 :             OString                expVal( aStrBuf.getStr() );
   12885           2 :             sal_Int64              input = -8;
   12886           2 :             sal_Int16              radix = 8;
   12887             : 
   12888           2 :             expVal += OString( "-" );
   12889           2 :             expVal += OString( "10" );
   12890           2 :             aStrBuf.append( input, radix );
   12891             : 
   12892           4 :             CPPUNIT_ASSERT_MESSAGE
   12893             :             (
   12894             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
   12895             :                 aStrBuf.getStr()== expVal &&
   12896             :                     aStrBuf.getLength() == expVal.getLength()
   12897           4 :             );
   12898             : 
   12899           2 :         }
   12900             : 
   12901           2 :         void append_048()
   12902             :         {
   12903           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   12904           2 :             OString                expVal( aStrBuf.getStr() );
   12905           2 :             sal_Int64              input = -15;
   12906           2 :             sal_Int16              radix = 8;
   12907             : 
   12908           2 :             expVal += OString( "-" );
   12909           2 :             expVal += OString( "17" );
   12910           2 :             aStrBuf.append( input, radix );
   12911             : 
   12912           4 :             CPPUNIT_ASSERT_MESSAGE
   12913             :             (
   12914             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
   12915             :                 aStrBuf.getStr()== expVal &&
   12916             :                     aStrBuf.getLength() == expVal.getLength()
   12917           4 :             );
   12918             : 
   12919           2 :         }
   12920             : 
   12921           2 :         void append_049()
   12922             :         {
   12923           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   12924           2 :             OString                expVal( aStrBuf.getStr() );
   12925           2 :             sal_Int64              input = -0;
   12926           2 :             sal_Int16              radix = 10;
   12927             : 
   12928           2 :             expVal += OString( "0" );
   12929           2 :             aStrBuf.append( input, radix );
   12930             : 
   12931           4 :             CPPUNIT_ASSERT_MESSAGE
   12932             :             (
   12933             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
   12934             :                 aStrBuf.getStr()== expVal &&
   12935             :                     aStrBuf.getLength() == expVal.getLength()
   12936           4 :             );
   12937             : 
   12938           2 :         }
   12939             : 
   12940           2 :         void append_050()
   12941             :         {
   12942           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   12943           2 :             OString                expVal( aStrBuf.getStr() );
   12944           2 :             sal_Int64              input = -4;
   12945           2 :             sal_Int16              radix = 10;
   12946             : 
   12947           2 :             expVal += OString( "-" );
   12948           2 :             expVal += OString( "4" );
   12949           2 :             aStrBuf.append( input, radix );
   12950             : 
   12951           4 :             CPPUNIT_ASSERT_MESSAGE
   12952             :             (
   12953             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
   12954             :                 aStrBuf.getStr()== expVal &&
   12955             :                     aStrBuf.getLength() == expVal.getLength()
   12956           4 :             );
   12957             : 
   12958           2 :         }
   12959             : 
   12960           2 :         void append_051()
   12961             :         {
   12962           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   12963           2 :             OString                expVal( aStrBuf.getStr() );
   12964           2 :             sal_Int64              input = -8;
   12965           2 :             sal_Int16              radix = 10;
   12966             : 
   12967           2 :             expVal += OString( "-" );
   12968           2 :             expVal += OString( "8" );
   12969           2 :             aStrBuf.append( input, radix );
   12970             : 
   12971           4 :             CPPUNIT_ASSERT_MESSAGE
   12972             :             (
   12973             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
   12974             :                 aStrBuf.getStr()== expVal &&
   12975             :                     aStrBuf.getLength() == expVal.getLength()
   12976           4 :             );
   12977             : 
   12978           2 :         }
   12979             : 
   12980           2 :         void append_052()
   12981             :         {
   12982           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   12983           2 :             OString                expVal( aStrBuf.getStr() );
   12984           2 :             sal_Int64              input = -15;
   12985           2 :             sal_Int16              radix = 10;
   12986             : 
   12987           2 :             expVal += OString( "-" );
   12988           2 :             expVal += OString( "15" );
   12989           2 :             aStrBuf.append( input, radix );
   12990             : 
   12991           4 :             CPPUNIT_ASSERT_MESSAGE
   12992             :             (
   12993             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
   12994             :                 aStrBuf.getStr()== expVal &&
   12995             :                     aStrBuf.getLength() == expVal.getLength()
   12996           4 :             );
   12997             : 
   12998           2 :         }
   12999             : 
   13000           2 :         void append_053()
   13001             :         {
   13002           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   13003           2 :             OString                expVal( aStrBuf.getStr() );
   13004           2 :             sal_Int64              input = -0;
   13005           2 :             sal_Int16              radix = 16;
   13006             : 
   13007           2 :             expVal += OString( "0" );
   13008           2 :             aStrBuf.append( input, radix );
   13009             : 
   13010           4 :             CPPUNIT_ASSERT_MESSAGE
   13011             :             (
   13012             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
   13013             :                 aStrBuf.getStr()== expVal &&
   13014             :                     aStrBuf.getLength() == expVal.getLength()
   13015           4 :             );
   13016             : 
   13017           2 :         }
   13018             : 
   13019           2 :         void append_054()
   13020             :         {
   13021           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   13022           2 :             OString                expVal( aStrBuf.getStr() );
   13023           2 :             sal_Int64              input = -4;
   13024           2 :             sal_Int16              radix = 16;
   13025             : 
   13026           2 :             expVal += OString( "-" );
   13027           2 :             expVal += OString( "4" );
   13028           2 :             aStrBuf.append( input, radix );
   13029             : 
   13030           4 :             CPPUNIT_ASSERT_MESSAGE
   13031             :             (
   13032             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
   13033             :                 aStrBuf.getStr()== expVal &&
   13034             :                     aStrBuf.getLength() == expVal.getLength()
   13035           4 :             );
   13036             : 
   13037           2 :         }
   13038             : 
   13039           2 :         void append_055()
   13040             :         {
   13041           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   13042           2 :             OString                expVal( aStrBuf.getStr() );
   13043           2 :             sal_Int64              input = -8;
   13044           2 :             sal_Int16              radix = 16;
   13045             : 
   13046           2 :             expVal += OString( "-" );
   13047           2 :             expVal += OString( "8" );
   13048           2 :             aStrBuf.append( input, radix );
   13049             : 
   13050           4 :             CPPUNIT_ASSERT_MESSAGE
   13051             :             (
   13052             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
   13053             :                 aStrBuf.getStr()== expVal &&
   13054             :                     aStrBuf.getLength() == expVal.getLength()
   13055           4 :             );
   13056             : 
   13057           2 :         }
   13058             : 
   13059           2 :         void append_056()
   13060             :         {
   13061           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   13062           2 :             OString                expVal( aStrBuf.getStr() );
   13063           2 :             sal_Int64              input = -15;
   13064           2 :             sal_Int16              radix = 16;
   13065             : 
   13066           2 :             expVal += OString( "-" );
   13067           2 :             expVal += OString( "f" );
   13068           2 :             aStrBuf.append( input, radix );
   13069             : 
   13070           4 :             CPPUNIT_ASSERT_MESSAGE
   13071             :             (
   13072             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
   13073             :                 aStrBuf.getStr()== expVal &&
   13074             :                     aStrBuf.getLength() == expVal.getLength()
   13075           4 :             );
   13076             : 
   13077           2 :         }
   13078             : 
   13079           2 :         void append_057()
   13080             :         {
   13081           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   13082           2 :             OString                expVal( aStrBuf.getStr() );
   13083           2 :             sal_Int64              input = -0;
   13084           2 :             sal_Int16              radix = 36;
   13085             : 
   13086           2 :             expVal += OString( "0" );
   13087           2 :             aStrBuf.append( input, radix );
   13088             : 
   13089           4 :             CPPUNIT_ASSERT_MESSAGE
   13090             :             (
   13091             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
   13092             :                 aStrBuf.getStr()== expVal &&
   13093             :                     aStrBuf.getLength() == expVal.getLength()
   13094           4 :             );
   13095             : 
   13096           2 :         }
   13097             : 
   13098           2 :         void append_058()
   13099             :         {
   13100           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   13101           2 :             OString                expVal( aStrBuf.getStr() );
   13102           2 :             sal_Int64              input = -4;
   13103           2 :             sal_Int16              radix = 36;
   13104             : 
   13105           2 :             expVal += OString( "-" );
   13106           2 :             expVal += OString( "4" );
   13107           2 :             aStrBuf.append( input, radix );
   13108             : 
   13109           4 :             CPPUNIT_ASSERT_MESSAGE
   13110             :             (
   13111             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
   13112             :                 aStrBuf.getStr()== expVal &&
   13113             :                     aStrBuf.getLength() == expVal.getLength()
   13114           4 :             );
   13115             : 
   13116           2 :         }
   13117             : 
   13118           2 :         void append_059()
   13119             :         {
   13120           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   13121           2 :             OString                expVal( aStrBuf.getStr() );
   13122           2 :             sal_Int64              input = -8;
   13123           2 :             sal_Int16              radix = 36;
   13124             : 
   13125           2 :             expVal += OString( "-" );
   13126           2 :             expVal += OString( "8" );
   13127           2 :             aStrBuf.append( input, radix );
   13128             : 
   13129           4 :             CPPUNIT_ASSERT_MESSAGE
   13130             :             (
   13131             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
   13132             :                 aStrBuf.getStr()== expVal &&
   13133             :                     aStrBuf.getLength() == expVal.getLength()
   13134           4 :             );
   13135             : 
   13136           2 :         }
   13137             : 
   13138           2 :         void append_060()
   13139             :         {
   13140           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   13141           2 :             OString                expVal( aStrBuf.getStr() );
   13142           2 :             sal_Int64              input = -35;
   13143           2 :             sal_Int16              radix = 36;
   13144             : 
   13145           2 :             expVal += OString( "-" );
   13146           2 :             expVal += OString( "z" );
   13147           2 :             aStrBuf.append( input, radix );
   13148             : 
   13149           4 :             CPPUNIT_ASSERT_MESSAGE
   13150             :             (
   13151             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
   13152             :                 aStrBuf.getStr()== expVal &&
   13153             :                     aStrBuf.getLength() == expVal.getLength()
   13154           4 :             );
   13155             : 
   13156           2 :         }
   13157             : 
   13158           2 :         void append_061()
   13159             :         {
   13160           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13161           2 :             OString                expVal( aStrBuf.getStr() );
   13162           2 :             sal_Int64              input = -0;
   13163           2 :             sal_Int16              radix = 2;
   13164             : 
   13165           2 :             expVal += OString( "0" );
   13166           2 :             aStrBuf.append( input, radix );
   13167             : 
   13168           4 :             CPPUNIT_ASSERT_MESSAGE
   13169             :             (
   13170             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
   13171             :                 aStrBuf.getStr()== expVal &&
   13172             :                     aStrBuf.getLength() == expVal.getLength()
   13173           4 :             );
   13174             : 
   13175           2 :         }
   13176             : 
   13177           2 :         void append_062()
   13178             :         {
   13179           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13180           2 :             OString                expVal( aStrBuf.getStr() );
   13181           2 :             sal_Int64              input = -4;
   13182           2 :             sal_Int16              radix = 2;
   13183             : 
   13184           2 :             expVal += OString( "-" );
   13185           2 :             expVal += OString( "100" );
   13186           2 :             aStrBuf.append( input, radix );
   13187             : 
   13188           4 :             CPPUNIT_ASSERT_MESSAGE
   13189             :             (
   13190             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
   13191             :                 aStrBuf.getStr()== expVal &&
   13192             :                     aStrBuf.getLength() == expVal.getLength()
   13193           4 :             );
   13194             : 
   13195           2 :         }
   13196             : 
   13197           2 :         void append_063()
   13198             :         {
   13199           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13200           2 :             OString                expVal( aStrBuf.getStr() );
   13201           2 :             sal_Int64              input = -8;
   13202           2 :             sal_Int16              radix = 2;
   13203             : 
   13204           2 :             expVal += OString( "-" );
   13205           2 :             expVal += OString( "1000" );
   13206           2 :             aStrBuf.append( input, radix );
   13207             : 
   13208           4 :             CPPUNIT_ASSERT_MESSAGE
   13209             :             (
   13210             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
   13211             :                 aStrBuf.getStr()== expVal &&
   13212             :                     aStrBuf.getLength() == expVal.getLength()
   13213           4 :             );
   13214             : 
   13215           2 :         }
   13216             : 
   13217           2 :         void append_064()
   13218             :         {
   13219           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13220           2 :             OString                expVal( aStrBuf.getStr() );
   13221           2 :             sal_Int64              input = -15;
   13222           2 :             sal_Int16              radix = 2;
   13223             : 
   13224           2 :             expVal += OString( "-" );
   13225           2 :             expVal += OString( "1111" );
   13226           2 :             aStrBuf.append( input, radix );
   13227             : 
   13228           4 :             CPPUNIT_ASSERT_MESSAGE
   13229             :             (
   13230             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
   13231             :                 aStrBuf.getStr()== expVal &&
   13232             :                     aStrBuf.getLength() == expVal.getLength()
   13233           4 :             );
   13234             : 
   13235           2 :         }
   13236             : 
   13237           2 :         void append_065()
   13238             :         {
   13239           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13240           2 :             OString                expVal( aStrBuf.getStr() );
   13241           2 :             sal_Int64              input = -0;
   13242           2 :             sal_Int16              radix = 8;
   13243             : 
   13244           2 :             expVal += OString( "0" );
   13245           2 :             aStrBuf.append( input, radix );
   13246             : 
   13247           4 :             CPPUNIT_ASSERT_MESSAGE
   13248             :             (
   13249             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
   13250             :                 aStrBuf.getStr()== expVal &&
   13251             :                     aStrBuf.getLength() == expVal.getLength()
   13252           4 :             );
   13253             : 
   13254           2 :         }
   13255             : 
   13256           2 :         void append_066()
   13257             :         {
   13258           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13259           2 :             OString                expVal( aStrBuf.getStr() );
   13260           2 :             sal_Int64              input = -4;
   13261           2 :             sal_Int16              radix = 8;
   13262             : 
   13263           2 :             expVal += OString( "-" );
   13264           2 :             expVal += OString( "4" );
   13265           2 :             aStrBuf.append( input, radix );
   13266             : 
   13267           4 :             CPPUNIT_ASSERT_MESSAGE
   13268             :             (
   13269             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
   13270             :                 aStrBuf.getStr()== expVal &&
   13271             :                     aStrBuf.getLength() == expVal.getLength()
   13272           4 :             );
   13273             : 
   13274           2 :         }
   13275             : 
   13276           2 :         void append_067()
   13277             :         {
   13278           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13279           2 :             OString                expVal( aStrBuf.getStr() );
   13280           2 :             sal_Int64              input = -8;
   13281           2 :             sal_Int16              radix = 8;
   13282             : 
   13283           2 :             expVal += OString( "-" );
   13284           2 :             expVal += OString( "10" );
   13285           2 :             aStrBuf.append( input, radix );
   13286             : 
   13287           4 :             CPPUNIT_ASSERT_MESSAGE
   13288             :             (
   13289             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
   13290             :                 aStrBuf.getStr()== expVal &&
   13291             :                     aStrBuf.getLength() == expVal.getLength()
   13292           4 :             );
   13293             : 
   13294           2 :         }
   13295             : 
   13296           2 :         void append_068()
   13297             :         {
   13298           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13299           2 :             OString                expVal( aStrBuf.getStr() );
   13300           2 :             sal_Int64              input = -15;
   13301           2 :             sal_Int16              radix = 8;
   13302             : 
   13303           2 :             expVal += OString( "-" );
   13304           2 :             expVal += OString( "17" );
   13305           2 :             aStrBuf.append( input, radix );
   13306             : 
   13307           4 :             CPPUNIT_ASSERT_MESSAGE
   13308             :             (
   13309             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
   13310             :                 aStrBuf.getStr()== expVal &&
   13311             :                     aStrBuf.getLength() == expVal.getLength()
   13312           4 :             );
   13313             : 
   13314           2 :         }
   13315             : 
   13316           2 :         void append_069()
   13317             :         {
   13318           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13319           2 :             OString                expVal( aStrBuf.getStr() );
   13320           2 :             sal_Int64              input = -0;
   13321           2 :             sal_Int16              radix = 10;
   13322             : 
   13323           2 :             expVal += OString( "0" );
   13324           2 :             aStrBuf.append( input, radix );
   13325             : 
   13326           4 :             CPPUNIT_ASSERT_MESSAGE
   13327             :             (
   13328             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
   13329             :                 aStrBuf.getStr()== expVal &&
   13330             :                     aStrBuf.getLength() == expVal.getLength()
   13331           4 :             );
   13332             : 
   13333           2 :         }
   13334             : 
   13335           2 :         void append_070()
   13336             :         {
   13337           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13338           2 :             OString                expVal( aStrBuf.getStr() );
   13339           2 :             sal_Int64              input = -4;
   13340           2 :             sal_Int16              radix = 10;
   13341             : 
   13342           2 :             expVal += OString( "-" );
   13343           2 :             expVal += OString( "4" );
   13344           2 :             aStrBuf.append( input, radix );
   13345             : 
   13346           4 :             CPPUNIT_ASSERT_MESSAGE
   13347             :             (
   13348             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
   13349             :                 aStrBuf.getStr()== expVal &&
   13350             :                     aStrBuf.getLength() == expVal.getLength()
   13351           4 :             );
   13352             : 
   13353           2 :         }
   13354             : 
   13355           2 :         void append_071()
   13356             :         {
   13357           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13358           2 :             OString                expVal( aStrBuf.getStr() );
   13359           2 :             sal_Int64              input = -8;
   13360           2 :             sal_Int16              radix = 10;
   13361             : 
   13362           2 :             expVal += OString( "-" );
   13363           2 :             expVal += OString( "8" );
   13364           2 :             aStrBuf.append( input, radix );
   13365             : 
   13366           4 :             CPPUNIT_ASSERT_MESSAGE
   13367             :             (
   13368             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
   13369             :                 aStrBuf.getStr()== expVal &&
   13370             :                     aStrBuf.getLength() == expVal.getLength()
   13371           4 :             );
   13372             : 
   13373           2 :         }
   13374             : 
   13375           2 :         void append_072()
   13376             :         {
   13377           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13378           2 :             OString                expVal( aStrBuf.getStr() );
   13379           2 :             sal_Int64              input = -15;
   13380           2 :             sal_Int16              radix = 10;
   13381             : 
   13382           2 :             expVal += OString( "-" );
   13383           2 :             expVal += OString( "15" );
   13384           2 :             aStrBuf.append( input, radix );
   13385             : 
   13386           4 :             CPPUNIT_ASSERT_MESSAGE
   13387             :             (
   13388             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
   13389             :                 aStrBuf.getStr()== expVal &&
   13390             :                     aStrBuf.getLength() == expVal.getLength()
   13391           4 :             );
   13392             : 
   13393           2 :         }
   13394             : 
   13395           2 :         void append_073()
   13396             :         {
   13397           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13398           2 :             OString                expVal( aStrBuf.getStr() );
   13399           2 :             sal_Int64              input = -0;
   13400           2 :             sal_Int16              radix = 16;
   13401             : 
   13402           2 :             expVal += OString( "0" );
   13403           2 :             aStrBuf.append( input, radix );
   13404             : 
   13405           4 :             CPPUNIT_ASSERT_MESSAGE
   13406             :             (
   13407             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
   13408             :                 aStrBuf.getStr()== expVal &&
   13409             :                     aStrBuf.getLength() == expVal.getLength()
   13410           4 :             );
   13411             : 
   13412           2 :         }
   13413             : 
   13414           2 :         void append_074()
   13415             :         {
   13416           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13417           2 :             OString                expVal( aStrBuf.getStr() );
   13418           2 :             sal_Int64              input = -4;
   13419           2 :             sal_Int16              radix = 16;
   13420             : 
   13421           2 :             expVal += OString( "-" );
   13422           2 :             expVal += OString( "4" );
   13423           2 :             aStrBuf.append( input, radix );
   13424             : 
   13425           4 :             CPPUNIT_ASSERT_MESSAGE
   13426             :             (
   13427             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
   13428             :                 aStrBuf.getStr()== expVal &&
   13429             :                     aStrBuf.getLength() == expVal.getLength()
   13430           4 :             );
   13431             : 
   13432           2 :         }
   13433             : 
   13434           2 :         void append_075()
   13435             :         {
   13436           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13437           2 :             OString                expVal( aStrBuf.getStr() );
   13438           2 :             sal_Int64              input = -8;
   13439           2 :             sal_Int16              radix = 16;
   13440             : 
   13441           2 :             expVal += OString( "-" );
   13442           2 :             expVal += OString( "8" );
   13443           2 :             aStrBuf.append( input, radix );
   13444             : 
   13445           4 :             CPPUNIT_ASSERT_MESSAGE
   13446             :             (
   13447             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
   13448             :                 aStrBuf.getStr()== expVal &&
   13449             :                     aStrBuf.getLength() == expVal.getLength()
   13450           4 :             );
   13451             : 
   13452           2 :         }
   13453             : 
   13454           2 :         void append_076()
   13455             :         {
   13456           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13457           2 :             OString                expVal( aStrBuf.getStr() );
   13458           2 :             sal_Int64              input = -15;
   13459           2 :             sal_Int16              radix = 16;
   13460             : 
   13461           2 :             expVal += OString( "-" );
   13462           2 :             expVal += OString( "f" );
   13463           2 :             aStrBuf.append( input, radix );
   13464             : 
   13465           4 :             CPPUNIT_ASSERT_MESSAGE
   13466             :             (
   13467             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
   13468             :                 aStrBuf.getStr()== expVal &&
   13469             :                     aStrBuf.getLength() == expVal.getLength()
   13470           4 :             );
   13471             : 
   13472           2 :         }
   13473             : 
   13474           2 :         void append_077()
   13475             :         {
   13476           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13477           2 :             OString                expVal( aStrBuf.getStr() );
   13478           2 :             sal_Int64              input = -0;
   13479           2 :             sal_Int16              radix = 36;
   13480             : 
   13481           2 :             expVal += OString( "0" );
   13482           2 :             aStrBuf.append( input, radix );
   13483             : 
   13484           4 :             CPPUNIT_ASSERT_MESSAGE
   13485             :             (
   13486             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
   13487             :                 aStrBuf.getStr()== expVal &&
   13488             :                     aStrBuf.getLength() == expVal.getLength()
   13489           4 :             );
   13490             : 
   13491           2 :         }
   13492             : 
   13493           2 :         void append_078()
   13494             :         {
   13495           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13496           2 :             OString                expVal( aStrBuf.getStr() );
   13497           2 :             sal_Int64              input = -4;
   13498           2 :             sal_Int16              radix = 36;
   13499             : 
   13500           2 :             expVal += OString( "-" );
   13501           2 :             expVal += OString( "4" );
   13502           2 :             aStrBuf.append( input, radix );
   13503             : 
   13504           4 :             CPPUNIT_ASSERT_MESSAGE
   13505             :             (
   13506             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
   13507             :                 aStrBuf.getStr()== expVal &&
   13508             :                     aStrBuf.getLength() == expVal.getLength()
   13509           4 :             );
   13510             : 
   13511           2 :         }
   13512             : 
   13513           2 :         void append_079()
   13514             :         {
   13515           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13516           2 :             OString                expVal( aStrBuf.getStr() );
   13517           2 :             sal_Int64              input = -8;
   13518           2 :             sal_Int16              radix = 36;
   13519             : 
   13520           2 :             expVal += OString( "-" );
   13521           2 :             expVal += OString( "8" );
   13522           2 :             aStrBuf.append( input, radix );
   13523             : 
   13524           4 :             CPPUNIT_ASSERT_MESSAGE
   13525             :             (
   13526             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
   13527             :                 aStrBuf.getStr()== expVal &&
   13528             :                     aStrBuf.getLength() == expVal.getLength()
   13529           4 :             );
   13530             : 
   13531           2 :         }
   13532             : 
   13533           2 :         void append_080()
   13534             :         {
   13535           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   13536           2 :             OString                expVal( aStrBuf.getStr() );
   13537           2 :             sal_Int64              input = -35;
   13538           2 :             sal_Int16              radix = 36;
   13539             : 
   13540           2 :             expVal += OString( "-" );
   13541           2 :             expVal += OString( "z" );
   13542           2 :             aStrBuf.append( input, radix );
   13543             : 
   13544           4 :             CPPUNIT_ASSERT_MESSAGE
   13545             :             (
   13546             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
   13547             :                 aStrBuf.getStr()== expVal &&
   13548             :                     aStrBuf.getLength() == expVal.getLength()
   13549           4 :             );
   13550             : 
   13551           2 :         }
   13552             : 
   13553           2 :         void append_081()
   13554             :         {
   13555           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13556           2 :             OString                expVal( aStrBuf.getStr() );
   13557           2 :             sal_Int64              input = -0;
   13558           2 :             sal_Int16              radix = 2;
   13559             : 
   13560           2 :             expVal += OString( "0" );
   13561           2 :             aStrBuf.append( input, radix );
   13562             : 
   13563           4 :             CPPUNIT_ASSERT_MESSAGE
   13564             :             (
   13565             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
   13566             :                 aStrBuf.getStr()== expVal &&
   13567             :                     aStrBuf.getLength() == expVal.getLength()
   13568           4 :             );
   13569             : 
   13570           2 :         }
   13571             : 
   13572           2 :         void append_082()
   13573             :         {
   13574           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13575           2 :             OString                expVal( aStrBuf.getStr() );
   13576           2 :             sal_Int64              input = -4;
   13577           2 :             sal_Int16              radix = 2;
   13578             : 
   13579           2 :             expVal += OString( "-" );
   13580           2 :             expVal += OString( "100" );
   13581           2 :             aStrBuf.append( input, radix );
   13582             : 
   13583           4 :             CPPUNIT_ASSERT_MESSAGE
   13584             :             (
   13585             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
   13586             :                 aStrBuf.getStr()== expVal &&
   13587             :                     aStrBuf.getLength() == expVal.getLength()
   13588           4 :             );
   13589             : 
   13590           2 :         }
   13591             : 
   13592           2 :         void append_083()
   13593             :         {
   13594           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13595           2 :             OString                expVal( aStrBuf.getStr() );
   13596           2 :             sal_Int64              input = -8;
   13597           2 :             sal_Int16              radix = 2;
   13598             : 
   13599           2 :             expVal += OString( "-" );
   13600           2 :             expVal += OString( "1000" );
   13601           2 :             aStrBuf.append( input, radix );
   13602             : 
   13603           4 :             CPPUNIT_ASSERT_MESSAGE
   13604             :             (
   13605             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
   13606             :                 aStrBuf.getStr()== expVal &&
   13607             :                     aStrBuf.getLength() == expVal.getLength()
   13608           4 :             );
   13609             : 
   13610           2 :         }
   13611             : 
   13612           2 :         void append_084()
   13613             :         {
   13614           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13615           2 :             OString                expVal( aStrBuf.getStr() );
   13616           2 :             sal_Int64              input = -15;
   13617           2 :             sal_Int16              radix = 2;
   13618             : 
   13619           2 :             expVal += OString( "-" );
   13620           2 :             expVal += OString( "1111" );
   13621           2 :             aStrBuf.append( input, radix );
   13622             : 
   13623           4 :             CPPUNIT_ASSERT_MESSAGE
   13624             :             (
   13625             :                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
   13626             :                 aStrBuf.getStr()== expVal &&
   13627             :                     aStrBuf.getLength() == expVal.getLength()
   13628           4 :             );
   13629             : 
   13630           2 :         }
   13631             : 
   13632           2 :         void append_085()
   13633             :         {
   13634           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13635           2 :             OString                expVal( aStrBuf.getStr() );
   13636           2 :             sal_Int64              input = -0;
   13637           2 :             sal_Int16              radix = 8;
   13638             : 
   13639           2 :             expVal += OString( "0" );
   13640           2 :             aStrBuf.append( input, radix );
   13641             : 
   13642           4 :             CPPUNIT_ASSERT_MESSAGE
   13643             :             (
   13644             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
   13645             :                 aStrBuf.getStr()== expVal &&
   13646             :                     aStrBuf.getLength() == expVal.getLength()
   13647           4 :             );
   13648             : 
   13649           2 :         }
   13650             : 
   13651           2 :         void append_086()
   13652             :         {
   13653           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13654           2 :             OString                expVal( aStrBuf.getStr() );
   13655           2 :             sal_Int64              input = -4;
   13656           2 :             sal_Int16              radix = 8;
   13657             : 
   13658           2 :             expVal += OString( "-" );
   13659           2 :             expVal += OString( "4" );
   13660           2 :             aStrBuf.append( input, radix );
   13661             : 
   13662           4 :             CPPUNIT_ASSERT_MESSAGE
   13663             :             (
   13664             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
   13665             :                 aStrBuf.getStr()== expVal &&
   13666             :                     aStrBuf.getLength() == expVal.getLength()
   13667           4 :             );
   13668             : 
   13669           2 :         }
   13670             : 
   13671           2 :         void append_087()
   13672             :         {
   13673           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13674           2 :             OString                expVal( aStrBuf.getStr() );
   13675           2 :             sal_Int64              input = -8;
   13676           2 :             sal_Int16              radix = 8;
   13677             : 
   13678           2 :             expVal += OString( "-" );
   13679           2 :             expVal += OString( "10" );
   13680           2 :             aStrBuf.append( input, radix );
   13681             : 
   13682           4 :             CPPUNIT_ASSERT_MESSAGE
   13683             :             (
   13684             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
   13685             :                 aStrBuf.getStr()== expVal &&
   13686             :                     aStrBuf.getLength() == expVal.getLength()
   13687           4 :             );
   13688             : 
   13689           2 :         }
   13690             : 
   13691           2 :         void append_088()
   13692             :         {
   13693           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13694           2 :             OString                expVal( aStrBuf.getStr() );
   13695           2 :             sal_Int64              input = -15;
   13696           2 :             sal_Int16              radix = 8;
   13697             : 
   13698           2 :             expVal += OString( "-" );
   13699           2 :             expVal += OString( "17" );
   13700           2 :             aStrBuf.append( input, radix );
   13701             : 
   13702           4 :             CPPUNIT_ASSERT_MESSAGE
   13703             :             (
   13704             :                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
   13705             :                 aStrBuf.getStr()== expVal &&
   13706             :                     aStrBuf.getLength() == expVal.getLength()
   13707           4 :             );
   13708             : 
   13709           2 :         }
   13710             : 
   13711           2 :         void append_089()
   13712             :         {
   13713           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13714           2 :             OString                expVal( aStrBuf.getStr() );
   13715           2 :             sal_Int64              input = -0;
   13716           2 :             sal_Int16              radix = 10;
   13717             : 
   13718           2 :             expVal += OString( "0" );
   13719           2 :             aStrBuf.append( input, radix );
   13720             : 
   13721           4 :             CPPUNIT_ASSERT_MESSAGE
   13722             :             (
   13723             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
   13724             :                 aStrBuf.getStr()== expVal &&
   13725             :                     aStrBuf.getLength() == expVal.getLength()
   13726           4 :             );
   13727             : 
   13728           2 :         }
   13729             : 
   13730           2 :         void append_090()
   13731             :         {
   13732           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13733           2 :             OString                expVal( aStrBuf.getStr() );
   13734           2 :             sal_Int64              input = -4;
   13735           2 :             sal_Int16              radix = 10;
   13736             : 
   13737           2 :             expVal += OString( "-" );
   13738           2 :             expVal += OString( "4" );
   13739           2 :             aStrBuf.append( input, radix );
   13740             : 
   13741           4 :             CPPUNIT_ASSERT_MESSAGE
   13742             :             (
   13743             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
   13744             :                 aStrBuf.getStr()== expVal &&
   13745             :                     aStrBuf.getLength() == expVal.getLength()
   13746           4 :             );
   13747             : 
   13748           2 :         }
   13749             : 
   13750           2 :         void append_091()
   13751             :         {
   13752           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13753           2 :             OString                expVal( aStrBuf.getStr() );
   13754           2 :             sal_Int64              input = -8;
   13755           2 :             sal_Int16              radix = 10;
   13756             : 
   13757           2 :             expVal += OString( "-" );
   13758           2 :             expVal += OString( "8" );
   13759           2 :             aStrBuf.append( input, radix );
   13760             : 
   13761           4 :             CPPUNIT_ASSERT_MESSAGE
   13762             :             (
   13763             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
   13764             :                 aStrBuf.getStr()== expVal &&
   13765             :                     aStrBuf.getLength() == expVal.getLength()
   13766           4 :             );
   13767             : 
   13768           2 :         }
   13769             : 
   13770           2 :         void append_092()
   13771             :         {
   13772           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13773           2 :             OString                expVal( aStrBuf.getStr() );
   13774           2 :             sal_Int64              input = -15;
   13775           2 :             sal_Int16              radix = 10;
   13776             : 
   13777           2 :             expVal += OString( "-" );
   13778           2 :             expVal += OString( "15" );
   13779           2 :             aStrBuf.append( input, radix );
   13780             : 
   13781           4 :             CPPUNIT_ASSERT_MESSAGE
   13782             :             (
   13783             :                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
   13784             :                 aStrBuf.getStr()== expVal &&
   13785             :                     aStrBuf.getLength() == expVal.getLength()
   13786           4 :             );
   13787             : 
   13788           2 :         }
   13789             : 
   13790           2 :         void append_093()
   13791             :         {
   13792           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13793           2 :             OString                expVal( aStrBuf.getStr() );
   13794           2 :             sal_Int64              input = -0;
   13795           2 :             sal_Int16              radix = 16;
   13796             : 
   13797           2 :             expVal += OString( "0" );
   13798           2 :             aStrBuf.append( input, radix );
   13799             : 
   13800           4 :             CPPUNIT_ASSERT_MESSAGE
   13801             :             (
   13802             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
   13803             :                 aStrBuf.getStr()== expVal &&
   13804             :                     aStrBuf.getLength() == expVal.getLength()
   13805           4 :             );
   13806             : 
   13807           2 :         }
   13808             : 
   13809           2 :         void append_094()
   13810             :         {
   13811           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13812           2 :             OString                expVal( aStrBuf.getStr() );
   13813           2 :             sal_Int64              input = -4;
   13814           2 :             sal_Int16              radix = 16;
   13815             : 
   13816           2 :             expVal += OString( "-" );
   13817           2 :             expVal += OString( "4" );
   13818           2 :             aStrBuf.append( input, radix );
   13819             : 
   13820           4 :             CPPUNIT_ASSERT_MESSAGE
   13821             :             (
   13822             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
   13823             :                 aStrBuf.getStr()== expVal &&
   13824             :                     aStrBuf.getLength() == expVal.getLength()
   13825           4 :             );
   13826             : 
   13827           2 :         }
   13828             : 
   13829           2 :         void append_095()
   13830             :         {
   13831           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13832           2 :             OString                expVal( aStrBuf.getStr() );
   13833           2 :             sal_Int64              input = -8;
   13834           2 :             sal_Int16              radix = 16;
   13835             : 
   13836           2 :             expVal += OString( "-" );
   13837           2 :             expVal += OString( "8" );
   13838           2 :             aStrBuf.append( input, radix );
   13839             : 
   13840           4 :             CPPUNIT_ASSERT_MESSAGE
   13841             :             (
   13842             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
   13843             :                 aStrBuf.getStr()== expVal &&
   13844             :                     aStrBuf.getLength() == expVal.getLength()
   13845           4 :             );
   13846             : 
   13847           2 :         }
   13848             : 
   13849           2 :         void append_096()
   13850             :         {
   13851           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13852           2 :             OString                expVal( aStrBuf.getStr() );
   13853           2 :             sal_Int64              input = -15;
   13854           2 :             sal_Int16              radix = 16;
   13855             : 
   13856           2 :             expVal += OString( "-" );
   13857           2 :             expVal += OString( "f" );
   13858           2 :             aStrBuf.append( input, radix );
   13859             : 
   13860           4 :             CPPUNIT_ASSERT_MESSAGE
   13861             :             (
   13862             :                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
   13863             :                 aStrBuf.getStr()== expVal &&
   13864             :                     aStrBuf.getLength() == expVal.getLength()
   13865           4 :             );
   13866             : 
   13867           2 :         }
   13868             : 
   13869           2 :         void append_097()
   13870             :         {
   13871           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13872           2 :             OString                expVal( aStrBuf.getStr() );
   13873           2 :             sal_Int64              input = -0;
   13874           2 :             sal_Int16              radix = 36;
   13875             : 
   13876           2 :             expVal += OString( "0" );
   13877           2 :             aStrBuf.append( input, radix );
   13878             : 
   13879           4 :             CPPUNIT_ASSERT_MESSAGE
   13880             :             (
   13881             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
   13882             :                 aStrBuf.getStr()== expVal &&
   13883             :                     aStrBuf.getLength() == expVal.getLength()
   13884           4 :             );
   13885             : 
   13886           2 :         }
   13887             : 
   13888           2 :         void append_098()
   13889             :         {
   13890           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13891           2 :             OString                expVal( aStrBuf.getStr() );
   13892           2 :             sal_Int64              input = -4;
   13893           2 :             sal_Int16              radix = 36;
   13894             : 
   13895           2 :             expVal += OString( "-" );
   13896           2 :             expVal += OString( "4" );
   13897           2 :             aStrBuf.append( input, radix );
   13898             : 
   13899           4 :             CPPUNIT_ASSERT_MESSAGE
   13900             :             (
   13901             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
   13902             :                 aStrBuf.getStr()== expVal &&
   13903             :                     aStrBuf.getLength() == expVal.getLength()
   13904           4 :             );
   13905             : 
   13906           2 :         }
   13907             : 
   13908           2 :         void append_099()
   13909             :         {
   13910           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13911           2 :             OString                expVal( aStrBuf.getStr() );
   13912           2 :             sal_Int64              input = -8;
   13913           2 :             sal_Int16              radix = 36;
   13914             : 
   13915           2 :             expVal += OString( "-" );
   13916           2 :             expVal += OString( "8" );
   13917           2 :             aStrBuf.append( input, radix );
   13918             : 
   13919           4 :             CPPUNIT_ASSERT_MESSAGE
   13920             :             (
   13921             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
   13922             :                 aStrBuf.getStr()== expVal &&
   13923             :                     aStrBuf.getLength() == expVal.getLength()
   13924           4 :             );
   13925             : 
   13926           2 :         }
   13927             : 
   13928           2 :         void append_100()
   13929             :         {
   13930           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   13931           2 :             OString                expVal( aStrBuf.getStr() );
   13932           2 :             sal_Int64              input = -35;
   13933           2 :             sal_Int16              radix = 36;
   13934             : 
   13935           2 :             expVal += OString( "-" );
   13936           2 :             expVal += OString( "z" );
   13937           2 :             aStrBuf.append( input, radix );
   13938             : 
   13939           4 :             CPPUNIT_ASSERT_MESSAGE
   13940             :             (
   13941             :                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
   13942             :                 aStrBuf.getStr()== expVal &&
   13943             :                     aStrBuf.getLength() == expVal.getLength()
   13944           4 :             );
   13945             : 
   13946           2 :         }
   13947             : 
   13948           4 :         CPPUNIT_TEST_SUITE( append_007_Int64_Negative );
   13949           2 :         CPPUNIT_TEST( append_001 ); CPPUNIT_TEST( append_002 );
   13950           2 :         CPPUNIT_TEST( append_003 ); CPPUNIT_TEST( append_004 );
   13951           2 :         CPPUNIT_TEST( append_005 ); CPPUNIT_TEST( append_006 );
   13952           2 :         CPPUNIT_TEST( append_007 ); CPPUNIT_TEST( append_008 );
   13953           2 :         CPPUNIT_TEST( append_009 ); CPPUNIT_TEST( append_010 );
   13954           2 :         CPPUNIT_TEST( append_011 ); CPPUNIT_TEST( append_012 );
   13955           2 :         CPPUNIT_TEST( append_013 ); CPPUNIT_TEST( append_014 );
   13956           2 :         CPPUNIT_TEST( append_015 ); CPPUNIT_TEST( append_016 );
   13957           2 :         CPPUNIT_TEST( append_017 ); CPPUNIT_TEST( append_018 );
   13958           2 :         CPPUNIT_TEST( append_019 ); CPPUNIT_TEST( append_020 );
   13959           2 :         CPPUNIT_TEST( append_021 ); CPPUNIT_TEST( append_022 );
   13960           2 :         CPPUNIT_TEST( append_023 ); CPPUNIT_TEST( append_024 );
   13961           2 :         CPPUNIT_TEST( append_025 ); CPPUNIT_TEST( append_026 );
   13962           2 :         CPPUNIT_TEST( append_027 ); CPPUNIT_TEST( append_028 );
   13963           2 :         CPPUNIT_TEST( append_029 ); CPPUNIT_TEST( append_030 );
   13964           2 :         CPPUNIT_TEST( append_031 ); CPPUNIT_TEST( append_032 );
   13965           2 :         CPPUNIT_TEST( append_033 ); CPPUNIT_TEST( append_034 );
   13966           2 :         CPPUNIT_TEST( append_035 ); CPPUNIT_TEST( append_036 );
   13967           2 :         CPPUNIT_TEST( append_037 ); CPPUNIT_TEST( append_038 );
   13968           2 :         CPPUNIT_TEST( append_039 ); CPPUNIT_TEST( append_040 );
   13969           2 :         CPPUNIT_TEST( append_041 ); CPPUNIT_TEST( append_042 );
   13970           2 :         CPPUNIT_TEST( append_043 ); CPPUNIT_TEST( append_044 );
   13971           2 :         CPPUNIT_TEST( append_045 ); CPPUNIT_TEST( append_046 );
   13972           2 :         CPPUNIT_TEST( append_047 ); CPPUNIT_TEST( append_048 );
   13973           2 :         CPPUNIT_TEST( append_049 ); CPPUNIT_TEST( append_050 );
   13974           2 :         CPPUNIT_TEST( append_051 ); CPPUNIT_TEST( append_052 );
   13975           2 :         CPPUNIT_TEST( append_053 ); CPPUNIT_TEST( append_054 );
   13976           2 :         CPPUNIT_TEST( append_055 ); CPPUNIT_TEST( append_056 );
   13977           2 :         CPPUNIT_TEST( append_057 ); CPPUNIT_TEST( append_058 );
   13978           2 :         CPPUNIT_TEST( append_059 ); CPPUNIT_TEST( append_060 );
   13979           2 :         CPPUNIT_TEST( append_061 ); CPPUNIT_TEST( append_062 );
   13980           2 :         CPPUNIT_TEST( append_063 ); CPPUNIT_TEST( append_064 );
   13981           2 :         CPPUNIT_TEST( append_065 ); CPPUNIT_TEST( append_066 );
   13982           2 :         CPPUNIT_TEST( append_067 ); CPPUNIT_TEST( append_068 );
   13983           2 :         CPPUNIT_TEST( append_069 ); CPPUNIT_TEST( append_070 );
   13984           2 :         CPPUNIT_TEST( append_071 ); CPPUNIT_TEST( append_072 );
   13985           2 :         CPPUNIT_TEST( append_073 ); CPPUNIT_TEST( append_074 );
   13986           2 :         CPPUNIT_TEST( append_075 ); CPPUNIT_TEST( append_076 );
   13987           2 :         CPPUNIT_TEST( append_077 ); CPPUNIT_TEST( append_078 );
   13988           2 :         CPPUNIT_TEST( append_079 ); CPPUNIT_TEST( append_080 );
   13989           2 :         CPPUNIT_TEST( append_081 ); CPPUNIT_TEST( append_082 );
   13990           2 :         CPPUNIT_TEST( append_083 ); CPPUNIT_TEST( append_084 );
   13991           2 :         CPPUNIT_TEST( append_085 ); CPPUNIT_TEST( append_086 );
   13992           2 :         CPPUNIT_TEST( append_087 ); CPPUNIT_TEST( append_088 );
   13993           2 :         CPPUNIT_TEST( append_089 ); CPPUNIT_TEST( append_090 );
   13994           2 :         CPPUNIT_TEST( append_091 ); CPPUNIT_TEST( append_092 );
   13995           2 :         CPPUNIT_TEST( append_093 ); CPPUNIT_TEST( append_094 );
   13996           2 :         CPPUNIT_TEST( append_095 ); CPPUNIT_TEST( append_096 );
   13997           2 :         CPPUNIT_TEST( append_097 ); CPPUNIT_TEST( append_098 );
   13998           2 :         CPPUNIT_TEST( append_099 ); CPPUNIT_TEST( append_100 );
   13999           4 :         CPPUNIT_TEST_SUITE_END();
   14000             :     };
   14001             : //------------------------------------------------------------------------
   14002             : // testing the method append( sal_Int64 i, sal_Int16 radix ) where radix = -5
   14003             : //------------------------------------------------------------------------
   14004          30 :     class  append_007_Int64_WrongRadix : public CppUnit::TestFixture
   14005             :     {
   14006             :         OString* arrOUS[5];
   14007             :         sal_Int64 intVal;
   14008             : 
   14009             :     public:
   14010          10 :         void setUp()
   14011             :         {
   14012          10 :             arrOUS[0] = new OString( kTestStr7 );
   14013          10 :             arrOUS[1] = new OString(  );
   14014          10 :             arrOUS[2] = new OString( kTestStr25 );
   14015          10 :             arrOUS[3] = new OString( "" );
   14016          10 :             arrOUS[4] = new OString( kTestStr28 );
   14017          10 :             intVal = 11;
   14018             : 
   14019          10 :         }
   14020             : 
   14021          10 :         void tearDown()
   14022             :         {
   14023          10 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
   14024          10 :             delete arrOUS[3]; delete arrOUS[4];
   14025          10 :         }
   14026             : 
   14027           2 :         void append_001()
   14028             :         {
   14029           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   14030           2 :             OString                expVal( kTestStr59 );
   14031             : 
   14032           2 :             aStrBuf.append( intVal, -5 );
   14033             : 
   14034             : 
   14035           4 :             CPPUNIT_ASSERT_MESSAGE
   14036             :             (
   14037             :                 "Appends the WrongRadix to the string buffer arrOUS[0]",
   14038             :                 (aStrBuf.toString() == expVal &&
   14039             :                  aStrBuf.getLength() == expVal.getLength())
   14040           4 :             );
   14041           2 :         }
   14042             : 
   14043           2 :         void append_002()
   14044             :         {
   14045           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   14046           2 :             OString                expVal( kTestStr60 );
   14047             : 
   14048           2 :             aStrBuf.append( intVal, -5 );
   14049             : 
   14050           4 :             CPPUNIT_ASSERT_MESSAGE
   14051             :             (
   14052             :                 "Appends the WrongRadix to the string buffer arrOUS[1]",
   14053             :                 (aStrBuf.toString() == expVal &&
   14054             :                  aStrBuf.getLength() == expVal.getLength())
   14055           4 :             );
   14056           2 :         }
   14057             : 
   14058           2 :         void append_003()
   14059             :         {
   14060           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   14061           2 :             OString                expVal( kTestStr60 );
   14062             : 
   14063           2 :             aStrBuf.append( intVal, -5 );
   14064             : 
   14065           4 :             CPPUNIT_ASSERT_MESSAGE
   14066             :             (
   14067             :                 "Appends the WrongRadix to the string buffer arrOUS[2]",
   14068             :                 (aStrBuf.toString() == expVal &&
   14069             :                  aStrBuf.getLength() == expVal.getLength())
   14070           4 :             );
   14071           2 :         }
   14072             : 
   14073           2 :         void append_004()
   14074             :         {
   14075           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   14076           2 :             OString                expVal( kTestStr60 );
   14077             : 
   14078           2 :             aStrBuf.append( intVal, -5 );
   14079             : 
   14080           4 :             CPPUNIT_ASSERT_MESSAGE
   14081             :             (
   14082             :                 "Appends the WrongRadix to the string buffer arrOUS[3]",
   14083             :                 (aStrBuf.toString() == expVal &&
   14084             :                  aStrBuf.getLength() == expVal.getLength())
   14085           4 :             );
   14086           2 :         }
   14087             : 
   14088           2 :         void append_005()
   14089             :         {
   14090           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   14091           2 :             OString                expVal( kTestStr61 );
   14092             : 
   14093           2 :             aStrBuf.append( intVal, -5 );
   14094             : 
   14095           4 :             CPPUNIT_ASSERT_MESSAGE
   14096             :             (
   14097             :                 "Appends the WrongRadix to the string buffer arrOUS[4]",
   14098             :                 (aStrBuf.toString() == expVal &&
   14099             :                  aStrBuf.getLength() == expVal.getLength())
   14100           4 :             );
   14101           2 :         }
   14102             : #ifdef WITH_CORE
   14103             :         void append_006()
   14104             :         {
   14105             :             ::rtl::OStringBuffer   aStrBuf( kSInt64Max );
   14106             :             OString                expVal( kTestStr60 );
   14107             : 
   14108             :             aStrBuf.append( intVal, -5 );
   14109             : 
   14110             :             CPPUNIT_ASSERT_MESSAGE
   14111             :             (
   14112             :                 "Appends the WrongRadix to the string buffer(with INT_MAX)",
   14113             :                 (aStrBuf.toString() == expVal &&
   14114             :                  aStrBuf.getLength() == expVal.getLength())
   14115             :             );
   14116             :         }
   14117             : #endif
   14118             : 
   14119           4 :         CPPUNIT_TEST_SUITE( append_007_Int64_WrongRadix );
   14120           2 :         CPPUNIT_TEST( append_001 );
   14121           2 :         CPPUNIT_TEST( append_002 );
   14122           2 :         CPPUNIT_TEST( append_003 );
   14123           2 :         CPPUNIT_TEST( append_004 );
   14124           2 :         CPPUNIT_TEST( append_005 );
   14125             : #ifdef WITH_CORE
   14126             :         CPPUNIT_TEST( append_006 );
   14127             : #endif
   14128           4 :         CPPUNIT_TEST_SUITE_END();
   14129             :     };
   14130             : //------------------------------------------------------------------------
   14131         150 :     class  append_007_Int64_defaultParam : public CppUnit::TestFixture
   14132             :     {
   14133             :         OString* arrOUS[5];
   14134             : 
   14135             :     public:
   14136          50 :         void setUp()
   14137             :         {
   14138          50 :             arrOUS[0] = new OString( kTestStr7 );
   14139          50 :             arrOUS[1] = new OString(  );
   14140          50 :             arrOUS[2] = new OString( kTestStr25 );
   14141          50 :             arrOUS[3] = new OString( "" );
   14142          50 :             arrOUS[4] = new OString( kTestStr28 );
   14143             : 
   14144          50 :         }
   14145             : 
   14146          50 :         void tearDown()
   14147             :         {
   14148          50 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
   14149          50 :             delete arrOUS[3]; delete arrOUS[4];
   14150          50 :         }
   14151             : 
   14152           2 :         void append_001()
   14153             :         {
   14154           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   14155           2 :             OString                expVal( kTestStr59 );
   14156           2 :             sal_Int64              input = 11;
   14157             : 
   14158           2 :             aStrBuf.append( input );
   14159             : 
   14160           4 :             CPPUNIT_ASSERT_MESSAGE
   14161             :             (
   14162             :                 "input Int64 11 and return OStringBuffer[0]+11",
   14163             :                 (aStrBuf.toString() == expVal &&
   14164             :                  aStrBuf.getLength() == expVal.getLength())
   14165           4 :             );
   14166             : 
   14167           2 :         }
   14168             : 
   14169           2 :         void append_002()
   14170             :         {
   14171           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   14172           2 :             OString                expVal( kTestStr62 );
   14173           2 :             sal_Int64              input = 0;
   14174             : 
   14175           2 :             aStrBuf.append( input );
   14176             : 
   14177           4 :             CPPUNIT_ASSERT_MESSAGE
   14178             :             (
   14179             :                 "input Int64 0 and return OStringBuffer[0]+0",
   14180             :                 (aStrBuf.toString() == expVal &&
   14181             :                  aStrBuf.getLength() == expVal.getLength())
   14182           4 :             );
   14183             : 
   14184           2 :         }
   14185             : 
   14186           2 :         void append_003()
   14187             :         {
   14188           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   14189           2 :             OString                expVal( kTestStr63 );
   14190           2 :             sal_Int64              input = -11;
   14191             : 
   14192           2 :             aStrBuf.append( input );
   14193             : 
   14194           4 :             CPPUNIT_ASSERT_MESSAGE
   14195             :             (
   14196             :                 "input Int64 -11 and return OStringBuffer[0]+(-11)",
   14197             :                 (aStrBuf.toString() == expVal &&
   14198             :                  aStrBuf.getLength() == expVal.getLength())
   14199           4 :             );
   14200             : 
   14201           2 :         }
   14202             : 
   14203           2 :         void append_004()
   14204             :         {
   14205           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   14206           2 :             OString                expVal( kTestStr116 );
   14207           2 :             sal_Int64              input = SAL_CONST_INT64(9223372036854775807);
   14208           2 :             aStrBuf.append( input );
   14209             : 
   14210           4 :             CPPUNIT_ASSERT_MESSAGE
   14211             :             (
   14212             :                 "input Int64 9223372036854775807 and return OStringBuffer[0]+9223372036854775807",
   14213             :                 (aStrBuf.toString() == expVal &&
   14214             :                  aStrBuf.getLength() == expVal.getLength())
   14215           4 :             );
   14216             : 
   14217           2 :         }
   14218             : 
   14219           2 :         void append_005()
   14220             :         {
   14221           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   14222           2 :             OString                expVal( kTestStr117 );
   14223           2 :             sal_Int64              input = SAL_MIN_INT64/*-9223372036854775808*/; // LLA: this is not the same :-( kNonSInt64Max;
   14224             : 
   14225           2 :             aStrBuf.append( input );
   14226             : 
   14227           2 :             sal_Bool bRes = expVal.equals( aStrBuf.getStr() );
   14228           4 :             CPPUNIT_ASSERT_MESSAGE
   14229             :             (
   14230             :                 "input Int64 -9223372036854775808 and return OStringBuffer[0]+(-9223372036854775808)",
   14231             :                 bRes && aStrBuf.getLength() == expVal.getLength()
   14232           4 :             );
   14233             : 
   14234           2 :         }
   14235             : 
   14236           2 :         void append_006()
   14237             :         {
   14238           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   14239           2 :             OString                expVal( kTestStr60 );
   14240           2 :             sal_Int64              input = 11;
   14241             : 
   14242           2 :             aStrBuf.append( input );
   14243             : 
   14244           4 :             CPPUNIT_ASSERT_MESSAGE
   14245             :             (
   14246             :                 "input Int64 11 and return OStringBuffer[1]+11",
   14247             :                 (aStrBuf.toString() == expVal &&
   14248             :                  aStrBuf.getLength() == expVal.getLength())
   14249           4 :             );
   14250             : 
   14251           2 :         }
   14252             : 
   14253           2 :         void append_007()
   14254             :         {
   14255           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   14256           2 :             OString                expVal( kTestStr66 );
   14257           2 :             sal_Int64              input = 0;
   14258             : 
   14259           2 :             aStrBuf.append( input );
   14260             : 
   14261           4 :             CPPUNIT_ASSERT_MESSAGE
   14262             :             (
   14263             :                 "input Int64 0 and return OStringBuffer[1]+0",
   14264             :                 (aStrBuf.toString() == expVal &&
   14265             :                  aStrBuf.getLength() == expVal.getLength())
   14266           4 :             );
   14267             : 
   14268           2 :         }
   14269             : 
   14270           2 :         void append_008()
   14271             :         {
   14272           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   14273           2 :             OString                expVal( kTestStr67 );
   14274           2 :             sal_Int64              input = -11;
   14275             : 
   14276           2 :             aStrBuf.append( input );
   14277             : 
   14278           4 :             CPPUNIT_ASSERT_MESSAGE
   14279             :             (
   14280             :                 "input Int64 -11 and return OStringBuffer[1]+(-11)",
   14281             :                 (aStrBuf.toString() == expVal &&
   14282             :                  aStrBuf.getLength() == expVal.getLength())
   14283           4 :             );
   14284             : 
   14285           2 :         }
   14286             : 
   14287           2 :         void append_009()
   14288             :         {
   14289           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   14290           2 :             OString                expVal( kTestStr118 );
   14291           2 :             sal_Int64              input = SAL_CONST_INT64(9223372036854775807);
   14292           2 :             aStrBuf.append( input );
   14293             : 
   14294           4 :             CPPUNIT_ASSERT_MESSAGE
   14295             :             (
   14296             :                 "input Int64 9223372036854775807 and return OStringBuffer[1]+9223372036854775807",
   14297             :                 (aStrBuf.toString() == expVal &&
   14298             :                  aStrBuf.getLength() == expVal.getLength())
   14299           4 :             );
   14300             : 
   14301           2 :         }
   14302             : 
   14303           2 :         void append_010()
   14304             :         {
   14305           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   14306           2 :             OString                expVal( kTestStr119 );
   14307           2 :             sal_Int64              input = SAL_MIN_INT64; // LLA: this is not the same :-( kNonSInt64Max;
   14308             : 
   14309           2 :             aStrBuf.append( input );
   14310             : 
   14311           4 :             CPPUNIT_ASSERT_MESSAGE
   14312             :             (
   14313             :                 "input Int64 -9223372036854775808 and return OStringBuffer[1]+(-9223372036854775808)",
   14314             :                 (aStrBuf.toString() == expVal &&
   14315             :                  aStrBuf.getLength() == expVal.getLength())
   14316           4 :             );
   14317             : 
   14318           2 :         }
   14319             : 
   14320           2 :         void append_011()
   14321             :         {
   14322           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   14323           2 :             OString                expVal( kTestStr60 );
   14324           2 :             sal_Int64              input = 11;
   14325             : 
   14326           2 :             aStrBuf.append( input );
   14327             : 
   14328           4 :             CPPUNIT_ASSERT_MESSAGE
   14329             :             (
   14330             :                 "input Int64 11 and return OStringBuffer[2]+11",
   14331             :                 (aStrBuf.toString() == expVal &&
   14332             :                  aStrBuf.getLength() == expVal.getLength())
   14333           4 :             );
   14334             : 
   14335           2 :         }
   14336             : 
   14337           2 :         void append_012()
   14338             :         {
   14339           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   14340           2 :             OString                expVal( kTestStr66 );
   14341           2 :             sal_Int64              input = 0;
   14342             : 
   14343           2 :             aStrBuf.append( input );
   14344             : 
   14345           4 :             CPPUNIT_ASSERT_MESSAGE
   14346             :             (
   14347             :                 "input Int64 0 and return OUStringBuffer[2]+0",
   14348             :                 (aStrBuf.toString() == expVal &&
   14349             :                  aStrBuf.getLength() == expVal.getLength())
   14350           4 :             );
   14351             : 
   14352           2 :         }
   14353             : 
   14354           2 :         void append_013()
   14355             :         {
   14356           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   14357           2 :             OString                expVal( kTestStr67 );
   14358           2 :             sal_Int64              input = -11;
   14359             : 
   14360           2 :             aStrBuf.append( input );
   14361             : 
   14362           4 :             CPPUNIT_ASSERT_MESSAGE
   14363             :             (
   14364             :                 "input Int64 -11 and return OUStringBuffer[2]+(-11)",
   14365             :                 (aStrBuf.toString() == expVal &&
   14366             :                  aStrBuf.getLength() == expVal.getLength())
   14367           4 :             );
   14368             : 
   14369           2 :         }
   14370             : 
   14371           2 :         void append_014()
   14372             :         {
   14373           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   14374           2 :             OString                expVal( kTestStr118 );
   14375           2 :             sal_Int64              input = SAL_CONST_INT64(9223372036854775807);
   14376           2 :             aStrBuf.append( input );
   14377             : 
   14378           4 :             CPPUNIT_ASSERT_MESSAGE
   14379             :             (
   14380             :                 "input Int64 9223372036854775807 and return OStringBuffer[2]+9223372036854775807",
   14381             :                 (aStrBuf.toString() == expVal &&
   14382             :                  aStrBuf.getLength() == expVal.getLength())
   14383           4 :             );
   14384             : 
   14385           2 :         }
   14386             : 
   14387           2 :         void append_015()
   14388             :         {
   14389           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   14390           2 :             OString                expVal( kTestStr119 );
   14391           2 :             sal_Int64              input = SAL_MIN_INT64; // LLA: this is not the same :-( kNonSInt64Max;
   14392             : 
   14393           2 :             aStrBuf.append( input );
   14394             : 
   14395           4 :             CPPUNIT_ASSERT_MESSAGE
   14396             :             (
   14397             :                 "input Int64 -9223372036854775808 and return OStringBuffer[2]+(-9223372036854775808)",
   14398             :                 (aStrBuf.toString() == expVal &&
   14399             :                  aStrBuf.getLength() == expVal.getLength())
   14400           4 :             );
   14401             : 
   14402           2 :         }
   14403             : 
   14404           2 :         void append_016()
   14405             :         {
   14406           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   14407           2 :             OString                expVal( kTestStr60 );
   14408           2 :             sal_Int64              input = 11;
   14409             : 
   14410           2 :             aStrBuf.append( input );
   14411             : 
   14412           4 :             CPPUNIT_ASSERT_MESSAGE
   14413             :             (
   14414             :                 "input Int64 11 and return OStringBuffer[3]+11",
   14415             :                 (aStrBuf.toString() == expVal &&
   14416             :                  aStrBuf.getLength() == expVal.getLength())
   14417           4 :             );
   14418             : 
   14419           2 :         }
   14420             : 
   14421           2 :         void append_017()
   14422             :         {
   14423           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   14424           2 :             OString                expVal( kTestStr66 );
   14425           2 :             sal_Int64              input = 0;
   14426             : 
   14427           2 :             aStrBuf.append( input );
   14428             : 
   14429           4 :             CPPUNIT_ASSERT_MESSAGE
   14430             :             (
   14431             :                 "input Int64 0 and return OStringBuffer[3]+0",
   14432             :                 (aStrBuf.toString() == expVal &&
   14433             :                  aStrBuf.getLength() == expVal.getLength())
   14434           4 :             );
   14435             : 
   14436           2 :         }
   14437             : 
   14438           2 :         void append_018()
   14439             :         {
   14440           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   14441           2 :             OString                expVal( kTestStr67 );
   14442           2 :             sal_Int64              input = -11;
   14443             : 
   14444           2 :             aStrBuf.append( input );
   14445             : 
   14446           4 :             CPPUNIT_ASSERT_MESSAGE
   14447             :             (
   14448             :                 "input Int64 -11 and return OStringBuffer[3]+(-11)",
   14449             :                 (aStrBuf.toString() == expVal &&
   14450             :                  aStrBuf.getLength() == expVal.getLength())
   14451           4 :             );
   14452             : 
   14453           2 :         }
   14454             : 
   14455           2 :         void append_019()
   14456             :         {
   14457           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   14458           2 :             OString                expVal( kTestStr118 );
   14459           2 :             sal_Int64              input = SAL_CONST_INT64(9223372036854775807);
   14460           2 :             aStrBuf.append( input );
   14461             : 
   14462           4 :             CPPUNIT_ASSERT_MESSAGE
   14463             :             (
   14464             :                 "input Int64 9223372036854775807 and return OStringBuffer[3]+9223372036854775807",
   14465             :                 (aStrBuf.toString() == expVal &&
   14466             :                  aStrBuf.getLength() == expVal.getLength())
   14467           4 :             );
   14468             : 
   14469           2 :         }
   14470             : 
   14471           2 :         void append_020()
   14472             :         {
   14473           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   14474           2 :             OString                expVal( kTestStr119 );
   14475           2 :             sal_Int64              input = SAL_MIN_INT64; // LLA: this is not the same :-( kNonSInt64Max;
   14476             : 
   14477           2 :             aStrBuf.append( input );
   14478             : 
   14479           4 :             CPPUNIT_ASSERT_MESSAGE
   14480             :             (
   14481             :                 "input Int64 -9223372036854775808 and return OStringBuffer[3]+(-9223372036854775808)",
   14482             :                 (aStrBuf.toString() == expVal &&
   14483             :                  aStrBuf.getLength() == expVal.getLength())
   14484           4 :             );
   14485             : 
   14486           2 :         }
   14487             : 
   14488           2 :         void append_021()
   14489             :         {
   14490           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   14491           2 :             OString                expVal( kTestStr61 );
   14492           2 :             sal_Int64              input = 11;
   14493             : 
   14494           2 :             aStrBuf.append( input );
   14495             : 
   14496           4 :             CPPUNIT_ASSERT_MESSAGE
   14497             :             (
   14498             :                 "input Int64 11 and return OStringBuffer[4]+11",
   14499             :                 (aStrBuf.toString() == expVal &&
   14500             :                  aStrBuf.getLength() == expVal.getLength())
   14501           4 :             );
   14502             : 
   14503           2 :         }
   14504             : 
   14505           2 :         void append_022()
   14506             :         {
   14507           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   14508           2 :             OString                expVal( kTestStr70 );
   14509           2 :             sal_Int64              input = 0;
   14510             : 
   14511           2 :             aStrBuf.append( input );
   14512             : 
   14513           4 :             CPPUNIT_ASSERT_MESSAGE
   14514             :             (
   14515             :                 "input Int64 0 and return OStringBuffer[4]+0",
   14516             :                 (aStrBuf.toString() == expVal &&
   14517             :                  aStrBuf.getLength() == expVal.getLength())
   14518           4 :             );
   14519             : 
   14520           2 :         }
   14521             : 
   14522           2 :         void append_023()
   14523             :         {
   14524           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   14525           2 :             OString                expVal( kTestStr71 );
   14526           2 :             sal_Int64              input = -11;
   14527             : 
   14528           2 :             aStrBuf.append( input );
   14529             : 
   14530           4 :             CPPUNIT_ASSERT_MESSAGE
   14531             :             (
   14532             :                 "input Int64 -11 and return OStringBuffer[4]+(-11)",
   14533             :                 (aStrBuf.toString() == expVal &&
   14534             :                  aStrBuf.getLength() == expVal.getLength())
   14535           4 :             );
   14536             : 
   14537           2 :         }
   14538             : 
   14539           2 :         void append_024()
   14540             :         {
   14541           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   14542           2 :             OString                expVal( kTestStr120 );
   14543           2 :             sal_Int64              input = SAL_CONST_INT64(9223372036854775807);
   14544           2 :             aStrBuf.append( input );
   14545             : 
   14546           4 :             CPPUNIT_ASSERT_MESSAGE
   14547             :             (
   14548             :                 "input Int64 9223372036854775807 and return OStringBuffer[4]+9223372036854775807",
   14549             :                 (aStrBuf.toString() == expVal &&
   14550             :                  aStrBuf.getLength() == expVal.getLength())
   14551           4 :             );
   14552             : 
   14553           2 :         }
   14554             : 
   14555           2 :         void append_025()
   14556             :         {
   14557           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   14558           2 :             OString                expVal( kTestStr121 );
   14559           2 :             sal_Int64              input = SAL_MIN_INT64; // LLA: this is not the same :-( kNonSInt64Max;
   14560             : 
   14561           2 :             aStrBuf.append( input );
   14562             : 
   14563           4 :             CPPUNIT_ASSERT_MESSAGE
   14564             :             (
   14565             :                 "input Int64 -9223372036854775808 and return OStringBuffer[4]+(-9223372036854775808)",
   14566             :                 (aStrBuf.toString() == expVal &&
   14567             :                  aStrBuf.getLength() == expVal.getLength())
   14568           4 :             );
   14569             : 
   14570           2 :         }
   14571             : #ifdef WITH_CORE
   14572             :         void append_026()
   14573             :         {
   14574             :             ::rtl::OStringBuffer   aStrBuf( kSInt64Max );
   14575             :             OString                expVal( kTestStr60 );
   14576             :             sal_Int64              input = 11;
   14577             : 
   14578             :             aStrBuf.append( input );
   14579             : 
   14580             :             CPPUNIT_ASSERT_MESSAGE
   14581             :             (
   14582             :                 "input Int64 11 and return OStringBuffer(kSInt64Max)+11",
   14583             :                 (aStrBuf.toString() == expVal &&
   14584             :                  aStrBuf.getLength() == expVal.getLength())
   14585             :             );
   14586             : 
   14587             :         }
   14588             : 
   14589             :         void append_027()
   14590             :         {
   14591             :             ::rtl::OStringBuffer   aStrBuf( kSInt64Max );
   14592             :             OString                expVal( kTestStr66 );
   14593             :             sal_Int64              input = 0;
   14594             : 
   14595             :             aStrBuf.append( input );
   14596             : 
   14597             :             CPPUNIT_ASSERT_MESSAGE
   14598             :             (
   14599             :                 "input Int64 0 and return OStringBuffer(kSInt64Max)+0",
   14600             :                 (aStrBuf.toString() == expVal &&
   14601             :                  aStrBuf.getLength() == expVal.getLength())
   14602             :             );
   14603             : 
   14604             :         }
   14605             : 
   14606             :         void append_028()
   14607             :         {
   14608             :             ::rtl::OStringBuffer   aStrBuf( kSInt64Max );
   14609             :             OString                expVal( kTestStr67 );
   14610             :             sal_Int64              input = -11;
   14611             : 
   14612             :             aStrBuf.append( input );
   14613             : 
   14614             :             CPPUNIT_ASSERT_MESSAGE
   14615             :             (
   14616             :                 "input Int64 -11 and return OStringBuffer(kSInt64Max)+(-11)",
   14617             :                 (aStrBuf.toString() == expVal &&
   14618             :                  aStrBuf.getLength() == expVal.getLength())
   14619             :             );
   14620             : 
   14621             :         }
   14622             : 
   14623             :         void append_029()
   14624             :         {
   14625             :             ::rtl::OStringBuffer   aStrBuf( kSInt64Max );
   14626             :             OString                expVal( kTestStr118 );
   14627             :             sal_Int64              input = 9223372036854775807;
   14628             : 
   14629             :             aStrBuf.append( input );
   14630             : 
   14631             :             CPPUNIT_ASSERT_MESSAGE
   14632             :             (
   14633             :                 "input Int64 9223372036854775807 and return OStringBuffer(kSInt64Max)+9223372036854775807",
   14634             :                 (aStrBuf.toString() == expVal &&
   14635             :                  aStrBuf.getLength() == expVal.getLength())
   14636             :             );
   14637             : 
   14638             :         }
   14639             : 
   14640             :         void append_030()
   14641             :         {
   14642             :             ::rtl::OStringBuffer   aStrBuf( kSInt64Max );
   14643             :             OString                expVal( kTestStr119 );
   14644             :             sal_Int64              input = SAL_MIN_INT64; // LLA: this is not the same :-( kNonSInt64Max;
   14645             : 
   14646             :             aStrBuf.append( input );
   14647             : 
   14648             :             CPPUNIT_ASSERT_MESSAGE
   14649             :             (
   14650             :                 "input Int64 -9223372036854775808 and return OStringBuffer(kSInt64Max)+(-9223372036854775808)",
   14651             :                 (aStrBuf.toString() == expVal &&
   14652             :                  aStrBuf.getLength() == expVal.getLength())
   14653             :             );
   14654             : 
   14655             :         }
   14656             : #endif
   14657             : 
   14658           4 :         CPPUNIT_TEST_SUITE( append_007_Int64_defaultParam );
   14659           2 :         CPPUNIT_TEST( append_001 );
   14660           2 :         CPPUNIT_TEST( append_002 );
   14661           2 :         CPPUNIT_TEST( append_003 );
   14662           2 :         CPPUNIT_TEST( append_004 );
   14663           2 :         CPPUNIT_TEST( append_005 );
   14664           2 :         CPPUNIT_TEST( append_006 );
   14665           2 :         CPPUNIT_TEST( append_007 );
   14666           2 :         CPPUNIT_TEST( append_008 );
   14667           2 :         CPPUNIT_TEST( append_009 );
   14668           2 :         CPPUNIT_TEST( append_010 );
   14669           2 :         CPPUNIT_TEST( append_011 );
   14670           2 :         CPPUNIT_TEST( append_012 );
   14671           2 :         CPPUNIT_TEST( append_013 );
   14672           2 :         CPPUNIT_TEST( append_014 );
   14673           2 :         CPPUNIT_TEST( append_015 );
   14674           2 :         CPPUNIT_TEST( append_016 );
   14675           2 :         CPPUNIT_TEST( append_017 );
   14676           2 :         CPPUNIT_TEST( append_018 );
   14677           2 :         CPPUNIT_TEST( append_019 );
   14678           2 :         CPPUNIT_TEST( append_020 );
   14679           2 :         CPPUNIT_TEST( append_021 );
   14680           2 :         CPPUNIT_TEST( append_022 );
   14681           2 :         CPPUNIT_TEST( append_023 );
   14682           2 :         CPPUNIT_TEST( append_024 );
   14683           2 :         CPPUNIT_TEST( append_025 );
   14684             : #ifdef WITH_CORE
   14685             :         CPPUNIT_TEST( append_026 );
   14686             :         CPPUNIT_TEST( append_027 );
   14687             :         CPPUNIT_TEST( append_028 );
   14688             :         CPPUNIT_TEST( append_029 );
   14689             :         CPPUNIT_TEST( append_030 );
   14690             : #endif
   14691           4 :         CPPUNIT_TEST_SUITE_END();
   14692             :     };
   14693             : //------------------------------------------------------------------------
   14694             : // testing the method append( float f )
   14695             : //------------------------------------------------------------------------
   14696         200 :     class checkfloat : public CppUnit::TestFixture
   14697             :     {
   14698             :     public:
   14699         100 :         bool checkIfStrBufContainAtPosTheFloat(rtl::OStringBuffer const& _sStrBuf, sal_Int32 _nLen, float _nFloat)
   14700             :             {
   14701         100 :                 OString sFloatValue;
   14702         100 :                 sFloatValue = rtl::OString::valueOf(_nFloat);
   14703             : 
   14704         100 :                 OString sBufferString(_sStrBuf.getStr());
   14705         100 :                 sal_Int32 nPos = sBufferString.indexOf(sFloatValue);
   14706         100 :                 if ( nPos >= 0 && nPos == _nLen)
   14707             :                 {
   14708         100 :                     return true;
   14709             :                 }
   14710           0 :                 return false;
   14711             :             }
   14712             :     };
   14713             : // -----------------------------------------------------------------------------
   14714         150 :     class  append_008_float : public checkfloat
   14715             :     {
   14716             :         OString* arrOUS[5];
   14717             : 
   14718             :     public:
   14719          50 :         void setUp()
   14720             :         {
   14721          50 :             arrOUS[0] = new OString( kTestStr7 );
   14722          50 :             arrOUS[1] = new OString(  );
   14723          50 :             arrOUS[2] = new OString( kTestStr25 );
   14724          50 :             arrOUS[3] = new OString( "" );
   14725          50 :             arrOUS[4] = new OString( kTestStr28 );
   14726             : 
   14727          50 :         }
   14728             : 
   14729          50 :         void tearDown()
   14730             :         {
   14731          50 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
   14732          50 :             delete arrOUS[3]; delete arrOUS[4];
   14733          50 :         }
   14734             : 
   14735           2 :         void append_001()
   14736             :         {
   14737           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   14738           2 :             float                  input = (float)atof("3.0");
   14739             : 
   14740             :             // LLA:
   14741             :             // the complex problem is here, that a float value is not really what we write.
   14742             :             // So a 3.0 could also be 3 or 3.0 or 3.0000001 or 2.9999999
   14743             :             // this has to be checked.
   14744           2 :             sal_Int32 nLen = aStrBuf.getLength();
   14745           2 :             aStrBuf.append( input );
   14746             : 
   14747           4 :             CPPUNIT_ASSERT_MESSAGE
   14748             :             (
   14749             :                 "arrOUS[0] append 3.0",
   14750             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14751           4 :             );
   14752             : 
   14753           2 :         }
   14754             : 
   14755           2 :         void append_002()
   14756             :         {
   14757           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   14758           2 :             float                  input = (float)atof("3.5");
   14759             : 
   14760           2 :             sal_Int32 nLen = aStrBuf.getLength();
   14761           2 :             aStrBuf.append( input );
   14762             : 
   14763           4 :             CPPUNIT_ASSERT_MESSAGE
   14764             :             (
   14765             :                 "arrOUS[0] append 3.5",
   14766             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14767           4 :             );
   14768             : 
   14769           2 :         }
   14770             : 
   14771           2 :         void append_003()
   14772             :         {
   14773           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   14774           2 :             float                  input = (float)atof("3.0625");
   14775             : 
   14776           2 :             sal_Int32 nLen = aStrBuf.getLength();
   14777           2 :             aStrBuf.append( input );
   14778             : 
   14779           4 :             CPPUNIT_ASSERT_MESSAGE
   14780             :             (
   14781             :                 "arrOUS[0] append 3.0625",
   14782             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14783           4 :             );
   14784             : 
   14785           2 :         }
   14786             : 
   14787           2 :         void append_004()
   14788             :         {
   14789           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   14790           2 :             float                  input = (float)atof("3.502525");
   14791             : 
   14792           2 :             sal_Int32 nLen = aStrBuf.getLength();
   14793           2 :             aStrBuf.append( input );
   14794             : 
   14795           4 :             CPPUNIT_ASSERT_MESSAGE
   14796             :             (
   14797             :                 "arrOUS[0] append 3.502525",
   14798             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14799           4 :             );
   14800             : 
   14801           2 :         }
   14802             : 
   14803           2 :         void append_005()
   14804             :         {
   14805           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   14806           2 :             float                  input = (float)atof("3.141592");
   14807             : 
   14808           2 :             sal_Int32 nLen = aStrBuf.getLength();
   14809           2 :             aStrBuf.append( input );
   14810             : 
   14811           4 :             CPPUNIT_ASSERT_MESSAGE
   14812             :             (
   14813             :                 "arrOUS[0] append 3.141592",
   14814             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14815           4 :             );
   14816             : 
   14817           2 :         }
   14818             : 
   14819           2 :         void append_006()
   14820             :         {
   14821           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   14822           2 :             float                  input = (float)atof("3.5025255");
   14823             : 
   14824           2 :             sal_Int32 nLen = aStrBuf.getLength();
   14825           2 :             aStrBuf.append( input );
   14826             : 
   14827           4 :             CPPUNIT_ASSERT_MESSAGE
   14828             :             (
   14829             :                 "arrOUS[0] append 3.5025255",
   14830             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14831           4 :             );
   14832             : 
   14833           2 :         }
   14834             : 
   14835           2 :         void append_007()
   14836             :         {
   14837           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   14838           2 :             float                  input = (float)atof("3.00390625");
   14839             : 
   14840           2 :             sal_Int32 nLen = aStrBuf.getLength();
   14841           2 :             aStrBuf.append( input );
   14842             : 
   14843           4 :             CPPUNIT_ASSERT_MESSAGE
   14844             :             (
   14845             :                 "arrOUS[0] append 3.0039062",
   14846             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14847           4 :             );
   14848             : 
   14849           2 :         }
   14850             : 
   14851           2 :         void append_008()
   14852             :         {
   14853           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   14854           2 :             float                  input = (float)atof("3.0");
   14855             : 
   14856           2 :             sal_Int32 nLen = aStrBuf.getLength();
   14857           2 :             aStrBuf.append( input );
   14858             : 
   14859           4 :             CPPUNIT_ASSERT_MESSAGE
   14860             :             (
   14861             :                 "arrOUS[1] append 3.0",
   14862             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14863           4 :             );
   14864             : 
   14865           2 :         }
   14866             : 
   14867           2 :         void append_009()
   14868             :         {
   14869           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   14870           2 :             float                  input = (float)atof("3.5");
   14871             : 
   14872           2 :             sal_Int32 nLen = aStrBuf.getLength();
   14873           2 :             aStrBuf.append( input );
   14874             : 
   14875           4 :             CPPUNIT_ASSERT_MESSAGE
   14876             :             (
   14877             :                 "arrOUS[1] append 3.5",
   14878             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14879           4 :             );
   14880             : 
   14881           2 :         }
   14882             : 
   14883           2 :         void append_010()
   14884             :         {
   14885           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   14886           2 :             float                  input = (float)atof("3.0625");
   14887             : 
   14888           2 :             sal_Int32 nLen = aStrBuf.getLength();
   14889           2 :             aStrBuf.append( input );
   14890             : 
   14891           4 :             CPPUNIT_ASSERT_MESSAGE
   14892             :             (
   14893             :                 "arrOUS[1] append 3.0625",
   14894             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14895           4 :             );
   14896             : 
   14897           2 :         }
   14898             : 
   14899           2 :         void append_011()
   14900             :         {
   14901           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   14902           2 :             float                  input = (float)atof("3.502525");
   14903             : 
   14904           2 :             sal_Int32 nLen = aStrBuf.getLength();
   14905           2 :             aStrBuf.append( input );
   14906             : 
   14907           4 :             CPPUNIT_ASSERT_MESSAGE
   14908             :             (
   14909             :                 "arrOUS[1] append 3.502525",
   14910             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14911           4 :             );
   14912             : 
   14913           2 :         }
   14914             : 
   14915           2 :         void append_012()
   14916             :         {
   14917           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   14918           2 :             float                  input = (float)atof("3.141592");
   14919             : 
   14920           2 :             sal_Int32 nLen = aStrBuf.getLength();
   14921           2 :             aStrBuf.append( input );
   14922             : 
   14923           4 :             CPPUNIT_ASSERT_MESSAGE
   14924             :             (
   14925             :                 "arrOUS[1] append 3.141592",
   14926             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14927           4 :             );
   14928             : 
   14929           2 :         }
   14930             : 
   14931           2 :         void append_013()
   14932             :         {
   14933           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   14934           2 :             float                  input = (float)atof("3.5025255");
   14935             : 
   14936           2 :             sal_Int32 nLen = aStrBuf.getLength();
   14937           2 :             aStrBuf.append( input );
   14938             : 
   14939           4 :             CPPUNIT_ASSERT_MESSAGE
   14940             :             (
   14941             :                 "arrOUS[1] append 3.5025255",
   14942             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14943           4 :             );
   14944             : 
   14945           2 :         }
   14946             : 
   14947           2 :         void append_014()
   14948             :         {
   14949           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   14950           2 :             float                  input = (float)atof("3.00390625");
   14951             : 
   14952           2 :             sal_Int32 nLen = aStrBuf.getLength();
   14953           2 :             aStrBuf.append( input );
   14954             : 
   14955           4 :             CPPUNIT_ASSERT_MESSAGE
   14956             :             (
   14957             :                 "arrOUS[1] append 3.0039062",
   14958             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14959           4 :             );
   14960             : 
   14961           2 :         }
   14962             : 
   14963           2 :         void append_015()
   14964             :         {
   14965           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   14966           2 :             float                  input = (float)atof("3.0");
   14967             : 
   14968           2 :             sal_Int32 nLen = aStrBuf.getLength();
   14969           2 :             aStrBuf.append( input );
   14970             : 
   14971           4 :             CPPUNIT_ASSERT_MESSAGE
   14972             :             (
   14973             :                 "arrOUS[2] append 3.0",
   14974             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14975           4 :             );
   14976             : 
   14977           2 :         }
   14978             : 
   14979           2 :         void append_016()
   14980             :         {
   14981           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   14982           2 :             float                  input = (float)atof("3.5");
   14983             : 
   14984           2 :             sal_Int32 nLen = aStrBuf.getLength();
   14985           2 :             aStrBuf.append( input );
   14986             : 
   14987           4 :             CPPUNIT_ASSERT_MESSAGE
   14988             :             (
   14989             :                 "arrOUS[2] append 3.5",
   14990             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   14991           4 :             );
   14992             : 
   14993           2 :         }
   14994             : 
   14995           2 :         void append_017()
   14996             :         {
   14997           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   14998           2 :             float                  input = (float)atof("3.0625");
   14999             : 
   15000           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15001           2 :             aStrBuf.append( input );
   15002             : 
   15003           4 :             CPPUNIT_ASSERT_MESSAGE
   15004             :             (
   15005             :                 "arrOUS[2] append 3.0625",
   15006             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15007           4 :             );
   15008             : 
   15009           2 :         }
   15010             : 
   15011           2 :         void append_018()
   15012             :         {
   15013           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   15014           2 :             float                  input = (float)atof("3.502525");
   15015             : 
   15016           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15017           2 :             aStrBuf.append( input );
   15018             : 
   15019           4 :             CPPUNIT_ASSERT_MESSAGE
   15020             :             (
   15021             :                 "arrOUS[2] append 3.502525",
   15022             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15023           4 :             );
   15024             : 
   15025           2 :         }
   15026             : 
   15027           2 :         void append_019()
   15028             :         {
   15029           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   15030           2 :             float                  input = (float)atof("3.141592");
   15031             : 
   15032           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15033           2 :             aStrBuf.append( input );
   15034             : 
   15035           4 :             CPPUNIT_ASSERT_MESSAGE
   15036             :             (
   15037             :                 "arrOUS[2] append 3.141592",
   15038             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15039           4 :             );
   15040             : 
   15041           2 :         }
   15042             : 
   15043           2 :         void append_020()
   15044             :         {
   15045           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   15046           2 :             float                  input = (float)atof("3.5025255");
   15047             : 
   15048           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15049           2 :             aStrBuf.append( input );
   15050             : 
   15051           4 :             CPPUNIT_ASSERT_MESSAGE
   15052             :             (
   15053             :                 "arrOUS[2] append 3.5025255",
   15054             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15055           4 :             );
   15056             : 
   15057           2 :         }
   15058             : 
   15059           2 :         void append_021()
   15060             :         {
   15061           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   15062           2 :             float                  input = (float)atof("3.00390625");
   15063             : 
   15064           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15065           2 :             aStrBuf.append( input );
   15066             : 
   15067           4 :             CPPUNIT_ASSERT_MESSAGE
   15068             :             (
   15069             :                 "arrOUS[2] append 3.0039062",
   15070             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15071           4 :             );
   15072             : 
   15073           2 :         }
   15074             : 
   15075           2 :         void append_022()
   15076             :         {
   15077           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   15078           2 :             float                  input = (float)atof("3.0");
   15079             : 
   15080           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15081           2 :             aStrBuf.append( input );
   15082             : 
   15083           4 :             CPPUNIT_ASSERT_MESSAGE
   15084             :             (
   15085             :                 "arrOUS[3] append 3.0",
   15086             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15087           4 :             );
   15088             : 
   15089           2 :         }
   15090             : 
   15091           2 :         void append_023()
   15092             :         {
   15093           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   15094           2 :             float                  input = (float)atof("3.5");
   15095             : 
   15096           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15097           2 :             aStrBuf.append( input );
   15098             : 
   15099           4 :             CPPUNIT_ASSERT_MESSAGE
   15100             :             (
   15101             :                 "arrOUS[3] append 3.5",
   15102             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15103           4 :             );
   15104             : 
   15105           2 :         }
   15106             : 
   15107           2 :         void append_024()
   15108             :         {
   15109           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   15110           2 :             float                  input = (float)atof("3.0625");
   15111             : 
   15112           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15113           2 :             aStrBuf.append( input );
   15114             : 
   15115           4 :             CPPUNIT_ASSERT_MESSAGE
   15116             :             (
   15117             :                 "arrOUS[3] append 3.0625",
   15118             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15119           4 :             );
   15120             : 
   15121           2 :         }
   15122             : 
   15123           2 :         void append_025()
   15124             :         {
   15125           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   15126           2 :             float                  input = (float)atof("3.502525");
   15127             : 
   15128           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15129           2 :             aStrBuf.append( input );
   15130             : 
   15131           4 :             CPPUNIT_ASSERT_MESSAGE
   15132             :             (
   15133             :                 "arrOUS[3] append 3.502525",
   15134             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15135           4 :             );
   15136             : 
   15137           2 :         }
   15138             : 
   15139             :         void append_026()
   15140             :         {
   15141             :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   15142             :             float                  input = (float)atof("3.141592");
   15143             : 
   15144             :             sal_Int32 nLen = aStrBuf.getLength();
   15145             :             aStrBuf.append( input );
   15146             : 
   15147             :             CPPUNIT_ASSERT_MESSAGE
   15148             :             (
   15149             :                 "arrOUS[3] append 3.141592",
   15150             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15151             :             );
   15152             : 
   15153             :         }
   15154             : 
   15155             :         void append_027()
   15156             :         {
   15157             :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   15158             :             float                  input = (float)atof("3.5025255");
   15159             : 
   15160             :             sal_Int32 nLen = aStrBuf.getLength();
   15161             :             aStrBuf.append( input );
   15162             : 
   15163             :             CPPUNIT_ASSERT_MESSAGE
   15164             :             (
   15165             :                 "arrOUS[3] append 3.5025255",
   15166             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15167             :             );
   15168             : 
   15169             :         }
   15170             : 
   15171             :         void append_028()
   15172             :         {
   15173             :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   15174             :             float                  input = (float)atof("3.00390625");
   15175             : 
   15176             :             sal_Int32 nLen = aStrBuf.getLength();
   15177             :             aStrBuf.append( input );
   15178             : 
   15179             :             CPPUNIT_ASSERT_MESSAGE
   15180             :             (
   15181             :                 "arrOUS[3] append 3.0039062",
   15182             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15183             :             );
   15184             : 
   15185             :         }
   15186             : 
   15187             :         void append_029()
   15188             :         {
   15189             :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   15190             :             float                  input = (float)atof("3.0");
   15191             : 
   15192             :             sal_Int32 nLen = aStrBuf.getLength();
   15193             :             aStrBuf.append( input );
   15194             : 
   15195             :             CPPUNIT_ASSERT_MESSAGE
   15196             :             (
   15197             :                 "arrOUS[4] append 3.0",
   15198             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15199             :             );
   15200             : 
   15201             :         }
   15202             : 
   15203             :         void append_030()
   15204             :         {
   15205             :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   15206             :             float                  input = (float)atof("3.5");
   15207             : 
   15208             :             sal_Int32 nLen = aStrBuf.getLength();
   15209             :             aStrBuf.append( input );
   15210             : 
   15211             :             CPPUNIT_ASSERT_MESSAGE
   15212             :             (
   15213             :                 "arrOUS[4] append 3.5",
   15214             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15215             :             );
   15216             : 
   15217             :         }
   15218             : 
   15219             :         void append_031()
   15220             :         {
   15221             :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   15222             :             float                  input = (float)atof("3.0625");
   15223             : 
   15224             :             sal_Int32 nLen = aStrBuf.getLength();
   15225             :             aStrBuf.append( input );
   15226             : 
   15227             :             CPPUNIT_ASSERT_MESSAGE
   15228             :             (
   15229             :                 "arrOUS[4] append 3.0625",
   15230             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15231             :             );
   15232             : 
   15233             :         }
   15234             : 
   15235             :         void append_032()
   15236             :         {
   15237             :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   15238             :             float                  input = (float)atof("3.502525");
   15239             : 
   15240             :             sal_Int32 nLen = aStrBuf.getLength();
   15241             :             aStrBuf.append( input );
   15242             : 
   15243             :             CPPUNIT_ASSERT_MESSAGE
   15244             :             (
   15245             :                 "arrOUS[4] append 3.502525",
   15246             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15247             :             );
   15248             : 
   15249             :         }
   15250             : 
   15251             :         void append_033()
   15252             :         {
   15253             :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   15254             :             float                  input = (float)atof("3.141592");
   15255             : 
   15256             :             sal_Int32 nLen = aStrBuf.getLength();
   15257             :             aStrBuf.append( input );
   15258             : 
   15259             :             CPPUNIT_ASSERT_MESSAGE
   15260             :             (
   15261             :                 "arrOUS[4] append 3.141592",
   15262             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15263             :             );
   15264             : 
   15265             :         }
   15266             : 
   15267             :         void append_034()
   15268             :         {
   15269             :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   15270             :             float                  input = (float)atof("3.5025255");
   15271             : 
   15272             :             sal_Int32 nLen = aStrBuf.getLength();
   15273             :             aStrBuf.append( input );
   15274             : 
   15275             :             CPPUNIT_ASSERT_MESSAGE
   15276             :             (
   15277             :                 "arrOUS[4] append 3.5025255",
   15278             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15279             :             );
   15280             : 
   15281             :         }
   15282             : 
   15283             :         void append_035()
   15284             :         {
   15285             :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   15286             :             float                  input = (float)atof("3.00390625");
   15287             : 
   15288             :             sal_Int32 nLen = aStrBuf.getLength();
   15289             :             aStrBuf.append( input );
   15290             : 
   15291             :             CPPUNIT_ASSERT_MESSAGE
   15292             :             (
   15293             :                 "arrOUS[4] append 3.0039062",
   15294             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15295             :             );
   15296             : 
   15297             :         }
   15298             : #ifdef WITH_CORE
   15299             :         void append_036()
   15300             :         {
   15301             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
   15302             :             float                  input = (float)atof("3.0");
   15303             : 
   15304             :             sal_Int32 nLen = aStrBuf.getLength();
   15305             :             aStrBuf.append( input );
   15306             : 
   15307             :             CPPUNIT_ASSERT_MESSAGE
   15308             :             (
   15309             :                 "OStringBuffer( kSInt32Max ) append 3.0",
   15310             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15311             :             );
   15312             : 
   15313             :         }
   15314             : 
   15315             :         void append_037()
   15316             :         {
   15317             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
   15318             :             float                  input = (float)atof("3.5");
   15319             : 
   15320             :             sal_Int32 nLen = aStrBuf.getLength();
   15321             :             aStrBuf.append( input );
   15322             : 
   15323             :             CPPUNIT_ASSERT_MESSAGE
   15324             :             (
   15325             :                 "OStringBuffer( kSInt32Max ) append 3.5",
   15326             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15327             :             );
   15328             : 
   15329             :         }
   15330             : 
   15331             :         void append_038()
   15332             :         {
   15333             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
   15334             :             float                  input = (float)atof("3.0625");
   15335             : 
   15336             :             sal_Int32 nLen = aStrBuf.getLength();
   15337             :             aStrBuf.append( input );
   15338             : 
   15339             :             CPPUNIT_ASSERT_MESSAGE
   15340             :             (
   15341             :                 "OStringBuffer( kSInt32Max ) append 3.0625",
   15342             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15343             :             );
   15344             : 
   15345             :         }
   15346             : 
   15347             :         void append_039()
   15348             :         {
   15349             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
   15350             :             float                  input = (float)atof("3.502525");
   15351             : 
   15352             :             sal_Int32 nLen = aStrBuf.getLength();
   15353             :             aStrBuf.append( input );
   15354             : 
   15355             :             CPPUNIT_ASSERT_MESSAGE
   15356             :             (
   15357             :                 "OStringBuffer( kSInt32Max ) append 3.502525",
   15358             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15359             :             );
   15360             : 
   15361             :         }
   15362             : 
   15363             :         void append_040()
   15364             :         {
   15365             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
   15366             :             float                  input = (float)atof("3.141592");
   15367             : 
   15368             :             sal_Int32 nLen = aStrBuf.getLength();
   15369             :             aStrBuf.append( input );
   15370             : 
   15371             :             CPPUNIT_ASSERT_MESSAGE
   15372             :             (
   15373             :                 "OStringBuffer( kSInt32Max ) append 3.141592",
   15374             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15375             :             );
   15376             : 
   15377             :         }
   15378             : 
   15379             :         void append_041()
   15380             :         {
   15381             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
   15382             :             float                  input = (float)atof("3.5025255");
   15383             : 
   15384             :             sal_Int32 nLen = aStrBuf.getLength();
   15385             :             aStrBuf.append( input );
   15386             : 
   15387             :             CPPUNIT_ASSERT_MESSAGE
   15388             :             (
   15389             :                 "OStringBuffer( kSInt32Max ) append 3.5025255",
   15390             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15391             :             );
   15392             : 
   15393             :         }
   15394             : 
   15395             :         void append_042()
   15396             :         {
   15397             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
   15398             :             float                  input = (float)atof("3.00390625");
   15399             : 
   15400             :             sal_Int32 nLen = aStrBuf.getLength();
   15401             :             aStrBuf.append( input );
   15402             : 
   15403             :             CPPUNIT_ASSERT_MESSAGE
   15404             :             (
   15405             :                 "OStringBuffer( kSInt32Max ) append 3.0039062",
   15406             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15407             :             );
   15408             : 
   15409             :         }
   15410             : #endif
   15411             : 
   15412           4 :         CPPUNIT_TEST_SUITE( append_008_float );
   15413           2 :         CPPUNIT_TEST( append_001 );
   15414           2 :         CPPUNIT_TEST( append_002 );
   15415           2 :         CPPUNIT_TEST( append_003 );
   15416           2 :         CPPUNIT_TEST( append_004 );
   15417           2 :         CPPUNIT_TEST( append_005 );
   15418           2 :         CPPUNIT_TEST( append_006 );
   15419           2 :         CPPUNIT_TEST( append_007 );
   15420           2 :         CPPUNIT_TEST( append_008 );
   15421           2 :         CPPUNIT_TEST( append_009 );
   15422           2 :         CPPUNIT_TEST( append_010 );
   15423           2 :         CPPUNIT_TEST( append_011 );
   15424           2 :         CPPUNIT_TEST( append_012 );
   15425           2 :         CPPUNIT_TEST( append_013 );
   15426           2 :         CPPUNIT_TEST( append_014 );
   15427           2 :         CPPUNIT_TEST( append_015 );
   15428           2 :         CPPUNIT_TEST( append_016 );
   15429           2 :         CPPUNIT_TEST( append_017 );
   15430           2 :         CPPUNIT_TEST( append_018 );
   15431           2 :         CPPUNIT_TEST( append_019 );
   15432           2 :         CPPUNIT_TEST( append_020 );
   15433           2 :         CPPUNIT_TEST( append_021 );
   15434           2 :         CPPUNIT_TEST( append_022 );
   15435           2 :         CPPUNIT_TEST( append_023 );
   15436           2 :         CPPUNIT_TEST( append_024 );
   15437           2 :         CPPUNIT_TEST( append_025 );
   15438             : #ifdef WITH_CORE
   15439             :         CPPUNIT_TEST( append_026 );
   15440             :         CPPUNIT_TEST( append_027 );
   15441             :         CPPUNIT_TEST( append_028 );
   15442             :         CPPUNIT_TEST( append_029 );
   15443             :         CPPUNIT_TEST( append_030 );
   15444             : #endif
   15445           4 :         CPPUNIT_TEST_SUITE_END();
   15446             :     };
   15447             : //------------------------------------------------------------------------
   15448             : // testing the method append( float f ) for negative value
   15449             : //------------------------------------------------------------------------
   15450         150 :     class  append_008_Float_Negative : public checkfloat
   15451             :     {
   15452             :         OString* arrOUS[5];
   15453             : 
   15454             :     public:
   15455          50 :         void setUp()
   15456             :         {
   15457          50 :             arrOUS[0] = new OString( kTestStr7 );
   15458          50 :             arrOUS[1] = new OString(  );
   15459          50 :             arrOUS[2] = new OString( kTestStr25 );
   15460          50 :             arrOUS[3] = new OString( "" );
   15461          50 :             arrOUS[4] = new OString( kTestStr28 );
   15462             : 
   15463          50 :         }
   15464             : 
   15465          50 :         void tearDown()
   15466             :         {
   15467          50 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
   15468          50 :             delete arrOUS[3]; delete arrOUS[4];
   15469          50 :         }
   15470             : 
   15471           2 :         void append_001()
   15472             :         {
   15473           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   15474           2 :             float                  input = (float)atof("-3.0");
   15475             : 
   15476           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15477           2 :             aStrBuf.append( input );
   15478             : 
   15479           4 :             CPPUNIT_ASSERT_MESSAGE
   15480             :             (
   15481             :                 "arrOUS[0] append -3.0",
   15482             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15483           4 :             );
   15484             : 
   15485           2 :         }
   15486             : 
   15487           2 :         void append_002()
   15488             :         {
   15489           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   15490           2 :             float                  input = (float)atof("-3.5");
   15491             : 
   15492           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15493           2 :             aStrBuf.append( input );
   15494             : 
   15495           4 :             CPPUNIT_ASSERT_MESSAGE
   15496             :             (
   15497             :                 "arrOUS[0] append -3.5",
   15498             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15499           4 :             );
   15500             : 
   15501           2 :         }
   15502             : 
   15503           2 :         void append_003()
   15504             :         {
   15505           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   15506           2 :             float                  input = (float)atof("-3.0625");
   15507             : 
   15508           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15509           2 :             aStrBuf.append( input );
   15510             : 
   15511           4 :             CPPUNIT_ASSERT_MESSAGE
   15512             :             (
   15513             :                 "arrOUS[0] append -3.0625",
   15514             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15515           4 :             );
   15516             : 
   15517           2 :         }
   15518             : 
   15519           2 :         void append_004()
   15520             :         {
   15521           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   15522           2 :             float                  input = (float)atof("-3.502525");
   15523             : 
   15524           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15525           2 :             aStrBuf.append( input );
   15526             : 
   15527           4 :             CPPUNIT_ASSERT_MESSAGE
   15528             :             (
   15529             :                 "arrOUS[0] append -3.502525",
   15530             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15531           4 :             );
   15532             : 
   15533           2 :         }
   15534             : 
   15535           2 :         void append_005()
   15536             :         {
   15537           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   15538           2 :             float                  input = (float)atof("-3.141592");
   15539             : 
   15540           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15541           2 :             aStrBuf.append( input );
   15542             : 
   15543           4 :             CPPUNIT_ASSERT_MESSAGE
   15544             :             (
   15545             :                 "arrOUS[0] append -3.141592",
   15546             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15547           4 :             );
   15548             : 
   15549           2 :         }
   15550             : 
   15551           2 :         void append_006()
   15552             :         {
   15553           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   15554           2 :             float                  input = (float)atof("-3.5025255");
   15555             : 
   15556           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15557           2 :             aStrBuf.append( input );
   15558             : 
   15559           4 :             CPPUNIT_ASSERT_MESSAGE
   15560             :             (
   15561             :                 "arrOUS[0] append -3.5025255",
   15562             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15563           4 :             );
   15564             : 
   15565           2 :         }
   15566             : 
   15567           2 :         void append_007()
   15568             :         {
   15569           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   15570           2 :             float                  input = (float)atof("-3.00390625");
   15571             : 
   15572           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15573           2 :             aStrBuf.append( input );
   15574             : 
   15575           4 :             CPPUNIT_ASSERT_MESSAGE
   15576             :             (
   15577             :                 "arrOUS[0] append -3.0039062",
   15578             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15579           4 :             );
   15580             : 
   15581           2 :         }
   15582             : 
   15583           2 :         void append_008()
   15584             :         {
   15585           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   15586           2 :             float                  input = (float)atof("-3.0");
   15587             : 
   15588           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15589           2 :             aStrBuf.append( input );
   15590             : 
   15591           4 :             CPPUNIT_ASSERT_MESSAGE
   15592             :             (
   15593             :                 "arrOUS[1] append -3.0",
   15594             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15595           4 :             );
   15596             : 
   15597           2 :         }
   15598             : 
   15599           2 :         void append_009()
   15600             :         {
   15601           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   15602           2 :             float                  input = (float)atof("-3.5");
   15603             : 
   15604           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15605           2 :             aStrBuf.append( input );
   15606             : 
   15607           4 :             CPPUNIT_ASSERT_MESSAGE
   15608             :             (
   15609             :                 "arrOUS[1] append -3.5",
   15610             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15611           4 :             );
   15612             : 
   15613           2 :         }
   15614             : 
   15615           2 :         void append_010()
   15616             :         {
   15617           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   15618           2 :             float                  input = (float)atof("-3.0625");
   15619             : 
   15620           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15621           2 :             aStrBuf.append( input );
   15622             : 
   15623           4 :             CPPUNIT_ASSERT_MESSAGE
   15624             :             (
   15625             :                 "arrOUS[1] append -3.0625",
   15626             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15627           4 :             );
   15628             : 
   15629           2 :         }
   15630             : 
   15631           2 :         void append_011()
   15632             :         {
   15633           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   15634           2 :             float                  input = (float)atof("-3.502525");
   15635             : 
   15636           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15637           2 :             aStrBuf.append( input );
   15638             : 
   15639           4 :             CPPUNIT_ASSERT_MESSAGE
   15640             :             (
   15641             :                 "arrOUS[1] append -3.502525",
   15642             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15643           4 :             );
   15644             : 
   15645           2 :         }
   15646             : 
   15647           2 :         void append_012()
   15648             :         {
   15649           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   15650           2 :             float                  input = (float)atof("-3.141592");
   15651             : 
   15652           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15653           2 :             aStrBuf.append( input );
   15654             : 
   15655           4 :             CPPUNIT_ASSERT_MESSAGE
   15656             :             (
   15657             :                 "arrOUS[1] append -3.141592",
   15658             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15659           4 :             );
   15660             : 
   15661           2 :         }
   15662             : 
   15663           2 :         void append_013()
   15664             :         {
   15665           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   15666           2 :             float                  input = (float)atof("-3.5025255");
   15667             : 
   15668           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15669           2 :             aStrBuf.append( input );
   15670             : 
   15671           4 :             CPPUNIT_ASSERT_MESSAGE
   15672             :             (
   15673             :                 "arrOUS[1] append -3.5025255",
   15674             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15675           4 :             );
   15676             : 
   15677           2 :         }
   15678             : 
   15679           2 :         void append_014()
   15680             :         {
   15681           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
   15682           2 :             float                  input = (float)atof("-3.00390625");
   15683             : 
   15684           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15685           2 :             aStrBuf.append( input );
   15686             : 
   15687           4 :             CPPUNIT_ASSERT_MESSAGE
   15688             :             (
   15689             :                 "arrOUS[1] append -3.0039062",
   15690             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15691           4 :             );
   15692             : 
   15693           2 :         }
   15694             : 
   15695           2 :         void append_015()
   15696             :         {
   15697           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   15698           2 :             float                  input = (float)atof("-3.0");
   15699             : 
   15700           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15701           2 :             aStrBuf.append( input );
   15702             : 
   15703           4 :             CPPUNIT_ASSERT_MESSAGE
   15704             :             (
   15705             :                 "arrOUS[2] append -3.0",
   15706             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15707           4 :             );
   15708             : 
   15709           2 :         }
   15710             : 
   15711           2 :         void append_016()
   15712             :         {
   15713           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   15714           2 :             float                  input = (float)atof("-3.5");
   15715             : 
   15716           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15717           2 :             aStrBuf.append( input );
   15718             : 
   15719           4 :             CPPUNIT_ASSERT_MESSAGE
   15720             :             (
   15721             :                 "arrOUS[2] append -3.5",
   15722             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15723           4 :             );
   15724             : 
   15725           2 :         }
   15726             : 
   15727           2 :         void append_017()
   15728             :         {
   15729           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   15730           2 :             float                  input = (float)atof("-3.0625");
   15731             : 
   15732           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15733           2 :             aStrBuf.append( input );
   15734             : 
   15735           4 :             CPPUNIT_ASSERT_MESSAGE
   15736             :             (
   15737             :                 "arrOUS[2] append -3.0625",
   15738             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15739           4 :             );
   15740             : 
   15741           2 :         }
   15742             : 
   15743           2 :         void append_018()
   15744             :         {
   15745           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   15746           2 :             float                  input = (float)atof("-3.502525");
   15747             : 
   15748           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15749           2 :             aStrBuf.append( input );
   15750             : 
   15751           4 :             CPPUNIT_ASSERT_MESSAGE
   15752             :             (
   15753             :                 "arrOUS[2] append -3.502525",
   15754             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15755           4 :             );
   15756             : 
   15757           2 :         }
   15758             : 
   15759           2 :         void append_019()
   15760             :         {
   15761           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   15762           2 :             float                  input = (float)atof("-3.141592");
   15763             : 
   15764           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15765           2 :             aStrBuf.append( input );
   15766             : 
   15767           4 :             CPPUNIT_ASSERT_MESSAGE
   15768             :             (
   15769             :                 "arrOUS[2] append -3.141592",
   15770             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15771           4 :             );
   15772             : 
   15773           2 :         }
   15774             : 
   15775           2 :         void append_020()
   15776             :         {
   15777           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   15778           2 :             float                  input = (float)atof("-3.5025255");
   15779             : 
   15780           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15781           2 :             aStrBuf.append( input );
   15782             : 
   15783           4 :             CPPUNIT_ASSERT_MESSAGE
   15784             :             (
   15785             :                 "arrOUS[2] append -3.5025255",
   15786             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15787           4 :             );
   15788             : 
   15789           2 :         }
   15790             : 
   15791           2 :         void append_021()
   15792             :         {
   15793           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
   15794           2 :             float                  input = (float)atof("-3.00390625");
   15795             : 
   15796           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15797           2 :             aStrBuf.append( input );
   15798             : 
   15799           4 :             CPPUNIT_ASSERT_MESSAGE
   15800             :             (
   15801             :                 "arrOUS[2] append -3.0039062",
   15802             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15803           4 :             );
   15804             : 
   15805           2 :         }
   15806             : 
   15807           2 :         void append_022()
   15808             :         {
   15809           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   15810           2 :             float                  input = (float)atof("-3.0");
   15811             : 
   15812           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15813           2 :             aStrBuf.append( input );
   15814             : 
   15815           4 :             CPPUNIT_ASSERT_MESSAGE
   15816             :             (
   15817             :                 "arrOUS[3] append -3.0",
   15818             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15819           4 :             );
   15820             : 
   15821           2 :         }
   15822             : 
   15823           2 :         void append_023()
   15824             :         {
   15825           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   15826           2 :             float                  input = (float)atof("-3.5");
   15827             : 
   15828           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15829           2 :             aStrBuf.append( input );
   15830             : 
   15831           4 :             CPPUNIT_ASSERT_MESSAGE
   15832             :             (
   15833             :                 "arrOUS[3] append -3.5",
   15834             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15835           4 :             );
   15836             : 
   15837           2 :         }
   15838             : 
   15839           2 :         void append_024()
   15840             :         {
   15841           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   15842           2 :             float                  input = (float)atof("-3.0625");
   15843             : 
   15844           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15845           2 :             aStrBuf.append( input );
   15846             : 
   15847           4 :             CPPUNIT_ASSERT_MESSAGE
   15848             :             (
   15849             :                 "arrOUS[3] append -3.0625",
   15850             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15851           4 :             );
   15852             : 
   15853           2 :         }
   15854             : 
   15855           2 :         void append_025()
   15856             :         {
   15857           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   15858           2 :             float                  input = (float)atof("-3.502525");
   15859             : 
   15860           2 :             sal_Int32 nLen = aStrBuf.getLength();
   15861           2 :             aStrBuf.append( input );
   15862             : 
   15863           4 :             CPPUNIT_ASSERT_MESSAGE
   15864             :             (
   15865             :                 "arrOUS[3] append -3.502525",
   15866             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15867           4 :             );
   15868             : 
   15869           2 :         }
   15870             : 
   15871             :         void append_026()
   15872             :         {
   15873             :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   15874             :             float                  input = (float)atof("-3.141592");
   15875             : 
   15876             :             sal_Int32 nLen = aStrBuf.getLength();
   15877             :             aStrBuf.append( input );
   15878             : 
   15879             :             CPPUNIT_ASSERT_MESSAGE
   15880             :             (
   15881             :                 "arrOUS[3] append -3.141592",
   15882             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15883             :             );
   15884             : 
   15885             :         }
   15886             : 
   15887             :         void append_027()
   15888             :         {
   15889             :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   15890             :             float                  input = (float)atof("-3.5025255");
   15891             : 
   15892             :             sal_Int32 nLen = aStrBuf.getLength();
   15893             :             aStrBuf.append( input );
   15894             : 
   15895             :             CPPUNIT_ASSERT_MESSAGE
   15896             :             (
   15897             :                 "arrOUS[3] append -3.5025255",
   15898             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15899             :             );
   15900             : 
   15901             :         }
   15902             : 
   15903             :         void append_028()
   15904             :         {
   15905             :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
   15906             :             float                  input = (float)atof("-3.00390625");
   15907             : 
   15908             :             sal_Int32 nLen = aStrBuf.getLength();
   15909             :             aStrBuf.append( input );
   15910             : 
   15911             :             CPPUNIT_ASSERT_MESSAGE
   15912             :             (
   15913             :                 "arrOUS[3] append -3.0039062",
   15914             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15915             :             );
   15916             : 
   15917             :         }
   15918             : 
   15919             :         void append_029()
   15920             :         {
   15921             :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   15922             :             float                  input = (float)atof("-3.0");
   15923             : 
   15924             :             sal_Int32 nLen = aStrBuf.getLength();
   15925             :             aStrBuf.append( input );
   15926             : 
   15927             :             CPPUNIT_ASSERT_MESSAGE
   15928             :             (
   15929             :                 "arrOUS[4] append -3.0",
   15930             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15931             :             );
   15932             : 
   15933             :         }
   15934             : 
   15935             :         void append_030()
   15936             :         {
   15937             :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   15938             :             float                  input = (float)atof("-3.5");
   15939             : 
   15940             :             sal_Int32 nLen = aStrBuf.getLength();
   15941             :             aStrBuf.append( input );
   15942             : 
   15943             :             CPPUNIT_ASSERT_MESSAGE
   15944             :             (
   15945             :                 "arrOUS[4] append -3.5",
   15946             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15947             :             );
   15948             : 
   15949             :         }
   15950             : 
   15951             :         void append_031()
   15952             :         {
   15953             :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   15954             :             float                  input = (float)atof("-3.0625");
   15955             : 
   15956             :             sal_Int32 nLen = aStrBuf.getLength();
   15957             :             aStrBuf.append( input );
   15958             : 
   15959             :             CPPUNIT_ASSERT_MESSAGE
   15960             :             (
   15961             :                 "arrOUS[4] append -3.0625",
   15962             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15963             :             );
   15964             : 
   15965             :         }
   15966             : 
   15967             :         void append_032()
   15968             :         {
   15969             :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   15970             :             float                  input = (float)atof("-3.502525");
   15971             : 
   15972             :             sal_Int32 nLen = aStrBuf.getLength();
   15973             :             aStrBuf.append( input );
   15974             : 
   15975             :             CPPUNIT_ASSERT_MESSAGE
   15976             :             (
   15977             :                 "arrOUS[4] append -3.502525",
   15978             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15979             :             );
   15980             : 
   15981             :         }
   15982             : 
   15983             :         void append_033()
   15984             :         {
   15985             :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   15986             :             float                  input = (float)atof("-3.141592");
   15987             : 
   15988             :             sal_Int32 nLen = aStrBuf.getLength();
   15989             :             aStrBuf.append( input );
   15990             : 
   15991             :             CPPUNIT_ASSERT_MESSAGE
   15992             :             (
   15993             :                 "arrOUS[4] append -3.141592",
   15994             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   15995             :             );
   15996             : 
   15997             :         }
   15998             : 
   15999             :         void append_034()
   16000             :         {
   16001             :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   16002             :             float                  input = (float)atof("-3.5025255");
   16003             : 
   16004             :             sal_Int32 nLen = aStrBuf.getLength();
   16005             :             aStrBuf.append( input );
   16006             : 
   16007             :             CPPUNIT_ASSERT_MESSAGE
   16008             :             (
   16009             :                 "arrOUS[4] append -3.5025255",
   16010             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   16011             :             );
   16012             : 
   16013             :         }
   16014             : 
   16015             :         void append_035()
   16016             :         {
   16017             :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   16018             :             float                  input = (float)atof("-3.00390625");
   16019             : 
   16020             :             sal_Int32 nLen = aStrBuf.getLength();
   16021             :             aStrBuf.append( input );
   16022             : 
   16023             :             CPPUNIT_ASSERT_MESSAGE
   16024             :             (
   16025             :                 "arrOUS[4] append -3.0039062",
   16026             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   16027             :             );
   16028             : 
   16029             :         }
   16030             : #ifdef WITH_CORE
   16031             :         void append_036()
   16032             :         {
   16033             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
   16034             :             float                  input = (float)atof("-3.0");
   16035             : 
   16036             :             sal_Int32 nLen = aStrBuf.getLength();
   16037             :             aStrBuf.append( input );
   16038             : 
   16039             :             CPPUNIT_ASSERT_MESSAGE
   16040             :             (
   16041             :                 "OStringBuffer( kSInt32Max ) append -3.0",
   16042             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   16043             :             );
   16044             : 
   16045             :         }
   16046             : 
   16047             :         void append_037()
   16048             :         {
   16049             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
   16050             :             float                  input = (float)atof("-3.5");
   16051             : 
   16052             :             sal_Int32 nLen = aStrBuf.getLength();
   16053             :             aStrBuf.append( input );
   16054             : 
   16055             :             CPPUNIT_ASSERT_MESSAGE
   16056             :             (
   16057             :                 "OStringBuffer( kSInt32Max ) append -3.5",
   16058             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   16059             :             );
   16060             : 
   16061             :         }
   16062             : 
   16063             :         void append_038()
   16064             :         {
   16065             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
   16066             :             float                  input = (float)atof("-3.0625");
   16067             : 
   16068             :             sal_Int32 nLen = aStrBuf.getLength();
   16069             :             aStrBuf.append( input );
   16070             : 
   16071             :             CPPUNIT_ASSERT_MESSAGE
   16072             :             (
   16073             :                 "OStringBuffer( kSInt32Max ) append -3.0625",
   16074             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   16075             :             );
   16076             : 
   16077             :         }
   16078             : 
   16079             :         void append_039()
   16080             :         {
   16081             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
   16082             :             float                  input = (float)atof("-3.502525");
   16083             : 
   16084             :             sal_Int32 nLen = aStrBuf.getLength();
   16085             :             aStrBuf.append( input );
   16086             : 
   16087             :             CPPUNIT_ASSERT_MESSAGE
   16088             :             (
   16089             :                 "OStringBuffer( kSInt32Max ) append -3.502525",
   16090             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   16091             :             );
   16092             : 
   16093             :         }
   16094             : 
   16095             :         void append_040()
   16096             :         {
   16097             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
   16098             :             float                  input = (float)atof("-3.141592");
   16099             : 
   16100             :             sal_Int32 nLen = aStrBuf.getLength();
   16101             :             aStrBuf.append( input );
   16102             : 
   16103             :             CPPUNIT_ASSERT_MESSAGE
   16104             :             (
   16105             :                 "OStringBuffer( kSInt32Max ) append -3.141592",
   16106             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   16107             :             );
   16108             : 
   16109             :         }
   16110             : 
   16111             :         void append_041()
   16112             :         {
   16113             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
   16114             :             float                  input = (float)atof("-3.5025255");
   16115             : 
   16116             :             sal_Int32 nLen = aStrBuf.getLength();
   16117             :             aStrBuf.append( input );
   16118             : 
   16119             :             CPPUNIT_ASSERT_MESSAGE
   16120             :             (
   16121             :                 "OStringBuffer( kSInt32Max ) append -3.5025255",
   16122             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   16123             :             );
   16124             : 
   16125             :         }
   16126             : 
   16127             :         void append_042()
   16128             :         {
   16129             :             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
   16130             :             float                  input = (float)atof("-3.00390625");
   16131             : 
   16132             :             sal_Int32 nLen = aStrBuf.getLength();
   16133             :             aStrBuf.append( input );
   16134             : 
   16135             :             CPPUNIT_ASSERT_MESSAGE
   16136             :             (
   16137             :                 "OStringBuffer( kSInt32Max ) append -3.0039062",
   16138             :                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
   16139             :             );
   16140             : 
   16141             :         }
   16142             : #endif
   16143             : 
   16144           4 :         CPPUNIT_TEST_SUITE( append_008_Float_Negative );
   16145           2 :         CPPUNIT_TEST( append_001 );
   16146           2 :         CPPUNIT_TEST( append_002 );
   16147           2 :         CPPUNIT_TEST( append_003 );
   16148           2 :         CPPUNIT_TEST( append_004 );
   16149           2 :         CPPUNIT_TEST( append_005 );
   16150           2 :         CPPUNIT_TEST( append_006 );
   16151           2 :         CPPUNIT_TEST( append_007 );
   16152           2 :         CPPUNIT_TEST( append_008 );
   16153           2 :         CPPUNIT_TEST( append_009 );
   16154           2 :         CPPUNIT_TEST( append_010 );
   16155           2 :         CPPUNIT_TEST( append_011 );
   16156           2 :         CPPUNIT_TEST( append_012 );
   16157           2 :         CPPUNIT_TEST( append_013 );
   16158           2 :         CPPUNIT_TEST( append_014 );
   16159           2 :         CPPUNIT_TEST( append_015 );
   16160           2 :         CPPUNIT_TEST( append_016 );
   16161           2 :         CPPUNIT_TEST( append_017 );
   16162           2 :         CPPUNIT_TEST( append_018 );
   16163           2 :         CPPUNIT_TEST( append_019 );
   16164           2 :         CPPUNIT_TEST( append_020 );
   16165           2 :         CPPUNIT_TEST( append_021 );
   16166           2 :         CPPUNIT_TEST( append_022 );
   16167           2 :         CPPUNIT_TEST( append_023 );
   16168           2 :         CPPUNIT_TEST( append_024 );
   16169           2 :         CPPUNIT_TEST( append_025 );
   16170             : #ifdef WITH_CORE
   16171             :         CPPUNIT_TEST( append_026 );
   16172             :         CPPUNIT_TEST( append_027 );
   16173             :         CPPUNIT_TEST( append_028 );
   16174             :         CPPUNIT_TEST( append_029 );
   16175             :         CPPUNIT_TEST( append_030 );
   16176             : #endif
   16177           4 :         CPPUNIT_TEST_SUITE_END();
   16178             :     };
   16179             : //------------------------------------------------------------------------
   16180             : // testing the method append( double d )
   16181             : //------------------------------------------------------------------------
   16182             : 
   16183          16 :     class checkdouble : public CppUnit::TestFixture
   16184             :     {
   16185             :     public:
   16186           8 :         bool checkIfStrBufContainAtPosTheDouble(rtl::OStringBuffer const& _sStrBuf, sal_Int32 _nLen, double _nDouble)
   16187             :             {
   16188           8 :                 OString sDoubleValue;
   16189           8 :                 sDoubleValue = rtl::OString::valueOf(_nDouble);
   16190             : 
   16191           8 :                 OString sBufferString(_sStrBuf.getStr());
   16192           8 :                 sal_Int32 nPos = sBufferString.indexOf(sDoubleValue);
   16193           8 :                 if ( nPos >= 0 && nPos == _nLen)
   16194             :                 {
   16195           8 :                     return true;
   16196             :                 }
   16197           0 :                 return false;
   16198             :             }
   16199             :     };
   16200             : 
   16201          12 :     class  append_009_double : public checkdouble
   16202             :     {
   16203             :         OString* arrOUS[5];
   16204             : 
   16205             :     public:
   16206           4 :         void setUp()
   16207             :         {
   16208           4 :             arrOUS[0] = new OString( kTestStr7 );
   16209           4 :             arrOUS[1] = new OString(  );
   16210           4 :             arrOUS[2] = new OString( kTestStr25 );
   16211           4 :             arrOUS[3] = new OString( "" );
   16212           4 :             arrOUS[4] = new OString( kTestStr28 );
   16213             : 
   16214           4 :         }
   16215             : 
   16216           4 :         void tearDown()
   16217             :         {
   16218           4 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
   16219           4 :             delete arrOUS[3]; delete arrOUS[4];
   16220           4 :         }
   16221             : 
   16222           2 :         void append_001()
   16223             :         {
   16224           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   16225           2 :             double                 input = atof("3.0");
   16226             : 
   16227           2 :             sal_Int32 nLen = aStrBuf.getLength();
   16228           2 :             aStrBuf.append( input );
   16229             : 
   16230           4 :             CPPUNIT_ASSERT_MESSAGE
   16231             :             (
   16232             :                 "arrOUS[0] append 3.0",
   16233             :                 checkIfStrBufContainAtPosTheDouble(aStrBuf, nLen, input)
   16234           4 :             );
   16235             : 
   16236           2 :         }
   16237             : 
   16238           2 :         void append_035()
   16239             :         {
   16240           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   16241           2 :             double                 input = atof("3.141592653589793238462643");
   16242             : 
   16243           2 :             sal_Int32 nLen = aStrBuf.getLength();
   16244           2 :             aStrBuf.append( input );
   16245             : 
   16246           4 :             CPPUNIT_ASSERT_MESSAGE
   16247             :             (
   16248             :                 "arrOUS[4] append 3.141592653589793238462643",
   16249             :                 checkIfStrBufContainAtPosTheDouble(aStrBuf, nLen, input)
   16250           4 :             );
   16251             : 
   16252           2 :         }
   16253             : 
   16254           4 :         CPPUNIT_TEST_SUITE( append_009_double );
   16255           2 :         CPPUNIT_TEST( append_001 );
   16256           2 :         CPPUNIT_TEST( append_035 );
   16257           4 :         CPPUNIT_TEST_SUITE_END();
   16258             :     };
   16259             : 
   16260             : //------------------------------------------------------------------------
   16261             : // testing the method append( double f ) for negative value
   16262             : //------------------------------------------------------------------------
   16263          12 :     class  append_009_Double_Negative : public checkdouble
   16264             :     {
   16265             :         OString* arrOUS[5];
   16266             : 
   16267             :     public:
   16268           4 :         void setUp()
   16269             :         {
   16270           4 :             arrOUS[0] = new OString( kTestStr7 );
   16271           4 :             arrOUS[1] = new OString(  );
   16272           4 :             arrOUS[2] = new OString( kTestStr25 );
   16273           4 :             arrOUS[3] = new OString( "" );
   16274           4 :             arrOUS[4] = new OString( kTestStr28 );
   16275             : 
   16276           4 :         }
   16277             : 
   16278           4 :         void tearDown()
   16279             :         {
   16280           4 :             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
   16281           4 :             delete arrOUS[3]; delete arrOUS[4];
   16282           4 :         }
   16283             : 
   16284           2 :         void append_001()
   16285             :         {
   16286           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
   16287           2 :             double                 input = atof("-3.0");
   16288             : 
   16289           2 :             sal_Int32 nLen = aStrBuf.getLength();
   16290           2 :             aStrBuf.append( input );
   16291             : 
   16292           4 :             CPPUNIT_ASSERT_MESSAGE
   16293             :             (
   16294             :                 "arrOUS[0] append -3.0",
   16295             :                 checkIfStrBufContainAtPosTheDouble(aStrBuf, nLen, input)
   16296           4 :             );
   16297             : 
   16298           2 :         }
   16299             : 
   16300           2 :         void append_035()
   16301             :         {
   16302           2 :             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
   16303           2 :             double                 input = atof("-3.141592653589793238462643");
   16304             : 
   16305           2 :             sal_Int32 nLen = aStrBuf.getLength();
   16306           2 :             aStrBuf.append( input );
   16307             : 
   16308           4 :             CPPUNIT_ASSERT_MESSAGE
   16309             :             (
   16310             :                 "arrOUS[4] append -3.141592653589793238462643",
   16311             :                 checkIfStrBufContainAtPosTheDouble(aStrBuf, nLen, input)
   16312           4 :             );
   16313             : 
   16314           2 :         }
   16315             : 
   16316           4 :         CPPUNIT_TEST_SUITE( append_009_Double_Negative );
   16317           2 :         CPPUNIT_TEST( append_001 );
   16318           2 :         CPPUNIT_TEST( append_035 );
   16319           4 :         CPPUNIT_TEST_SUITE_END();
   16320             :     };
   16321             : } // namespace rtl_OStringBuffer
   16322             : 
   16323             : // -----------------------------------------------------------------------------
   16324           2 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::ctors);
   16325           2 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::makeStringAndClear);
   16326           2 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::getLength);
   16327           2 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::getCapacity);
   16328           2 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::ensureCapacity);
   16329           2 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::setLength);
   16330           2 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::csuc);
   16331           2 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::getStr);
   16332           2 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_001);
   16333           2 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_002);
   16334           2 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_003);
   16335           2 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_004);
   16336           2 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_005);
   16337           2 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32);
   16338           2 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32_Bounderies);
   16339           2 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32_Negative);
   16340           2 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32_WrongRadix);
   16341           2 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32_defaultParam);
   16342           2 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64);
   16343           2 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64_Bounderies);
   16344           2 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64_Negative);
   16345           2 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64_WrongRadix);
   16346           2 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64_defaultParam);
   16347           2 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_008_float);
   16348           2 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_008_Float_Negative);
   16349           2 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_009_double);
   16350           2 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_009_Double_Negative);
   16351           2 : CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::remove);
   16352             : 
   16353           8 : CPPUNIT_PLUGIN_IMPLEMENT();
   16354             : 
   16355             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10