1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 // MARKER(update_precomp.py): autogen include statement, do not remove
25 #include "precompiled_sal.hxx"
26 
27 // -----------------------------------------------------------------------------
28 #include <rtl/string.hxx>
29 #include <rtl_String_Const.h>
30 #include <rtl_String_Utils.hxx>
31 
32 #include <rtl/strbuf.hxx>
33 
34 #include "cppunit/TestAssert.h"
35 #include "cppunit/TestFixture.h"
36 #include "cppunit/extensions/HelperMacros.h"
37 #include "cppunit/plugin/TestPlugIn.h"
38 
39 #include <string.h>
40 
41 using namespace rtl;
42 
43 //------------------------------------------------------------------------
44 // test classes
45 //------------------------------------------------------------------------
46 // const MAXBUFLENGTH = 255;
47 //------------------------------------------------------------------------
48 // helper functions
49 //------------------------------------------------------------------------
50 
51 //------------------------------------------------------------------------
52 // testing constructors
53 //------------------------------------------------------------------------
54 
55 // LLA: there exist some #if WITH_CORE #endif envelopes, which contain test code, which will core dump
56 //      due to the fact, that we can't handle MAXINT32 right.
57 
58 namespace rtl_OStringBuffer
59 {
60     class  ctors : public CppUnit::TestFixture
61     {
62     public:
63 
ctor_001()64         void ctor_001()
65         {
66             ::rtl::OStringBuffer aStrBuf;
67             const sal_Char* pStr = aStrBuf.getStr();
68 
69             CPPUNIT_ASSERT_MESSAGE
70             (
71                 "New OStringBuffer containing no characters",
72                 aStrBuf.getLength() == 0 &&
73                 *pStr == '\0' && aStrBuf.getCapacity() == 16
74             );
75         }
76 
ctor_002()77         void ctor_002()
78         {
79             ::rtl::OString       aStrtmp( kTestStr1 );
80             ::rtl::OStringBuffer aStrBuftmp( aStrtmp );
81             ::rtl::OStringBuffer aStrBuf( aStrBuftmp );
82             // sal_Bool res = cmpstr(aStrBuftmp.getStr(),aStrBuf.getStr());
83 
84             sal_Int32 nLenStrBuftmp = aStrBuftmp.getLength();
85 
86             rtl::OString sStr(aStrBuftmp.getStr());
87             sal_Bool res = aStrtmp.equals( sStr );
88 
89             CPPUNIT_ASSERT_MESSAGE
90             (
91                 "New OStringBuffer from another OStringBuffer",
92                 aStrBuf.getLength() == nLenStrBuftmp &&
93                 aStrBuf.getCapacity() == aStrBuftmp.getCapacity() &&
94                 res
95             );
96 
97         }
98 
ctor_003()99         void ctor_003()
100         {
101             ::rtl::OStringBuffer aStrBuf1(kTestStr2Len);
102 #ifdef WITH_CORE
103             ::rtl::OStringBuffer aStrBuf2(kSInt32Max);     //will core dump
104             // LLA: will core, due to the fact, that ksint32max is too big, the max length can't
105             //      use, because there are some internal bytes, which we can't calculate.
106 
107 #else
108             ::rtl::OStringBuffer aStrBuf2(0);
109 #endif
110 
111             const sal_Char* pStr1 = aStrBuf1.getStr();
112             const sal_Char* pStr2 = aStrBuf2.getStr();
113 
114 #ifdef WITH_CORE
115             CPPUNIT_ASSERT_MESSAGE
116             (
117                 "New OStringBuffer containing no characters and contain assigned capacity",
118                 aStrBuf1.getLength() == 0 &&
119                 ! *(aStrBuf1.getStr()) && aStrBuf1.getCapacity() == kTestStr2Len &&
120                 aStrBuf2.getLength() == 0 &&
121                 ! *(aStrBuf2.getStr()) && aStrBuf2.getCapacity() == kSInt32Max
122 
123             );
124 #else
125             CPPUNIT_ASSERT_MESSAGE
126             (
127                 "New OStringBuffer containing no characters and contain assigned capacity",
128                 aStrBuf1.getLength() == 0 &&
129                 *pStr1 == '\0' &&
130                 aStrBuf1.getCapacity() == kTestStr2Len &&
131                 aStrBuf2.getLength() == 0 &&
132                 *pStr2 == '\0' &&
133                 aStrBuf2.getCapacity() == 0
134             );
135 #endif
136 
137         }
138 
ctor_003_1()139         void ctor_003_1()
140         {
141             // LLA: StringBuffer with created negativ size are the same as empty StringBuffers
142             ::rtl::OStringBuffer aStrBuf3(kNonSInt32Max);
143 
144             const sal_Char* pStr = aStrBuf3.getStr();
145 
146             CPPUNIT_ASSERT_MESSAGE
147             (
148                 "New OStringBuffer containing no characters and contain assigned capacity",
149                 aStrBuf3.getLength() == 0 &&
150                 *pStr == '\0' &&
151                 aStrBuf3.getCapacity() == kNonSInt32Max
152             );
153         }
154 
ctor_004()155         void ctor_004()
156         {
157             ::rtl::OString aStrtmp( kTestStr1 );
158             ::rtl::OStringBuffer aStrBuf( aStrtmp );
159             sal_Int32 leg = aStrBuf.getLength();
160 
161             CPPUNIT_ASSERT_MESSAGE
162             (
163                 "New OStringBuffer from Ostring",
164                 aStrBuf.getStr() == aStrtmp &&
165                 leg == aStrtmp.pData->length &&
166                 aStrBuf.getCapacity() == leg+16
167 
168             );
169         }
170 
ctor_005()171         void ctor_005() {
172             rtl::OStringBuffer b1;
173             b1.makeStringAndClear();
174             rtl::OStringBuffer b2(b1);
175         }
176 
177         CPPUNIT_TEST_SUITE(ctors);
178         CPPUNIT_TEST(ctor_001);
179         CPPUNIT_TEST(ctor_002);
180         CPPUNIT_TEST(ctor_003);
181         CPPUNIT_TEST(ctor_003_1);
182         CPPUNIT_TEST(ctor_004);
183         CPPUNIT_TEST(ctor_005);
184         CPPUNIT_TEST_SUITE_END();
185     };
186 
187 
188 
189 // -----------------------------------------------------------------------------
190 
191     class  makeStringAndClear : public CppUnit::TestFixture
192     {
193         OString* arrOUS[6];
194 
195     public:
setUp()196         void setUp()
197         {
198             arrOUS[0] = new OString( kTestStr1 );
199             arrOUS[1] = new OString( kTestStr14 );
200             arrOUS[2] = new OString( kTestStr25 );
201             arrOUS[3] = new OString( kTestStr27 );
202             arrOUS[4] = new OString( kTestStr29 );
203             arrOUS[5] = new OString( "\0" );
204 
205         }
206 
tearDown()207         void tearDown()
208         {
209             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
210             delete arrOUS[3]; delete arrOUS[4]; delete arrOUS[5];
211         }
212 
makeStringAndClear_001()213         void makeStringAndClear_001()
214         {
215             ::rtl::OStringBuffer   aStrBuf1;
216             ::rtl::OString         aStr1;
217 
218             sal_Bool lastRes = (aStrBuf1.makeStringAndClear() ==  aStr1 );
219 
220             CPPUNIT_ASSERT_MESSAGE
221             (
222                 "two empty strings(def. constructor)",
223                 lastRes && ( aStrBuf1.getCapacity() == 0 ) &&
224                         ( *(aStrBuf1.getStr()) == '\0' )
225             );
226 
227         }
228 
makeStringAndClear_002()229         void makeStringAndClear_002()
230         {
231             ::rtl::OStringBuffer   aStrBuf2(26);
232             ::rtl::OString         aStr2;
233 
234             sal_Bool lastRes = (aStrBuf2.makeStringAndClear() == aStr2 );
235 
236             CPPUNIT_ASSERT_MESSAGE
237             (
238                 "two empty strings(with a argu)",
239                 lastRes && ( aStrBuf2.getCapacity() == 0 ) &&
240                         ( *(aStrBuf2.getStr()) == '\0' )
241             );
242 
243         }
244 
makeStringAndClear_003()245         void makeStringAndClear_003()
246         {
247             ::rtl::OStringBuffer   aStrBuf3(*arrOUS[0]);
248             ::rtl::OString        aStr3(*arrOUS[0]);
249 
250             sal_Bool lastRes = (aStrBuf3.makeStringAndClear() == aStr3 );
251 
252             CPPUNIT_ASSERT_MESSAGE
253             (
254                 "normal string",
255                 lastRes && ( aStrBuf3.getCapacity() == 0 ) &&
256                         ( *(aStrBuf3.getStr()) == '\0' )
257             );
258 
259         }
260 
makeStringAndClear_004()261         void makeStringAndClear_004()
262         {
263             ::rtl::OStringBuffer   aStrBuf4(*arrOUS[1]);
264             ::rtl::OString         aStr4(*arrOUS[1]);
265 
266             sal_Bool lastRes = (aStrBuf4.makeStringAndClear() ==  aStr4 );
267 
268             CPPUNIT_ASSERT_MESSAGE
269             (
270                 "string with space ",
271                 lastRes && ( aStrBuf4.getCapacity() == 0 ) &&
272                         ( *(aStrBuf4.getStr()) == '\0' )
273             );
274         }
275 
makeStringAndClear_005()276         void makeStringAndClear_005()
277         {
278             ::rtl::OStringBuffer   aStrBuf5(*arrOUS[2]);
279             ::rtl::OString         aStr5(*arrOUS[2]);
280 
281             sal_Bool lastRes = (aStrBuf5.makeStringAndClear() ==  aStr5 );
282 
283             CPPUNIT_ASSERT_MESSAGE
284             (
285                 "empty string",
286                 lastRes && ( aStrBuf5.getCapacity() == 0 ) &&
287                         ( *(aStrBuf5.getStr()) == '\0' )
288             );
289         }
290 
makeStringAndClear_006()291         void makeStringAndClear_006()
292         {
293             ::rtl::OStringBuffer   aStrBuf6(*arrOUS[3]);
294             ::rtl::OString         aStr6(*arrOUS[3]);
295 
296             sal_Bool lastRes = (aStrBuf6.makeStringAndClear() == aStr6 );
297 
298             CPPUNIT_ASSERT_MESSAGE
299             (
300                 "string with a character",
301                 lastRes && ( aStrBuf6.getCapacity() == 0 ) &&
302                         ( *(aStrBuf6.getStr()) == '\0' )
303             );
304         }
305 
makeStringAndClear_007()306         void makeStringAndClear_007()
307         {
308             ::rtl::OStringBuffer   aStrBuf7(*arrOUS[4]);
309             ::rtl::OString         aStr7(*arrOUS[4]);
310 
311             sal_Bool lastRes = (aStrBuf7.makeStringAndClear() == aStr7 );
312 
313             CPPUNIT_ASSERT_MESSAGE
314             (
315                 "string with special characters",
316                 lastRes && ( aStrBuf7.getCapacity() == 0 ) &&
317                         ( *(aStrBuf7.getStr()) == '\0' )
318             );
319         }
320 
makeStringAndClear_008()321         void makeStringAndClear_008()
322         {
323             ::rtl::OStringBuffer   aStrBuf8(*arrOUS[5]);
324             ::rtl::OString         aStr8(*arrOUS[5]);
325 
326             sal_Bool lastRes = (aStrBuf8.makeStringAndClear() == aStr8 );
327 
328             CPPUNIT_ASSERT_MESSAGE
329             (
330                 "string only with (\0)",
331                 lastRes && ( aStrBuf8.getCapacity() == 0 ) &&
332                         ( *(aStrBuf8.getStr()) == '\0' )
333             );
334         }
335 
336         CPPUNIT_TEST_SUITE(makeStringAndClear);
337         CPPUNIT_TEST(makeStringAndClear_001);
338         CPPUNIT_TEST(makeStringAndClear_002);
339         CPPUNIT_TEST(makeStringAndClear_003);
340         CPPUNIT_TEST(makeStringAndClear_004);
341         CPPUNIT_TEST(makeStringAndClear_005);
342         CPPUNIT_TEST(makeStringAndClear_006);
343         CPPUNIT_TEST(makeStringAndClear_007);
344         CPPUNIT_TEST(makeStringAndClear_008);
345         CPPUNIT_TEST_SUITE_END();
346     };
347 
348 // -----------------------------------------------------------------------------
349 
350     class  getLength : public CppUnit::TestFixture
351     {
352         OString* arrOUS[6];
353 
354     public:
setUp()355         void setUp()
356         {
357             arrOUS[0] = new OString( kTestStr1 );
358             arrOUS[1] = new OString( "1" );
359             arrOUS[2] = new OString( );
360             arrOUS[3] = new OString( "" );
361             arrOUS[4] = new OString( "\0" );
362             arrOUS[5] = new OString( kTestStr2 );
363 
364         }
365 
tearDown()366         void tearDown()
367         {
368             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
369             delete arrOUS[3]; delete arrOUS[4]; delete arrOUS[5];
370         }
371 
getLength_001()372         void getLength_001()
373         {
374             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
375             sal_Int32              expVal = kTestStr1Len;
376 
377             CPPUNIT_ASSERT_MESSAGE
378             (
379                 "length of ascii string",
380                 aStrBuf.getLength() == expVal
381             );
382 
383         }
384 
getLength_002()385         void getLength_002()
386         {
387             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
388             sal_Int32              expVal = 1;
389 
390             CPPUNIT_ASSERT_MESSAGE
391             (
392                 "length of ascci string of size 1",
393                 aStrBuf.getLength() == expVal
394             );
395         }
396 
getLength_003()397         void getLength_003()
398         {
399             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
400             sal_Int32              expVal = 0;
401 
402             CPPUNIT_ASSERT_MESSAGE
403             (
404                 "length of empty string",
405                 aStrBuf.getLength() == expVal
406             );
407         }
408 
getLength_004()409         void getLength_004()
410         {
411             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
412             sal_Int32              expVal = 0;
413 
414             CPPUNIT_ASSERT_MESSAGE
415             (
416                 "length of empty string (empty ascii string arg)",
417                 aStrBuf.getLength() == expVal
418             );
419         }
420 
getLength_005()421         void getLength_005()
422         {
423             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
424             sal_Int32              expVal = 0;
425 
426             CPPUNIT_ASSERT_MESSAGE
427             (
428                 "length of empty string (string arg = '\\0')",
429                 aStrBuf.getLength() == expVal
430             );
431         }
432 
getLength_006()433         void getLength_006()
434         {
435             ::rtl::OStringBuffer   aStrBuf( *arrOUS[5] );
436             sal_Int32              expVal = kTestStr2Len;
437 
438             CPPUNIT_ASSERT_MESSAGE
439             (
440                 "length(>16) of ascii string",
441                 aStrBuf.getLength() == expVal
442             );
443         }
444 
getLength_007()445         void getLength_007()
446         {
447             ::rtl::OStringBuffer   aStrBuf;
448             sal_Int32              expVal = 0;
449 
450             CPPUNIT_ASSERT_MESSAGE
451             (
452                 "length of empty string (default constructor)",
453                 aStrBuf.getLength()== expVal
454             );
455         }
456 
getLength_008()457         void getLength_008()
458         {
459             ::rtl::OStringBuffer   aStrBuf( 26 );
460             sal_Int32               expVal   = 0;
461 
462             CPPUNIT_ASSERT_MESSAGE
463             (
464                 "length of empty string (with capacity)",
465                 aStrBuf.getLength()== expVal
466             );
467         }
468 
469         CPPUNIT_TEST_SUITE( getLength );
470         CPPUNIT_TEST( getLength_001 );
471         CPPUNIT_TEST( getLength_002 );
472         CPPUNIT_TEST( getLength_003 );
473         CPPUNIT_TEST( getLength_004 );
474         CPPUNIT_TEST( getLength_005 );
475         CPPUNIT_TEST( getLength_006 );
476         CPPUNIT_TEST( getLength_007 );
477         CPPUNIT_TEST( getLength_008 );
478         CPPUNIT_TEST_SUITE_END();
479     };
480 
481 // -----------------------------------------------------------------------------
482 
483     class  getCapacity : public CppUnit::TestFixture
484     {
485         OString* arrOUS[6];
486 
487     public:
setUp()488         void setUp()
489         {
490             arrOUS[0] = new OString( kTestStr1 );
491             arrOUS[1] = new OString( "1" );
492             arrOUS[2] = new OString( );
493             arrOUS[3] = new OString( "" );
494             arrOUS[4] = new OString( "\0" );
495             arrOUS[5] = new OString( kTestStr2 );
496 
497         }
498 
tearDown()499         void tearDown()
500         {
501             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
502             delete arrOUS[3]; delete arrOUS[4]; delete arrOUS[5];
503         }
504 
getCapacity_001()505         void getCapacity_001()
506         {
507             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
508             sal_Int32              expVal = kTestStr1Len+16;
509 
510             CPPUNIT_ASSERT_MESSAGE
511             (
512                 "capacity of ascii string",
513                 aStrBuf.getCapacity()== expVal
514             );
515 
516         }
517 
getCapacity_002()518         void getCapacity_002()
519         {
520             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
521             sal_Int32              expVal = 1+16;
522 
523             CPPUNIT_ASSERT_MESSAGE
524             (
525                 "capacity of ascci string of size 1",
526                 aStrBuf.getCapacity() == expVal
527             );
528         }
529 
getCapacity_003()530         void getCapacity_003()
531         {
532             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
533             sal_Int32              expVal = 0+16;
534 
535             CPPUNIT_ASSERT_MESSAGE
536             (
537                 "capacity of empty string",
538                 aStrBuf.getCapacity() == expVal
539             );
540         }
541 
getCapacity_004()542         void getCapacity_004()
543         {
544             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
545             sal_Int32              expVal = 0+16;
546 
547             CPPUNIT_ASSERT_MESSAGE
548             (
549                 "capacity of empty string (empty ascii string arg)",
550                 aStrBuf.getCapacity()== expVal
551             );
552         }
553 
getCapacity_005()554         void getCapacity_005()
555         {
556             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
557             sal_Int32              expVal = 0+16;
558 
559             CPPUNIT_ASSERT_MESSAGE
560             (
561                 "capacity of empty string (string arg = '\\0')",
562                 aStrBuf.getCapacity() == expVal
563             );
564         }
565 
getCapacity_006()566         void getCapacity_006()
567         {
568             ::rtl::OStringBuffer   aStrBuf( *arrOUS[5] );
569             sal_Int32              expVal = kTestStr2Len+16;
570 
571             CPPUNIT_ASSERT_MESSAGE
572             (
573                 "capacity(>16) of ascii string",
574                 aStrBuf.getCapacity() == expVal
575             );
576         }
577 
getCapacity_007()578         void getCapacity_007()
579         {
580             ::rtl::OStringBuffer   aStrBuf;
581             sal_Int32              expVal = 16;
582 
583             CPPUNIT_ASSERT_MESSAGE
584             (
585                 "capacity of empty string (default constructor)",
586                 aStrBuf.getCapacity() == expVal
587             );
588         }
589 #ifdef WITH_CORE
getCapacity_008()590         void getCapacity_008()
591         {
592             ::rtl::OStringBuffer   aStrBuf ( kSInt32Max );
593             sal_Int32              expVal = kSInt32Max;
594 
595             CPPUNIT_ASSERT_MESSAGE
596             (
597                 "capacity of empty string (with capacity 2147483647)(code will core dump)",
598                 aStrBuf.getCapacity() == expVal
599             );
600         }
601 #endif
getCapacity_009()602         void getCapacity_009()
603         {
604             ::rtl::OStringBuffer   aStrBuf( kNonSInt32Max );
605             sal_Int32              expVal = kNonSInt32Max;
606 
607             CPPUNIT_ASSERT_MESSAGE
608             (
609                 "capacity of empty string (with capacity -2147483648)",
610                 aStrBuf.getCapacity() == expVal
611             );
612         }
613 
getCapacity_010()614         void getCapacity_010()
615         {
616             ::rtl::OStringBuffer   aStrBuf( 16 );
617             sal_Int32              expVal = 16;
618 
619             CPPUNIT_ASSERT_MESSAGE
620             (
621                 "capacity of empty string (with capacity 16)",
622                 aStrBuf.getCapacity() == expVal
623             );
624         }
625 
getCapacity_011()626         void getCapacity_011()
627         {
628             ::rtl::OStringBuffer   aStrBuf( 6 );
629             sal_Int32              expVal = 6;
630 
631             CPPUNIT_ASSERT_MESSAGE
632             (
633                 "capacity of empty string (with capacity 6)",
634                 aStrBuf.getCapacity() == expVal
635             );
636         }
637 
getCapacity_012()638         void getCapacity_012()
639         {
640             ::rtl::OStringBuffer   aStrBuf( 0 );
641             sal_Int32              expVal = 0;
642 
643             CPPUNIT_ASSERT_MESSAGE
644             (
645                 "capacity of empty string (with capacity 0)",
646                 aStrBuf.getCapacity() == expVal
647             );
648         }
649 
getCapacity_013()650         void getCapacity_013()
651         {
652             ::rtl::OStringBuffer   aStrBuf( -2 );
653             sal_Int32              expVal = -2;
654 
655             CPPUNIT_ASSERT_MESSAGE
656             (
657                 "capacity of empty string (with capacity -2)",
658                 aStrBuf.getCapacity() == expVal
659             );
660         }
661 
662         CPPUNIT_TEST_SUITE( getCapacity );
663         CPPUNIT_TEST( getCapacity_001 );
664         CPPUNIT_TEST( getCapacity_002 );
665         CPPUNIT_TEST( getCapacity_003 );
666         CPPUNIT_TEST( getCapacity_004 );
667         CPPUNIT_TEST( getCapacity_005 );
668         CPPUNIT_TEST( getCapacity_006 );
669         CPPUNIT_TEST( getCapacity_007 );
670 #ifdef WITH_CORE
671         CPPUNIT_TEST( getCapacity_008 );
672 #endif
673         CPPUNIT_TEST( getCapacity_009 );
674         CPPUNIT_TEST( getCapacity_010 );
675         CPPUNIT_TEST( getCapacity_011 );
676         CPPUNIT_TEST( getCapacity_012 );
677         CPPUNIT_TEST( getCapacity_013 );
678         CPPUNIT_TEST_SUITE_END();
679     };
680 // -----------------------------------------------------------------------------
681 
682     class  ensureCapacity : public CppUnit::TestFixture
683     {
ensureCapacity_001()684         void ensureCapacity_001()
685         {
686             sal_Int32 		   expVal = 16;
687             ::rtl::OStringBuffer   aStrBuf;
688             sal_Int32              input = 5;
689 
690             aStrBuf.ensureCapacity( input );
691 
692             CPPUNIT_ASSERT_MESSAGE
693             (
694                 "capacity equal to 16, minimum is 5",
695                 aStrBuf.getCapacity() == expVal
696             );
697 
698         }
699 
ensureCapacity_002()700         void ensureCapacity_002()
701         {
702             sal_Int32 		   expVal = 16;
703             ::rtl::OStringBuffer   aStrBuf;
704             sal_Int32              input = -5;
705 
706             aStrBuf.ensureCapacity( input );
707 
708             CPPUNIT_ASSERT_MESSAGE
709             (
710                 "capacity equal to 16, minimum is -5",
711                 aStrBuf.getCapacity() == expVal
712             );
713 
714         }
715 
ensureCapacity_003()716         void ensureCapacity_003()
717         {
718             sal_Int32 		   expVal = 16;
719             ::rtl::OStringBuffer   aStrBuf;
720             sal_Int32              input = 0;
721 
722             aStrBuf.ensureCapacity( input );
723 
724             CPPUNIT_ASSERT_MESSAGE
725             (
726                 "capacity equal to 16, minimum is 0",
727                 aStrBuf.getCapacity() == expVal
728             );
729 
730         }
731 
ensureCapacity_004()732         void ensureCapacity_004()           //the testcase is based on comments
733         {
734             sal_Int32 		   expVal = 20;
735             ::rtl::OStringBuffer   aStrBuf;
736             sal_Int32              input = 20;
737 
738             aStrBuf.ensureCapacity( input );
739 
740             CPPUNIT_ASSERT_MESSAGE
741             (
742                 "capacity equal to 16, minimum is 20",
743                 aStrBuf.getCapacity() == expVal
744             );
745 
746         }
747 
ensureCapacity_005()748         void ensureCapacity_005()
749         {
750             sal_Int32 		   expVal = 50;
751             ::rtl::OStringBuffer   aStrBuf;
752             sal_Int32              input = 50;
753 
754             aStrBuf.ensureCapacity( input );
755 
756             CPPUNIT_ASSERT_MESSAGE
757             (
758                 "capacity equal to 16, minimum is 50",
759                 aStrBuf.getCapacity() == expVal
760             );
761 
762         }
763 
ensureCapacity_006()764         void ensureCapacity_006()
765         {
766             sal_Int32 		   expVal = 20;
767             ::rtl::OStringBuffer   aStrBuf( 6 );
768             sal_Int32              input = 20;
769 
770             aStrBuf.ensureCapacity( input );
771 
772             CPPUNIT_ASSERT_MESSAGE
773             (
774                 "capacity equal to 6, minimum is 20",
775                 aStrBuf.getCapacity() == expVal
776             );
777 
778         }
779 
ensureCapacity_007()780         void ensureCapacity_007()
781         {
782             sal_Int32 		   expVal = 6;
783             ::rtl::OStringBuffer   aStrBuf( 6 );
784             sal_Int32              input = 2;
785 
786             aStrBuf.ensureCapacity( input );
787 
788             CPPUNIT_ASSERT_MESSAGE
789             (
790                 "capacity equal to 6, minimum is 2",
791                 aStrBuf.getCapacity() == expVal
792             );
793 
794         }
795 
ensureCapacity_008()796         void ensureCapacity_008()
797         {
798             sal_Int32 		   expVal = 6;
799             ::rtl::OStringBuffer   aStrBuf( 6 );
800             sal_Int32              input = -6;
801 
802             aStrBuf.ensureCapacity( input );
803 
804             CPPUNIT_ASSERT_MESSAGE
805             (
806                 "capacity equal to 6, minimum is -6",
807                 aStrBuf.getCapacity() == expVal
808             );
809 
810         }
811 
ensureCapacity_009()812         void ensureCapacity_009()      //the testcase is based on comments
813         {
814             sal_Int32 		   expVal = 10;
815             ::rtl::OStringBuffer   aStrBuf( 6 );
816             sal_Int32              input = 10;
817 
818             aStrBuf.ensureCapacity( input );
819 
820             CPPUNIT_ASSERT_MESSAGE
821             (
822                 "capacity equal to 6, minimum is -6",
823                 aStrBuf.getCapacity() == expVal
824             );
825 
826         }
827 
ensureCapacity_010()828         void ensureCapacity_010()
829         {
830             sal_Int32 		   expVal = 6;
831             ::rtl::OStringBuffer   aStrBuf( 0 );
832             sal_Int32              input = 6;
833 
834             aStrBuf.ensureCapacity( input );
835 
836             CPPUNIT_ASSERT_MESSAGE
837             (
838                 "capacity equal to 0, minimum is 6",
839                 aStrBuf.getCapacity() == expVal
840             );
841 
842         }
843 
ensureCapacity_011()844         void ensureCapacity_011()       //the testcase is based on comments
845         {
846             sal_Int32 		   expVal = 2;  // capacity is x = (str->length + 1) * 2; minimum < x ? x : minimum
847             ::rtl::OStringBuffer   aStrBuf( 0 );
848             sal_Int32              input = 1;
849 
850             aStrBuf.ensureCapacity( input );
851 
852             CPPUNIT_ASSERT_MESSAGE
853             (
854                 "capacity equal to 0, minimum is 1",
855                 aStrBuf.getCapacity() == expVal
856             );
857 
858         }
859 
ensureCapacity_012()860         void ensureCapacity_012()
861         {
862             sal_Int32 		   expVal = 0;
863             ::rtl::OStringBuffer   aStrBuf( 0 );
864             sal_Int32              input = -1;
865 
866             aStrBuf.ensureCapacity( input );
867 
868             CPPUNIT_ASSERT_MESSAGE
869             (
870                 "capacity equal to 0, minimum is -1",
871                 aStrBuf.getCapacity() == expVal
872             );
873 
874         }
875 #ifdef WITH_CORE
ensureCapacity_013()876         void ensureCapacity_013()             //will core dump
877         {
878             sal_Int32 		   expVal = kSInt32Max;
879             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
880             sal_Int32              input = 65535;
881 
882             aStrBuf.ensureCapacity( input );
883 
884             CPPUNIT_ASSERT_MESSAGE
885             (
886                 "capacity equal to 2147483647, minimum is 65535",
887                 aStrBuf.getCapacity() == expVal
888             );
889 
890         }
891 
ensureCapacity_014()892         void ensureCapacity_014()             //will core dump
893         {
894             sal_Int32 		   expVal = kSInt32Max;
895             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
896             sal_Int32              input = kSInt32Max;
897 
898             aStrBuf.ensureCapacity( input );
899 
900             CPPUNIT_ASSERT_MESSAGE
901             (
902                 "capacity equal to 2147483647, minimum is 2147483647",
903                 aStrBuf.getCapacity() == expVal
904             );
905 
906         }
907 
ensureCapacity_015()908         void ensureCapacity_015()             //will core dump
909         {
910             sal_Int32 		   expVal = kSInt32Max;
911             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
912             sal_Int32              input = -1;
913 
914             aStrBuf.ensureCapacity( input );
915 
916             CPPUNIT_ASSERT_MESSAGE
917             (
918                 "capacity equal to 2147483647, minimum is -1",
919                 aStrBuf.getCapacity() == expVal
920             );
921 
922         }
923 
ensureCapacity_016()924         void ensureCapacity_016()             //will core dump
925         {
926             sal_Int32 		   expVal = kSInt32Max;
927             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
928             sal_Int32              input = 0;
929 
930             aStrBuf.ensureCapacity( input );
931 
932             CPPUNIT_ASSERT_MESSAGE
933             (
934                 "capacity equal to 2147483647, minimum is 0",
935                 aStrBuf.getCapacity() == expVal
936             );
937 
938         }
939 
ensureCapacity_017()940         void ensureCapacity_017()             //will core dump
941         {
942             sal_Int32 		   expVal = kSInt32Max;
943             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
944             sal_Int32              input = kNonSInt32Max;
945 
946             aStrBuf.ensureCapacity( input );
947 
948             CPPUNIT_ASSERT_MESSAGE
949             (
950                 "capacity equal to 2147483647, minimum is -2147483648",
951                 aStrBuf.getCapacity() == expVal
952             );
953 
954         }
955 #endif
ensureCapacity_018()956         void ensureCapacity_018()
957         {
958             sal_Int32 		   expVal = 65535;
959             ::rtl::OStringBuffer   aStrBuf( kNonSInt32Max );
960             sal_Int32              input = 65535;
961 
962             aStrBuf.ensureCapacity( input );
963 
964             CPPUNIT_ASSERT_MESSAGE
965             (
966                 "capacity equal to -2147483648, minimum is 65535",
967                 aStrBuf.getCapacity() == expVal
968             );
969 
970         }
971 #ifdef WITH_CORE
ensureCapacity_019()972         void ensureCapacity_019()               //will core dump
973         {
974             sal_Int32 		   expVal = 2147483647;
975             ::rtl::OStringBuffer   aStrBuf( kNonSInt32Max );
976             sal_Int32              input = 2147483647;
977 
978             aStrBuf.ensureCapacity( input );
979 
980             CPPUNIT_ASSERT_MESSAGE
981             (
982                 "capacity equal to -2147483648, minimum is 2147483647",
983                 aStrBuf.getCapacity() == expVal
984             );
985 
986         }
987 #endif
ensureCapacity_020()988         void ensureCapacity_020()
989         {
990             sal_Int32 		   expVal = 2;
991             ::rtl::OStringBuffer   aStrBuf( kNonSInt32Max );
992             sal_Int32              input = -1;
993 
994             aStrBuf.ensureCapacity( input );
995 
996             CPPUNIT_ASSERT_MESSAGE
997             (
998                 "capacity equal to -2147483648, minimum is -1",
999                 aStrBuf.getCapacity() == expVal
1000             );
1001 
1002         }
1003 
ensureCapacity_021()1004         void ensureCapacity_021()
1005         {
1006             sal_Int32 		   expVal = 2;
1007             ::rtl::OStringBuffer   aStrBuf( kNonSInt32Max );
1008             sal_Int32              input = 0;
1009 
1010             aStrBuf.ensureCapacity( input );
1011 
1012             CPPUNIT_ASSERT_MESSAGE
1013             (
1014                 "capacity equal to -2147483648, minimum is 0",
1015                 aStrBuf.getCapacity() == expVal
1016             );
1017 
1018         }
1019 
ensureCapacity_022()1020         void ensureCapacity_022()
1021         {
1022             sal_Int32 		   expVal = kNonSInt32Max;
1023             ::rtl::OStringBuffer   aStrBuf( kNonSInt32Max );
1024             sal_Int32              input = kNonSInt32Max;
1025 
1026             aStrBuf.ensureCapacity( input );
1027 
1028             CPPUNIT_ASSERT_MESSAGE
1029             (
1030                 "capacity equal to -2147483648, minimum is -2147483648",
1031                 aStrBuf.getCapacity() == expVal
1032             );
1033 
1034         }
1035 
1036         CPPUNIT_TEST_SUITE( ensureCapacity );
1037         CPPUNIT_TEST( ensureCapacity_001 );
1038         CPPUNIT_TEST( ensureCapacity_002 );
1039         CPPUNIT_TEST( ensureCapacity_003 );
1040         CPPUNIT_TEST( ensureCapacity_004 );
1041         CPPUNIT_TEST( ensureCapacity_005 );
1042         CPPUNIT_TEST( ensureCapacity_006 );
1043         CPPUNIT_TEST( ensureCapacity_007 );
1044         CPPUNIT_TEST( ensureCapacity_008 );
1045         CPPUNIT_TEST( ensureCapacity_009 );
1046         CPPUNIT_TEST( ensureCapacity_010 );
1047         CPPUNIT_TEST( ensureCapacity_011 );
1048         CPPUNIT_TEST( ensureCapacity_012 );
1049 #ifdef WITH_CORE
1050         CPPUNIT_TEST( ensureCapacity_013 );
1051         CPPUNIT_TEST( ensureCapacity_014 );
1052         CPPUNIT_TEST( ensureCapacity_015 );
1053         CPPUNIT_TEST( ensureCapacity_016 );
1054         CPPUNIT_TEST( ensureCapacity_017 );
1055 #endif
1056         CPPUNIT_TEST( ensureCapacity_018 );
1057 #ifdef WITH_CORE
1058         CPPUNIT_TEST( ensureCapacity_019 );
1059 #endif
1060         CPPUNIT_TEST( ensureCapacity_020 );
1061         CPPUNIT_TEST( ensureCapacity_021 );
1062         CPPUNIT_TEST( ensureCapacity_022 );
1063         CPPUNIT_TEST_SUITE_END();
1064     };
1065 
1066 // -----------------------------------------------------------------------------
1067 
1068     class  setLength : public CppUnit::TestFixture
1069     {
1070         OString* arrOUS[6];
1071 
1072     public:
setUp()1073         void setUp()
1074         {
1075             arrOUS[0] = new OString( kTestStr1 );
1076             arrOUS[1] = new OString( "1" );
1077             arrOUS[2] = new OString( );
1078             arrOUS[3] = new OString( "" );
1079             arrOUS[4] = new OString( "\0" );
1080             arrOUS[5] = new OString( kTestStr2 );
1081 
1082         }
1083 
tearDown()1084         void tearDown()
1085         {
1086             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
1087             delete arrOUS[3]; delete arrOUS[4]; delete arrOUS[5];
1088         }
1089 
setLength_001()1090         void setLength_001()
1091         {
1092             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
1093             sal_Int32              expVal1 = 50;
1094             ::rtl::OString         expVal2( kTestStr1 );
1095             sal_Int32              expVal3 = 50;
1096             sal_Int32              input   = 50;
1097 
1098             aStrBuf.setLength( input );
1099 
1100             CPPUNIT_ASSERT_MESSAGE
1101             (
1102                 "newLength more than the capacity of OStringBuffer(kTestStr1)",
1103                 aStrBuf.getStr() == expVal2 &&
1104                     aStrBuf.getLength() == expVal1 &&
1105                     aStrBuf.getCapacity() == expVal3
1106             );
1107 
1108         }
1109 
setLength_002()1110         void setLength_002()
1111         {
1112             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
1113             sal_Int32              expVal1 = kTestStr13Len;
1114             ::rtl::OString         expVal2( kTestStr1 );
1115             sal_Int32              expVal3 = 32;
1116             sal_Int32              input   = kTestStr13Len;
1117 
1118             aStrBuf.setLength( input );
1119 
1120             CPPUNIT_ASSERT_MESSAGE
1121             (
1122                 "newLength more than the length of OStringBuffer(kTestStr1)",
1123                 aStrBuf.getStr() == expVal2 &&
1124                     aStrBuf.getLength() == expVal1 &&
1125                     aStrBuf.getCapacity() == expVal3
1126             );
1127 
1128         }
1129 
setLength_003()1130         void setLength_003()
1131         {
1132             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
1133             sal_Int32              expVal1 = kTestStr1Len;
1134             ::rtl::OString         expVal2( kTestStr1 );
1135             sal_Int32              expVal3 = 32;
1136             sal_Int32              input   = kTestStr1Len;
1137 
1138             aStrBuf.setLength( input );
1139 
1140             CPPUNIT_ASSERT_MESSAGE
1141             (
1142                 "newLength equal to the length of OStringBuffer(kTestStr1)",
1143                 aStrBuf.getStr() == expVal2 &&
1144                     aStrBuf.getLength() == expVal1 &&
1145                     aStrBuf.getCapacity() == expVal3
1146             );
1147 
1148         }
1149 
setLength_004()1150         void setLength_004()
1151         {
1152             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
1153             sal_Int32              expVal1 = kTestStr7Len;
1154             ::rtl::OString         expVal2( kTestStr7 );
1155             sal_Int32              expVal3 = 32;
1156             sal_Int32              input   = kTestStr7Len;
1157 
1158             aStrBuf.setLength( input );
1159 
1160             CPPUNIT_ASSERT_MESSAGE
1161             (
1162                 "newLength less than the length of OStringBuffer(kTestStr1)",
1163                 aStrBuf.getStr() == expVal2 &&
1164                     aStrBuf.getLength() == expVal1 &&
1165                     aStrBuf.getCapacity() == expVal3
1166             );
1167 
1168         }
1169 
setLength_005()1170         void setLength_005()
1171         {
1172             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
1173             sal_Int32              expVal1 = 0;
1174             ::rtl::OString         expVal2;
1175             sal_Int32              expVal3 = 32;
1176             sal_Int32              input   = 0;
1177 
1178             aStrBuf.setLength( input );
1179 
1180             CPPUNIT_ASSERT_MESSAGE
1181             (
1182                 "newLength equal to 0",
1183                 aStrBuf.getStr() == expVal2 &&
1184                     aStrBuf.getLength() == expVal1 &&
1185                     aStrBuf.getCapacity() == expVal3
1186             );
1187 
1188         }
1189 
setLength_006()1190         void setLength_006()
1191         {
1192             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
1193             sal_Int32              expVal1 = 25;
1194             ::rtl::OString         expVal2( *arrOUS[1] );
1195             sal_Int32              expVal3 = 25;
1196             sal_Int32              input   = 25;
1197 
1198             aStrBuf.setLength( input );
1199 
1200             CPPUNIT_ASSERT_MESSAGE
1201             (
1202                 "newLength more than the capacity of OStringBuffer(1)",
1203                 aStrBuf.getStr() == expVal2 &&
1204                     aStrBuf.getLength() == expVal1 &&
1205                     aStrBuf.getCapacity() == expVal3
1206             );
1207 
1208         }
1209 
setLength_007()1210         void setLength_007()
1211         {
1212             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
1213             sal_Int32              expVal1 = kTestStr27Len;
1214             ::rtl::OString         expVal2( *arrOUS[1] );
1215             sal_Int32              expVal3 = 17;
1216             sal_Int32              input   = kTestStr27Len;
1217 
1218             aStrBuf.setLength( input );
1219 
1220             CPPUNIT_ASSERT_MESSAGE
1221             (
1222                 "newLength equal to the length of OStringBuffer(1)",
1223                 aStrBuf.getStr() == expVal2 &&
1224                     aStrBuf.getLength() == expVal1 &&
1225                     aStrBuf.getCapacity() == expVal3
1226             );
1227 
1228         }
1229 
setLength_008()1230         void setLength_008()
1231         {
1232             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
1233             sal_Int32              expVal1 = 0;
1234             ::rtl::OString         expVal2;
1235             sal_Int32              expVal3 = 17;
1236             sal_Int32              input   = 0;
1237 
1238             aStrBuf.setLength( input );
1239 
1240             CPPUNIT_ASSERT_MESSAGE
1241             (
1242                 "newLength less than the length of OUStringBuffer(1)",
1243                 aStrBuf.getStr() == expVal2 &&
1244                     aStrBuf.getLength() == expVal1 &&
1245                     aStrBuf.getCapacity() == expVal3
1246             );
1247 
1248         }
1249 
setLength_009()1250         void setLength_009()
1251         {
1252             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
1253             sal_Int32              expVal1 = 20;
1254             ::rtl::OString         expVal2;
1255             sal_Int32              expVal3 = 20;
1256             sal_Int32              input   = 20;
1257 
1258             aStrBuf.setLength( input );
1259 
1260             CPPUNIT_ASSERT_MESSAGE
1261             (
1262                 "newLength more than the capacity of OStringBuffer()",
1263                 aStrBuf.getStr() == expVal2 &&
1264                     aStrBuf.getLength() == expVal1 &&
1265                     aStrBuf.getCapacity() == expVal3
1266             );
1267 
1268         }
1269 
setLength_010()1270         void setLength_010()
1271         {
1272             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
1273             sal_Int32              expVal1 = 3;
1274             ::rtl::OString         expVal2;
1275             sal_Int32              expVal3 = 16;
1276             sal_Int32              input   = 3;
1277 
1278             aStrBuf.setLength( input );
1279 
1280             CPPUNIT_ASSERT_MESSAGE
1281             (
1282                 "newLength more than the length of OStringBuffer()",
1283                 aStrBuf.getStr() == expVal2 &&
1284                     aStrBuf.getLength() == expVal1 &&
1285                     aStrBuf.getCapacity() == expVal3
1286             );
1287 
1288         }
1289 
setLength_011()1290         void setLength_011()
1291         {
1292             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
1293             sal_Int32              expVal1 = 0;
1294             ::rtl::OString         expVal2;
1295             sal_Int32              expVal3 = 16;
1296             sal_Int32              input   = 0;
1297 
1298             aStrBuf.setLength( input );
1299 
1300             CPPUNIT_ASSERT_MESSAGE
1301             (
1302                 "newLength more than the length of OStringBuffer()",
1303                 aStrBuf.getStr() == expVal2 &&
1304                     aStrBuf.getLength() == expVal1 &&
1305                     aStrBuf.getCapacity() == expVal3
1306             );
1307 
1308         }
1309 
setLength_012()1310         void setLength_012()
1311         {
1312             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
1313             sal_Int32              expVal1 = 20;
1314             ::rtl::OString         expVal2;
1315             sal_Int32              expVal3 = 20;
1316             sal_Int32              input   = 20;
1317 
1318             aStrBuf.setLength( input );
1319 
1320             CPPUNIT_ASSERT_MESSAGE
1321             (
1322                 "newLength more than the capacity of OStringBuffer("")",
1323                 aStrBuf.getStr() == expVal2 &&
1324                     aStrBuf.getLength() == expVal1 &&
1325                     aStrBuf.getCapacity() == expVal3
1326             );
1327 
1328         }
1329 
setLength_013()1330         void setLength_013()
1331         {
1332             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
1333             sal_Int32              expVal1 = 5;
1334             ::rtl::OString         expVal2;
1335             sal_Int32              expVal3 = 16;
1336             sal_Int32              input   = 5;
1337 
1338             aStrBuf.setLength( input );
1339 
1340             CPPUNIT_ASSERT_MESSAGE
1341             (
1342                 "newLength more than the length of OStringBuffer("")",
1343                 aStrBuf.getStr() == expVal2 &&
1344                     aStrBuf.getLength() == expVal1 &&
1345                     aStrBuf.getCapacity() == expVal3
1346             );
1347 
1348         }
1349 
setLength_014()1350         void setLength_014()
1351         {
1352             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
1353             sal_Int32              expVal1 = 0;
1354             ::rtl::OString         expVal2;
1355             sal_Int32              expVal3 = 16;
1356             sal_Int32              input   = 0;
1357 
1358             aStrBuf.setLength( input );
1359 
1360             CPPUNIT_ASSERT_MESSAGE
1361             (
1362                 "newLength less than the length of OStringBuffer("")",
1363                 aStrBuf.getStr() == expVal2 &&
1364                     aStrBuf.getLength() == expVal1 &&
1365                     aStrBuf.getCapacity() == expVal3
1366             );
1367 
1368         }
1369 
setLength_015()1370         void setLength_015()
1371         {
1372             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
1373             sal_Int32              expVal1 = 20;
1374             ::rtl::OString         expVal2;
1375             sal_Int32              expVal3 = 20;
1376             sal_Int32              input   = 20;
1377 
1378             aStrBuf.setLength( input );
1379 
1380             CPPUNIT_ASSERT_MESSAGE
1381             (
1382                 "newLength more than the length of OStringBuffer(\0)",
1383                 aStrBuf.getStr() == expVal2 &&
1384                     aStrBuf.getLength() == expVal1 &&
1385                     aStrBuf.getCapacity() == expVal3
1386             );
1387 
1388         }
1389 
setLength_016()1390         void setLength_016()
1391         {
1392             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
1393             sal_Int32              expVal1 = 5;
1394             ::rtl::OString         expVal2;
1395             sal_Int32              expVal3 = 16;
1396             sal_Int32              input   = 5;
1397 
1398             aStrBuf.setLength( input );
1399 
1400             CPPUNIT_ASSERT_MESSAGE
1401             (
1402                 "newLength more than the length of OStringBuffer(\0)",
1403                 aStrBuf.getStr() == expVal2 &&
1404                     aStrBuf.getLength() == expVal1 &&
1405                     aStrBuf.getCapacity() == expVal3
1406             );
1407 
1408         }
1409 
setLength_017()1410         void setLength_017()
1411         {
1412             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
1413             sal_Int32              expVal1 = 0;
1414             ::rtl::OString         expVal2;
1415             sal_Int32              expVal3 = 16;
1416             sal_Int32              input   = 0;
1417 
1418             aStrBuf.setLength( input );
1419 
1420             CPPUNIT_ASSERT_MESSAGE
1421             (
1422                 "newLength less than the length of OStringBuffer(\0)",
1423                 aStrBuf.getStr() == expVal2 &&
1424                     aStrBuf.getLength() == expVal1 &&
1425                     aStrBuf.getCapacity() == expVal3
1426             );
1427 
1428         }
1429 
setLength_018()1430         void setLength_018()
1431         {
1432             ::rtl::OStringBuffer   aStrBuf( *arrOUS[5] );
1433             sal_Int32              expVal1 = 50;
1434             ::rtl::OString         expVal2( kTestStr2 );
1435             sal_Int32              expVal3 = 66;
1436             sal_Int32              input   = 50;
1437 
1438             aStrBuf.setLength( input );
1439 
1440             CPPUNIT_ASSERT_MESSAGE
1441             (
1442                 "newLength more than the capacity of OStringBuffer(kTestStr2)",
1443                 aStrBuf.getStr() == expVal2 &&
1444                     aStrBuf.getLength() == expVal1 &&
1445                     aStrBuf.getCapacity() == expVal3
1446             );
1447 
1448         }
1449 
setLength_019()1450         void setLength_019()
1451         {
1452             ::rtl::OStringBuffer   aStrBuf( *arrOUS[5] );
1453             sal_Int32              expVal1 = 40;
1454             ::rtl::OString         expVal2(kTestStr2);
1455             sal_Int32              expVal3 = 48;
1456             sal_Int32              input   = 40;
1457 
1458             aStrBuf.setLength( input );
1459 
1460             CPPUNIT_ASSERT_MESSAGE
1461             (
1462                 "newLength more than the length of OStringBuffer(kTestStr2)",
1463                 aStrBuf.getStr() == expVal2 &&
1464                     aStrBuf.getLength() == expVal1 &&
1465                     aStrBuf.getCapacity() == expVal3
1466             );
1467 
1468         }
1469 
setLength_020()1470         void setLength_020()
1471         {
1472             ::rtl::OStringBuffer   aStrBuf( *arrOUS[5] );
1473             sal_Int32              expVal1 = kTestStr2Len;
1474             ::rtl::OString         expVal2(kTestStr2);
1475             sal_Int32              expVal3 = 48;
1476             sal_Int32              input   = kTestStr2Len;
1477 
1478             aStrBuf.setLength( input );
1479 
1480             CPPUNIT_ASSERT_MESSAGE
1481             (
1482                 "newLength equal to the length of OUStringBuffer(kTestStr2)",
1483                 aStrBuf.getStr() == expVal2 &&
1484                     aStrBuf.getLength() == expVal1 &&
1485                     aStrBuf.getCapacity() == expVal3
1486             );
1487 
1488         }
1489 
setLength_021()1490         void setLength_021()
1491         {
1492             ::rtl::OStringBuffer   aStrBuf( *arrOUS[5] );
1493             sal_Int32              expVal1 = kTestStr7Len;
1494             ::rtl::OString         expVal2(kTestStr7);
1495             sal_Int32              expVal3 = 48;
1496             sal_Int32              input   = kTestStr7Len;
1497 
1498             aStrBuf.setLength( input );
1499 
1500             CPPUNIT_ASSERT_MESSAGE
1501             (
1502                 "newLength less than the length of OUStringBuffer(TestStr2)",
1503                 aStrBuf.getStr() == expVal2 &&
1504                     aStrBuf.getLength() == expVal1 &&
1505                     aStrBuf.getCapacity() == expVal3
1506             );
1507 
1508         }
1509 
setLength_022()1510         void setLength_022()
1511         {
1512             ::rtl::OStringBuffer   aStrBuf( *arrOUS[5] );
1513             sal_Int32              expVal1 = 0;
1514             ::rtl::OString         expVal2;
1515             sal_Int32              expVal3 = 48;
1516             sal_Int32              input   = 0;
1517 
1518             aStrBuf.setLength( input );
1519 
1520             CPPUNIT_ASSERT_MESSAGE
1521             (
1522                 "newLength equal to 0",
1523                 aStrBuf.getStr() == expVal2 &&
1524                     aStrBuf.getLength() == expVal1 &&
1525                     aStrBuf.getCapacity() == expVal3
1526             );
1527 
1528         }
1529 
1530 
1531 
1532         CPPUNIT_TEST_SUITE( setLength );
1533         CPPUNIT_TEST( setLength_001 );
1534         CPPUNIT_TEST( setLength_002 );
1535         CPPUNIT_TEST( setLength_003 );
1536         CPPUNIT_TEST( setLength_004 );
1537         CPPUNIT_TEST( setLength_005 );
1538         CPPUNIT_TEST( setLength_006 );
1539         CPPUNIT_TEST( setLength_007 );
1540         CPPUNIT_TEST( setLength_008 );
1541         CPPUNIT_TEST( setLength_009 );
1542         CPPUNIT_TEST( setLength_010 );
1543         CPPUNIT_TEST( setLength_011 );
1544         CPPUNIT_TEST( setLength_012 );
1545         CPPUNIT_TEST( setLength_013 );
1546         CPPUNIT_TEST( setLength_014 );
1547         CPPUNIT_TEST( setLength_015 );
1548         CPPUNIT_TEST( setLength_016 );
1549         CPPUNIT_TEST( setLength_017 );
1550         CPPUNIT_TEST( setLength_018 );
1551         CPPUNIT_TEST( setLength_019 );
1552         CPPUNIT_TEST( setLength_020 );
1553         CPPUNIT_TEST( setLength_021 );
1554         CPPUNIT_TEST( setLength_022 );
1555         CPPUNIT_TEST_SUITE_END();
1556     };
1557 
1558 // -----------------------------------------------------------------------------
1559 
1560     class  charAt : public CppUnit::TestFixture
1561     {
1562         OString* arrOUS[4];
1563 
1564     public:
setUp()1565         void setUp()
1566         {
1567             arrOUS[0] = new OString( kTestStr1 );
1568             arrOUS[1] = new OString( kTestStr27 );
1569             arrOUS[2] = new OString( kTestStr28 );
1570             arrOUS[3] = new OString(  );
1571 
1572         }
1573 
tearDown()1574         void tearDown()
1575         {
1576             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
1577             delete arrOUS[3];
1578         }
1579 
charAt_001()1580         void charAt_001()
1581         {
1582             sal_Unicode            expVal = 83;
1583             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
1584             sal_Int32              input = 0;
1585 
1586             CPPUNIT_ASSERT_MESSAGE
1587             (
1588                 "return the first character of OStringBuffer(kTestStr1)",
1589                 aStrBuf.charAt(input) == expVal
1590             );
1591 
1592         }
1593 
charAt_002()1594         void charAt_002()
1595         {
1596             sal_Unicode            expVal = 32;
1597             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
1598             sal_Int32              input = 3;
1599 
1600             CPPUNIT_ASSERT_MESSAGE
1601             (
1602                 "return the middle character of OStringBuffer(kTestStr1)",
1603                 aStrBuf.charAt(input) == expVal
1604             );
1605 
1606         }
1607 
charAt_003()1608         void charAt_003()
1609         {
1610             sal_Unicode            expVal = 115;
1611             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
1612             sal_Int32              input = 15;
1613 
1614             CPPUNIT_ASSERT_MESSAGE
1615             (
1616                 "return the last character of OStringBuffer(kTestStr1)",
1617                 aStrBuf.charAt(input) == expVal
1618             );
1619 
1620         }
1621 
charAt_004()1622         void charAt_004()
1623         {
1624             sal_Unicode            expVal = 115;
1625             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
1626             sal_Int32              input = 0;
1627 
1628             CPPUNIT_ASSERT_MESSAGE
1629             (
1630                 "return the only character of OStringBuffer(kTestStr27)",
1631                 aStrBuf.charAt(input) == expVal
1632             );
1633 
1634         }
1635 
charAt_005()1636         void charAt_005()
1637         {
1638             sal_Unicode            expVal = 40;
1639             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
1640             sal_Int32              input = 0;
1641 
1642             CPPUNIT_ASSERT_MESSAGE
1643             (
1644                 "return the first of OStringBuffer(kTestStr28) with special character",
1645                 aStrBuf.charAt(input) == expVal
1646             );
1647 
1648         }
1649 
charAt_006()1650         void charAt_006()
1651         {
1652             sal_Unicode            expVal = 11;
1653             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
1654             sal_Int32              input = 5;
1655 
1656             CPPUNIT_ASSERT_MESSAGE
1657             (
1658                 "return the mid of OStringBuffer(kTestStr28) with special character",
1659                 aStrBuf.charAt(input) == expVal
1660             );
1661 
1662         }
1663 
charAt_007()1664         void charAt_007()
1665         {
1666             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
1667 
1668             CPPUNIT_ASSERT_MESSAGE
1669             (
1670                 "invalid character of OStringBuffer()",
1671                 sal_True
1672             );
1673 
1674         }
1675 
charAt_008()1676         void charAt_008()
1677         {
1678             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
1679 
1680             CPPUNIT_ASSERT_MESSAGE
1681             (
1682                 "invalid character of OStringBuffer()",
1683                 sal_True
1684             );
1685 
1686         }
1687 
1688         CPPUNIT_TEST_SUITE( charAt );
1689         CPPUNIT_TEST( charAt_001 );
1690         CPPUNIT_TEST( charAt_002 );
1691         CPPUNIT_TEST( charAt_003 );
1692         CPPUNIT_TEST( charAt_004 );
1693         CPPUNIT_TEST( charAt_005 );
1694         CPPUNIT_TEST( charAt_006 );
1695         CPPUNIT_TEST( charAt_007 );
1696         CPPUNIT_TEST( charAt_008 );
1697         CPPUNIT_TEST_SUITE_END();
1698     };
1699 // -----------------------------------------------------------------------------
1700 
1701 
1702     class  csuc : public CppUnit::TestFixture
1703     {
csuc_001()1704         void csuc_001()
1705         {
1706             const sal_Char*        expVal = kTestStr1;
1707             ::rtl::OStringBuffer   aStrBuf( kTestStr1 );
1708             sal_Int32              cmpLen = kTestStr1Len;
1709 
1710             // LLA: wrong access! const sal_Char* pstr = *&aStrBuf;
1711             const sal_Char* pstr = aStrBuf.getStr();
1712             int nEqual = strncmp(pstr, expVal, cmpLen);
1713 
1714             CPPUNIT_ASSERT_MESSAGE
1715             (
1716                 "test normal string",
1717                 /* cmpstr( pstr, expVal, cmpLen ) */
1718                 nEqual == 0
1719             );
1720 
1721         }
1722 
csuc_002()1723         void csuc_002()
1724         {
1725             ::rtl::OStringBuffer   aStrBuf;
1726 
1727             // LLA: wrong access! const sal_Char* pstr = *&aStrBuf;
1728             const sal_Char* pstr = aStrBuf.getStr();
1729             sal_Int32 nLen = strlen(pstr);
1730 
1731             CPPUNIT_ASSERT_MESSAGE
1732             (
1733                 "test empty string",
1734                 // cmpstr( pstr, &expVal, cmpLen )
1735                 nLen == 0
1736                 );
1737 
1738         }
1739 
1740 
1741         CPPUNIT_TEST_SUITE( csuc );
1742         CPPUNIT_TEST( csuc_001 );
1743         CPPUNIT_TEST( csuc_002 );
1744         CPPUNIT_TEST_SUITE_END();
1745     };
1746 
1747 
1748 // -----------------------------------------------------------------------------
1749 
1750     class  getStr : public CppUnit::TestFixture
1751     {
getStr_001()1752         void getStr_001()
1753         {
1754             const sal_Char*        expVal = kTestStr1;
1755             ::rtl::OStringBuffer   aStrBuf( kTestStr1 );
1756             sal_Int32              cmpLen = kTestStr1Len;
1757 
1758             const sal_Char* pstr = aStrBuf.getStr();
1759             int nEqual = strncmp(pstr, expVal, cmpLen);
1760 
1761             CPPUNIT_ASSERT_MESSAGE
1762             (
1763                 "test normal string",
1764                 nEqual == 0
1765             );
1766 
1767         }
1768 
getStr_002()1769         void getStr_002()
1770         {
1771             // const sal_Char         tmpUC=0x0;
1772             // const sal_Char*        expVal=&tmpUC;
1773             ::rtl::OStringBuffer   aStrBuf;
1774             // sal_Int32              cmpLen = 1;
1775 
1776             const sal_Char* pstr = aStrBuf.getStr();
1777             sal_Int32 nLen = strlen(pstr);
1778 
1779             CPPUNIT_ASSERT_MESSAGE
1780             (
1781                 "test empty string",
1782                 pstr != 0 &&
1783                 nLen == 0
1784             );
1785 
1786         }
1787 
1788 
1789         CPPUNIT_TEST_SUITE( getStr );
1790         CPPUNIT_TEST( getStr_001 );
1791         CPPUNIT_TEST( getStr_002 );
1792         CPPUNIT_TEST_SUITE_END();
1793     };
1794 
1795 // -----------------------------------------------------------------------------
1796 
1797     class  setCharAt : public CppUnit::TestFixture
1798     {
1799         OString* arrOUS[4];
1800 
1801     public:
setUp()1802         void setUp()
1803         {
1804             arrOUS[0] = new OString( kTestStr1 );
1805             arrOUS[1] = new OString( kTestStr27 );
1806             arrOUS[2] = new OString( kTestStr28 );
1807             arrOUS[3] = new OString(  );
1808 
1809         }
1810 
tearDown()1811         void tearDown()
1812         {
1813             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
1814             delete arrOUS[3];
1815         }
1816 
setCharAt_001()1817         void setCharAt_001()
1818         {
1819             OString                expVal( kTestStr31 );
1820             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
1821             sal_Int32              input1 = 0;
1822             sal_Char               input2 = 's';
1823 
1824             CPPUNIT_ASSERT_MESSAGE
1825             (
1826                 "set the first character of OStringBuffer(kTestStr1) with s",
1827                 (aStrBuf.setCharAt(input1, input2)).getStr() == expVal
1828             );
1829 
1830         }
1831 
setCharAt_002()1832         void setCharAt_002()
1833         {
1834             OString                expVal( kTestStr3 );
1835             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
1836             sal_Int32              input1 = 4;
1837             sal_Char               input2 = 'm';
1838 
1839             CPPUNIT_ASSERT_MESSAGE
1840             (
1841                 "set the middle character of OStringBuffer(kTestStr1) with m",
1842                 (aStrBuf.setCharAt(input1, input2)).getStr() == expVal
1843             );
1844 
1845         }
1846 
setCharAt_003()1847         void setCharAt_003()
1848         {
1849             OString                expVal( kTestStr32 );
1850             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
1851             sal_Int32              input1 = 15;
1852             sal_Char               input2 = ' ';
1853 
1854             CPPUNIT_ASSERT_MESSAGE
1855             (
1856                 "set the last character of OStringBuffer(kTestStr1) with ' '",
1857                 (aStrBuf.setCharAt(input1, input2)).getStr() == expVal
1858             );
1859 
1860         }
1861 
1862 
setCharAt_004()1863         void setCharAt_004()
1864         {
1865             OString                expVal( kTestStr33 );
1866             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
1867             sal_Int32              input1 = 0;
1868             sal_Char               input2 = ' ';
1869 
1870             CPPUNIT_ASSERT_MESSAGE
1871             (
1872                 "set the only character of OStringBuffer(kTestStr27) with ' '",
1873                 (aStrBuf.setCharAt(input1, input2)).getStr() == expVal
1874             );
1875 
1876         }
1877 
1878 
setCharAt_005()1879         void setCharAt_005()
1880         {
1881             OString                expVal( kTestStr34 );
1882             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
1883             sal_Int32              input1 = 1;
1884             sal_Char               input2 = (sal_Char)5;
1885 
1886             CPPUNIT_ASSERT_MESSAGE
1887             (
1888                 "set the only of OStringBuffer(kTestStr28) with special character",
1889                 (aStrBuf.setCharAt(input1, input2)).getStr() == expVal
1890             );
1891 
1892         }
1893 
setCharAt_006()1894         void setCharAt_006()
1895         {
1896             OString                expVal( kTestStr35 );
1897             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
1898             sal_Int32              input1 = 1;
1899             sal_Char               input2 = (sal_Char)-5;
1900 
1901             CPPUNIT_ASSERT_MESSAGE
1902             (
1903                 "set the only of OStringBuffer(kTestStr28) with special character",
1904                 (aStrBuf.setCharAt(input1, input2)).getStr() == expVal
1905             );
1906 
1907         }
1908 #ifdef WITH_CORE
setCharAt_007()1909         void setCharAt_007()
1910         {
1911             OString*               expVal = 0;
1912             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
1913             sal_Int32              input1 = 0;
1914             sal_Char               input2 = (sal_Char)5;
1915 
1916             CPPUNIT_ASSERT_MESSAGE
1917             (
1918                 "invalid character of OStringBuffer()",
1919                 sal_True
1920             );
1921 
1922             delete expVal;
1923 
1924         }
1925 
setCharAt_008()1926         void setCharAt_008()
1927         {
1928             OString*               expVal = 0;
1929             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
1930             sal_Int32              input1 = -2;
1931             sal_Char               input2 = (sal_Char)5;
1932 
1933             CPPUNIT_ASSERT_MESSAGE
1934             (
1935                 "invalid character of OStringBuffer()",
1936                 sal_True
1937             );
1938 
1939             delete expVal;
1940 
1941         }
1942 
setCharAt_009()1943         void setCharAt_009()
1944         {
1945             OString*               expVal = 0;
1946             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
1947             sal_Int32              input1 = 3;
1948             sal_Char               input2 = (sal_Char)5;
1949 
1950             CPPUNIT_ASSERT_MESSAGE
1951             (
1952                 "invalid character of OStringBuffer()",
1953                 sal_True
1954             );
1955 
1956             delete expVal;
1957 
1958         }
1959 #endif
1960         CPPUNIT_TEST_SUITE( setCharAt );
1961         CPPUNIT_TEST( setCharAt_001 );
1962         CPPUNIT_TEST( setCharAt_002 );
1963         CPPUNIT_TEST( setCharAt_003 );
1964         CPPUNIT_TEST( setCharAt_004 );
1965         CPPUNIT_TEST( setCharAt_005 );
1966         CPPUNIT_TEST( setCharAt_006 );
1967 #ifdef WITH_CORE
1968         CPPUNIT_TEST( setCharAt_007 );
1969         CPPUNIT_TEST( setCharAt_008 );
1970         CPPUNIT_TEST( setCharAt_009 );
1971 #endif
1972         CPPUNIT_TEST_SUITE_END();
1973     };
1974 
1975 // -----------------------------------------------------------------------------
1976 
1977     class  append_001 : public CppUnit::TestFixture
1978     {
1979         OString* arrOUS[5];
1980 
1981     public:
setUp()1982         void setUp()
1983         {
1984             arrOUS[0] = new OString( kTestStr7 );
1985             arrOUS[1] = new OString(  );
1986             arrOUS[2] = new OString( kTestStr25 );
1987             arrOUS[3] = new OString( "\0"  );
1988             arrOUS[4] = new OString( kTestStr28 );
1989 
1990         }
1991 
tearDown()1992         void tearDown()
1993         {
1994             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
1995             delete arrOUS[3]; delete arrOUS[4];
1996         }
1997 
append_001_001()1998         void append_001_001()
1999         {
2000             OString                expVal( kTestStr1 );
2001             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
2002             OString                input2( kTestStr8 );
2003 
2004             aStrBuf.append( input2 );
2005 
2006             CPPUNIT_ASSERT_MESSAGE
2007             (
2008                 "Appends the string(length less than 16) to the string buffer arrOUS[0]",
2009                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2010             );
2011 
2012         }
2013 
append_001_002()2014         void append_001_002()
2015         {
2016             OString                expVal( kTestStr2 );
2017             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
2018             OString                input2( kTestStr36 );
2019 
2020             aStrBuf.append( input2 );
2021 
2022             CPPUNIT_ASSERT_MESSAGE
2023             (
2024                 "Appends the string(length more than 16) to the string buffer arrOUS[0]",
2025                 aStrBuf.getStr()== expVal &&
2026                     aStrBuf.getLength() == expVal.getLength()
2027             );
2028 
2029         }
2030 
append_001_003()2031         void append_001_003()
2032         {
2033             OString                expVal( kTestStr37 );
2034             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
2035             OString                input2( kTestStr23 );
2036 
2037             aStrBuf.append( input2 );
2038 
2039             CPPUNIT_ASSERT_MESSAGE
2040             (
2041                 "Appends the string(length equal to 16) to the string buffer arrOUS[0]",
2042                 aStrBuf.getStr()== expVal &&
2043                     aStrBuf.getLength() == expVal.getLength()
2044             );
2045 
2046         }
2047 
append_001_004()2048         void append_001_004()
2049         {
2050             OString                expVal( kTestStr7 );
2051             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
2052             OString                input2;
2053 
2054             aStrBuf.append( input2 );
2055 
2056             CPPUNIT_ASSERT_MESSAGE
2057             (
2058                 "Appends the string(length equal to 0) to the string buffer arrOUS[0]",
2059                 aStrBuf.getStr()== expVal &&
2060                     aStrBuf.getLength() == expVal.getLength()
2061             );
2062 
2063         }
2064 
append_001_005()2065         void append_001_005()
2066         {
2067             OString                expVal( kTestStr7 );
2068             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
2069             OString                input2( kTestStr7 );
2070 
2071             aStrBuf.append( input2 );
2072 
2073             CPPUNIT_ASSERT_MESSAGE
2074             (
2075                 "Appends the string(length less than 16) to the string buffer arrOUS[1]",
2076                 aStrBuf.getStr()== expVal &&
2077                     aStrBuf.getLength() == expVal.getLength()
2078             );
2079 
2080         }
2081 
append_001_006()2082         void append_001_006()
2083         {
2084             OString                expVal( kTestStr2 );
2085             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
2086             OString                input2( kTestStr2 );
2087 
2088             aStrBuf.append( input2 );
2089 
2090             CPPUNIT_ASSERT_MESSAGE
2091             (
2092                 "Appends the string(length more than 16) to the string buffer arrOUS[1]",
2093                 aStrBuf.getStr()== expVal &&
2094                     aStrBuf.getLength() == expVal.getLength()
2095             );
2096 
2097         }
2098 
append_001_007()2099         void append_001_007()
2100         {
2101             OString                expVal( kTestStr1 );
2102             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
2103             OString                input2( kTestStr1 );
2104 
2105             aStrBuf.append( input2 );
2106 
2107             CPPUNIT_ASSERT_MESSAGE
2108             (
2109                 "Appends the string(length equal to 16) to the string buffer arrOUS[1]",
2110                 aStrBuf.getStr()== expVal &&
2111                     aStrBuf.getLength() == expVal.getLength()
2112             );
2113 
2114         }
2115 
append_001_008()2116         void append_001_008()
2117         {
2118             OString                expVal;
2119             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
2120             OString                input2;
2121 
2122             aStrBuf.append( input2 );
2123 
2124             CPPUNIT_ASSERT_MESSAGE
2125             (
2126                 "Appends the string(length equal to 0) to the string buffer arrOUS[1]",
2127                 aStrBuf.getStr()== expVal &&
2128                     aStrBuf.getLength() == expVal.getLength()
2129             );
2130 
2131         }
2132 
append_001_009()2133         void append_001_009()
2134         {
2135             OString                expVal( kTestStr7 );
2136             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
2137             OString                input2( kTestStr7 );
2138 
2139             aStrBuf.append( input2 );
2140 
2141             CPPUNIT_ASSERT_MESSAGE
2142             (
2143                 "Appends the string(length less than 16) to the string buffer arrOUS[2]",
2144                 aStrBuf.getStr()== expVal &&
2145                     aStrBuf.getLength() == expVal.getLength()
2146             );
2147 
2148         }
2149 
append_001_010()2150         void append_001_010()
2151         {
2152             OString                expVal( kTestStr2 );
2153             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
2154             OString                input2( kTestStr2 );
2155 
2156             aStrBuf.append( input2 );
2157 
2158             CPPUNIT_ASSERT_MESSAGE
2159             (
2160                 "Appends the string(length more than 16) to the string buffer arrOUS[2]",
2161                 aStrBuf.getStr()== expVal &&
2162                     aStrBuf.getLength() == expVal.getLength()
2163             );
2164 
2165         }
2166 
append_001_011()2167         void append_001_011()
2168         {
2169             OString                expVal( kTestStr1 );
2170             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
2171             OString                input2( kTestStr1 );
2172 
2173             aStrBuf.append( input2 );
2174 
2175             CPPUNIT_ASSERT_MESSAGE
2176             (
2177                 "Appends the string(length equal to 16) to the string buffer arrOUS[2]",
2178                 aStrBuf.getStr()== expVal &&
2179                     aStrBuf.getLength() == expVal.getLength()
2180             );
2181 
2182         }
2183 
append_001_012()2184         void append_001_012()
2185         {
2186             OString                expVal;
2187             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
2188             OString                input2;
2189 
2190             aStrBuf.append( input2 );
2191 
2192             CPPUNIT_ASSERT_MESSAGE
2193             (
2194                 "Appends the string(length equal to 0) to the string buffer arrOUS[2]",
2195                 aStrBuf.getStr()== expVal &&
2196                     aStrBuf.getLength() == expVal.getLength()
2197             );
2198 
2199         }
2200 
append_001_013()2201         void append_001_013()
2202         {
2203             OString                expVal( kTestStr7 );
2204             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
2205             OString                input2( kTestStr7 );
2206 
2207             aStrBuf.append( input2 );
2208 
2209             CPPUNIT_ASSERT_MESSAGE
2210             (
2211                 "Appends the string(length less than 16) to the string buffer arrOUS[3]",
2212                 aStrBuf.getStr()== expVal &&
2213                     aStrBuf.getLength() == expVal.getLength()
2214             );
2215 
2216         }
2217 
append_001_014()2218         void append_001_014()
2219         {
2220             OString                expVal( kTestStr2 );
2221             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
2222             OString                input2( kTestStr2 );
2223 
2224             aStrBuf.append( input2 );
2225 
2226             CPPUNIT_ASSERT_MESSAGE
2227             (
2228                 "Appends the string(length more than 16) to the string buffer arrOUS[3]",
2229                 aStrBuf.getStr()== expVal &&
2230                     aStrBuf.getLength() == expVal.getLength()
2231             );
2232 
2233         }
2234 
append_001_015()2235         void append_001_015()
2236         {
2237             OString                expVal( kTestStr1 );
2238             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
2239             OString                input2( kTestStr1 );
2240 
2241             aStrBuf.append( input2 );
2242 
2243             CPPUNIT_ASSERT_MESSAGE
2244             (
2245                 "Appends the string(length equal to 16) to the string buffer arrOUS[3]",
2246                 aStrBuf.getStr()== expVal &&
2247                     aStrBuf.getLength() == expVal.getLength()
2248             );
2249 
2250         }
2251 
append_001_016()2252         void append_001_016()
2253         {
2254             OString                expVal;
2255             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
2256             OString                input2;
2257 
2258             aStrBuf.append( input2 );
2259 
2260             CPPUNIT_ASSERT_MESSAGE
2261             (
2262                 "Appends the string(length equal to 0) to the string buffer arrOUS[3]",
2263                 aStrBuf.getStr()== expVal &&
2264                     aStrBuf.getLength() == expVal.getLength()
2265             );
2266 
2267         }
2268 
append_001_017()2269         void append_001_017()
2270         {
2271             OString                expVal( kTestStr29 );
2272             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
2273             OString                input2( kTestStr38 );
2274 
2275             aStrBuf.append( input2 );
2276 
2277             CPPUNIT_ASSERT_MESSAGE
2278             (
2279                 "Appends the string(length less than 16) to the string buffer arrOUS[4]",
2280                 aStrBuf.getStr()== expVal &&
2281                     aStrBuf.getLength() == expVal.getLength()
2282             );
2283 
2284         }
2285 
append_001_018()2286         void append_001_018()
2287         {
2288             OString                expVal( kTestStr39 );
2289             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
2290             OString                input2( kTestStr17 );
2291 
2292             aStrBuf.append( input2 );
2293 
2294             CPPUNIT_ASSERT_MESSAGE
2295             (
2296                 "Appends the string(length more than 16) to the string buffer arrOUS[4]",
2297                 aStrBuf.getStr()== expVal &&
2298                     aStrBuf.getLength() == expVal.getLength()
2299             );
2300 
2301         }
2302 
append_001_019()2303         void append_001_019()
2304         {
2305             OString                expVal( kTestStr40 );
2306             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
2307             OString                input2( kTestStr31 );
2308 
2309             aStrBuf.append( input2 );
2310 
2311             CPPUNIT_ASSERT_MESSAGE
2312             (
2313                 "Appends the string(length equal to 16) to the string buffer arrOUS[4]",
2314                 aStrBuf.getStr()== expVal &&
2315                     aStrBuf.getLength() == expVal.getLength()
2316             );
2317 
2318         }
2319 
append_001_020()2320         void append_001_020()
2321         {
2322             OString                expVal( kTestStr28 );
2323             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
2324             OString                input2;
2325 
2326             aStrBuf.append( input2 );
2327 
2328             CPPUNIT_ASSERT_MESSAGE
2329             (
2330                 "Appends the string(length equal to 0) to the string buffer arrOUS[4]",
2331                 aStrBuf.getStr()== expVal &&
2332                     aStrBuf.getLength() == expVal.getLength()
2333             );
2334 
2335         }
2336 
2337 #ifdef WITH_CORE
append_001_021()2338         void append_001_021()
2339         {
2340             OString                expVal;
2341             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
2342             OString                input2;
2343 
2344             aStrBuf.append( input2 );
2345 
2346             CPPUNIT_ASSERT_MESSAGE
2347             (
2348                 "Appends the string(length equal to 0) to the string buffer arrOUS[4]",
2349                 aStrBuf.getStr()== expVal &&
2350                     aStrBuf.getLength() == expVal.getLength()
2351             );
2352 
2353         }
2354 #endif
2355 
2356         CPPUNIT_TEST_SUITE( append_001 );
2357         CPPUNIT_TEST( append_001_001 );
2358         CPPUNIT_TEST( append_001_002 );
2359         CPPUNIT_TEST( append_001_003 );
2360         CPPUNIT_TEST( append_001_004 );
2361         CPPUNIT_TEST( append_001_005 );
2362         CPPUNIT_TEST( append_001_006 );
2363         CPPUNIT_TEST( append_001_007 );
2364         CPPUNIT_TEST( append_001_008 );
2365         CPPUNIT_TEST( append_001_009 );
2366         CPPUNIT_TEST( append_001_010 );
2367         CPPUNIT_TEST( append_001_011 );
2368         CPPUNIT_TEST( append_001_012 );
2369         CPPUNIT_TEST( append_001_013 );
2370         CPPUNIT_TEST( append_001_014 );
2371         CPPUNIT_TEST( append_001_015 );
2372         CPPUNIT_TEST( append_001_016 );
2373         CPPUNIT_TEST( append_001_017 );
2374         CPPUNIT_TEST( append_001_018 );
2375         CPPUNIT_TEST( append_001_019 );
2376         CPPUNIT_TEST( append_001_020 );
2377 #ifdef WITH_CORE
2378         CPPUNIT_TEST( append_001_021 );
2379 #endif
2380         CPPUNIT_TEST_SUITE_END();
2381     };
2382 
2383 // -----------------------------------------------------------------------------
2384 
2385     class  append_002 : public CppUnit::TestFixture
2386     {
2387         OString* arrOUS[5];
2388 
2389     public:
setUp()2390         void setUp()
2391         {
2392             arrOUS[0] = new OString( kTestStr7 );
2393             arrOUS[1] = new OString(  );
2394             arrOUS[2] = new OString( kTestStr25 );
2395             arrOUS[3] = new OString( "\0"  );
2396             arrOUS[4] = new OString( kTestStr28 );
2397 
2398         }
2399 
tearDown()2400         void tearDown()
2401         {
2402             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
2403             delete arrOUS[3]; delete arrOUS[4];
2404         }
2405 
append_002_001()2406         void append_002_001()
2407         {
2408             OString                expVal( kTestStr1 );
2409             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
2410             const sal_Char*        input = kTestStr8;
2411 
2412             aStrBuf.append( input );
2413 
2414             CPPUNIT_ASSERT_MESSAGE
2415             (
2416                 "Appends the string(length less than 16) to the string buffer arrOUS[0]",
2417                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2418             );
2419 
2420         }
2421 
append_002_002()2422         void append_002_002()
2423         {
2424             OString                expVal( kTestStr2 );
2425             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
2426             const sal_Char*        input = kTestStr36;
2427 
2428             aStrBuf.append( input );
2429 
2430             CPPUNIT_ASSERT_MESSAGE
2431             (
2432                 "Appends the string(length more than 16) to the string buffer arrOUS[0]",
2433                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2434             );
2435 
2436         }
2437 
append_002_003()2438         void append_002_003()
2439         {
2440             OString                expVal( kTestStr37 );
2441             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
2442             const sal_Char*        input = kTestStr23;
2443 
2444             aStrBuf.append( input );
2445 
2446             CPPUNIT_ASSERT_MESSAGE
2447             (
2448                 "Appends the string(length equal to 16) to the string buffer arrOUS[0]",
2449                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2450             );
2451 
2452         }
2453 
append_002_004()2454         void append_002_004()
2455         {
2456             OString                expVal( kTestStr7 );
2457             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
2458             const sal_Char*        input = kTestStr25;
2459 
2460             aStrBuf.append( input );
2461 
2462             CPPUNIT_ASSERT_MESSAGE
2463             (
2464                 "Appends the string(length equal to 0) to the string buffer arrOUS[0]",
2465                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2466             );
2467 
2468         }
2469 
append_002_005()2470         void append_002_005()
2471         {
2472             OString                expVal( kTestStr7 );
2473             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
2474             const sal_Char*        input = kTestStr7;
2475 
2476             aStrBuf.append( input );
2477 
2478             CPPUNIT_ASSERT_MESSAGE
2479             (
2480                 "Appends the string(length less than 16) to the string buffer arrOUS[1]",
2481                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2482             );
2483 
2484         }
2485 
append_002_006()2486         void append_002_006()
2487         {
2488             OString                expVal( kTestStr2 );
2489             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
2490             const sal_Char*        input = kTestStr2;
2491 
2492             aStrBuf.append( input );
2493 
2494             CPPUNIT_ASSERT_MESSAGE
2495             (
2496                 "Appends the string(length more than 16) to the string buffer arrOUS[1]",
2497                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2498             );
2499 
2500         }
2501 
append_002_007()2502         void append_002_007()
2503         {
2504             OString                expVal( kTestStr1 );
2505             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
2506             const sal_Char*        input = kTestStr1;
2507 
2508             aStrBuf.append( input );
2509 
2510             CPPUNIT_ASSERT_MESSAGE
2511             (
2512                 "Appends the string(length equal to 16) to the string buffer arrOUS[1]",
2513                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2514             );
2515 
2516         }
2517 
append_002_008()2518         void append_002_008()
2519         {
2520             OString                expVal;
2521             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
2522             const sal_Char*        input = kTestStr25;
2523 
2524             aStrBuf.append( input );
2525 
2526             CPPUNIT_ASSERT_MESSAGE
2527             (
2528                 "Appends the string(length equal to 0) to the string buffer arrOUS[1]",
2529                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2530             );
2531 
2532         }
2533 
append_002_009()2534         void append_002_009()
2535         {
2536             OString                expVal( kTestStr7 );
2537             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
2538             const sal_Char*        input = kTestStr7;
2539 
2540             aStrBuf.append( input );
2541 
2542             CPPUNIT_ASSERT_MESSAGE
2543             (
2544                 "Appends the string(length less than 16) to the string buffer arrOUS[2]",
2545                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2546             );
2547 
2548         }
2549 
append_002_010()2550         void append_002_010()
2551         {
2552             OString                expVal( kTestStr2 );
2553             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
2554             const sal_Char*        input = kTestStr2;
2555 
2556             aStrBuf.append( input );
2557 
2558             CPPUNIT_ASSERT_MESSAGE
2559             (
2560                 "Appends the string(length more than 16) to the string buffer arrOUS[2]",
2561                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2562             );
2563 
2564         }
2565 
append_002_011()2566         void append_002_011()
2567         {
2568             OString                expVal( kTestStr1 );
2569             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
2570             const sal_Char*        input = kTestStr1;
2571 
2572             aStrBuf.append( input );
2573 
2574             CPPUNIT_ASSERT_MESSAGE
2575             (
2576                 "Appends the string(length equal to 16) to the string buffer arrOUS[2]",
2577                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2578             );
2579 
2580         }
2581 
append_002_012()2582         void append_002_012()
2583         {
2584             OString                expVal;
2585             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
2586             const sal_Char*        input = kTestStr25;
2587 
2588             aStrBuf.append( input );
2589 
2590             CPPUNIT_ASSERT_MESSAGE
2591             (
2592                 "Appends the string(length equal to 0) to the string buffer arrOUS[2]",
2593                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2594             );
2595 
2596         }
2597 
append_002_013()2598         void append_002_013()
2599         {
2600             OString                expVal( kTestStr7 );
2601             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
2602             const sal_Char*        input = kTestStr7;
2603 
2604             aStrBuf.append( input );
2605 
2606             CPPUNIT_ASSERT_MESSAGE
2607             (
2608                 "Appends the string(length less than 16) to the string buffer arrOUS[3]",
2609                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2610             );
2611 
2612         }
2613 
append_002_014()2614         void append_002_014()
2615         {
2616             OString                expVal( kTestStr2 );
2617             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
2618             const sal_Char*        input = kTestStr2;
2619 
2620             aStrBuf.append( input );
2621 
2622             CPPUNIT_ASSERT_MESSAGE
2623             (
2624                 "Appends the string(length more than 16) to the string buffer arrOUS[3]",
2625                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2626             );
2627 
2628         }
2629 
append_002_015()2630         void append_002_015()
2631         {
2632             OString                expVal( kTestStr1 );
2633             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
2634             const sal_Char*        input = kTestStr1;
2635 
2636             aStrBuf.append( input );
2637 
2638             CPPUNIT_ASSERT_MESSAGE
2639             (
2640                 "Appends the string(length equal to 16) to the string buffer arrOUS[3]",
2641                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2642             );
2643 
2644         }
2645 
append_002_016()2646         void append_002_016()
2647         {
2648             OString                expVal;
2649             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
2650             const sal_Char*        input = kTestStr25;
2651 
2652             aStrBuf.append( input );
2653 
2654             CPPUNIT_ASSERT_MESSAGE
2655             (
2656                 "Appends the string(length equal to 0) to the string buffer arrOUS[3]",
2657                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2658             );
2659 
2660         }
2661 
append_002_017()2662         void append_002_017()
2663         {
2664             OString                expVal( kTestStr29 );
2665             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
2666             const sal_Char*        input = kTestStr38;
2667 
2668             aStrBuf.append( input );
2669 
2670             CPPUNIT_ASSERT_MESSAGE
2671             (
2672                 "Appends the string(length less than 16) to the string buffer arrOUS[4]",
2673                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2674             );
2675 
2676         }
2677 
append_002_018()2678         void append_002_018()
2679         {
2680             OString                expVal( kTestStr39 );
2681             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
2682             const sal_Char*        input = kTestStr17;
2683 
2684             aStrBuf.append( input );
2685 
2686             CPPUNIT_ASSERT_MESSAGE
2687             (
2688                 "Appends the string(length more than 16) to the string buffer arrOUS[4]",
2689                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2690             );
2691 
2692         }
2693 
append_002_019()2694         void append_002_019()
2695         {
2696             OString                expVal( kTestStr40 );
2697             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
2698             const sal_Char*        input = kTestStr31;
2699 
2700             aStrBuf.append( input );
2701 
2702             CPPUNIT_ASSERT_MESSAGE
2703             (
2704                 "Appends the string(length equal to 16) to the string buffer arrOUS[4]",
2705                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2706             );
2707 
2708         }
2709 
append_002_020()2710         void append_002_020()
2711         {
2712             OString                expVal( kTestStr28 );
2713             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
2714             const sal_Char*        input = kTestStr25;
2715 
2716             aStrBuf.append( input );
2717 
2718             CPPUNIT_ASSERT_MESSAGE
2719             (
2720                 "Appends the string(length equal to 0) to the string buffer arrOUS[4]",
2721                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2722             );
2723 
2724         }
2725 
2726 #ifdef WITH_CORE
append_002_021()2727         void append_002_021()
2728         {
2729             OString                expVal;
2730             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
2731             const sal_Char*        input = kTestStr25;
2732 
2733             aStrBuf.append( input );
2734 
2735             CPPUNIT_ASSERT_MESSAGE
2736             (
2737                 "Appends the string(length equal to 0) to the string buffer(with INT_MAX)",
2738                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2739             );
2740 
2741         }
2742 #endif
2743 
2744         CPPUNIT_TEST_SUITE( append_002 );
2745         CPPUNIT_TEST( append_002_001 );
2746         CPPUNIT_TEST( append_002_002 );
2747         CPPUNIT_TEST( append_002_003 );
2748         CPPUNIT_TEST( append_002_004 );
2749         CPPUNIT_TEST( append_002_005 );
2750         CPPUNIT_TEST( append_002_006 );
2751         CPPUNIT_TEST( append_002_007 );
2752         CPPUNIT_TEST( append_002_008 );
2753         CPPUNIT_TEST( append_002_009 );
2754         CPPUNIT_TEST( append_002_010 );
2755         CPPUNIT_TEST( append_002_011 );
2756         CPPUNIT_TEST( append_002_012 );
2757         CPPUNIT_TEST( append_002_013 );
2758         CPPUNIT_TEST( append_002_014 );
2759         CPPUNIT_TEST( append_002_015 );
2760         CPPUNIT_TEST( append_002_016 );
2761         CPPUNIT_TEST( append_002_017 );
2762         CPPUNIT_TEST( append_002_018 );
2763         CPPUNIT_TEST( append_002_019 );
2764         CPPUNIT_TEST( append_002_020 );
2765 #ifdef WITH_CORE
2766         CPPUNIT_TEST( append_002_021 );
2767 #endif
2768         CPPUNIT_TEST_SUITE_END();
2769     };
2770 // -----------------------------------------------------------------------------
2771 
2772     class  append_003 : public CppUnit::TestFixture
2773     {
2774         OString* arrOUS[5];
2775 
2776     public:
setUp()2777         void setUp()
2778         {
2779             arrOUS[0] = new OString( kTestStr7 );
2780             arrOUS[1] = new OString(  );
2781             arrOUS[2] = new OString( kTestStr25 );
2782             arrOUS[3] = new OString( "\0"  );
2783             arrOUS[4] = new OString( kTestStr28 );
2784 
2785         }
2786 
tearDown()2787         void tearDown()
2788         {
2789             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
2790             delete arrOUS[3]; delete arrOUS[4];
2791         }
2792 
append_003_001()2793         void append_003_001()
2794         {
2795             OString                expVal( kTestStr1 );
2796             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
2797             const sal_Char*        input1 = kTestStr36;
2798             sal_Int32              input2 = 12;
2799 
2800             aStrBuf.append( input1, input2 );
2801 
2802             CPPUNIT_ASSERT_MESSAGE
2803             (
2804                 "Appends the string(length less than 16) to the string buffer arrOUS[0]",
2805                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2806             );
2807 
2808         }
2809 
append_003_002()2810         void append_003_002()
2811         {
2812             OString                expVal( kTestStr2 );
2813             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
2814             const sal_Char*        input1 = kTestStr36;
2815             sal_Int32              input2 = 28;
2816 
2817             aStrBuf.append( input1, input2 );
2818 
2819             CPPUNIT_ASSERT_MESSAGE
2820             (
2821                 "Appends the string(length more than 16) to the string buffer arrOUS[0]",
2822                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2823             );
2824 
2825         }
2826 
append_003_003()2827         void append_003_003()
2828         {
2829             OString                expVal( kTestStr37 );
2830             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
2831             const sal_Char*        input1 = kTestStr23;
2832             sal_Int32              input2 = 16;
2833 
2834             aStrBuf.append( input1, input2 );
2835 
2836             CPPUNIT_ASSERT_MESSAGE
2837             (
2838                 "Appends the string(length equal to 16) to the string buffer arrOUS[0]",
2839                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2840             );
2841 
2842         }
2843 
append_003_004()2844         void append_003_004()
2845         {
2846             OString                expVal( kTestStr7 );
2847             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
2848             const sal_Char*        input1 = kTestStr2;
2849             sal_Int32              input2 = 0;
2850 
2851             aStrBuf.append( input1, input2 );
2852 
2853             CPPUNIT_ASSERT_MESSAGE
2854             (
2855                 "Appends the string(length equal to 0) to the string buffer arrOUS[0]",
2856                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2857             );
2858 
2859         }
2860 
append_003_005()2861         void append_003_005()
2862         {
2863             // LLA: this is an illegal test, the input2 value must non-negative
2864             // LLA: OString                expVal( kTestStr41 );
2865             // LLA: ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
2866             // LLA: const sal_Char*        input1 = kTestStr2;
2867             // LLA: sal_Int32              input2 = -1;
2868             // LLA:
2869             // LLA: aStrBuf.append( input1, input2 );
2870             // LLA:
2871             // LLA: CPPUNIT_ASSERT_MESSAGE
2872             // LLA: (
2873             // LLA:     "Appends the string(length less than 0) to the string buffer arrOUS[0]",
2874             // LLA:     ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2875             // LLA: );
2876 
2877         }
2878 
append_003_006()2879         void append_003_006()
2880         {
2881             OString                expVal( kTestStr7 );
2882             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
2883             const sal_Char*        input1 = kTestStr2;
2884             sal_Int32              input2 = 4;
2885 
2886             aStrBuf.append( input1, input2 );
2887 
2888             CPPUNIT_ASSERT_MESSAGE
2889             (
2890                 "Appends the string(length less than 16) to the string buffer arrOUS[1]",
2891                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2892             );
2893 
2894         }
2895 
append_003_007()2896         void append_003_007()
2897         {
2898             OString                expVal( kTestStr2 );
2899             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
2900             const sal_Char*        input1 = kTestStr2;
2901             sal_Int32              input2 = 32;
2902 
2903             aStrBuf.append( input1, input2 );
2904 
2905             CPPUNIT_ASSERT_MESSAGE
2906             (
2907                 "Appends the string(length more than 16) to the string buffer arrOUS[1]",
2908                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2909             );
2910 
2911         }
2912 
append_003_008()2913         void append_003_008()
2914         {
2915             OString                expVal( kTestStr1 );
2916             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
2917             const sal_Char*        input1 = kTestStr2;
2918             sal_Int32              input2 = 16;
2919 
2920             aStrBuf.append( input1, input2 );
2921 
2922             CPPUNIT_ASSERT_MESSAGE
2923             (
2924                 "Appends the string(length equal to 16) to the string buffer arrOUS[1]",
2925                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2926             );
2927 
2928         }
2929 
append_003_009()2930         void append_003_009()
2931         {
2932             OString                expVal;
2933             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
2934             const sal_Char*        input1 = kTestStr2;
2935             sal_Int32              input2 = 0;
2936 
2937             aStrBuf.append( input1, input2 );
2938 
2939             CPPUNIT_ASSERT_MESSAGE
2940             (
2941                 "Appends the string(length equal to 0) to the string buffer arrOUS[1]",
2942                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2943             );
2944 
2945         }
2946 
append_003_010()2947         void append_003_010()
2948         {
2949             // LLA: this is an illegal test, the input2 value must non-negative
2950             // LLA: OString                expVal;
2951             // LLA: ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
2952             // LLA: const sal_Char*        input1 = kTestStr2;
2953             // LLA: sal_Int32              input2 = -1;
2954             // LLA:
2955             // LLA: aStrBuf.append( input1, input2 );
2956             // LLA:
2957             // LLA: CPPUNIT_ASSERT_MESSAGE
2958             // LLA: (
2959             // LLA:     "Appends the string(length less than 0) to the string buffer arrOUS[1]",
2960             // LLA:     ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2961             // LLA: );
2962         }
2963 
append_003_011()2964         void append_003_011()
2965         {
2966             OString                expVal( kTestStr7 );
2967             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
2968             const sal_Char*        input1 = kTestStr2;
2969             sal_Int32              input2 = 4;
2970 
2971             aStrBuf.append( input1, input2 );
2972 
2973             CPPUNIT_ASSERT_MESSAGE
2974             (
2975                 "Appends the string(length less than 16) to the string buffer arrOUS[2]",
2976                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2977             );
2978 
2979         }
2980 
append_003_012()2981         void append_003_012()
2982         {
2983             OString                expVal( kTestStr2 );
2984             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
2985             const sal_Char*        input1 = kTestStr2;
2986             sal_Int32              input2 = 32;
2987 
2988             aStrBuf.append( input1, input2 );
2989 
2990             CPPUNIT_ASSERT_MESSAGE
2991             (
2992                 "Appends the string(length more than 16) to the string buffer arrOUS[2]",
2993                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2994             );
2995 
2996         }
2997 
append_003_013()2998         void append_003_013()
2999         {
3000             OString                expVal( kTestStr1 );
3001             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
3002             const sal_Char*        input1 = kTestStr2;
3003             sal_Int32              input2 = 16;
3004 
3005             aStrBuf.append( input1, input2 );
3006 
3007             CPPUNIT_ASSERT_MESSAGE
3008             (
3009                 "Appends the string(length equal to 16) to the string buffer arrOUS[2]",
3010                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3011             );
3012 
3013         }
3014 
append_003_014()3015         void append_003_014()
3016         {
3017             OString                expVal;
3018             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
3019             const sal_Char*        input1 = kTestStr2;
3020             sal_Int32              input2 = 0;
3021 
3022             aStrBuf.append( input1, input2 );
3023 
3024             CPPUNIT_ASSERT_MESSAGE
3025             (
3026                 "Appends the string(length equal to 0) to the string buffer arrOUS[2]",
3027                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3028             );
3029 
3030         }
3031 
append_003_015()3032         void append_003_015()
3033         {
3034             // LLA: this is an illegal test, the input2 value must non-negative
3035             // LLA: OString                expVal;
3036             // LLA: ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
3037             // LLA: const sal_Char*        input1 = kTestStr2;
3038             // LLA: sal_Int32              input2 = -1;
3039             // LLA:
3040             // LLA: aStrBuf.append( input1, input2 );
3041             // LLA:
3042             // LLA: CPPUNIT_ASSERT_MESSAGE
3043             // LLA: (
3044             // LLA:     "Appends the string(length less than 0) to the string buffer arrOUS[2]",
3045             // LLA:     ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3046             // LLA: );
3047 
3048         }
3049 
append_003_016()3050         void append_003_016()
3051         {
3052             OString                expVal( kTestStr7 );
3053             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
3054             const sal_Char*        input1 = kTestStr2;
3055             sal_Int32              input2 = 4;
3056 
3057             aStrBuf.append( input1, input2 );
3058 
3059             CPPUNIT_ASSERT_MESSAGE
3060             (
3061                 "Appends the string(length less than 16) to the string buffer arrOUS[3]",
3062                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3063             );
3064 
3065         }
3066 
append_003_017()3067         void append_003_017()
3068         {
3069             OString                expVal( kTestStr2 );
3070             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
3071             const sal_Char*        input1 = kTestStr2;
3072             sal_Int32              input2 = 32;
3073 
3074             aStrBuf.append( input1, input2 );
3075 
3076             CPPUNIT_ASSERT_MESSAGE
3077             (
3078                 "Appends the string(length more than 16) to the string buffer arrOUS[3]",
3079                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3080             );
3081 
3082         }
3083 
append_003_018()3084         void append_003_018()
3085         {
3086             OString                expVal( kTestStr1 );
3087             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
3088             const sal_Char*        input1 = kTestStr2;
3089             sal_Int32              input2 = 16;
3090 
3091             aStrBuf.append( input1, input2 );
3092 
3093             CPPUNIT_ASSERT_MESSAGE
3094             (
3095                 "Appends the string(length equal to 16) to the string buffer arrOUS[3]",
3096                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3097             );
3098 
3099         }
3100 
append_003_019()3101         void append_003_019()
3102         {
3103             OString                expVal;
3104             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
3105             const sal_Char*        input1 = kTestStr2;
3106             sal_Int32              input2 = 0;
3107 
3108             aStrBuf.append( input1, input2 );
3109 
3110             CPPUNIT_ASSERT_MESSAGE
3111             (
3112                 "Appends the string(length equal to 0) to the string buffer arrOUS[3]",
3113                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3114             );
3115 
3116         }
3117 
append_003_020()3118         void append_003_020()
3119         {
3120             // LLA: this is an illegal test, the input2 value must non-negative
3121             // LLA: OString                expVal;
3122             // LLA: ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
3123             // LLA: const sal_Char*        input1 = kTestStr2;
3124             // LLA: sal_Int32              input2 = -1;
3125             // LLA:
3126             // LLA: aStrBuf.append( input1, input2 );
3127             // LLA:
3128             // LLA: CPPUNIT_ASSERT_MESSAGE
3129             // LLA: (
3130             // LLA:     "Appends the string(length less than 0) to the string buffer arrOUS[3]",
3131             // LLA:     ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3132             // LLA: );
3133 
3134         }
3135 
append_003_021()3136         void append_003_021()
3137         {
3138             OString                expVal( kTestStr29 );
3139             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
3140             const sal_Char*        input1 = kTestStr38;
3141             sal_Int32              input2 = 7;
3142 
3143             aStrBuf.append( input1, input2 );
3144 
3145             CPPUNIT_ASSERT_MESSAGE
3146             (
3147                 "Appends the string(length less than 16) to the string buffer arrOUS[4]",
3148                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3149             );
3150 
3151         }
3152 
append_003_022()3153         void append_003_022()
3154         {
3155             OString                expVal( kTestStr39 );
3156             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
3157             const sal_Char*        input1 = kTestStr17;
3158             sal_Int32              input2 = 22;
3159 
3160             aStrBuf.append( input1, input2 );
3161 
3162             CPPUNIT_ASSERT_MESSAGE
3163             (
3164                 "Appends the string(length more than 16) to the string buffer arrOUS[4]",
3165                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3166             );
3167 
3168         }
3169 
append_003_023()3170         void append_003_023()
3171         {
3172             OString                expVal( kTestStr40 );
3173             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
3174             const sal_Char*        input1 = kTestStr31;
3175             sal_Int32              input2 = 16;
3176 
3177             aStrBuf.append( input1, input2 );
3178 
3179             CPPUNIT_ASSERT_MESSAGE
3180             (
3181                 "Appends the string(length equal to 16) to the string buffer arrOUS[4]",
3182                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3183             );
3184 
3185         }
3186 
append_003_024()3187         void append_003_024()
3188         {
3189             OString                expVal( kTestStr28 );
3190             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
3191             const sal_Char*        input1 = kTestStr2;
3192             sal_Int32              input2 = 0;
3193 
3194             aStrBuf.append( input1, input2 );
3195 
3196             CPPUNIT_ASSERT_MESSAGE
3197             (
3198                 "Appends the string(length equal to 0) to the string buffer arrOUS[4]",
3199                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3200             );
3201 
3202         }
3203 
append_003_025()3204         void append_003_025()
3205         {
3206             // LLA: this is an illegal test, the input2 value must non-negative
3207             // LLA: OString                expVal( kTestStr42 );
3208             // LLA: ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
3209             // LLA: const sal_Char*        input1 = kTestStr2;
3210             // LLA: sal_Int32              input2 = -1;
3211             // LLA:
3212             // LLA: aStrBuf.append( input1, input2 );
3213             // LLA:
3214             // LLA: CPPUNIT_ASSERT_MESSAGE
3215             // LLA: (
3216             // LLA:     "Appends the string(length less than 0) to the string buffer arrOUS[4]",
3217             // LLA:     ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3218             // LLA: );
3219 
3220         }
3221 
3222 #ifdef WITH_CORE
append_003_026()3223         void append_003_026()
3224         {
3225             OString                expVal;
3226             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
3227             const sal_Char*        input1 = kTestStr25;
3228             sal_Int32              input2 = 0;
3229 
3230             aStrBuf.append( input1, input2 );
3231 
3232             CPPUNIT_ASSERT_MESSAGE
3233             (
3234                 "Appends the string(length equal to 0) to the string buffer(with INT_MAX)",
3235                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3236             );
3237 
3238         }
3239 #endif
3240 
3241         CPPUNIT_TEST_SUITE( append_003 );
3242         CPPUNIT_TEST( append_003_001 );
3243         CPPUNIT_TEST( append_003_002 );
3244         CPPUNIT_TEST( append_003_003 );
3245         CPPUNIT_TEST( append_003_004 );
3246         CPPUNIT_TEST( append_003_005 );
3247         CPPUNIT_TEST( append_003_006 );
3248         CPPUNIT_TEST( append_003_007 );
3249         CPPUNIT_TEST( append_003_008 );
3250         CPPUNIT_TEST( append_003_009 );
3251         CPPUNIT_TEST( append_003_010 );
3252         CPPUNIT_TEST( append_003_011 );
3253         CPPUNIT_TEST( append_003_012 );
3254         CPPUNIT_TEST( append_003_013 );
3255         CPPUNIT_TEST( append_003_014 );
3256         CPPUNIT_TEST( append_003_015 );
3257         CPPUNIT_TEST( append_003_016 );
3258         CPPUNIT_TEST( append_003_017 );
3259         CPPUNIT_TEST( append_003_018 );
3260         CPPUNIT_TEST( append_003_019 );
3261         CPPUNIT_TEST( append_003_020 );
3262         CPPUNIT_TEST( append_003_021 );
3263         CPPUNIT_TEST( append_003_022 );
3264         CPPUNIT_TEST( append_003_023 );
3265         CPPUNIT_TEST( append_003_024 );
3266         CPPUNIT_TEST( append_003_025 );
3267 #ifdef WITH_CORE
3268         CPPUNIT_TEST( append_003_026 );
3269 #endif
3270         CPPUNIT_TEST_SUITE_END();
3271     };
3272 // -----------------------------------------------------------------------------
3273 
3274     class  append_004 : public CppUnit::TestFixture
3275     {
3276         OString* arrOUS[5];
3277 
3278     public:
setUp()3279         void setUp()
3280         {
3281             arrOUS[0] = new OString( kTestStr7 );
3282             arrOUS[1] = new OString(  );
3283             arrOUS[2] = new OString( kTestStr25 );
3284             arrOUS[3] = new OString( "\0"  );
3285             arrOUS[4] = new OString( kTestStr28 );
3286 
3287         }
3288 
tearDown()3289         void tearDown()
3290         {
3291             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
3292             delete arrOUS[3]; delete arrOUS[4];
3293         }
3294 
append_004_001()3295         void append_004_001()
3296         {
3297             OString                expVal( kTestStr45 );
3298             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
3299             sal_Bool               input = sal_True;
3300 
3301             aStrBuf.append( input );
3302 
3303             CPPUNIT_ASSERT_MESSAGE
3304             (
3305                 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[0]",
3306                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3307             );
3308 
3309         }
3310 
append_004_002()3311         void append_004_002()
3312         {
3313             OString                expVal( kTestStr46 );
3314             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
3315             sal_Bool               input = sal_False;
3316 
3317             aStrBuf.append( input );
3318 
3319             CPPUNIT_ASSERT_MESSAGE
3320             (
3321                 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[0]",
3322                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3323             );
3324 
3325         }
3326 
append_004_003()3327         void append_004_003()
3328         {
3329             OString                expVal( kTestStr47 );
3330             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
3331             sal_Bool               input = sal_True;
3332 
3333             aStrBuf.append( input );
3334 
3335             CPPUNIT_ASSERT_MESSAGE
3336             (
3337                 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[1]",
3338                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3339             );
3340 
3341         }
3342 
append_004_004()3343         void append_004_004()
3344         {
3345             OString                expVal( kTestStr48 );
3346             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
3347             sal_Bool               input = sal_False;
3348 
3349             aStrBuf.append( input );
3350 
3351             CPPUNIT_ASSERT_MESSAGE
3352             (
3353                 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[1]",
3354                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3355             );
3356 
3357         }
3358 
append_004_005()3359         void append_004_005()
3360         {
3361             OString                expVal( kTestStr47 );
3362             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
3363             sal_Bool               input = sal_True;
3364 
3365             aStrBuf.append( input );
3366 
3367             CPPUNIT_ASSERT_MESSAGE
3368             (
3369                 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[2]",
3370                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3371             );
3372 
3373         }
3374 
append_004_006()3375         void append_004_006()
3376         {
3377             OString                expVal( kTestStr48 );
3378             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
3379             sal_Bool               input = sal_False;
3380 
3381             aStrBuf.append( input );
3382 
3383             CPPUNIT_ASSERT_MESSAGE
3384             (
3385                 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[2]",
3386                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3387             );
3388 
3389         }
3390 
append_004_007()3391         void append_004_007()
3392         {
3393             OString                expVal( kTestStr47 );
3394             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
3395             sal_Bool               input = sal_True;
3396 
3397             aStrBuf.append( input );
3398 
3399             CPPUNIT_ASSERT_MESSAGE
3400             (
3401                 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[3]",
3402                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3403             );
3404 
3405         }
3406 
append_004_008()3407         void append_004_008()
3408         {
3409             OString                expVal( kTestStr48 );
3410             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
3411             sal_Bool               input = sal_False;
3412 
3413             aStrBuf.append( input );
3414 
3415             CPPUNIT_ASSERT_MESSAGE
3416             (
3417                 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[3]",
3418                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3419             );
3420 
3421         }
3422 
append_004_009()3423         void append_004_009()
3424         {
3425             OString                expVal( kTestStr49 );
3426             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
3427             sal_Bool               input = sal_True;
3428 
3429             aStrBuf.append( input );
3430 
3431             CPPUNIT_ASSERT_MESSAGE
3432             (
3433                 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[4]",
3434                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3435             );
3436 
3437         }
3438 
append_004_010()3439         void append_004_010()
3440         {
3441             OString                expVal( kTestStr50 );
3442             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
3443             sal_Bool               input = sal_False;
3444 
3445             aStrBuf.append( input );
3446 
3447             CPPUNIT_ASSERT_MESSAGE
3448             (
3449                 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[4]",
3450                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3451             );
3452 
3453         }
3454 
3455 #ifdef WITH_CORE
append_004_011()3456         void append_004_011()
3457         {
3458             OString                expVal( kTestStr47 );
3459             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
3460             sal_Bool               input = sal_True;
3461 
3462             aStrBuf.append( input );
3463 
3464             CPPUNIT_ASSERT_MESSAGE
3465             (
3466                 "Appends the sal_Bool(sal_True) to the string buffer(with INT_MAX)",
3467                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3468             );
3469 
3470         }
3471 
append_004_012()3472         void append_004_012()
3473         {
3474             OString                expVal( kTestStr48 );
3475             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
3476             sal_Bool               input = sal_False;
3477 
3478             aStrBuf.append( input );
3479 
3480             CPPUNIT_ASSERT_MESSAGE
3481             (
3482                 "Appends the sal_Bool(sal_False) to the string buffer(with INT_MAX)",
3483                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3484             );
3485 
3486         }
3487 #endif
3488 
3489         CPPUNIT_TEST_SUITE( append_004 );
3490         CPPUNIT_TEST( append_004_001 );
3491         CPPUNIT_TEST( append_004_002 );
3492         CPPUNIT_TEST( append_004_003 );
3493         CPPUNIT_TEST( append_004_004 );
3494         CPPUNIT_TEST( append_004_005 );
3495         CPPUNIT_TEST( append_004_006 );
3496         CPPUNIT_TEST( append_004_007 );
3497         CPPUNIT_TEST( append_004_008 );
3498         CPPUNIT_TEST( append_004_009 );
3499         CPPUNIT_TEST( append_004_010 );
3500 #ifdef WITH_CORE
3501         CPPUNIT_TEST( append_004_011 );
3502         CPPUNIT_TEST( append_004_012 );
3503 #endif
3504         CPPUNIT_TEST_SUITE_END();
3505     };
3506 //------------------------------------------------------------------------
3507 // testing the method append(sal_Char c)
3508 //------------------------------------------------------------------------
3509     class  append_005 : public CppUnit::TestFixture
3510     {
3511         OString* arrOUS[5];
3512 
3513     public:
setUp()3514         void setUp()
3515         {
3516             arrOUS[0] = new OString( kTestStr7 );
3517             arrOUS[1] = new OString(  );
3518             arrOUS[2] = new OString( kTestStr25 );
3519             arrOUS[3] = new OString( "\0"  );
3520             arrOUS[4] = new OString( kTestStr28 );
3521 
3522         }
3523 
tearDown()3524         void tearDown()
3525         {
3526             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
3527             delete arrOUS[3]; delete arrOUS[4];
3528         }
3529 
append_001()3530         void append_001()
3531         {
3532             OString                expVal( kTestStr51 );
3533             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
3534             sal_Char               input = 'M';
3535 
3536             aStrBuf.append( input );
3537 
3538             CPPUNIT_ASSERT_MESSAGE
3539             (
3540                 "Appends the sal_Char(M) to the string buffer arrOUS[0]",
3541                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3542             );
3543 
3544         }
3545 
append_002()3546         void append_002()
3547         {
3548             OString                expVal( kTestStr143 );
3549             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
3550             sal_Char               input = static_cast<sal_Char>(SAL_MAX_UINT8);
3551 
3552             aStrBuf.append( input );
3553 
3554             CPPUNIT_ASSERT_MESSAGE
3555             (
3556                 "Appends the sal_Unicode(kSInt8Max) to the string buffer arrOUS[0]",
3557                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3558             );
3559 
3560         }
3561 
append_003()3562         void append_003()
3563         {
3564             OString                expVal( kTestStr27 );
3565             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
3566             sal_Char               input = 's';
3567 
3568             aStrBuf.append( input );
3569 
3570             CPPUNIT_ASSERT_MESSAGE
3571             (
3572                 "Appends the sal_Char(s) to the string buffer arrOUS[1]",
3573                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3574             );
3575 
3576         }
3577 
append_004()3578         void append_004()
3579         {
3580             OString                expVal( kTestStr144 );
3581             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
3582             sal_Char               input = static_cast<sal_Char>(SAL_MAX_UINT8);
3583 
3584             aStrBuf.append( input );
3585 
3586             CPPUNIT_ASSERT_MESSAGE
3587             (
3588                 "Appends the sal_Char(kSInt8Max) to the string buffer arrOUS[1]",
3589                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3590             );
3591 
3592         }
3593 
append_005_005()3594         void append_005_005()
3595         {
3596             OString                expVal( kTestStr27 );
3597             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
3598             sal_Char               input = 's';
3599 
3600             aStrBuf.append( input );
3601 
3602             CPPUNIT_ASSERT_MESSAGE
3603             (
3604                 "Appends the sal_Char(s) to the string buffer arrOUS[2]",
3605                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3606             );
3607 
3608         }
3609 
append_006()3610         void append_006()
3611         {
3612             OString                expVal( kTestStr144 );
3613             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
3614             sal_Char               input = static_cast<sal_Char>(SAL_MAX_UINT8);
3615 
3616             aStrBuf.append( input );
3617 
3618             CPPUNIT_ASSERT_MESSAGE
3619             (
3620                 "Appends the sal_Char(kSInt8Max) to the string buffer arrOUS[2]",
3621                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3622             );
3623 
3624         }
3625 
append_007()3626         void append_007()
3627         {
3628             OString                expVal( kTestStr27 );
3629             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
3630             sal_Char               input = 's';
3631 
3632             aStrBuf.append( input );
3633 
3634             CPPUNIT_ASSERT_MESSAGE
3635             (
3636                 "Appends the sal_Char(s) to the string buffer arrOUS[3]",
3637                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3638             );
3639 
3640         }
3641 
append_008()3642         void append_008()
3643         {
3644             OString                expVal( kTestStr144 );
3645             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
3646             sal_Char               input = static_cast<sal_Char>(SAL_MAX_UINT8);
3647 
3648             aStrBuf.append( input );
3649 
3650             CPPUNIT_ASSERT_MESSAGE
3651             (
3652                 "Appends the sal_Char(kSInt8Max) to the string buffer arrOUS[3]",
3653                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3654             );
3655 
3656         }
3657 
append_009()3658         void append_009()
3659         {
3660             OString                expVal( kTestStr56 );
3661             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
3662             sal_Char               input = 's';
3663 
3664             aStrBuf.append( input );
3665 
3666             CPPUNIT_ASSERT_MESSAGE
3667             (
3668                 "Appends the sal_Char(s) to the string buffer arrOUS[4]",
3669                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3670             );
3671 
3672         }
3673 
append_010()3674         void append_010()
3675         {
3676             OString                expVal( kTestStr145 );
3677             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
3678             sal_Char               input = static_cast<sal_Char>(SAL_MAX_UINT8);
3679 
3680             aStrBuf.append( input );
3681 
3682             CPPUNIT_ASSERT_MESSAGE
3683             (
3684                 "Appends the sal_Char(kSInt8Max) to the string buffer arrOUS[4]",
3685                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3686             );
3687 
3688         }
3689 
3690 #ifdef WITH_CORE
append_011()3691         void append_011()
3692         {
3693             OString                expVal( kTestStr27 );
3694             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
3695             sal_Char               input = 's';
3696 
3697             aStrBuf.append( input );
3698 
3699             CPPUNIT_ASSERT_MESSAGE
3700             (
3701                 "Appends the sal_Char(s) to the string buffer(with INT_MAX)",
3702                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3703             );
3704 
3705         }
3706 
append_012()3707         void append_012()
3708         {
3709             OString                expVal( kTestStr144 );
3710             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
3711             sal_Char               input = static_cast<sal_Char>(SAL_MAX_UINT8);
3712 
3713             aStrBuf.append( input );
3714 
3715             CPPUNIT_ASSERT_MESSAGE
3716             (
3717                 "Appends the sal_Char(kSInt8Max) to the string buffer with INT_MAX)",
3718                 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3719             );
3720 
3721         }
3722 #endif
3723 
3724         CPPUNIT_TEST_SUITE( append_005 );
3725         CPPUNIT_TEST( append_001 );
3726         CPPUNIT_TEST( append_002 );
3727         CPPUNIT_TEST( append_003 );
3728         CPPUNIT_TEST( append_004 );
3729         CPPUNIT_TEST( append_005_005 );
3730         CPPUNIT_TEST( append_006 );
3731         CPPUNIT_TEST( append_007 );
3732         CPPUNIT_TEST( append_008 );
3733         CPPUNIT_TEST( append_009 );
3734         CPPUNIT_TEST( append_010 );
3735 #ifdef WITH_CORE
3736         CPPUNIT_TEST( append_011 );
3737         CPPUNIT_TEST( append_012 );
3738 #endif
3739         CPPUNIT_TEST_SUITE_END();
3740     };
3741 /**
3742  * Calls the method append(T, radix) and compares
3743  * returned OUString with OUString that passed in the array resArray.
3744  *
3745  * @param T, type of argument, passed to append
3746  * @param resArray, array of result ustrings to compare to
3747  * @param n the number of elements in the array resArray (testcases)
3748  * @param pTestResult the instance of the class TestResult
3749  * @param inArray [optional], array of value that is passed as first argument
3750  *                            to append
3751  *
3752  * @return true, if all returned OUString are equal to corresponding OUString in
3753  *               resArray else, false.
3754  */
3755 /*template <class T>
3756 sal_Bool test_append( const char** resArray, int n, sal_Int16 radix,
3757                             const T *inArray, OStringBuffer &aStr1 )
3758 {
3759     sal_Bool    bRes = sal_True;
3760 
3761     //sal_Char    methName[MAXBUFLENGTH];
3762     //sal_Char*   pMeth = methName;
3763     sal_Int32   i;
3764 //    static sal_Unicode aUchar[80]={0x12};
3765 
3766     for (i = 0; i < n; i++)
3767     {
3768 
3769 	OSL_ENSURE( i < 80, "ERROR: leave aUchar bound");
3770 
3771 //        AStringToUStringCopy(aUchar,resArray[i]);
3772 
3773         ::rtl::OString aStr2(aStr1.getStr());
3774         ::rtl::OString aStr3( "-" );
3775 
3776         if (inArray == 0)
3777 	{
3778             aStr2 += OString(resArray[i]);
3779             aStr1.append((T)i, radix);
3780 	}
3781         else
3782         {
3783  //           sal_Unicode   aStr4[100];
3784             if ( inArray[i] < 0 )
3785             {
3786                 aStr2 += aStr3;
3787 
3788             }
3789 //          if(AStringToUStringCopy(aStr4,resArray[i]))
3790 //            {
3791                 aStr2 += OString(resArray[i]);
3792 //            }
3793             aStr1.append((T)inArray[i], radix);
3794         }
3795 
3796         CPPUNIT_ASSERT_MESSAGE
3797             (
3798                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
3799                 aStr1.getStr()== aStr2 &&
3800                     aStr1.getLength() == aStr2.getLength()
3801             );
3802     }
3803 
3804     return (bRes);
3805 }
3806 #define test_append_Int32      test_append<sal_Int32>
3807 #define test_append_Int64      test_append<sal_Int64>
3808 #define test_append_float      test_append<float>
3809 #define test_append_double     test_append<double>*/
3810 //------------------------------------------------------------------------
3811 // testing the method append( sal_Int32 i, sal_Int16 radix=2 )
3812 // testing the method append( sal_Int32 i, sal_Int16 radix=8 )
3813 // testing the method append( sal_Int32 i, sal_Int16 radix=10 )
3814 // testing the method append( sal_Int32 i, sal_Int16 radix=16 )
3815 // testing the method append( sal_Int32 i, sal_Int16 radix=36 )
3816 //------------------------------------------------------------------------
3817     class  append_006_Int32 : public CppUnit::TestFixture
3818     {
3819         OString* arrOUS[5];
3820 
3821     public:
setUp()3822         void setUp()
3823         {
3824             arrOUS[0] = new OString( kTestStr7 );
3825             arrOUS[1] = new OString(  );
3826             arrOUS[2] = new OString( kTestStr25 );
3827             arrOUS[3] = new OString( "\0"  );
3828             arrOUS[4] = new OString( kTestStr28 );
3829 
3830         }
3831 
tearDown()3832         void tearDown()
3833         {
3834             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
3835             delete arrOUS[3]; delete arrOUS[4];
3836         }
3837 
append_001()3838         void append_001()
3839         {
3840             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
3841             OString                expVal( aStrBuf.getStr() );
3842             sal_Int32              input = 0;
3843             sal_Int16              radix = 2;
3844 
3845             expVal += OString( "0" );
3846             aStrBuf.append( input, radix );
3847 
3848             /*test_append_Int32((const char**)kBinaryNumsStr,
3849                                 kBinaryNumsCount, kRadixBinary,
3850                                 0, aStrBuf );*/
3851 
3852             CPPUNIT_ASSERT_MESSAGE
3853             (
3854                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
3855                 aStrBuf.getStr()== expVal &&
3856                     aStrBuf.getLength() == expVal.getLength()
3857             );
3858 
3859         }
3860 
append_002()3861         void append_002()
3862         {
3863             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
3864             OString                expVal( aStrBuf.getStr() );
3865             sal_Int32              input = 4;
3866             sal_Int16              radix = 2;
3867 
3868             expVal += OString( "100" );
3869             aStrBuf.append( input, radix );
3870 
3871             CPPUNIT_ASSERT_MESSAGE
3872             (
3873                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
3874                 aStrBuf.getStr()== expVal &&
3875                     aStrBuf.getLength() == expVal.getLength()
3876             );
3877 
3878         }
3879 
append_003()3880         void append_003()
3881         {
3882             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
3883             OString                expVal( aStrBuf.getStr() );
3884             sal_Int32              input = 8;
3885             sal_Int16              radix = 2;
3886 
3887             expVal += OString( "1000" );
3888             aStrBuf.append( input, radix );
3889 
3890             CPPUNIT_ASSERT_MESSAGE
3891             (
3892                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
3893                 aStrBuf.getStr()== expVal &&
3894                     aStrBuf.getLength() == expVal.getLength()
3895             );
3896 
3897         }
3898 
append_004()3899         void append_004()
3900         {
3901             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
3902             OString                expVal( aStrBuf.getStr() );
3903             sal_Int32              input = 15;
3904             sal_Int16              radix = 2;
3905 
3906             expVal += OString( "1111" );
3907             aStrBuf.append( input, radix );
3908 
3909             CPPUNIT_ASSERT_MESSAGE
3910             (
3911                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
3912                 aStrBuf.getStr()== expVal &&
3913                     aStrBuf.getLength() == expVal.getLength()
3914             );
3915 
3916         }
3917 
append_005()3918         void append_005()
3919         {
3920             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
3921             OString                expVal( aStrBuf.getStr() );
3922             sal_Int32              input = 0;
3923             sal_Int16              radix = 8;
3924 
3925             expVal += OString( "0" );
3926             aStrBuf.append( input, radix );
3927 
3928             CPPUNIT_ASSERT_MESSAGE
3929             (
3930                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
3931                 aStrBuf.getStr()== expVal &&
3932                     aStrBuf.getLength() == expVal.getLength()
3933             );
3934 
3935         }
3936 
append_006()3937         void append_006()
3938         {
3939             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
3940             OString                expVal( aStrBuf.getStr() );
3941             sal_Int32              input = 4;
3942             sal_Int16              radix = 8;
3943 
3944             expVal += OString( "4" );
3945             aStrBuf.append( input, radix );
3946 
3947             CPPUNIT_ASSERT_MESSAGE
3948             (
3949                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
3950                 aStrBuf.getStr()== expVal &&
3951                     aStrBuf.getLength() == expVal.getLength()
3952             );
3953 
3954         }
3955 
append_007()3956         void append_007()
3957         {
3958             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
3959             OString                expVal( aStrBuf.getStr() );
3960             sal_Int32              input = 8;
3961             sal_Int16              radix = 8;
3962 
3963             expVal += OString( "10" );
3964             aStrBuf.append( input, radix );
3965 
3966             CPPUNIT_ASSERT_MESSAGE
3967             (
3968                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
3969                 aStrBuf.getStr()== expVal &&
3970                     aStrBuf.getLength() == expVal.getLength()
3971             );
3972 
3973         }
3974 
append_008()3975         void append_008()
3976         {
3977             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
3978             OString                expVal( aStrBuf.getStr() );
3979             sal_Int32              input = 15;
3980             sal_Int16              radix = 8;
3981 
3982             expVal += OString( "17" );
3983             aStrBuf.append( input, radix );
3984 
3985             CPPUNIT_ASSERT_MESSAGE
3986             (
3987                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
3988                 aStrBuf.getStr()== expVal &&
3989                     aStrBuf.getLength() == expVal.getLength()
3990             );
3991 
3992         }
3993 
append_009()3994         void append_009()
3995         {
3996             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
3997             OString                expVal( aStrBuf.getStr() );
3998             sal_Int32              input = 0;
3999             sal_Int16              radix = 10;
4000 
4001             expVal += OString( "0" );
4002             aStrBuf.append( input, radix );
4003 
4004             CPPUNIT_ASSERT_MESSAGE
4005             (
4006                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
4007                 aStrBuf.getStr()== expVal &&
4008                     aStrBuf.getLength() == expVal.getLength()
4009             );
4010 
4011         }
4012 
append_010()4013         void append_010()
4014         {
4015             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
4016             OString                expVal( aStrBuf.getStr() );
4017             sal_Int32              input = 4;
4018             sal_Int16              radix = 10;
4019 
4020             expVal += OString( "4" );
4021             aStrBuf.append( input, radix );
4022 
4023             CPPUNIT_ASSERT_MESSAGE
4024             (
4025                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
4026                 aStrBuf.getStr()== expVal &&
4027                     aStrBuf.getLength() == expVal.getLength()
4028             );
4029 
4030         }
4031 
append_011()4032         void append_011()
4033         {
4034             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
4035             OString                expVal( aStrBuf.getStr() );
4036             sal_Int32              input = 8;
4037             sal_Int16              radix = 10;
4038 
4039             expVal += OString( "8" );
4040             aStrBuf.append( input, radix );
4041 
4042             CPPUNIT_ASSERT_MESSAGE
4043             (
4044                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
4045                 aStrBuf.getStr()== expVal &&
4046                     aStrBuf.getLength() == expVal.getLength()
4047             );
4048 
4049         }
4050 
append_012()4051         void append_012()
4052         {
4053             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
4054             OString                expVal( aStrBuf.getStr() );
4055             sal_Int32              input = 15;
4056             sal_Int16              radix = 10;
4057 
4058             expVal += OString( "15" );
4059             aStrBuf.append( input, radix );
4060 
4061             CPPUNIT_ASSERT_MESSAGE
4062             (
4063                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
4064                 aStrBuf.getStr()== expVal &&
4065                     aStrBuf.getLength() == expVal.getLength()
4066             );
4067 
4068         }
4069 
append_013()4070         void append_013()
4071         {
4072             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
4073             OString                expVal( aStrBuf.getStr() );
4074             sal_Int32              input = 0;
4075             sal_Int16              radix = 16;
4076 
4077             expVal += OString( "0" );
4078             aStrBuf.append( input, radix );
4079 
4080             CPPUNIT_ASSERT_MESSAGE
4081             (
4082                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
4083                 aStrBuf.getStr()== expVal &&
4084                     aStrBuf.getLength() == expVal.getLength()
4085             );
4086 
4087         }
4088 
append_014()4089         void append_014()
4090         {
4091             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
4092             OString                expVal( aStrBuf.getStr() );
4093             sal_Int32              input = 4;
4094             sal_Int16              radix = 16;
4095 
4096             expVal += OString( "4" );
4097             aStrBuf.append( input, radix );
4098 
4099             CPPUNIT_ASSERT_MESSAGE
4100             (
4101                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
4102                 aStrBuf.getStr()== expVal &&
4103                     aStrBuf.getLength() == expVal.getLength()
4104             );
4105 
4106         }
4107 
append_015()4108         void append_015()
4109         {
4110             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
4111             OString                expVal( aStrBuf.getStr() );
4112             sal_Int32              input = 8;
4113             sal_Int16              radix = 16;
4114 
4115             expVal += OString( "8" );
4116             aStrBuf.append( input, radix );
4117 
4118             CPPUNIT_ASSERT_MESSAGE
4119             (
4120                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
4121                 aStrBuf.getStr()== expVal &&
4122                     aStrBuf.getLength() == expVal.getLength()
4123             );
4124 
4125         }
4126 
append_016()4127         void append_016()
4128         {
4129             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
4130             OString                expVal( aStrBuf.getStr() );
4131             sal_Int32              input = 15;
4132             sal_Int16              radix = 16;
4133 
4134             expVal += OString( "f" );
4135             aStrBuf.append( input, radix );
4136 
4137             CPPUNIT_ASSERT_MESSAGE
4138             (
4139                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
4140                 aStrBuf.getStr()== expVal &&
4141                     aStrBuf.getLength() == expVal.getLength()
4142             );
4143 
4144         }
4145 
append_017()4146         void append_017()
4147         {
4148             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
4149             OString                expVal( aStrBuf.getStr() );
4150             sal_Int32              input = 0;
4151             sal_Int16              radix = 36;
4152 
4153             expVal += OString( "0" );
4154             aStrBuf.append( input, radix );
4155 
4156             CPPUNIT_ASSERT_MESSAGE
4157             (
4158                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
4159                 aStrBuf.getStr()== expVal &&
4160                     aStrBuf.getLength() == expVal.getLength()
4161             );
4162 
4163         }
4164 
append_018()4165         void append_018()
4166         {
4167             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
4168             OString                expVal( aStrBuf.getStr() );
4169             sal_Int32              input = 4;
4170             sal_Int16              radix = 36;
4171 
4172             expVal += OString( "4" );
4173             aStrBuf.append( input, radix );
4174 
4175             CPPUNIT_ASSERT_MESSAGE
4176             (
4177                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
4178                 aStrBuf.getStr()== expVal &&
4179                     aStrBuf.getLength() == expVal.getLength()
4180             );
4181 
4182         }
4183 
append_019()4184         void append_019()
4185         {
4186             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
4187             OString                expVal( aStrBuf.getStr() );
4188             sal_Int32              input = 8;
4189             sal_Int16              radix = 36;
4190 
4191             expVal += OString( "8" );
4192             aStrBuf.append( input, radix );
4193 
4194             CPPUNIT_ASSERT_MESSAGE
4195             (
4196                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
4197                 aStrBuf.getStr()== expVal &&
4198                     aStrBuf.getLength() == expVal.getLength()
4199             );
4200 
4201         }
4202 
append_020()4203         void append_020()
4204         {
4205             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
4206             OString                expVal( aStrBuf.getStr() );
4207             sal_Int32              input = 35;
4208             sal_Int16              radix = 36;
4209 
4210             expVal += OString( "z" );
4211             aStrBuf.append( input, radix );
4212 
4213             CPPUNIT_ASSERT_MESSAGE
4214             (
4215                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
4216                 aStrBuf.getStr()== expVal &&
4217                     aStrBuf.getLength() == expVal.getLength()
4218             );
4219 
4220         }
4221 
append_021()4222         void append_021()
4223         {
4224             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
4225             OString                expVal( aStrBuf.getStr() );
4226             sal_Int32              input = 0;
4227             sal_Int16              radix = 2;
4228 
4229             expVal += OString( "0" );
4230             aStrBuf.append( input, radix );
4231 
4232             CPPUNIT_ASSERT_MESSAGE
4233             (
4234                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
4235                 aStrBuf.getStr()== expVal &&
4236                     aStrBuf.getLength() == expVal.getLength()
4237             );
4238 
4239         }
4240 
append_022()4241         void append_022()
4242         {
4243             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
4244             OString                expVal( aStrBuf.getStr() );
4245             sal_Int32              input = 4;
4246             sal_Int16              radix = 2;
4247 
4248             expVal += OString( "100" );
4249             aStrBuf.append( input, radix );
4250 
4251             CPPUNIT_ASSERT_MESSAGE
4252             (
4253                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
4254                 aStrBuf.getStr()== expVal &&
4255                     aStrBuf.getLength() == expVal.getLength()
4256             );
4257 
4258         }
4259 
append_023()4260         void append_023()
4261         {
4262             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
4263             OString                expVal( aStrBuf.getStr() );
4264             sal_Int32              input = 8;
4265             sal_Int16              radix = 2;
4266 
4267             expVal += OString( "1000" );
4268             aStrBuf.append( input, radix );
4269 
4270             CPPUNIT_ASSERT_MESSAGE
4271             (
4272                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
4273                 aStrBuf.getStr()== expVal &&
4274                     aStrBuf.getLength() == expVal.getLength()
4275             );
4276 
4277         }
4278 
append_024()4279         void append_024()
4280         {
4281             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
4282             OString                expVal( aStrBuf.getStr() );
4283             sal_Int32              input = 15;
4284             sal_Int16              radix = 2;
4285 
4286             expVal += OString( "1111" );
4287             aStrBuf.append( input, radix );
4288 
4289             CPPUNIT_ASSERT_MESSAGE
4290             (
4291                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
4292                 aStrBuf.getStr()== expVal &&
4293                     aStrBuf.getLength() == expVal.getLength()
4294             );
4295 
4296         }
4297 
append_025()4298         void append_025()
4299         {
4300             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
4301             OString                expVal( aStrBuf.getStr() );
4302             sal_Int32              input = 0;
4303             sal_Int16              radix = 8;
4304 
4305             expVal += OString( "0" );
4306             aStrBuf.append( input, radix );
4307 
4308             CPPUNIT_ASSERT_MESSAGE
4309             (
4310                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
4311                 aStrBuf.getStr()== expVal &&
4312                     aStrBuf.getLength() == expVal.getLength()
4313             );
4314 
4315         }
4316 
append_026()4317         void append_026()
4318         {
4319             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
4320             OString                expVal( aStrBuf.getStr() );
4321             sal_Int32              input = 4;
4322             sal_Int16              radix = 8;
4323 
4324             expVal += OString( "4" );
4325             aStrBuf.append( input, radix );
4326 
4327             CPPUNIT_ASSERT_MESSAGE
4328             (
4329                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
4330                 aStrBuf.getStr()== expVal &&
4331                     aStrBuf.getLength() == expVal.getLength()
4332             );
4333 
4334         }
4335 
append_027()4336         void append_027()
4337         {
4338             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
4339             OString                expVal( aStrBuf.getStr() );
4340             sal_Int32              input = 8;
4341             sal_Int16              radix = 8;
4342 
4343             expVal += OString( "10" );
4344             aStrBuf.append( input, radix );
4345 
4346             CPPUNIT_ASSERT_MESSAGE
4347             (
4348                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
4349                 aStrBuf.getStr()== expVal &&
4350                     aStrBuf.getLength() == expVal.getLength()
4351             );
4352 
4353         }
4354 
append_028()4355         void append_028()
4356         {
4357             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
4358             OString                expVal( aStrBuf.getStr() );
4359             sal_Int32              input = 15;
4360             sal_Int16              radix = 8;
4361 
4362             expVal += OString( "17" );
4363             aStrBuf.append( input, radix );
4364 
4365             CPPUNIT_ASSERT_MESSAGE
4366             (
4367                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
4368                 aStrBuf.getStr()== expVal &&
4369                     aStrBuf.getLength() == expVal.getLength()
4370             );
4371 
4372         }
4373 
append_029()4374         void append_029()
4375         {
4376             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
4377             OString                expVal( aStrBuf.getStr() );
4378             sal_Int32              input = 0;
4379             sal_Int16              radix = 10;
4380 
4381             expVal += OString( "0" );
4382             aStrBuf.append( input, radix );
4383 
4384             CPPUNIT_ASSERT_MESSAGE
4385             (
4386                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
4387                 aStrBuf.getStr()== expVal &&
4388                     aStrBuf.getLength() == expVal.getLength()
4389             );
4390 
4391         }
4392 
append_030()4393         void append_030()
4394         {
4395             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
4396             OString                expVal( aStrBuf.getStr() );
4397             sal_Int32              input = 4;
4398             sal_Int16              radix = 10;
4399 
4400             expVal += OString( "4" );
4401             aStrBuf.append( input, radix );
4402 
4403             CPPUNIT_ASSERT_MESSAGE
4404             (
4405                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
4406                 aStrBuf.getStr()== expVal &&
4407                     aStrBuf.getLength() == expVal.getLength()
4408             );
4409 
4410         }
4411 
append_031()4412         void append_031()
4413         {
4414             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
4415             OString                expVal( aStrBuf.getStr() );
4416             sal_Int32              input = 8;
4417             sal_Int16              radix = 10;
4418 
4419             expVal += OString( "8" );
4420             aStrBuf.append( input, radix );
4421 
4422             CPPUNIT_ASSERT_MESSAGE
4423             (
4424                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
4425                 aStrBuf.getStr()== expVal &&
4426                     aStrBuf.getLength() == expVal.getLength()
4427             );
4428 
4429         }
4430 
append_032()4431         void append_032()
4432         {
4433             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
4434             OString                expVal( aStrBuf.getStr() );
4435             sal_Int32              input = 15;
4436             sal_Int16              radix = 10;
4437 
4438             expVal += OString( "15" );
4439             aStrBuf.append( input, radix );
4440 
4441             CPPUNIT_ASSERT_MESSAGE
4442             (
4443                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
4444                 aStrBuf.getStr()== expVal &&
4445                     aStrBuf.getLength() == expVal.getLength()
4446             );
4447 
4448         }
4449 
append_033()4450         void append_033()
4451         {
4452             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
4453             OString                expVal( aStrBuf.getStr() );
4454             sal_Int32              input = 0;
4455             sal_Int16              radix = 16;
4456 
4457             expVal += OString( "0" );
4458             aStrBuf.append( input, radix );
4459 
4460             CPPUNIT_ASSERT_MESSAGE
4461             (
4462                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
4463                 aStrBuf.getStr()== expVal &&
4464                     aStrBuf.getLength() == expVal.getLength()
4465             );
4466 
4467         }
4468 
append_034()4469         void append_034()
4470         {
4471             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
4472             OString                expVal( aStrBuf.getStr() );
4473             sal_Int32              input = 4;
4474             sal_Int16              radix = 16;
4475 
4476             expVal += OString( "4" );
4477             aStrBuf.append( input, radix );
4478 
4479             CPPUNIT_ASSERT_MESSAGE
4480             (
4481                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
4482                 aStrBuf.getStr()== expVal &&
4483                     aStrBuf.getLength() == expVal.getLength()
4484             );
4485 
4486         }
4487 
append_035()4488         void append_035()
4489         {
4490             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
4491             OString                expVal( aStrBuf.getStr() );
4492             sal_Int32              input = 8;
4493             sal_Int16              radix = 16;
4494 
4495             expVal += OString( "8" );
4496             aStrBuf.append( input, radix );
4497 
4498             CPPUNIT_ASSERT_MESSAGE
4499             (
4500                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
4501                 aStrBuf.getStr()== expVal &&
4502                     aStrBuf.getLength() == expVal.getLength()
4503             );
4504 
4505         }
4506 
append_036()4507         void append_036()
4508         {
4509             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
4510             OString                expVal( aStrBuf.getStr() );
4511             sal_Int32              input = 15;
4512             sal_Int16              radix = 16;
4513 
4514             expVal += OString( "f" );
4515             aStrBuf.append( input, radix );
4516 
4517             CPPUNIT_ASSERT_MESSAGE
4518             (
4519                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
4520                 aStrBuf.getStr()== expVal &&
4521                     aStrBuf.getLength() == expVal.getLength()
4522             );
4523 
4524         }
4525 
append_037()4526         void append_037()
4527         {
4528             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
4529             OString                expVal( aStrBuf.getStr() );
4530             sal_Int32              input = 0;
4531             sal_Int16              radix = 36;
4532 
4533             expVal += OString( "0" );
4534             aStrBuf.append( input, radix );
4535 
4536             CPPUNIT_ASSERT_MESSAGE
4537             (
4538                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
4539                 aStrBuf.getStr()== expVal &&
4540                     aStrBuf.getLength() == expVal.getLength()
4541             );
4542 
4543         }
4544 
append_038()4545         void append_038()
4546         {
4547             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
4548             OString                expVal( aStrBuf.getStr() );
4549             sal_Int32              input = 4;
4550             sal_Int16              radix = 36;
4551 
4552             expVal += OString( "4" );
4553             aStrBuf.append( input, radix );
4554 
4555             CPPUNIT_ASSERT_MESSAGE
4556             (
4557                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
4558                 aStrBuf.getStr()== expVal &&
4559                     aStrBuf.getLength() == expVal.getLength()
4560             );
4561 
4562         }
4563 
append_039()4564         void append_039()
4565         {
4566             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
4567             OString                expVal( aStrBuf.getStr() );
4568             sal_Int32              input = 8;
4569             sal_Int16              radix = 36;
4570 
4571             expVal += OString( "8" );
4572             aStrBuf.append( input, radix );
4573 
4574             CPPUNIT_ASSERT_MESSAGE
4575             (
4576                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
4577                 aStrBuf.getStr()== expVal &&
4578                     aStrBuf.getLength() == expVal.getLength()
4579             );
4580 
4581         }
4582 
append_040()4583         void append_040()
4584         {
4585             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
4586             OString                expVal( aStrBuf.getStr() );
4587             sal_Int32              input = 35;
4588             sal_Int16              radix = 36;
4589 
4590             expVal += OString( "z" );
4591             aStrBuf.append( input, radix );
4592 
4593             CPPUNIT_ASSERT_MESSAGE
4594             (
4595                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
4596                 aStrBuf.getStr()== expVal &&
4597                     aStrBuf.getLength() == expVal.getLength()
4598             );
4599 
4600         }
4601 
append_041()4602         void append_041()
4603         {
4604             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
4605             OString                expVal( aStrBuf.getStr() );
4606             sal_Int32              input = 0;
4607             sal_Int16              radix = 2;
4608 
4609             expVal += OString( "0" );
4610             aStrBuf.append( input, radix );
4611 
4612             CPPUNIT_ASSERT_MESSAGE
4613             (
4614                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
4615                 aStrBuf.getStr()== expVal &&
4616                     aStrBuf.getLength() == expVal.getLength()
4617             );
4618 
4619         }
4620 
append_042()4621         void append_042()
4622         {
4623             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
4624             OString                expVal( aStrBuf.getStr() );
4625             sal_Int32              input = 4;
4626             sal_Int16              radix = 2;
4627 
4628             expVal += OString( "100" );
4629             aStrBuf.append( input, radix );
4630 
4631             CPPUNIT_ASSERT_MESSAGE
4632             (
4633                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
4634                 aStrBuf.getStr()== expVal &&
4635                     aStrBuf.getLength() == expVal.getLength()
4636             );
4637 
4638         }
4639 
append_043()4640         void append_043()
4641         {
4642             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
4643             OString                expVal( aStrBuf.getStr() );
4644             sal_Int32              input = 8;
4645             sal_Int16              radix = 2;
4646 
4647             expVal += OString( "1000" );
4648             aStrBuf.append( input, radix );
4649 
4650             CPPUNIT_ASSERT_MESSAGE
4651             (
4652                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
4653                 aStrBuf.getStr()== expVal &&
4654                     aStrBuf.getLength() == expVal.getLength()
4655             );
4656 
4657         }
4658 
append_044()4659         void append_044()
4660         {
4661             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
4662             OString                expVal( aStrBuf.getStr() );
4663             sal_Int32              input = 15;
4664             sal_Int16              radix = 2;
4665 
4666             expVal += OString( "1111" );
4667             aStrBuf.append( input, radix );
4668 
4669             CPPUNIT_ASSERT_MESSAGE
4670             (
4671                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
4672                 aStrBuf.getStr()== expVal &&
4673                     aStrBuf.getLength() == expVal.getLength()
4674             );
4675 
4676         }
4677 
append_045()4678         void append_045()
4679         {
4680             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
4681             OString                expVal( aStrBuf.getStr() );
4682             sal_Int32              input = 0;
4683             sal_Int16              radix = 8;
4684 
4685             expVal += OString( "0" );
4686             aStrBuf.append( input, radix );
4687 
4688             CPPUNIT_ASSERT_MESSAGE
4689             (
4690                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
4691                 aStrBuf.getStr()== expVal &&
4692                     aStrBuf.getLength() == expVal.getLength()
4693             );
4694 
4695         }
4696 
append_046()4697         void append_046()
4698         {
4699             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
4700             OString                expVal( aStrBuf.getStr() );
4701             sal_Int32              input = 4;
4702             sal_Int16              radix = 8;
4703 
4704             expVal += OString( "4" );
4705             aStrBuf.append( input, radix );
4706 
4707             CPPUNIT_ASSERT_MESSAGE
4708             (
4709                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
4710                 aStrBuf.getStr()== expVal &&
4711                     aStrBuf.getLength() == expVal.getLength()
4712             );
4713 
4714         }
4715 
append_047()4716         void append_047()
4717         {
4718             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
4719             OString                expVal( aStrBuf.getStr() );
4720             sal_Int32              input = 8;
4721             sal_Int16              radix = 8;
4722 
4723             expVal += OString( "10" );
4724             aStrBuf.append( input, radix );
4725 
4726             CPPUNIT_ASSERT_MESSAGE
4727             (
4728                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
4729                 aStrBuf.getStr()== expVal &&
4730                     aStrBuf.getLength() == expVal.getLength()
4731             );
4732 
4733         }
4734 
append_048()4735         void append_048()
4736         {
4737             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
4738             OString                expVal( aStrBuf.getStr() );
4739             sal_Int32              input = 15;
4740             sal_Int16              radix = 8;
4741 
4742             expVal += OString( "17" );
4743             aStrBuf.append( input, radix );
4744 
4745             CPPUNIT_ASSERT_MESSAGE
4746             (
4747                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
4748                 aStrBuf.getStr()== expVal &&
4749                     aStrBuf.getLength() == expVal.getLength()
4750             );
4751 
4752         }
4753 
append_049()4754         void append_049()
4755         {
4756             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
4757             OString                expVal( aStrBuf.getStr() );
4758             sal_Int32              input = 0;
4759             sal_Int16              radix = 10;
4760 
4761             expVal += OString( "0" );
4762             aStrBuf.append( input, radix );
4763 
4764             CPPUNIT_ASSERT_MESSAGE
4765             (
4766                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
4767                 aStrBuf.getStr()== expVal &&
4768                     aStrBuf.getLength() == expVal.getLength()
4769             );
4770 
4771         }
4772 
append_050()4773         void append_050()
4774         {
4775             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
4776             OString                expVal( aStrBuf.getStr() );
4777             sal_Int32              input = 4;
4778             sal_Int16              radix = 10;
4779 
4780             expVal += OString( "4" );
4781             aStrBuf.append( input, radix );
4782 
4783             CPPUNIT_ASSERT_MESSAGE
4784             (
4785                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
4786                 aStrBuf.getStr()== expVal &&
4787                     aStrBuf.getLength() == expVal.getLength()
4788             );
4789 
4790         }
4791 
append_051()4792         void append_051()
4793         {
4794             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
4795             OString                expVal( aStrBuf.getStr() );
4796             sal_Int32              input = 8;
4797             sal_Int16              radix = 10;
4798 
4799             expVal += OString( "8" );
4800             aStrBuf.append( input, radix );
4801 
4802             CPPUNIT_ASSERT_MESSAGE
4803             (
4804                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
4805                 aStrBuf.getStr()== expVal &&
4806                     aStrBuf.getLength() == expVal.getLength()
4807             );
4808 
4809         }
4810 
append_052()4811         void append_052()
4812         {
4813             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
4814             OString                expVal( aStrBuf.getStr() );
4815             sal_Int32              input = 15;
4816             sal_Int16              radix = 10;
4817 
4818             expVal += OString( "15" );
4819             aStrBuf.append( input, radix );
4820 
4821             CPPUNIT_ASSERT_MESSAGE
4822             (
4823                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
4824                 aStrBuf.getStr()== expVal &&
4825                     aStrBuf.getLength() == expVal.getLength()
4826             );
4827 
4828         }
4829 
append_053()4830         void append_053()
4831         {
4832             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
4833             OString                expVal( aStrBuf.getStr() );
4834             sal_Int32              input = 0;
4835             sal_Int16              radix = 16;
4836 
4837             expVal += OString( "0" );
4838             aStrBuf.append( input, radix );
4839 
4840             CPPUNIT_ASSERT_MESSAGE
4841             (
4842                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
4843                 aStrBuf.getStr()== expVal &&
4844                     aStrBuf.getLength() == expVal.getLength()
4845             );
4846 
4847         }
4848 
append_054()4849         void append_054()
4850         {
4851             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
4852             OString                expVal( aStrBuf.getStr() );
4853             sal_Int32              input = 4;
4854             sal_Int16              radix = 16;
4855 
4856             expVal += OString( "4" );
4857             aStrBuf.append( input, radix );
4858 
4859             CPPUNIT_ASSERT_MESSAGE
4860             (
4861                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
4862                 aStrBuf.getStr()== expVal &&
4863                     aStrBuf.getLength() == expVal.getLength()
4864             );
4865 
4866         }
4867 
append_055()4868         void append_055()
4869         {
4870             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
4871             OString                expVal( aStrBuf.getStr() );
4872             sal_Int32              input = 8;
4873             sal_Int16              radix = 16;
4874 
4875             expVal += OString( "8" );
4876             aStrBuf.append( input, radix );
4877 
4878             CPPUNIT_ASSERT_MESSAGE
4879             (
4880                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
4881                 aStrBuf.getStr()== expVal &&
4882                     aStrBuf.getLength() == expVal.getLength()
4883             );
4884 
4885         }
4886 
append_056()4887         void append_056()
4888         {
4889             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
4890             OString                expVal( aStrBuf.getStr() );
4891             sal_Int32              input = 15;
4892             sal_Int16              radix = 16;
4893 
4894             expVal += OString( "f" );
4895             aStrBuf.append( input, radix );
4896 
4897             CPPUNIT_ASSERT_MESSAGE
4898             (
4899                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
4900                 aStrBuf.getStr()== expVal &&
4901                     aStrBuf.getLength() == expVal.getLength()
4902             );
4903 
4904         }
4905 
append_057()4906         void append_057()
4907         {
4908             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
4909             OString                expVal( aStrBuf.getStr() );
4910             sal_Int32              input = 0;
4911             sal_Int16              radix = 36;
4912 
4913             expVal += OString( "0" );
4914             aStrBuf.append( input, radix );
4915 
4916             CPPUNIT_ASSERT_MESSAGE
4917             (
4918                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
4919                 aStrBuf.getStr()== expVal &&
4920                     aStrBuf.getLength() == expVal.getLength()
4921             );
4922 
4923         }
4924 
append_058()4925         void append_058()
4926         {
4927             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
4928             OString                expVal( aStrBuf.getStr() );
4929             sal_Int32              input = 4;
4930             sal_Int16              radix = 36;
4931 
4932             expVal += OString( "4" );
4933             aStrBuf.append( input, radix );
4934 
4935             CPPUNIT_ASSERT_MESSAGE
4936             (
4937                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
4938                 aStrBuf.getStr()== expVal &&
4939                     aStrBuf.getLength() == expVal.getLength()
4940             );
4941 
4942         }
4943 
append_059()4944         void append_059()
4945         {
4946             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
4947             OString                expVal( aStrBuf.getStr() );
4948             sal_Int32              input = 8;
4949             sal_Int16              radix = 36;
4950 
4951             expVal += OString( "8" );
4952             aStrBuf.append( input, radix );
4953 
4954             CPPUNIT_ASSERT_MESSAGE
4955             (
4956                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
4957                 aStrBuf.getStr()== expVal &&
4958                     aStrBuf.getLength() == expVal.getLength()
4959             );
4960 
4961         }
4962 
append_060()4963         void append_060()
4964         {
4965             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
4966             OString                expVal( aStrBuf.getStr() );
4967             sal_Int32              input = 35;
4968             sal_Int16              radix = 36;
4969 
4970             expVal += OString( "z" );
4971             aStrBuf.append( input, radix );
4972 
4973             CPPUNIT_ASSERT_MESSAGE
4974             (
4975                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
4976                 aStrBuf.getStr()== expVal &&
4977                     aStrBuf.getLength() == expVal.getLength()
4978             );
4979 
4980         }
4981 
append_061()4982         void append_061()
4983         {
4984             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
4985             OString                expVal( aStrBuf.getStr() );
4986             sal_Int32              input = 0;
4987             sal_Int16              radix = 2;
4988 
4989             expVal += OString( "0" );
4990             aStrBuf.append( input, radix );
4991 
4992             CPPUNIT_ASSERT_MESSAGE
4993             (
4994                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
4995                 aStrBuf.getStr()== expVal &&
4996                     aStrBuf.getLength() == expVal.getLength()
4997             );
4998 
4999         }
5000 
append_062()5001         void append_062()
5002         {
5003             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
5004             OString                expVal( aStrBuf.getStr() );
5005             sal_Int32              input = 4;
5006             sal_Int16              radix = 2;
5007 
5008             expVal += OString( "100" );
5009             aStrBuf.append( input, radix );
5010 
5011             CPPUNIT_ASSERT_MESSAGE
5012             (
5013                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
5014                 aStrBuf.getStr()== expVal &&
5015                     aStrBuf.getLength() == expVal.getLength()
5016             );
5017 
5018         }
5019 
append_063()5020         void append_063()
5021         {
5022             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
5023             OString                expVal( aStrBuf.getStr() );
5024             sal_Int32              input = 8;
5025             sal_Int16              radix = 2;
5026 
5027             expVal += OString( "1000" );
5028             aStrBuf.append( input, radix );
5029 
5030             CPPUNIT_ASSERT_MESSAGE
5031             (
5032                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
5033                 aStrBuf.getStr()== expVal &&
5034                     aStrBuf.getLength() == expVal.getLength()
5035             );
5036 
5037         }
5038 
append_064()5039         void append_064()
5040         {
5041             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
5042             OString                expVal( aStrBuf.getStr() );
5043             sal_Int32              input = 15;
5044             sal_Int16              radix = 2;
5045 
5046             expVal += OString( "1111" );
5047             aStrBuf.append( input, radix );
5048 
5049             CPPUNIT_ASSERT_MESSAGE
5050             (
5051                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
5052                 aStrBuf.getStr()== expVal &&
5053                     aStrBuf.getLength() == expVal.getLength()
5054             );
5055 
5056         }
5057 
append_065()5058         void append_065()
5059         {
5060             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
5061             OString                expVal( aStrBuf.getStr() );
5062             sal_Int32              input = 0;
5063             sal_Int16              radix = 8;
5064 
5065             expVal += OString( "0" );
5066             aStrBuf.append( input, radix );
5067 
5068             CPPUNIT_ASSERT_MESSAGE
5069             (
5070                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
5071                 aStrBuf.getStr()== expVal &&
5072                     aStrBuf.getLength() == expVal.getLength()
5073             );
5074 
5075         }
5076 
append_066()5077         void append_066()
5078         {
5079             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
5080             OString                expVal( aStrBuf.getStr() );
5081             sal_Int32              input = 4;
5082             sal_Int16              radix = 8;
5083 
5084             expVal += OString( "4" );
5085             aStrBuf.append( input, radix );
5086 
5087             CPPUNIT_ASSERT_MESSAGE
5088             (
5089                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
5090                 aStrBuf.getStr()== expVal &&
5091                     aStrBuf.getLength() == expVal.getLength()
5092             );
5093 
5094         }
5095 
append_067()5096         void append_067()
5097         {
5098             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
5099             OString                expVal( aStrBuf.getStr() );
5100             sal_Int32              input = 8;
5101             sal_Int16              radix = 8;
5102 
5103             expVal += OString( "10" );
5104             aStrBuf.append( input, radix );
5105 
5106             CPPUNIT_ASSERT_MESSAGE
5107             (
5108                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
5109                 aStrBuf.getStr()== expVal &&
5110                     aStrBuf.getLength() == expVal.getLength()
5111             );
5112 
5113         }
5114 
append_068()5115         void append_068()
5116         {
5117             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
5118             OString                expVal( aStrBuf.getStr() );
5119             sal_Int32              input = 15;
5120             sal_Int16              radix = 8;
5121 
5122             expVal += OString( "17" );
5123             aStrBuf.append( input, radix );
5124 
5125             CPPUNIT_ASSERT_MESSAGE
5126             (
5127                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
5128                 aStrBuf.getStr()== expVal &&
5129                     aStrBuf.getLength() == expVal.getLength()
5130             );
5131 
5132         }
5133 
append_069()5134         void append_069()
5135         {
5136             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
5137             OString                expVal( aStrBuf.getStr() );
5138             sal_Int32              input = 0;
5139             sal_Int16              radix = 10;
5140 
5141             expVal += OString( "0" );
5142             aStrBuf.append( input, radix );
5143 
5144             CPPUNIT_ASSERT_MESSAGE
5145             (
5146                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
5147                 aStrBuf.getStr()== expVal &&
5148                     aStrBuf.getLength() == expVal.getLength()
5149             );
5150 
5151         }
5152 
append_070()5153         void append_070()
5154         {
5155             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
5156             OString                expVal( aStrBuf.getStr() );
5157             sal_Int32              input = 4;
5158             sal_Int16              radix = 10;
5159 
5160             expVal += OString( "4" );
5161             aStrBuf.append( input, radix );
5162 
5163             CPPUNIT_ASSERT_MESSAGE
5164             (
5165                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
5166                 aStrBuf.getStr()== expVal &&
5167                     aStrBuf.getLength() == expVal.getLength()
5168             );
5169 
5170         }
5171 
append_071()5172         void append_071()
5173         {
5174             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
5175             OString                expVal( aStrBuf.getStr() );
5176             sal_Int32              input = 8;
5177             sal_Int16              radix = 10;
5178 
5179             expVal += OString( "8" );
5180             aStrBuf.append( input, radix );
5181 
5182             CPPUNIT_ASSERT_MESSAGE
5183             (
5184                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
5185                 aStrBuf.getStr()== expVal &&
5186                     aStrBuf.getLength() == expVal.getLength()
5187             );
5188 
5189         }
5190 
append_072()5191         void append_072()
5192         {
5193             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
5194             OString                expVal( aStrBuf.getStr() );
5195             sal_Int32              input = 15;
5196             sal_Int16              radix = 10;
5197 
5198             expVal += OString( "15" );
5199             aStrBuf.append( input, radix );
5200 
5201             CPPUNIT_ASSERT_MESSAGE
5202             (
5203                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
5204                 aStrBuf.getStr()== expVal &&
5205                     aStrBuf.getLength() == expVal.getLength()
5206             );
5207 
5208         }
5209 
append_073()5210         void append_073()
5211         {
5212             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
5213             OString                expVal( aStrBuf.getStr() );
5214             sal_Int32              input = 0;
5215             sal_Int16              radix = 16;
5216 
5217             expVal += OString( "0" );
5218             aStrBuf.append( input, radix );
5219 
5220             CPPUNIT_ASSERT_MESSAGE
5221             (
5222                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
5223                 aStrBuf.getStr()== expVal &&
5224                     aStrBuf.getLength() == expVal.getLength()
5225             );
5226 
5227         }
5228 
append_074()5229         void append_074()
5230         {
5231             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
5232             OString                expVal( aStrBuf.getStr() );
5233             sal_Int32              input = 4;
5234             sal_Int16              radix = 16;
5235 
5236             expVal += OString( "4" );
5237             aStrBuf.append( input, radix );
5238 
5239             CPPUNIT_ASSERT_MESSAGE
5240             (
5241                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
5242                 aStrBuf.getStr()== expVal &&
5243                     aStrBuf.getLength() == expVal.getLength()
5244             );
5245 
5246         }
5247 
append_075()5248         void append_075()
5249         {
5250             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
5251             OString                expVal( aStrBuf.getStr() );
5252             sal_Int32              input = 8;
5253             sal_Int16              radix = 16;
5254 
5255             expVal += OString( "8" );
5256             aStrBuf.append( input, radix );
5257 
5258             CPPUNIT_ASSERT_MESSAGE
5259             (
5260                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
5261                 aStrBuf.getStr()== expVal &&
5262                     aStrBuf.getLength() == expVal.getLength()
5263             );
5264 
5265         }
5266 
append_076()5267         void append_076()
5268         {
5269             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
5270             OString                expVal( aStrBuf.getStr() );
5271             sal_Int32              input = 15;
5272             sal_Int16              radix = 16;
5273 
5274             expVal += OString( "f" );
5275             aStrBuf.append( input, radix );
5276 
5277             CPPUNIT_ASSERT_MESSAGE
5278             (
5279                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
5280                 aStrBuf.getStr()== expVal &&
5281                     aStrBuf.getLength() == expVal.getLength()
5282             );
5283 
5284         }
5285 
append_077()5286         void append_077()
5287         {
5288             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
5289             OString                expVal( aStrBuf.getStr() );
5290             sal_Int32              input = 0;
5291             sal_Int16              radix = 36;
5292 
5293             expVal += OString( "0" );
5294             aStrBuf.append( input, radix );
5295 
5296             CPPUNIT_ASSERT_MESSAGE
5297             (
5298                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
5299                 aStrBuf.getStr()== expVal &&
5300                     aStrBuf.getLength() == expVal.getLength()
5301             );
5302 
5303         }
5304 
append_078()5305         void append_078()
5306         {
5307             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
5308             OString                expVal( aStrBuf.getStr() );
5309             sal_Int32              input = 4;
5310             sal_Int16              radix = 36;
5311 
5312             expVal += OString( "4" );
5313             aStrBuf.append( input, radix );
5314 
5315             CPPUNIT_ASSERT_MESSAGE
5316             (
5317                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
5318                 aStrBuf.getStr()== expVal &&
5319                     aStrBuf.getLength() == expVal.getLength()
5320             );
5321 
5322         }
5323 
append_079()5324         void append_079()
5325         {
5326             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
5327             OString                expVal( aStrBuf.getStr() );
5328             sal_Int32              input = 8;
5329             sal_Int16              radix = 36;
5330 
5331             expVal += OString( "8" );
5332             aStrBuf.append( input, radix );
5333 
5334             CPPUNIT_ASSERT_MESSAGE
5335             (
5336                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
5337                 aStrBuf.getStr()== expVal &&
5338                     aStrBuf.getLength() == expVal.getLength()
5339             );
5340 
5341         }
5342 
append_080()5343         void append_080()
5344         {
5345             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
5346             OString                expVal( aStrBuf.getStr() );
5347             sal_Int32              input = 35;
5348             sal_Int16              radix = 36;
5349 
5350             expVal += OString( "z" );
5351             aStrBuf.append( input, radix );
5352 
5353             CPPUNIT_ASSERT_MESSAGE
5354             (
5355                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
5356                 aStrBuf.getStr()== expVal &&
5357                     aStrBuf.getLength() == expVal.getLength()
5358             );
5359 
5360         }
5361 
append_081()5362         void append_081()
5363         {
5364             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
5365             OString                expVal( aStrBuf.getStr() );
5366             sal_Int32              input = 0;
5367             sal_Int16              radix = 2;
5368 
5369             expVal += OString( "0" );
5370             aStrBuf.append( input, radix );
5371 
5372             CPPUNIT_ASSERT_MESSAGE
5373             (
5374                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
5375                 aStrBuf.getStr()== expVal &&
5376                     aStrBuf.getLength() == expVal.getLength()
5377             );
5378 
5379         }
5380 
append_082()5381         void append_082()
5382         {
5383             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
5384             OString                expVal( aStrBuf.getStr() );
5385             sal_Int32              input = 4;
5386             sal_Int16              radix = 2;
5387 
5388             expVal += OString( "100" );
5389             aStrBuf.append( input, radix );
5390 
5391             CPPUNIT_ASSERT_MESSAGE
5392             (
5393                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
5394                 aStrBuf.getStr()== expVal &&
5395                     aStrBuf.getLength() == expVal.getLength()
5396             );
5397 
5398         }
5399 
append_083()5400         void append_083()
5401         {
5402             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
5403             OString                expVal( aStrBuf.getStr() );
5404             sal_Int32              input = 8;
5405             sal_Int16              radix = 2;
5406 
5407             expVal += OString( "1000" );
5408             aStrBuf.append( input, radix );
5409 
5410             CPPUNIT_ASSERT_MESSAGE
5411             (
5412                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
5413                 aStrBuf.getStr()== expVal &&
5414                     aStrBuf.getLength() == expVal.getLength()
5415             );
5416 
5417         }
5418 
append_084()5419         void append_084()
5420         {
5421             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
5422             OString                expVal( aStrBuf.getStr() );
5423             sal_Int32              input = 15;
5424             sal_Int16              radix = 2;
5425 
5426             expVal += OString( "1111" );
5427             aStrBuf.append( input, radix );
5428 
5429             CPPUNIT_ASSERT_MESSAGE
5430             (
5431                 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
5432                 aStrBuf.getStr()== expVal &&
5433                     aStrBuf.getLength() == expVal.getLength()
5434             );
5435 
5436         }
5437 
append_085()5438         void append_085()
5439         {
5440             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
5441             OString                expVal( aStrBuf.getStr() );
5442             sal_Int32              input = 0;
5443             sal_Int16              radix = 8;
5444 
5445             expVal += OString( "0" );
5446             aStrBuf.append( input, radix );
5447 
5448             CPPUNIT_ASSERT_MESSAGE
5449             (
5450                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
5451                 aStrBuf.getStr()== expVal &&
5452                     aStrBuf.getLength() == expVal.getLength()
5453             );
5454 
5455         }
5456 
append_086()5457         void append_086()
5458         {
5459             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
5460             OString                expVal( aStrBuf.getStr() );
5461             sal_Int32              input = 4;
5462             sal_Int16              radix = 8;
5463 
5464             expVal += OString( "4" );
5465             aStrBuf.append( input, radix );
5466 
5467             CPPUNIT_ASSERT_MESSAGE
5468             (
5469                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
5470                 aStrBuf.getStr()== expVal &&
5471                     aStrBuf.getLength() == expVal.getLength()
5472             );
5473 
5474         }
5475 
append_087()5476         void append_087()
5477         {
5478             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
5479             OString                expVal( aStrBuf.getStr() );
5480             sal_Int32              input = 8;
5481             sal_Int16              radix = 8;
5482 
5483             expVal += OString( "10" );
5484             aStrBuf.append( input, radix );
5485 
5486             CPPUNIT_ASSERT_MESSAGE
5487             (
5488                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
5489                 aStrBuf.getStr()== expVal &&
5490                     aStrBuf.getLength() == expVal.getLength()
5491             );
5492 
5493         }
5494 
append_088()5495         void append_088()
5496         {
5497             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
5498             OString                expVal( aStrBuf.getStr() );
5499             sal_Int32              input = 15;
5500             sal_Int16              radix = 8;
5501 
5502             expVal += OString( "17" );
5503             aStrBuf.append( input, radix );
5504 
5505             CPPUNIT_ASSERT_MESSAGE
5506             (
5507                 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
5508                 aStrBuf.getStr()== expVal &&
5509                     aStrBuf.getLength() == expVal.getLength()
5510             );
5511 
5512         }
5513 
append_089()5514         void append_089()
5515         {
5516             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
5517             OString                expVal( aStrBuf.getStr() );
5518             sal_Int32              input = 0;
5519             sal_Int16              radix = 10;
5520 
5521             expVal += OString( "0" );
5522             aStrBuf.append( input, radix );
5523 
5524             CPPUNIT_ASSERT_MESSAGE
5525             (
5526                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
5527                 aStrBuf.getStr()== expVal &&
5528                     aStrBuf.getLength() == expVal.getLength()
5529             );
5530 
5531         }
5532 
append_090()5533         void append_090()
5534         {
5535             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
5536             OString                expVal( aStrBuf.getStr() );
5537             sal_Int32              input = 4;
5538             sal_Int16              radix = 10;
5539 
5540             expVal += OString( "4" );
5541             aStrBuf.append( input, radix );
5542 
5543             CPPUNIT_ASSERT_MESSAGE
5544             (
5545                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
5546                 aStrBuf.getStr()== expVal &&
5547                     aStrBuf.getLength() == expVal.getLength()
5548             );
5549 
5550         }
5551 
append_091()5552         void append_091()
5553         {
5554             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
5555             OString                expVal( aStrBuf.getStr() );
5556             sal_Int32              input = 8;
5557             sal_Int16              radix = 10;
5558 
5559             expVal += OString( "8" );
5560             aStrBuf.append( input, radix );
5561 
5562             CPPUNIT_ASSERT_MESSAGE
5563             (
5564                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
5565                 aStrBuf.getStr()== expVal &&
5566                     aStrBuf.getLength() == expVal.getLength()
5567             );
5568 
5569         }
5570 
append_092()5571         void append_092()
5572         {
5573             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
5574             OString                expVal( aStrBuf.getStr() );
5575             sal_Int32              input = 15;
5576             sal_Int16              radix = 10;
5577 
5578             expVal += OString( "15" );
5579             aStrBuf.append( input, radix );
5580 
5581             CPPUNIT_ASSERT_MESSAGE
5582             (
5583                 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
5584                 aStrBuf.getStr()== expVal &&
5585                     aStrBuf.getLength() == expVal.getLength()
5586             );
5587 
5588         }
5589 
append_093()5590         void append_093()
5591         {
5592             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
5593             OString                expVal( aStrBuf.getStr() );
5594             sal_Int32              input = 0;
5595             sal_Int16              radix = 16;
5596 
5597             expVal += OString( "0" );
5598             aStrBuf.append( input, radix );
5599 
5600             CPPUNIT_ASSERT_MESSAGE
5601             (
5602                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
5603                 aStrBuf.getStr()== expVal &&
5604                     aStrBuf.getLength() == expVal.getLength()
5605             );
5606 
5607         }
5608 
append_094()5609         void append_094()
5610         {
5611             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
5612             OString                expVal( aStrBuf.getStr() );
5613             sal_Int32              input = 4;
5614             sal_Int16              radix = 16;
5615 
5616             expVal += OString( "4" );
5617             aStrBuf.append( input, radix );
5618 
5619             CPPUNIT_ASSERT_MESSAGE
5620             (
5621                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
5622                 aStrBuf.getStr()== expVal &&
5623                     aStrBuf.getLength() == expVal.getLength()
5624             );
5625 
5626         }
5627 
append_095()5628         void append_095()
5629         {
5630             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
5631             OString                expVal( aStrBuf.getStr() );
5632             sal_Int32              input = 8;
5633             sal_Int16              radix = 16;
5634 
5635             expVal += OString( "8" );
5636             aStrBuf.append( input, radix );
5637 
5638             CPPUNIT_ASSERT_MESSAGE
5639             (
5640                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
5641                 aStrBuf.getStr()== expVal &&
5642                     aStrBuf.getLength() == expVal.getLength()
5643             );
5644 
5645         }
5646 
append_096()5647         void append_096()
5648         {
5649             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
5650             OString                expVal( aStrBuf.getStr() );
5651             sal_Int32              input = 15;
5652             sal_Int16              radix = 16;
5653 
5654             expVal += OString( "f" );
5655             aStrBuf.append( input, radix );
5656 
5657             CPPUNIT_ASSERT_MESSAGE
5658             (
5659                 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
5660                 aStrBuf.getStr()== expVal &&
5661                     aStrBuf.getLength() == expVal.getLength()
5662             );
5663 
5664         }
5665 
append_097()5666         void append_097()
5667         {
5668             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
5669             OString                expVal( aStrBuf.getStr() );
5670             sal_Int32              input = 0;
5671             sal_Int16              radix = 36;
5672 
5673             expVal += OString( "0" );
5674             aStrBuf.append( input, radix );
5675 
5676             CPPUNIT_ASSERT_MESSAGE
5677             (
5678                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
5679                 aStrBuf.getStr()== expVal &&
5680                     aStrBuf.getLength() == expVal.getLength()
5681             );
5682 
5683         }
5684 
append_098()5685         void append_098()
5686         {
5687             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
5688             OString                expVal( aStrBuf.getStr() );
5689             sal_Int32              input = 4;
5690             sal_Int16              radix = 36;
5691 
5692             expVal += OString( "4" );
5693             aStrBuf.append( input, radix );
5694 
5695             CPPUNIT_ASSERT_MESSAGE
5696             (
5697                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
5698                 aStrBuf.getStr()== expVal &&
5699                     aStrBuf.getLength() == expVal.getLength()
5700             );
5701 
5702         }
5703 
append_099()5704         void append_099()
5705         {
5706             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
5707             OString                expVal( aStrBuf.getStr() );
5708             sal_Int32              input = 8;
5709             sal_Int16              radix = 36;
5710 
5711             expVal += OString( "8" );
5712             aStrBuf.append( input, radix );
5713 
5714             CPPUNIT_ASSERT_MESSAGE
5715             (
5716                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
5717                 aStrBuf.getStr()== expVal &&
5718                     aStrBuf.getLength() == expVal.getLength()
5719             );
5720 
5721         }
5722 
append_100()5723         void append_100()
5724         {
5725             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
5726             OString                expVal( aStrBuf.getStr() );
5727             sal_Int32              input = 35;
5728             sal_Int16              radix = 36;
5729 
5730             expVal += OString( "z" );
5731             aStrBuf.append( input, radix );
5732 
5733             CPPUNIT_ASSERT_MESSAGE
5734             (
5735                 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
5736                 aStrBuf.getStr()== expVal &&
5737                     aStrBuf.getLength() == expVal.getLength()
5738             );
5739 
5740         }
5741 
5742         CPPUNIT_TEST_SUITE( append_006_Int32 );
5743         CPPUNIT_TEST( append_001 ); CPPUNIT_TEST( append_002 );
5744         CPPUNIT_TEST( append_003 ); CPPUNIT_TEST( append_004 );
5745         CPPUNIT_TEST( append_005 ); CPPUNIT_TEST( append_006 );
5746         CPPUNIT_TEST( append_007 ); CPPUNIT_TEST( append_008 );
5747         CPPUNIT_TEST( append_009 ); CPPUNIT_TEST( append_010 );
5748         CPPUNIT_TEST( append_011 ); CPPUNIT_TEST( append_012 );
5749         CPPUNIT_TEST( append_013 ); CPPUNIT_TEST( append_014 );
5750         CPPUNIT_TEST( append_015 ); CPPUNIT_TEST( append_016 );
5751         CPPUNIT_TEST( append_017 ); CPPUNIT_TEST( append_018 );
5752         CPPUNIT_TEST( append_019 ); CPPUNIT_TEST( append_020 );
5753         CPPUNIT_TEST( append_021 ); CPPUNIT_TEST( append_022 );
5754         CPPUNIT_TEST( append_023 ); CPPUNIT_TEST( append_024 );
5755         CPPUNIT_TEST( append_025 ); CPPUNIT_TEST( append_026 );
5756         CPPUNIT_TEST( append_027 ); CPPUNIT_TEST( append_028 );
5757         CPPUNIT_TEST( append_029 ); CPPUNIT_TEST( append_030 );
5758         CPPUNIT_TEST( append_031 ); CPPUNIT_TEST( append_032 );
5759         CPPUNIT_TEST( append_033 ); CPPUNIT_TEST( append_034 );
5760         CPPUNIT_TEST( append_035 ); CPPUNIT_TEST( append_036 );
5761         CPPUNIT_TEST( append_037 ); CPPUNIT_TEST( append_038 );
5762         CPPUNIT_TEST( append_039 ); CPPUNIT_TEST( append_040 );
5763         CPPUNIT_TEST( append_041 ); CPPUNIT_TEST( append_042 );
5764         CPPUNIT_TEST( append_043 ); CPPUNIT_TEST( append_044 );
5765         CPPUNIT_TEST( append_045 ); CPPUNIT_TEST( append_046 );
5766         CPPUNIT_TEST( append_047 ); CPPUNIT_TEST( append_048 );
5767         CPPUNIT_TEST( append_049 ); CPPUNIT_TEST( append_050 );
5768         CPPUNIT_TEST( append_051 ); CPPUNIT_TEST( append_052 );
5769         CPPUNIT_TEST( append_053 ); CPPUNIT_TEST( append_054 );
5770         CPPUNIT_TEST( append_055 ); CPPUNIT_TEST( append_056 );
5771         CPPUNIT_TEST( append_057 ); CPPUNIT_TEST( append_058 );
5772         CPPUNIT_TEST( append_059 ); CPPUNIT_TEST( append_060 );
5773         CPPUNIT_TEST( append_061 ); CPPUNIT_TEST( append_062 );
5774         CPPUNIT_TEST( append_063 ); CPPUNIT_TEST( append_064 );
5775         CPPUNIT_TEST( append_065 ); CPPUNIT_TEST( append_066 );
5776         CPPUNIT_TEST( append_067 ); CPPUNIT_TEST( append_068 );
5777         CPPUNIT_TEST( append_069 ); CPPUNIT_TEST( append_070 );
5778         CPPUNIT_TEST( append_071 ); CPPUNIT_TEST( append_072 );
5779         CPPUNIT_TEST( append_073 ); CPPUNIT_TEST( append_074 );
5780         CPPUNIT_TEST( append_075 ); CPPUNIT_TEST( append_076 );
5781         CPPUNIT_TEST( append_077 ); CPPUNIT_TEST( append_078 );
5782         CPPUNIT_TEST( append_079 ); CPPUNIT_TEST( append_080 );
5783         CPPUNIT_TEST( append_081 ); CPPUNIT_TEST( append_082 );
5784         CPPUNIT_TEST( append_083 ); CPPUNIT_TEST( append_084 );
5785         CPPUNIT_TEST( append_085 ); CPPUNIT_TEST( append_086 );
5786         CPPUNIT_TEST( append_087 ); CPPUNIT_TEST( append_088 );
5787         CPPUNIT_TEST( append_089 ); CPPUNIT_TEST( append_090 );
5788         CPPUNIT_TEST( append_091 ); CPPUNIT_TEST( append_092 );
5789         CPPUNIT_TEST( append_093 ); CPPUNIT_TEST( append_094 );
5790         CPPUNIT_TEST( append_095 ); CPPUNIT_TEST( append_096 );
5791         CPPUNIT_TEST( append_097 ); CPPUNIT_TEST( append_098 );
5792         CPPUNIT_TEST( append_099 ); CPPUNIT_TEST( append_100 );
5793         CPPUNIT_TEST_SUITE_END();
5794     };
5795 //------------------------------------------------------------------------
5796 // testing the method append( sal_Int32 i, sal_Int16 radix=2 )
5797 // where i = large constants
5798 // testing the method append( sal_Int32 i, sal_Int16 radix=8 )
5799 // where i = large constants
5800 // testing the method append( sal_Int32 i, sal_Int16 radix=10 )
5801 // where i = large constants
5802 // testing the method append( sal_Int32 i, sal_Int16 radix=16 )
5803 // where i = large constants
5804 // testing the method append( sal_Int32 i, sal_Int16 radix=36 )
5805 // where i = large constants
5806 //------------------------------------------------------------------------
5807     class  append_006_Int32_Bounderies : public CppUnit::TestFixture
5808     {
5809         OString* arrOUS[5];
5810 
5811     public:
setUp()5812         void setUp()
5813         {
5814             arrOUS[0] = new OString( kTestStr7 );
5815             arrOUS[1] = new OString(  );
5816             arrOUS[2] = new OString( kTestStr25 );
5817             arrOUS[3] = new OString( "\0"  );
5818             arrOUS[4] = new OString( kTestStr28 );
5819 
5820         }
5821 
tearDown()5822         void tearDown()
5823         {
5824             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
5825             delete arrOUS[3]; delete arrOUS[4];
5826         }
5827 
append_001()5828         void append_001()
5829         {
5830             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
5831             OString                expVal( aStrBuf.getStr() );
5832             sal_Int32              input = kSInt8Max;
5833             sal_Int16              radix = 2;
5834 
5835             expVal += OString( "1111111" );
5836             aStrBuf.append( input, radix );
5837 
5838             CPPUNIT_ASSERT_MESSAGE
5839             (
5840                 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
5841                 aStrBuf.getStr()== expVal &&
5842                     aStrBuf.getLength() == expVal.getLength()
5843             );
5844 
5845         }
5846 
append_002()5847         void append_002()
5848         {
5849             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
5850             OString                expVal( aStrBuf.getStr() );
5851             sal_Int32              input = kSInt32Max;
5852             sal_Int16              radix = 2;
5853 
5854             expVal += OString( "1111111111111111111111111111111" );
5855             aStrBuf.append( input, radix );
5856 
5857             CPPUNIT_ASSERT_MESSAGE
5858             (
5859                 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
5860                 aStrBuf.getStr()== expVal &&
5861                     aStrBuf.getLength() == expVal.getLength()
5862             );
5863 
5864         }
5865 
append_003()5866         void append_003()
5867         {
5868             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
5869             OString                expVal( aStrBuf.getStr() );
5870             sal_Int32              input = kSInt8Max;
5871             sal_Int16              radix = 8;
5872 
5873             expVal += OString( "177" );
5874             aStrBuf.append( input, radix );
5875 
5876             CPPUNIT_ASSERT_MESSAGE
5877             (
5878                 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
5879                 aStrBuf.getStr()== expVal &&
5880                     aStrBuf.getLength() == expVal.getLength()
5881             );
5882 
5883         }
5884 
append_004()5885         void append_004()
5886         {
5887             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
5888             OString                expVal( aStrBuf.getStr() );
5889             sal_Int32              input = kSInt32Max;
5890             sal_Int16              radix = 8;
5891 
5892             expVal += OString( "17777777777" );
5893             aStrBuf.append( input, radix );
5894 
5895             CPPUNIT_ASSERT_MESSAGE
5896             (
5897                 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
5898                 aStrBuf.getStr()== expVal &&
5899                     aStrBuf.getLength() == expVal.getLength()
5900             );
5901 
5902         }
5903 
append_005()5904         void append_005()
5905         {
5906             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
5907             OString                expVal( aStrBuf.getStr() );
5908             sal_Int32              input = kSInt8Max;
5909             sal_Int16              radix = 10;
5910 
5911             expVal += OString( "127" );
5912             aStrBuf.append( input, radix );
5913 
5914             CPPUNIT_ASSERT_MESSAGE
5915             (
5916                 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
5917                 aStrBuf.getStr()== expVal &&
5918                     aStrBuf.getLength() == expVal.getLength()
5919             );
5920 
5921         }
5922 
append_006()5923         void append_006()
5924         {
5925             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
5926             OString                expVal( aStrBuf.getStr() );
5927             sal_Int32              input = kSInt32Max;
5928             sal_Int16              radix = 10;
5929 
5930             expVal += OString( "2147483647" );
5931             aStrBuf.append( input, radix );
5932 
5933             CPPUNIT_ASSERT_MESSAGE
5934             (
5935                 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
5936                 aStrBuf.getStr()== expVal &&
5937                     aStrBuf.getLength() == expVal.getLength()
5938             );
5939 
5940         }
5941 
append_007()5942         void append_007()
5943         {
5944             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
5945             OString                expVal( aStrBuf.getStr() );
5946             sal_Int32              input = kSInt8Max;
5947             sal_Int16              radix = 16;
5948 
5949             expVal += OString( "7f" );
5950             aStrBuf.append( input, radix );
5951 
5952             CPPUNIT_ASSERT_MESSAGE
5953             (
5954                 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
5955                 aStrBuf.getStr()== expVal &&
5956                     aStrBuf.getLength() == expVal.getLength()
5957             );
5958 
5959         }
5960 
append_008()5961         void append_008()
5962         {
5963             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
5964             OString                expVal( aStrBuf.getStr() );
5965             sal_Int32              input = kSInt32Max;
5966             sal_Int16              radix = 16;
5967 
5968             expVal += OString( "7fffffff" );
5969             aStrBuf.append( input, radix );
5970 
5971             CPPUNIT_ASSERT_MESSAGE
5972             (
5973                 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
5974                 aStrBuf.getStr()== expVal &&
5975                     aStrBuf.getLength() == expVal.getLength()
5976             );
5977 
5978         }
5979 
append_009()5980         void append_009()
5981         {
5982             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
5983             OString                expVal( aStrBuf.getStr() );
5984             sal_Int32              input = kSInt8Max;
5985             sal_Int16              radix = 36;
5986 
5987             expVal += OString( "3j" );
5988             aStrBuf.append( input, radix );
5989 
5990             CPPUNIT_ASSERT_MESSAGE
5991             (
5992                 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
5993                 aStrBuf.getStr()== expVal &&
5994                     aStrBuf.getLength() == expVal.getLength()
5995             );
5996 
5997         }
5998 
append_010()5999         void append_010()
6000         {
6001             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
6002             OString                expVal( aStrBuf.getStr() );
6003             sal_Int32              input = kSInt32Max;
6004             sal_Int16              radix = 36;
6005 
6006             expVal += OString( "zik0zj" );
6007             aStrBuf.append( input, radix );
6008 
6009             CPPUNIT_ASSERT_MESSAGE
6010             (
6011                 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
6012                 aStrBuf.getStr()== expVal &&
6013                     aStrBuf.getLength() == expVal.getLength()
6014             );
6015 
6016         }
6017 
append_011()6018         void append_011()
6019         {
6020             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
6021             OString                expVal( aStrBuf.getStr() );
6022             sal_Int32              input = kSInt8Max;
6023             sal_Int16              radix = 2;
6024 
6025             expVal += OString( "1111111" );
6026             aStrBuf.append( input, radix );
6027 
6028             CPPUNIT_ASSERT_MESSAGE
6029             (
6030                 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
6031                 aStrBuf.getStr()== expVal &&
6032                     aStrBuf.getLength() == expVal.getLength()
6033             );
6034 
6035         }
6036 
append_012()6037         void append_012()
6038         {
6039             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
6040             OString                expVal( aStrBuf.getStr() );
6041             sal_Int32              input = kSInt32Max;
6042             sal_Int16              radix = 2;
6043 
6044             expVal += OString( "1111111111111111111111111111111" );
6045             aStrBuf.append( input, radix );
6046 
6047             CPPUNIT_ASSERT_MESSAGE
6048             (
6049                 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
6050                 aStrBuf.getStr()== expVal &&
6051                     aStrBuf.getLength() == expVal.getLength()
6052             );
6053 
6054         }
6055 
append_013()6056         void append_013()
6057         {
6058             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
6059             OString                expVal( aStrBuf.getStr() );
6060             sal_Int32              input = kSInt8Max;
6061             sal_Int16              radix = 8;
6062 
6063             expVal += OString( "177" );
6064             aStrBuf.append( input, radix );
6065 
6066             CPPUNIT_ASSERT_MESSAGE
6067             (
6068                 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
6069                 aStrBuf.getStr()== expVal &&
6070                     aStrBuf.getLength() == expVal.getLength()
6071             );
6072 
6073         }
6074 
append_014()6075         void append_014()
6076         {
6077             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
6078             OString                expVal( aStrBuf.getStr() );
6079             sal_Int32              input = kSInt32Max;
6080             sal_Int16              radix = 8;
6081 
6082             expVal += OString( "17777777777" );
6083             aStrBuf.append( input, radix );
6084 
6085             CPPUNIT_ASSERT_MESSAGE
6086             (
6087                 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
6088                 aStrBuf.getStr()== expVal &&
6089                     aStrBuf.getLength() == expVal.getLength()
6090             );
6091 
6092         }
6093 
append_015()6094         void append_015()
6095         {
6096             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
6097             OString                expVal( aStrBuf.getStr() );
6098             sal_Int32              input = kSInt8Max;
6099             sal_Int16              radix = 10;
6100 
6101             expVal += OString( "127" );
6102             aStrBuf.append( input, radix );
6103 
6104             CPPUNIT_ASSERT_MESSAGE
6105             (
6106                 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
6107                 aStrBuf.getStr()== expVal &&
6108                     aStrBuf.getLength() == expVal.getLength()
6109             );
6110 
6111         }
6112 
append_016()6113         void append_016()
6114         {
6115             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
6116             OString                expVal( aStrBuf.getStr() );
6117             sal_Int32              input = kSInt32Max;
6118             sal_Int16              radix = 10;
6119 
6120             expVal += OString( "2147483647" );
6121             aStrBuf.append( input, radix );
6122 
6123             CPPUNIT_ASSERT_MESSAGE
6124             (
6125                 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
6126                 aStrBuf.getStr()== expVal &&
6127                     aStrBuf.getLength() == expVal.getLength()
6128             );
6129 
6130         }
6131 
append_017()6132         void append_017()
6133         {
6134             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
6135             OString                expVal( aStrBuf.getStr() );
6136             sal_Int32              input = kSInt8Max;
6137             sal_Int16              radix = 16;
6138 
6139             expVal += OString( "7f" );
6140             aStrBuf.append( input, radix );
6141 
6142             CPPUNIT_ASSERT_MESSAGE
6143             (
6144                 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
6145                 aStrBuf.getStr()== expVal &&
6146                     aStrBuf.getLength() == expVal.getLength()
6147             );
6148 
6149         }
6150 
append_018()6151         void append_018()
6152         {
6153             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
6154             OString                expVal( aStrBuf.getStr() );
6155             sal_Int32              input = kSInt32Max;
6156             sal_Int16              radix = 16;
6157 
6158             expVal += OString( "7fffffff" );
6159             aStrBuf.append( input, radix );
6160 
6161             CPPUNIT_ASSERT_MESSAGE
6162             (
6163                 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
6164                 aStrBuf.getStr()== expVal &&
6165                     aStrBuf.getLength() == expVal.getLength()
6166             );
6167 
6168         }
6169 
append_019()6170         void append_019()
6171         {
6172             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
6173             OString                expVal( aStrBuf.getStr() );
6174             sal_Int32              input = kSInt8Max;
6175             sal_Int16              radix = 36;
6176 
6177             expVal += OString( "3j" );
6178             aStrBuf.append( input, radix );
6179 
6180             CPPUNIT_ASSERT_MESSAGE
6181             (
6182                 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
6183                 aStrBuf.getStr()== expVal &&
6184                     aStrBuf.getLength() == expVal.getLength()
6185             );
6186 
6187         }
6188 
append_020()6189         void append_020()
6190         {
6191             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
6192             OString                expVal( aStrBuf.getStr() );
6193             sal_Int32              input = kSInt32Max;
6194             sal_Int16              radix = 36;
6195 
6196             expVal += OString( "zik0zj" );
6197             aStrBuf.append( input, radix );
6198 
6199             CPPUNIT_ASSERT_MESSAGE
6200             (
6201                 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
6202                 aStrBuf.getStr()== expVal &&
6203                     aStrBuf.getLength() == expVal.getLength()
6204             );
6205 
6206         }
6207 
append_021()6208         void append_021()
6209         {
6210             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
6211             OString                expVal( aStrBuf.getStr() );
6212             sal_Int32              input = kSInt8Max;
6213             sal_Int16              radix = 2;
6214 
6215             expVal += OString( "1111111" );
6216             aStrBuf.append( input, radix );
6217 
6218             CPPUNIT_ASSERT_MESSAGE
6219             (
6220                 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
6221                 aStrBuf.getStr()== expVal &&
6222                     aStrBuf.getLength() == expVal.getLength()
6223             );
6224 
6225         }
6226 
append_022()6227         void append_022()
6228         {
6229             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
6230             OString                expVal( aStrBuf.getStr() );
6231             sal_Int32              input = kSInt32Max;
6232             sal_Int16              radix = 2;
6233 
6234             expVal += OString( "1111111111111111111111111111111" );
6235             aStrBuf.append( input, radix );
6236 
6237             CPPUNIT_ASSERT_MESSAGE
6238             (
6239                 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
6240                 aStrBuf.getStr()== expVal &&
6241                     aStrBuf.getLength() == expVal.getLength()
6242             );
6243 
6244         }
6245 
append_023()6246         void append_023()
6247         {
6248             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
6249             OString                expVal( aStrBuf.getStr() );
6250             sal_Int32              input = kSInt8Max;
6251             sal_Int16              radix = 8;
6252 
6253             expVal += OString( "177" );
6254             aStrBuf.append( input, radix );
6255 
6256             CPPUNIT_ASSERT_MESSAGE
6257             (
6258                 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
6259                 aStrBuf.getStr()== expVal &&
6260                     aStrBuf.getLength() == expVal.getLength()
6261             );
6262 
6263         }
6264 
append_024()6265         void append_024()
6266         {
6267             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
6268             OString                expVal( aStrBuf.getStr() );
6269             sal_Int32              input = kSInt32Max;
6270             sal_Int16              radix = 8;
6271 
6272             expVal += OString( "17777777777" );
6273             aStrBuf.append( input, radix );
6274 
6275             CPPUNIT_ASSERT_MESSAGE
6276             (
6277                 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
6278                 aStrBuf.getStr()== expVal &&
6279                     aStrBuf.getLength() == expVal.getLength()
6280             );
6281 
6282         }
6283 
append_025()6284         void append_025()
6285         {
6286             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
6287             OString                expVal( aStrBuf.getStr() );
6288             sal_Int32              input = kSInt8Max;
6289             sal_Int16              radix = 10;
6290 
6291             expVal += OString( "127" );
6292             aStrBuf.append( input, radix );
6293 
6294             CPPUNIT_ASSERT_MESSAGE
6295             (
6296                 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
6297                 aStrBuf.getStr()== expVal &&
6298                     aStrBuf.getLength() == expVal.getLength()
6299             );
6300 
6301         }
6302 
append_026()6303         void append_026()
6304         {
6305             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
6306             OString                expVal( aStrBuf.getStr() );
6307             sal_Int32              input = kSInt32Max;
6308             sal_Int16              radix = 10;
6309 
6310             expVal += OString( "2147483647" );
6311             aStrBuf.append( input, radix );
6312 
6313             CPPUNIT_ASSERT_MESSAGE
6314             (
6315                 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
6316                 aStrBuf.getStr()== expVal &&
6317                     aStrBuf.getLength() == expVal.getLength()
6318             );
6319 
6320         }
6321 
append_027()6322         void append_027()
6323         {
6324             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
6325             OString                expVal( aStrBuf.getStr() );
6326             sal_Int32              input = kSInt8Max;
6327             sal_Int16              radix = 16;
6328 
6329             expVal += OString( "7f" );
6330             aStrBuf.append( input, radix );
6331 
6332             CPPUNIT_ASSERT_MESSAGE
6333             (
6334                 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
6335                 aStrBuf.getStr()== expVal &&
6336                     aStrBuf.getLength() == expVal.getLength()
6337             );
6338 
6339         }
6340 
append_028()6341         void append_028()
6342         {
6343             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
6344             OString                expVal( aStrBuf.getStr() );
6345             sal_Int32              input = kSInt32Max;
6346             sal_Int16              radix = 16;
6347 
6348             expVal += OString( "7fffffff" );
6349             aStrBuf.append( input, radix );
6350 
6351             CPPUNIT_ASSERT_MESSAGE
6352             (
6353                 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
6354                 aStrBuf.getStr()== expVal &&
6355                     aStrBuf.getLength() == expVal.getLength()
6356             );
6357 
6358         }
6359 
append_029()6360         void append_029()
6361         {
6362             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
6363             OString                expVal( aStrBuf.getStr() );
6364             sal_Int32              input = kSInt8Max;
6365             sal_Int16              radix = 36;
6366 
6367             expVal += OString( "3j" );
6368             aStrBuf.append( input, radix );
6369 
6370             CPPUNIT_ASSERT_MESSAGE
6371             (
6372                 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
6373                 aStrBuf.getStr()== expVal &&
6374                     aStrBuf.getLength() == expVal.getLength()
6375             );
6376 
6377         }
6378 
append_030()6379         void append_030()
6380         {
6381             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
6382             OString                expVal( aStrBuf.getStr() );
6383             sal_Int32              input = kSInt32Max;
6384             sal_Int16              radix = 36;
6385 
6386             expVal += OString( "zik0zj" );
6387             aStrBuf.append( input, radix );
6388 
6389             CPPUNIT_ASSERT_MESSAGE
6390             (
6391                 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
6392                 aStrBuf.getStr()== expVal &&
6393                     aStrBuf.getLength() == expVal.getLength()
6394             );
6395 
6396         }
6397 
append_031()6398         void append_031()
6399         {
6400             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
6401             OString                expVal( aStrBuf.getStr() );
6402             sal_Int32              input = kSInt8Max;
6403             sal_Int16              radix = 2;
6404 
6405             expVal += OString( "1111111" );
6406             aStrBuf.append( input, radix );
6407 
6408             CPPUNIT_ASSERT_MESSAGE
6409             (
6410                 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
6411                 aStrBuf.getStr()== expVal &&
6412                     aStrBuf.getLength() == expVal.getLength()
6413             );
6414 
6415         }
6416 
append_032()6417         void append_032()
6418         {
6419             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
6420             OString                expVal( aStrBuf.getStr() );
6421             sal_Int32              input = kSInt32Max;
6422             sal_Int16              radix = 2;
6423 
6424             expVal += OString( "1111111111111111111111111111111" );
6425             aStrBuf.append( input, radix );
6426 
6427             CPPUNIT_ASSERT_MESSAGE
6428             (
6429                 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
6430                 aStrBuf.getStr()== expVal &&
6431                     aStrBuf.getLength() == expVal.getLength()
6432             );
6433 
6434         }
6435 
append_033()6436         void append_033()
6437         {
6438             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
6439             OString                expVal( aStrBuf.getStr() );
6440             sal_Int32              input = kSInt8Max;
6441             sal_Int16              radix = 8;
6442 
6443             expVal += OString( "177" );
6444             aStrBuf.append( input, radix );
6445 
6446             CPPUNIT_ASSERT_MESSAGE
6447             (
6448                 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
6449                 aStrBuf.getStr()== expVal &&
6450                     aStrBuf.getLength() == expVal.getLength()
6451             );
6452 
6453         }
6454 
append_034()6455         void append_034()
6456         {
6457             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
6458             OString                expVal( aStrBuf.getStr() );
6459             sal_Int32              input = kSInt32Max;
6460             sal_Int16              radix = 8;
6461 
6462             expVal += OString( "17777777777" );
6463             aStrBuf.append( input, radix );
6464 
6465             CPPUNIT_ASSERT_MESSAGE
6466             (
6467                 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
6468                 aStrBuf.getStr()== expVal &&
6469                     aStrBuf.getLength() == expVal.getLength()
6470             );
6471 
6472         }
6473 
append_035()6474         void append_035()
6475         {
6476             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
6477             OString                expVal( aStrBuf.getStr() );
6478             sal_Int32              input = kSInt8Max;
6479             sal_Int16              radix = 10;
6480 
6481             expVal += OString( "127" );
6482             aStrBuf.append( input, radix );
6483 
6484             CPPUNIT_ASSERT_MESSAGE
6485             (
6486                 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
6487                 aStrBuf.getStr()== expVal &&
6488                     aStrBuf.getLength() == expVal.getLength()
6489             );
6490 
6491         }
6492 
append_036()6493         void append_036()
6494         {
6495             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
6496             OString                expVal( aStrBuf.getStr() );
6497             sal_Int32              input = kSInt32Max;
6498             sal_Int16              radix = 10;
6499 
6500             expVal += OString( "2147483647" );
6501             aStrBuf.append( input, radix );
6502 
6503             CPPUNIT_ASSERT_MESSAGE
6504             (
6505                 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
6506                 aStrBuf.getStr()== expVal &&
6507                     aStrBuf.getLength() == expVal.getLength()
6508             );
6509 
6510         }
6511 
append_037()6512         void append_037()
6513         {
6514             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
6515             OString                expVal( aStrBuf.getStr() );
6516             sal_Int32              input = kSInt8Max;
6517             sal_Int16              radix = 16;
6518 
6519             expVal += OString( "7f" );
6520             aStrBuf.append( input, radix );
6521 
6522             CPPUNIT_ASSERT_MESSAGE
6523             (
6524                 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
6525                 aStrBuf.getStr()== expVal &&
6526                     aStrBuf.getLength() == expVal.getLength()
6527             );
6528 
6529         }
6530 
append_038()6531         void append_038()
6532         {
6533             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
6534             OString                expVal( aStrBuf.getStr() );
6535             sal_Int32              input = kSInt32Max;
6536             sal_Int16              radix = 16;
6537 
6538             expVal += OString( "7fffffff" );
6539             aStrBuf.append( input, radix );
6540 
6541             CPPUNIT_ASSERT_MESSAGE
6542             (
6543                 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
6544                 aStrBuf.getStr()== expVal &&
6545                     aStrBuf.getLength() == expVal.getLength()
6546             );
6547 
6548         }
6549 
append_039()6550         void append_039()
6551         {
6552             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
6553             OString                expVal( aStrBuf.getStr() );
6554             sal_Int32              input = kSInt8Max;
6555             sal_Int16              radix = 36;
6556 
6557             expVal += OString( "3j" );
6558             aStrBuf.append( input, radix );
6559 
6560             CPPUNIT_ASSERT_MESSAGE
6561             (
6562                 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
6563                 aStrBuf.getStr()== expVal &&
6564                     aStrBuf.getLength() == expVal.getLength()
6565             );
6566 
6567         }
6568 
append_040()6569         void append_040()
6570         {
6571             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
6572             OString                expVal( aStrBuf.getStr() );
6573             sal_Int32              input = kSInt32Max;
6574             sal_Int16              radix = 36;
6575 
6576             expVal += OString( "zik0zj" );
6577             aStrBuf.append( input, radix );
6578 
6579             CPPUNIT_ASSERT_MESSAGE
6580             (
6581                 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
6582                 aStrBuf.getStr()== expVal &&
6583                     aStrBuf.getLength() == expVal.getLength()
6584             );
6585 
6586         }
6587 
append_041()6588         void append_041()
6589         {
6590             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
6591             OString                expVal( aStrBuf.getStr() );
6592             sal_Int32              input = kSInt8Max;
6593             sal_Int16              radix = 2;
6594 
6595             expVal += OString( "1111111" );
6596             aStrBuf.append( input, radix );
6597 
6598             CPPUNIT_ASSERT_MESSAGE
6599             (
6600                 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
6601                 aStrBuf.getStr()== expVal &&
6602                     aStrBuf.getLength() == expVal.getLength()
6603             );
6604 
6605         }
6606 
append_042()6607         void append_042()
6608         {
6609             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
6610             OString                expVal( aStrBuf.getStr() );
6611             sal_Int32              input = kSInt32Max;
6612             sal_Int16              radix = 2;
6613 
6614             expVal += OString( "1111111111111111111111111111111" );
6615             aStrBuf.append( input, radix );
6616 
6617             CPPUNIT_ASSERT_MESSAGE
6618             (
6619                 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
6620                 aStrBuf.getStr()== expVal &&
6621                     aStrBuf.getLength() == expVal.getLength()
6622             );
6623 
6624         }
6625 
append_043()6626         void append_043()
6627         {
6628             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
6629             OString                expVal( aStrBuf.getStr() );
6630             sal_Int32              input = kSInt8Max;
6631             sal_Int16              radix = 8;
6632 
6633             expVal += OString( "177" );
6634             aStrBuf.append( input, radix );
6635 
6636             CPPUNIT_ASSERT_MESSAGE
6637             (
6638                 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
6639                 aStrBuf.getStr()== expVal &&
6640                     aStrBuf.getLength() == expVal.getLength()
6641             );
6642 
6643         }
6644 
append_044()6645         void append_044()
6646         {
6647             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
6648             OString                expVal( aStrBuf.getStr() );
6649             sal_Int32              input = kSInt32Max;
6650             sal_Int16              radix = 8;
6651 
6652             expVal += OString( "17777777777" );
6653             aStrBuf.append( input, radix );
6654 
6655             CPPUNIT_ASSERT_MESSAGE
6656             (
6657                 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
6658                 aStrBuf.getStr()== expVal &&
6659                     aStrBuf.getLength() == expVal.getLength()
6660             );
6661 
6662         }
6663 
append_045()6664         void append_045()
6665         {
6666             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
6667             OString                expVal( aStrBuf.getStr() );
6668             sal_Int32              input = kSInt8Max;
6669             sal_Int16              radix = 10;
6670 
6671             expVal += OString( "127" );
6672             aStrBuf.append( input, radix );
6673 
6674             CPPUNIT_ASSERT_MESSAGE
6675             (
6676                 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
6677                 aStrBuf.getStr()== expVal &&
6678                     aStrBuf.getLength() == expVal.getLength()
6679             );
6680 
6681         }
6682 
append_046()6683         void append_046()
6684         {
6685             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
6686             OString                expVal( aStrBuf.getStr() );
6687             sal_Int32              input = kSInt32Max;
6688             sal_Int16              radix = 10;
6689 
6690             expVal += OString( "2147483647" );
6691             aStrBuf.append( input, radix );
6692 
6693             CPPUNIT_ASSERT_MESSAGE
6694             (
6695                 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
6696                 aStrBuf.getStr()== expVal &&
6697                     aStrBuf.getLength() == expVal.getLength()
6698             );
6699 
6700         }
6701 
append_047()6702         void append_047()
6703         {
6704             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
6705             OString                expVal( aStrBuf.getStr() );
6706             sal_Int32              input = kSInt8Max;
6707             sal_Int16              radix = 16;
6708 
6709             expVal += OString( "7f" );
6710             aStrBuf.append( input, radix );
6711 
6712             CPPUNIT_ASSERT_MESSAGE
6713             (
6714                 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
6715                 aStrBuf.getStr()== expVal &&
6716                     aStrBuf.getLength() == expVal.getLength()
6717             );
6718 
6719         }
6720 
append_048()6721         void append_048()
6722         {
6723             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
6724             OString                expVal( aStrBuf.getStr() );
6725             sal_Int32              input = kSInt32Max;
6726             sal_Int16              radix = 16;
6727 
6728             expVal += OString( "7fffffff" );
6729             aStrBuf.append( input, radix );
6730 
6731             CPPUNIT_ASSERT_MESSAGE
6732             (
6733                 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
6734                 aStrBuf.getStr()== expVal &&
6735                     aStrBuf.getLength() == expVal.getLength()
6736             );
6737 
6738         }
6739 
append_049()6740         void append_049()
6741         {
6742             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
6743             OString                expVal( aStrBuf.getStr() );
6744             sal_Int32              input = kSInt8Max;
6745             sal_Int16              radix = 36;
6746 
6747             expVal += OString( "3j" );
6748             aStrBuf.append( input, radix );
6749 
6750             CPPUNIT_ASSERT_MESSAGE
6751             (
6752                 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
6753                 aStrBuf.getStr()== expVal &&
6754                     aStrBuf.getLength() == expVal.getLength()
6755             );
6756 
6757         }
6758 
append_050()6759         void append_050()
6760         {
6761             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
6762             OString                expVal( aStrBuf.getStr() );
6763             sal_Int32              input = kSInt32Max;
6764             sal_Int16              radix = 36;
6765 
6766             expVal += OString( "zik0zj" );
6767             aStrBuf.append( input, radix );
6768 
6769             CPPUNIT_ASSERT_MESSAGE
6770             (
6771                 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
6772                 aStrBuf.getStr()== expVal &&
6773                     aStrBuf.getLength() == expVal.getLength()
6774             );
6775 
6776         }
6777 
6778         CPPUNIT_TEST_SUITE( append_006_Int32_Bounderies );
6779         CPPUNIT_TEST( append_001 ); CPPUNIT_TEST( append_002 );
6780         CPPUNIT_TEST( append_003 ); CPPUNIT_TEST( append_004 );
6781         CPPUNIT_TEST( append_005 ); CPPUNIT_TEST( append_006 );
6782         CPPUNIT_TEST( append_007 ); CPPUNIT_TEST( append_008 );
6783         CPPUNIT_TEST( append_009 ); CPPUNIT_TEST( append_010 );
6784         CPPUNIT_TEST( append_011 ); CPPUNIT_TEST( append_012 );
6785         CPPUNIT_TEST( append_013 ); CPPUNIT_TEST( append_014 );
6786         CPPUNIT_TEST( append_015 ); CPPUNIT_TEST( append_016 );
6787         CPPUNIT_TEST( append_017 ); CPPUNIT_TEST( append_018 );
6788         CPPUNIT_TEST( append_019 ); CPPUNIT_TEST( append_020 );
6789         CPPUNIT_TEST( append_021 ); CPPUNIT_TEST( append_022 );
6790         CPPUNIT_TEST( append_023 ); CPPUNIT_TEST( append_024 );
6791         CPPUNIT_TEST( append_025 ); CPPUNIT_TEST( append_026 );
6792         CPPUNIT_TEST( append_027 ); CPPUNIT_TEST( append_028 );
6793         CPPUNIT_TEST( append_029 ); CPPUNIT_TEST( append_030 );
6794         CPPUNIT_TEST( append_031 ); CPPUNIT_TEST( append_032 );
6795         CPPUNIT_TEST( append_033 ); CPPUNIT_TEST( append_034 );
6796         CPPUNIT_TEST( append_035 ); CPPUNIT_TEST( append_036 );
6797         CPPUNIT_TEST( append_037 ); CPPUNIT_TEST( append_038 );
6798         CPPUNIT_TEST( append_039 ); CPPUNIT_TEST( append_040 );
6799         CPPUNIT_TEST( append_041 ); CPPUNIT_TEST( append_042 );
6800         CPPUNIT_TEST( append_043 ); CPPUNIT_TEST( append_044 );
6801         CPPUNIT_TEST( append_045 ); CPPUNIT_TEST( append_046 );
6802         CPPUNIT_TEST( append_047 ); CPPUNIT_TEST( append_048 );
6803         CPPUNIT_TEST( append_049 ); CPPUNIT_TEST( append_050 );
6804         CPPUNIT_TEST_SUITE_END();
6805     };
6806 //------------------------------------------------------------------------
6807 // testing the method append( sal_Int32 i, sal_Int16 radix=2 )
6808 // for negative value
6809 // testing the method append( sal_Int32 i, sal_Int16 radix=8 )
6810 // for negative value
6811 // testing the method append( sal_Int32 i, sal_Int16 radix=10 )
6812 // for negative value
6813 // testing the method append( sal_Int32 i, sal_Int16 radix=16 )
6814 // for negative value
6815 // testing the method append( sal_Int32 i, sal_Int16 radix=36 )
6816 // for negative value
6817 //------------------------------------------------------------------------
6818     class  append_006_Int32_Negative : public CppUnit::TestFixture
6819     {
6820         OString* arrOUS[5];
6821 
6822     public:
setUp()6823         void setUp()
6824         {
6825             arrOUS[0] = new OString( kTestStr7 );
6826             arrOUS[1] = new OString(  );
6827             arrOUS[2] = new OString( kTestStr25 );
6828             arrOUS[3] = new OString( "\0"  );
6829             arrOUS[4] = new OString( kTestStr28 );
6830 
6831         }
6832 
tearDown()6833         void tearDown()
6834         {
6835             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
6836             delete arrOUS[3]; delete arrOUS[4];
6837         }
6838 
append_001()6839         void append_001()
6840         {
6841             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
6842             OString                expVal( aStrBuf.getStr() );
6843             sal_Int32              input = -0;
6844             sal_Int16              radix = 2;
6845 
6846             expVal += OString( "0" );
6847             aStrBuf.append( input, radix );
6848 
6849             CPPUNIT_ASSERT_MESSAGE
6850             (
6851                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
6852                 aStrBuf.getStr()== expVal &&
6853                     aStrBuf.getLength() == expVal.getLength()
6854             );
6855 
6856         }
6857 
append_002()6858         void append_002()
6859         {
6860             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
6861             OString                expVal( aStrBuf.getStr() );
6862             sal_Int32              input = -4;
6863             sal_Int16              radix = 2;
6864 
6865             expVal += OString( "-" );
6866             expVal += OString( "100" );
6867             aStrBuf.append( input, radix );
6868 
6869             CPPUNIT_ASSERT_MESSAGE
6870             (
6871                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
6872                 aStrBuf.getStr()== expVal &&
6873                     aStrBuf.getLength() == expVal.getLength()
6874             );
6875 
6876         }
6877 
append_003()6878         void append_003()
6879         {
6880             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
6881             OString                expVal( aStrBuf.getStr() );
6882             sal_Int32              input = -8;
6883             sal_Int16              radix = 2;
6884 
6885             expVal += OString( "-" );
6886             expVal += OString( "1000" );
6887             aStrBuf.append( input, radix );
6888 
6889             CPPUNIT_ASSERT_MESSAGE
6890             (
6891                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
6892                 aStrBuf.getStr()== expVal &&
6893                     aStrBuf.getLength() == expVal.getLength()
6894             );
6895 
6896         }
6897 
append_004()6898         void append_004()
6899         {
6900             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
6901             OString                expVal( aStrBuf.getStr() );
6902             sal_Int32              input = -15;
6903             sal_Int16              radix = 2;
6904 
6905             expVal += OString( "-" );
6906             expVal += OString( "1111" );
6907             aStrBuf.append( input, radix );
6908 
6909             CPPUNIT_ASSERT_MESSAGE
6910             (
6911                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
6912                 aStrBuf.getStr()== expVal &&
6913                     aStrBuf.getLength() == expVal.getLength()
6914             );
6915 
6916         }
6917 
append_005()6918         void append_005()
6919         {
6920             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
6921             OString                expVal( aStrBuf.getStr() );
6922             sal_Int32              input = -0;
6923             sal_Int16              radix = 8;
6924 
6925             expVal += OString( "0" );
6926             aStrBuf.append( input, radix );
6927 
6928             CPPUNIT_ASSERT_MESSAGE
6929             (
6930                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
6931                 aStrBuf.getStr()== expVal &&
6932                     aStrBuf.getLength() == expVal.getLength()
6933             );
6934 
6935         }
6936 
append_006()6937         void append_006()
6938         {
6939             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
6940             OString                expVal( aStrBuf.getStr() );
6941             sal_Int32              input = -4;
6942             sal_Int16              radix = 8;
6943 
6944             expVal += OString( "-" );
6945             expVal += OString( "4" );
6946             aStrBuf.append( input, radix );
6947 
6948             CPPUNIT_ASSERT_MESSAGE
6949             (
6950                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
6951                 aStrBuf.getStr()== expVal &&
6952                     aStrBuf.getLength() == expVal.getLength()
6953             );
6954 
6955         }
6956 
append_007()6957         void append_007()
6958         {
6959             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
6960             OString                expVal( aStrBuf.getStr() );
6961             sal_Int32              input = -8;
6962             sal_Int16              radix = 8;
6963 
6964             expVal += OString( "-" );
6965             expVal += OString( "10" );
6966             aStrBuf.append( input, radix );
6967 
6968             CPPUNIT_ASSERT_MESSAGE
6969             (
6970                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
6971                 aStrBuf.getStr()== expVal &&
6972                     aStrBuf.getLength() == expVal.getLength()
6973             );
6974 
6975         }
6976 
append_008()6977         void append_008()
6978         {
6979             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
6980             OString                expVal( aStrBuf.getStr() );
6981             sal_Int32              input = -15;
6982             sal_Int16              radix = 8;
6983 
6984             expVal += OString( "-" );
6985             expVal += OString( "17" );
6986             aStrBuf.append( input, radix );
6987 
6988             CPPUNIT_ASSERT_MESSAGE
6989             (
6990                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
6991                 aStrBuf.getStr()== expVal &&
6992                     aStrBuf.getLength() == expVal.getLength()
6993             );
6994 
6995         }
6996 
append_009()6997         void append_009()
6998         {
6999             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
7000             OString                expVal( aStrBuf.getStr() );
7001             sal_Int32              input = -0;
7002             sal_Int16              radix = 10;
7003 
7004             expVal += OString( "0" );
7005             aStrBuf.append( input, radix );
7006 
7007             CPPUNIT_ASSERT_MESSAGE
7008             (
7009                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
7010                 aStrBuf.getStr()== expVal &&
7011                     aStrBuf.getLength() == expVal.getLength()
7012             );
7013 
7014         }
7015 
append_010()7016         void append_010()
7017         {
7018             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
7019             OString                expVal( aStrBuf.getStr() );
7020             sal_Int32              input = -4;
7021             sal_Int16              radix = 10;
7022 
7023             expVal += OString( "-" );
7024             expVal += OString( "4" );
7025             aStrBuf.append( input, radix );
7026 
7027             CPPUNIT_ASSERT_MESSAGE
7028             (
7029                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
7030                 aStrBuf.getStr()== expVal &&
7031                     aStrBuf.getLength() == expVal.getLength()
7032             );
7033 
7034         }
7035 
append_011()7036         void append_011()
7037         {
7038             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
7039             OString                expVal( aStrBuf.getStr() );
7040             sal_Int32              input = -8;
7041             sal_Int16              radix = 10;
7042 
7043             expVal += OString( "-" );
7044             expVal += OString( "8" );
7045             aStrBuf.append( input, radix );
7046 
7047             CPPUNIT_ASSERT_MESSAGE
7048             (
7049                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
7050                 aStrBuf.getStr()== expVal &&
7051                     aStrBuf.getLength() == expVal.getLength()
7052             );
7053 
7054         }
7055 
append_012()7056         void append_012()
7057         {
7058             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
7059             OString                expVal( aStrBuf.getStr() );
7060             sal_Int32              input = -15;
7061             sal_Int16              radix = 10;
7062 
7063             expVal += OString( "-" );
7064             expVal += OString( "15" );
7065             aStrBuf.append( input, radix );
7066 
7067             CPPUNIT_ASSERT_MESSAGE
7068             (
7069                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
7070                 aStrBuf.getStr()== expVal &&
7071                     aStrBuf.getLength() == expVal.getLength()
7072             );
7073 
7074         }
7075 
append_013()7076         void append_013()
7077         {
7078             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
7079             OString                expVal( aStrBuf.getStr() );
7080             sal_Int32              input = -0;
7081             sal_Int16              radix = 16;
7082 
7083             expVal += OString( "0" );
7084             aStrBuf.append( input, radix );
7085 
7086             CPPUNIT_ASSERT_MESSAGE
7087             (
7088                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
7089                 aStrBuf.getStr()== expVal &&
7090                     aStrBuf.getLength() == expVal.getLength()
7091             );
7092 
7093         }
7094 
append_014()7095         void append_014()
7096         {
7097             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
7098             OString                expVal( aStrBuf.getStr() );
7099             sal_Int32              input = -4;
7100             sal_Int16              radix = 16;
7101 
7102             expVal += OString( "-" );
7103             expVal += OString( "4" );
7104             aStrBuf.append( input, radix );
7105 
7106             CPPUNIT_ASSERT_MESSAGE
7107             (
7108                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
7109                 aStrBuf.getStr()== expVal &&
7110                     aStrBuf.getLength() == expVal.getLength()
7111             );
7112 
7113         }
7114 
append_015()7115         void append_015()
7116         {
7117             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
7118             OString                expVal( aStrBuf.getStr() );
7119             sal_Int32              input = -8;
7120             sal_Int16              radix = 16;
7121 
7122             expVal += OString( "-" );
7123             expVal += OString( "8" );
7124             aStrBuf.append( input, radix );
7125 
7126             CPPUNIT_ASSERT_MESSAGE
7127             (
7128                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
7129                 aStrBuf.getStr()== expVal &&
7130                     aStrBuf.getLength() == expVal.getLength()
7131             );
7132 
7133         }
7134 
append_016()7135         void append_016()
7136         {
7137             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
7138             OString                expVal( aStrBuf.getStr() );
7139             sal_Int32              input = -15;
7140             sal_Int16              radix = 16;
7141 
7142             expVal += OString( "-" );
7143             expVal += OString( "f" );
7144             aStrBuf.append( input, radix );
7145 
7146             CPPUNIT_ASSERT_MESSAGE
7147             (
7148                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
7149                 aStrBuf.getStr()== expVal &&
7150                     aStrBuf.getLength() == expVal.getLength()
7151             );
7152 
7153         }
7154 
append_017()7155         void append_017()
7156         {
7157             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
7158             OString                expVal( aStrBuf.getStr() );
7159             sal_Int32              input = -0;
7160             sal_Int16              radix = 36;
7161 
7162             expVal += OString( "0" );
7163             aStrBuf.append( input, radix );
7164 
7165             CPPUNIT_ASSERT_MESSAGE
7166             (
7167                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
7168                 aStrBuf.getStr()== expVal &&
7169                     aStrBuf.getLength() == expVal.getLength()
7170             );
7171 
7172         }
7173 
append_018()7174         void append_018()
7175         {
7176             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
7177             OString                expVal( aStrBuf.getStr() );
7178             sal_Int32              input = -4;
7179             sal_Int16              radix = 36;
7180 
7181             expVal += OString( "-" );
7182             expVal += OString( "4" );
7183             aStrBuf.append( input, radix );
7184 
7185             CPPUNIT_ASSERT_MESSAGE
7186             (
7187                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
7188                 aStrBuf.getStr()== expVal &&
7189                     aStrBuf.getLength() == expVal.getLength()
7190             );
7191 
7192         }
7193 
append_019()7194         void append_019()
7195         {
7196             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
7197             OString                expVal( aStrBuf.getStr() );
7198             sal_Int32              input = -8;
7199             sal_Int16              radix = 36;
7200 
7201             expVal += OString( "-" );
7202             expVal += OString( "8" );
7203             aStrBuf.append( input, radix );
7204 
7205             CPPUNIT_ASSERT_MESSAGE
7206             (
7207                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
7208                 aStrBuf.getStr()== expVal &&
7209                     aStrBuf.getLength() == expVal.getLength()
7210             );
7211 
7212         }
7213 
append_020()7214         void append_020()
7215         {
7216             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
7217             OString                expVal( aStrBuf.getStr() );
7218             sal_Int32              input = -35;
7219             sal_Int16              radix = 36;
7220 
7221             expVal += OString( "-" );
7222             expVal += OString( "z" );
7223             aStrBuf.append( input, radix );
7224 
7225             CPPUNIT_ASSERT_MESSAGE
7226             (
7227                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
7228                 aStrBuf.getStr()== expVal &&
7229                     aStrBuf.getLength() == expVal.getLength()
7230             );
7231 
7232         }
7233 
append_021()7234         void append_021()
7235         {
7236             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
7237             OString                expVal( aStrBuf.getStr() );
7238             sal_Int32              input = -0;
7239             sal_Int16              radix = 2;
7240 
7241             expVal += OString( "0" );
7242             aStrBuf.append( input, radix );
7243 
7244             CPPUNIT_ASSERT_MESSAGE
7245             (
7246                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
7247                 aStrBuf.getStr()== expVal &&
7248                     aStrBuf.getLength() == expVal.getLength()
7249             );
7250 
7251         }
7252 
append_022()7253         void append_022()
7254         {
7255             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
7256             OString                expVal( aStrBuf.getStr() );
7257             sal_Int32              input = -4;
7258             sal_Int16              radix = 2;
7259 
7260             expVal += OString( "-" );
7261             expVal += OString( "100" );
7262             aStrBuf.append( input, radix );
7263 
7264             CPPUNIT_ASSERT_MESSAGE
7265             (
7266                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
7267                 aStrBuf.getStr()== expVal &&
7268                     aStrBuf.getLength() == expVal.getLength()
7269             );
7270 
7271         }
7272 
append_023()7273         void append_023()
7274         {
7275             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
7276             OString                expVal( aStrBuf.getStr() );
7277             sal_Int32              input = -8;
7278             sal_Int16              radix = 2;
7279 
7280             expVal += OString( "-" );
7281             expVal += OString( "1000" );
7282             aStrBuf.append( input, radix );
7283 
7284             CPPUNIT_ASSERT_MESSAGE
7285             (
7286                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
7287                 aStrBuf.getStr()== expVal &&
7288                     aStrBuf.getLength() == expVal.getLength()
7289             );
7290 
7291         }
7292 
append_024()7293         void append_024()
7294         {
7295             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
7296             OString                expVal( aStrBuf.getStr() );
7297             sal_Int32              input = -15;
7298             sal_Int16              radix = 2;
7299 
7300             expVal += OString( "-" );
7301             expVal += OString( "1111" );
7302             aStrBuf.append( input, radix );
7303 
7304             CPPUNIT_ASSERT_MESSAGE
7305             (
7306                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
7307                 aStrBuf.getStr()== expVal &&
7308                     aStrBuf.getLength() == expVal.getLength()
7309             );
7310 
7311         }
7312 
append_025()7313         void append_025()
7314         {
7315             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
7316             OString                expVal( aStrBuf.getStr() );
7317             sal_Int32              input = -0;
7318             sal_Int16              radix = 8;
7319 
7320             expVal += OString( "0" );
7321             aStrBuf.append( input, radix );
7322 
7323             CPPUNIT_ASSERT_MESSAGE
7324             (
7325                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
7326                 aStrBuf.getStr()== expVal &&
7327                     aStrBuf.getLength() == expVal.getLength()
7328             );
7329 
7330         }
7331 
append_026()7332         void append_026()
7333         {
7334             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
7335             OString                expVal( aStrBuf.getStr() );
7336             sal_Int32              input = -4;
7337             sal_Int16              radix = 8;
7338 
7339             expVal += OString( "-" );
7340             expVal += OString( "4" );
7341             aStrBuf.append( input, radix );
7342 
7343             CPPUNIT_ASSERT_MESSAGE
7344             (
7345                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
7346                 aStrBuf.getStr()== expVal &&
7347                     aStrBuf.getLength() == expVal.getLength()
7348             );
7349 
7350         }
7351 
append_027()7352         void append_027()
7353         {
7354             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
7355             OString                expVal( aStrBuf.getStr() );
7356             sal_Int32              input = -8;
7357             sal_Int16              radix = 8;
7358 
7359             expVal += OString( "-" );
7360             expVal += OString( "10" );
7361             aStrBuf.append( input, radix );
7362 
7363             CPPUNIT_ASSERT_MESSAGE
7364             (
7365                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
7366                 aStrBuf.getStr()== expVal &&
7367                     aStrBuf.getLength() == expVal.getLength()
7368             );
7369 
7370         }
7371 
append_028()7372         void append_028()
7373         {
7374             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
7375             OString                expVal( aStrBuf.getStr() );
7376             sal_Int32              input = -15;
7377             sal_Int16              radix = 8;
7378 
7379             expVal += OString( "-" );
7380             expVal += OString( "17" );
7381             aStrBuf.append( input, radix );
7382 
7383             CPPUNIT_ASSERT_MESSAGE
7384             (
7385                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
7386                 aStrBuf.getStr()== expVal &&
7387                     aStrBuf.getLength() == expVal.getLength()
7388             );
7389 
7390         }
7391 
append_029()7392         void append_029()
7393         {
7394             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
7395             OString                expVal( aStrBuf.getStr() );
7396             sal_Int32              input = -0;
7397             sal_Int16              radix = 10;
7398 
7399             expVal += OString( "0" );
7400             aStrBuf.append( input, radix );
7401 
7402             CPPUNIT_ASSERT_MESSAGE
7403             (
7404                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
7405                 aStrBuf.getStr()== expVal &&
7406                     aStrBuf.getLength() == expVal.getLength()
7407             );
7408 
7409         }
7410 
append_030()7411         void append_030()
7412         {
7413             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
7414             OString                expVal( aStrBuf.getStr() );
7415             sal_Int32              input = -4;
7416             sal_Int16              radix = 10;
7417 
7418             expVal += OString( "-" );
7419             expVal += OString( "4" );
7420             aStrBuf.append( input, radix );
7421 
7422             CPPUNIT_ASSERT_MESSAGE
7423             (
7424                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
7425                 aStrBuf.getStr()== expVal &&
7426                     aStrBuf.getLength() == expVal.getLength()
7427             );
7428 
7429         }
7430 
append_031()7431         void append_031()
7432         {
7433             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
7434             OString                expVal( aStrBuf.getStr() );
7435             sal_Int32              input = -8;
7436             sal_Int16              radix = 10;
7437 
7438             expVal += OString( "-" );
7439             expVal += OString( "8" );
7440             aStrBuf.append( input, radix );
7441 
7442             CPPUNIT_ASSERT_MESSAGE
7443             (
7444                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
7445                 aStrBuf.getStr()== expVal &&
7446                     aStrBuf.getLength() == expVal.getLength()
7447             );
7448 
7449         }
7450 
append_032()7451         void append_032()
7452         {
7453             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
7454             OString                expVal( aStrBuf.getStr() );
7455             sal_Int32              input = -15;
7456             sal_Int16              radix = 10;
7457 
7458             expVal += OString( "-" );
7459             expVal += OString( "15" );
7460             aStrBuf.append( input, radix );
7461 
7462             CPPUNIT_ASSERT_MESSAGE
7463             (
7464                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
7465                 aStrBuf.getStr()== expVal &&
7466                     aStrBuf.getLength() == expVal.getLength()
7467             );
7468 
7469         }
7470 
append_033()7471         void append_033()
7472         {
7473             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
7474             OString                expVal( aStrBuf.getStr() );
7475             sal_Int32              input = -0;
7476             sal_Int16              radix = 16;
7477 
7478             expVal += OString( "0" );
7479             aStrBuf.append( input, radix );
7480 
7481             CPPUNIT_ASSERT_MESSAGE
7482             (
7483                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
7484                 aStrBuf.getStr()== expVal &&
7485                     aStrBuf.getLength() == expVal.getLength()
7486             );
7487 
7488         }
7489 
append_034()7490         void append_034()
7491         {
7492             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
7493             OString                expVal( aStrBuf.getStr() );
7494             sal_Int32              input = -4;
7495             sal_Int16              radix = 16;
7496 
7497             expVal += OString( "-" );
7498             expVal += OString( "4" );
7499             aStrBuf.append( input, radix );
7500 
7501             CPPUNIT_ASSERT_MESSAGE
7502             (
7503                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
7504                 aStrBuf.getStr()== expVal &&
7505                     aStrBuf.getLength() == expVal.getLength()
7506             );
7507 
7508         }
7509 
append_035()7510         void append_035()
7511         {
7512             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
7513             OString                expVal( aStrBuf.getStr() );
7514             sal_Int32              input = -8;
7515             sal_Int16              radix = 16;
7516 
7517             expVal += OString( "-" );
7518             expVal += OString( "8" );
7519             aStrBuf.append( input, radix );
7520 
7521             CPPUNIT_ASSERT_MESSAGE
7522             (
7523                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
7524                 aStrBuf.getStr()== expVal &&
7525                     aStrBuf.getLength() == expVal.getLength()
7526             );
7527 
7528         }
7529 
append_036()7530         void append_036()
7531         {
7532             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
7533             OString                expVal( aStrBuf.getStr() );
7534             sal_Int32              input = -15;
7535             sal_Int16              radix = 16;
7536 
7537             expVal += OString( "-" );
7538             expVal += OString( "f" );
7539             aStrBuf.append( input, radix );
7540 
7541             CPPUNIT_ASSERT_MESSAGE
7542             (
7543                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
7544                 aStrBuf.getStr()== expVal &&
7545                     aStrBuf.getLength() == expVal.getLength()
7546             );
7547 
7548         }
7549 
append_037()7550         void append_037()
7551         {
7552             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
7553             OString                expVal( aStrBuf.getStr() );
7554             sal_Int32              input = -0;
7555             sal_Int16              radix = 36;
7556 
7557             expVal += OString( "0" );
7558             aStrBuf.append( input, radix );
7559 
7560             CPPUNIT_ASSERT_MESSAGE
7561             (
7562                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
7563                 aStrBuf.getStr()== expVal &&
7564                     aStrBuf.getLength() == expVal.getLength()
7565             );
7566 
7567         }
7568 
append_038()7569         void append_038()
7570         {
7571             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
7572             OString                expVal( aStrBuf.getStr() );
7573             sal_Int32              input = -4;
7574             sal_Int16              radix = 36;
7575 
7576             expVal += OString( "-" );
7577             expVal += OString( "4" );
7578             aStrBuf.append( input, radix );
7579 
7580             CPPUNIT_ASSERT_MESSAGE
7581             (
7582                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
7583                 aStrBuf.getStr()== expVal &&
7584                     aStrBuf.getLength() == expVal.getLength()
7585             );
7586 
7587         }
7588 
append_039()7589         void append_039()
7590         {
7591             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
7592             OString                expVal( aStrBuf.getStr() );
7593             sal_Int32              input = -8;
7594             sal_Int16              radix = 36;
7595 
7596             expVal += OString( "-" );
7597             expVal += OString( "8" );
7598             aStrBuf.append( input, radix );
7599 
7600             CPPUNIT_ASSERT_MESSAGE
7601             (
7602                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
7603                 aStrBuf.getStr()== expVal &&
7604                     aStrBuf.getLength() == expVal.getLength()
7605             );
7606 
7607         }
7608 
append_040()7609         void append_040()
7610         {
7611             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
7612             OString                expVal( aStrBuf.getStr() );
7613             sal_Int32              input = -35;
7614             sal_Int16              radix = 36;
7615 
7616             expVal += OString( "-" );
7617             expVal += OString( "z" );
7618             aStrBuf.append( input, radix );
7619 
7620             CPPUNIT_ASSERT_MESSAGE
7621             (
7622                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
7623                 aStrBuf.getStr()== expVal &&
7624                     aStrBuf.getLength() == expVal.getLength()
7625             );
7626 
7627         }
7628 
append_041()7629         void append_041()
7630         {
7631             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
7632             OString                expVal( aStrBuf.getStr() );
7633             sal_Int32              input = -0;
7634             sal_Int16              radix = 2;
7635 
7636             expVal += OString( "0" );
7637             aStrBuf.append( input, radix );
7638 
7639             CPPUNIT_ASSERT_MESSAGE
7640             (
7641                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
7642                 aStrBuf.getStr()== expVal &&
7643                     aStrBuf.getLength() == expVal.getLength()
7644             );
7645 
7646         }
7647 
append_042()7648         void append_042()
7649         {
7650             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
7651             OString                expVal( aStrBuf.getStr() );
7652             sal_Int32              input = -4;
7653             sal_Int16              radix = 2;
7654 
7655             expVal += OString( "-" );
7656             expVal += OString( "100" );
7657             aStrBuf.append( input, radix );
7658 
7659             CPPUNIT_ASSERT_MESSAGE
7660             (
7661                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
7662                 aStrBuf.getStr()== expVal &&
7663                     aStrBuf.getLength() == expVal.getLength()
7664             );
7665 
7666         }
7667 
append_043()7668         void append_043()
7669         {
7670             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
7671             OString                expVal( aStrBuf.getStr() );
7672             sal_Int32              input = -8;
7673             sal_Int16              radix = 2;
7674 
7675             expVal += OString( "-" );
7676             expVal += OString( "1000" );
7677             aStrBuf.append( input, radix );
7678 
7679             CPPUNIT_ASSERT_MESSAGE
7680             (
7681                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
7682                 aStrBuf.getStr()== expVal &&
7683                     aStrBuf.getLength() == expVal.getLength()
7684             );
7685 
7686         }
7687 
append_044()7688         void append_044()
7689         {
7690             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
7691             OString                expVal( aStrBuf.getStr() );
7692             sal_Int32              input = -15;
7693             sal_Int16              radix = 2;
7694 
7695             expVal += OString( "-" );
7696             expVal += OString( "1111" );
7697             aStrBuf.append( input, radix );
7698 
7699             CPPUNIT_ASSERT_MESSAGE
7700             (
7701                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
7702                 aStrBuf.getStr()== expVal &&
7703                     aStrBuf.getLength() == expVal.getLength()
7704             );
7705 
7706         }
7707 
append_045()7708         void append_045()
7709         {
7710             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
7711             OString                expVal( aStrBuf.getStr() );
7712             sal_Int32              input = -0;
7713             sal_Int16              radix = 8;
7714 
7715             expVal += OString( "0" );
7716             aStrBuf.append( input, radix );
7717 
7718             CPPUNIT_ASSERT_MESSAGE
7719             (
7720                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
7721                 aStrBuf.getStr()== expVal &&
7722                     aStrBuf.getLength() == expVal.getLength()
7723             );
7724 
7725         }
7726 
append_046()7727         void append_046()
7728         {
7729             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
7730             OString                expVal( aStrBuf.getStr() );
7731             sal_Int32              input = -4;
7732             sal_Int16              radix = 8;
7733 
7734             expVal += OString( "-" );
7735             expVal += OString( "4" );
7736             aStrBuf.append( input, radix );
7737 
7738             CPPUNIT_ASSERT_MESSAGE
7739             (
7740                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
7741                 aStrBuf.getStr()== expVal &&
7742                     aStrBuf.getLength() == expVal.getLength()
7743             );
7744 
7745         }
7746 
append_047()7747         void append_047()
7748         {
7749             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
7750             OString                expVal( aStrBuf.getStr() );
7751             sal_Int32              input = -8;
7752             sal_Int16              radix = 8;
7753 
7754             expVal += OString( "-" );
7755             expVal += OString( "10" );
7756             aStrBuf.append( input, radix );
7757 
7758             CPPUNIT_ASSERT_MESSAGE
7759             (
7760                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
7761                 aStrBuf.getStr()== expVal &&
7762                     aStrBuf.getLength() == expVal.getLength()
7763             );
7764 
7765         }
7766 
append_048()7767         void append_048()
7768         {
7769             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
7770             OString                expVal( aStrBuf.getStr() );
7771             sal_Int32              input = -15;
7772             sal_Int16              radix = 8;
7773 
7774             expVal += OString( "-" );
7775             expVal += OString( "17" );
7776             aStrBuf.append( input, radix );
7777 
7778             CPPUNIT_ASSERT_MESSAGE
7779             (
7780                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
7781                 aStrBuf.getStr()== expVal &&
7782                     aStrBuf.getLength() == expVal.getLength()
7783             );
7784 
7785         }
7786 
append_049()7787         void append_049()
7788         {
7789             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
7790             OString                expVal( aStrBuf.getStr() );
7791             sal_Int32              input = -0;
7792             sal_Int16              radix = 10;
7793 
7794             expVal += OString( "0" );
7795             aStrBuf.append( input, radix );
7796 
7797             CPPUNIT_ASSERT_MESSAGE
7798             (
7799                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
7800                 aStrBuf.getStr()== expVal &&
7801                     aStrBuf.getLength() == expVal.getLength()
7802             );
7803 
7804         }
7805 
append_050()7806         void append_050()
7807         {
7808             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
7809             OString                expVal( aStrBuf.getStr() );
7810             sal_Int32              input = -4;
7811             sal_Int16              radix = 10;
7812 
7813             expVal += OString( "-" );
7814             expVal += OString( "4" );
7815             aStrBuf.append( input, radix );
7816 
7817             CPPUNIT_ASSERT_MESSAGE
7818             (
7819                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
7820                 aStrBuf.getStr()== expVal &&
7821                     aStrBuf.getLength() == expVal.getLength()
7822             );
7823 
7824         }
7825 
append_051()7826         void append_051()
7827         {
7828             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
7829             OString                expVal( aStrBuf.getStr() );
7830             sal_Int32              input = -8;
7831             sal_Int16              radix = 10;
7832 
7833             expVal += OString( "-" );
7834             expVal += OString( "8" );
7835             aStrBuf.append( input, radix );
7836 
7837             CPPUNIT_ASSERT_MESSAGE
7838             (
7839                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
7840                 aStrBuf.getStr()== expVal &&
7841                     aStrBuf.getLength() == expVal.getLength()
7842             );
7843 
7844         }
7845 
append_052()7846         void append_052()
7847         {
7848             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
7849             OString                expVal( aStrBuf.getStr() );
7850             sal_Int32              input = -15;
7851             sal_Int16              radix = 10;
7852 
7853             expVal += OString( "-" );
7854             expVal += OString( "15" );
7855             aStrBuf.append( input, radix );
7856 
7857             CPPUNIT_ASSERT_MESSAGE
7858             (
7859                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
7860                 aStrBuf.getStr()== expVal &&
7861                     aStrBuf.getLength() == expVal.getLength()
7862             );
7863 
7864         }
7865 
append_053()7866         void append_053()
7867         {
7868             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
7869             OString                expVal( aStrBuf.getStr() );
7870             sal_Int32              input = -0;
7871             sal_Int16              radix = 16;
7872 
7873             expVal += OString( "0" );
7874             aStrBuf.append( input, radix );
7875 
7876             CPPUNIT_ASSERT_MESSAGE
7877             (
7878                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
7879                 aStrBuf.getStr()== expVal &&
7880                     aStrBuf.getLength() == expVal.getLength()
7881             );
7882 
7883         }
7884 
append_054()7885         void append_054()
7886         {
7887             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
7888             OString                expVal( aStrBuf.getStr() );
7889             sal_Int32              input = -4;
7890             sal_Int16              radix = 16;
7891 
7892             expVal += OString( "-" );
7893             expVal += OString( "4" );
7894             aStrBuf.append( input, radix );
7895 
7896             CPPUNIT_ASSERT_MESSAGE
7897             (
7898                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
7899                 aStrBuf.getStr()== expVal &&
7900                     aStrBuf.getLength() == expVal.getLength()
7901             );
7902 
7903         }
7904 
append_055()7905         void append_055()
7906         {
7907             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
7908             OString                expVal( aStrBuf.getStr() );
7909             sal_Int32              input = -8;
7910             sal_Int16              radix = 16;
7911 
7912             expVal += OString( "-" );
7913             expVal += OString( "8" );
7914             aStrBuf.append( input, radix );
7915 
7916             CPPUNIT_ASSERT_MESSAGE
7917             (
7918                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
7919                 aStrBuf.getStr()== expVal &&
7920                     aStrBuf.getLength() == expVal.getLength()
7921             );
7922 
7923         }
7924 
append_056()7925         void append_056()
7926         {
7927             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
7928             OString                expVal( aStrBuf.getStr() );
7929             sal_Int32              input = -15;
7930             sal_Int16              radix = 16;
7931 
7932             expVal += OString( "-" );
7933             expVal += OString( "f" );
7934             aStrBuf.append( input, radix );
7935 
7936             CPPUNIT_ASSERT_MESSAGE
7937             (
7938                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
7939                 aStrBuf.getStr()== expVal &&
7940                     aStrBuf.getLength() == expVal.getLength()
7941             );
7942 
7943         }
7944 
append_057()7945         void append_057()
7946         {
7947             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
7948             OString                expVal( aStrBuf.getStr() );
7949             sal_Int32              input = -0;
7950             sal_Int16              radix = 36;
7951 
7952             expVal += OString( "0" );
7953             aStrBuf.append( input, radix );
7954 
7955             CPPUNIT_ASSERT_MESSAGE
7956             (
7957                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
7958                 aStrBuf.getStr()== expVal &&
7959                     aStrBuf.getLength() == expVal.getLength()
7960             );
7961 
7962         }
7963 
append_058()7964         void append_058()
7965         {
7966             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
7967             OString                expVal( aStrBuf.getStr() );
7968             sal_Int32              input = -4;
7969             sal_Int16              radix = 36;
7970 
7971             expVal += OString( "-" );
7972             expVal += OString( "4" );
7973             aStrBuf.append( input, radix );
7974 
7975             CPPUNIT_ASSERT_MESSAGE
7976             (
7977                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
7978                 aStrBuf.getStr()== expVal &&
7979                     aStrBuf.getLength() == expVal.getLength()
7980             );
7981 
7982         }
7983 
append_059()7984         void append_059()
7985         {
7986             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
7987             OString                expVal( aStrBuf.getStr() );
7988             sal_Int32              input = -8;
7989             sal_Int16              radix = 36;
7990 
7991             expVal += OString( "-" );
7992             expVal += OString( "8" );
7993             aStrBuf.append( input, radix );
7994 
7995             CPPUNIT_ASSERT_MESSAGE
7996             (
7997                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
7998                 aStrBuf.getStr()== expVal &&
7999                     aStrBuf.getLength() == expVal.getLength()
8000             );
8001 
8002         }
8003 
append_060()8004         void append_060()
8005         {
8006             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
8007             OString                expVal( aStrBuf.getStr() );
8008             sal_Int32              input = -35;
8009             sal_Int16              radix = 36;
8010 
8011             expVal += OString( "-" );
8012             expVal += OString( "z" );
8013             aStrBuf.append( input, radix );
8014 
8015             CPPUNIT_ASSERT_MESSAGE
8016             (
8017                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
8018                 aStrBuf.getStr()== expVal &&
8019                     aStrBuf.getLength() == expVal.getLength()
8020             );
8021 
8022         }
8023 
append_061()8024         void append_061()
8025         {
8026             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
8027             OString                expVal( aStrBuf.getStr() );
8028             sal_Int32              input = -0;
8029             sal_Int16              radix = 2;
8030 
8031             expVal += OString( "0" );
8032             aStrBuf.append( input, radix );
8033 
8034             CPPUNIT_ASSERT_MESSAGE
8035             (
8036                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
8037                 aStrBuf.getStr()== expVal &&
8038                     aStrBuf.getLength() == expVal.getLength()
8039             );
8040 
8041         }
8042 
append_062()8043         void append_062()
8044         {
8045             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
8046             OString                expVal( aStrBuf.getStr() );
8047             sal_Int32              input = -4;
8048             sal_Int16              radix = 2;
8049 
8050             expVal += OString( "-" );
8051             expVal += OString( "100" );
8052             aStrBuf.append( input, radix );
8053 
8054             CPPUNIT_ASSERT_MESSAGE
8055             (
8056                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
8057                 aStrBuf.getStr()== expVal &&
8058                     aStrBuf.getLength() == expVal.getLength()
8059             );
8060 
8061         }
8062 
append_063()8063         void append_063()
8064         {
8065             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
8066             OString                expVal( aStrBuf.getStr() );
8067             sal_Int32              input = -8;
8068             sal_Int16              radix = 2;
8069 
8070             expVal += OString( "-" );
8071             expVal += OString( "1000" );
8072             aStrBuf.append( input, radix );
8073 
8074             CPPUNIT_ASSERT_MESSAGE
8075             (
8076                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
8077                 aStrBuf.getStr()== expVal &&
8078                     aStrBuf.getLength() == expVal.getLength()
8079             );
8080 
8081         }
8082 
append_064()8083         void append_064()
8084         {
8085             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
8086             OString                expVal( aStrBuf.getStr() );
8087             sal_Int32              input = -15;
8088             sal_Int16              radix = 2;
8089 
8090             expVal += OString( "-" );
8091             expVal += OString( "1111" );
8092             aStrBuf.append( input, radix );
8093 
8094             CPPUNIT_ASSERT_MESSAGE
8095             (
8096                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
8097                 aStrBuf.getStr()== expVal &&
8098                     aStrBuf.getLength() == expVal.getLength()
8099             );
8100 
8101         }
8102 
append_065()8103         void append_065()
8104         {
8105             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
8106             OString                expVal( aStrBuf.getStr() );
8107             sal_Int32              input = -0;
8108             sal_Int16              radix = 8;
8109 
8110             expVal += OString( "0" );
8111             aStrBuf.append( input, radix );
8112 
8113             CPPUNIT_ASSERT_MESSAGE
8114             (
8115                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
8116                 aStrBuf.getStr()== expVal &&
8117                     aStrBuf.getLength() == expVal.getLength()
8118             );
8119 
8120         }
8121 
append_066()8122         void append_066()
8123         {
8124             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
8125             OString                expVal( aStrBuf.getStr() );
8126             sal_Int32              input = -4;
8127             sal_Int16              radix = 8;
8128 
8129             expVal += OString( "-" );
8130             expVal += OString( "4" );
8131             aStrBuf.append( input, radix );
8132 
8133             CPPUNIT_ASSERT_MESSAGE
8134             (
8135                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
8136                 aStrBuf.getStr()== expVal &&
8137                     aStrBuf.getLength() == expVal.getLength()
8138             );
8139 
8140         }
8141 
append_067()8142         void append_067()
8143         {
8144             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
8145             OString                expVal( aStrBuf.getStr() );
8146             sal_Int32              input = -8;
8147             sal_Int16              radix = 8;
8148 
8149             expVal += OString( "-" );
8150             expVal += OString( "10" );
8151             aStrBuf.append( input, radix );
8152 
8153             CPPUNIT_ASSERT_MESSAGE
8154             (
8155                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
8156                 aStrBuf.getStr()== expVal &&
8157                     aStrBuf.getLength() == expVal.getLength()
8158             );
8159 
8160         }
8161 
append_068()8162         void append_068()
8163         {
8164             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
8165             OString                expVal( aStrBuf.getStr() );
8166             sal_Int32              input = -15;
8167             sal_Int16              radix = 8;
8168 
8169             expVal += OString( "-" );
8170             expVal += OString( "17" );
8171             aStrBuf.append( input, radix );
8172 
8173             CPPUNIT_ASSERT_MESSAGE
8174             (
8175                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
8176                 aStrBuf.getStr()== expVal &&
8177                     aStrBuf.getLength() == expVal.getLength()
8178             );
8179 
8180         }
8181 
append_069()8182         void append_069()
8183         {
8184             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
8185             OString                expVal( aStrBuf.getStr() );
8186             sal_Int32              input = -0;
8187             sal_Int16              radix = 10;
8188 
8189             expVal += OString( "0" );
8190             aStrBuf.append( input, radix );
8191 
8192             CPPUNIT_ASSERT_MESSAGE
8193             (
8194                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
8195                 aStrBuf.getStr()== expVal &&
8196                     aStrBuf.getLength() == expVal.getLength()
8197             );
8198 
8199         }
8200 
append_070()8201         void append_070()
8202         {
8203             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
8204             OString                expVal( aStrBuf.getStr() );
8205             sal_Int32              input = -4;
8206             sal_Int16              radix = 10;
8207 
8208             expVal += OString( "-" );
8209             expVal += OString( "4" );
8210             aStrBuf.append( input, radix );
8211 
8212             CPPUNIT_ASSERT_MESSAGE
8213             (
8214                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
8215                 aStrBuf.getStr()== expVal &&
8216                     aStrBuf.getLength() == expVal.getLength()
8217             );
8218 
8219         }
8220 
append_071()8221         void append_071()
8222         {
8223             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
8224             OString                expVal( aStrBuf.getStr() );
8225             sal_Int32              input = -8;
8226             sal_Int16              radix = 10;
8227 
8228             expVal += OString( "-" );
8229             expVal += OString( "8" );
8230             aStrBuf.append( input, radix );
8231 
8232             CPPUNIT_ASSERT_MESSAGE
8233             (
8234                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
8235                 aStrBuf.getStr()== expVal &&
8236                     aStrBuf.getLength() == expVal.getLength()
8237             );
8238 
8239         }
8240 
append_072()8241         void append_072()
8242         {
8243             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
8244             OString                expVal( aStrBuf.getStr() );
8245             sal_Int32              input = -15;
8246             sal_Int16              radix = 10;
8247 
8248             expVal += OString( "-" );
8249             expVal += OString( "15" );
8250             aStrBuf.append( input, radix );
8251 
8252             CPPUNIT_ASSERT_MESSAGE
8253             (
8254                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
8255                 aStrBuf.getStr()== expVal &&
8256                     aStrBuf.getLength() == expVal.getLength()
8257             );
8258 
8259         }
8260 
append_073()8261         void append_073()
8262         {
8263             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
8264             OString                expVal( aStrBuf.getStr() );
8265             sal_Int32              input = -0;
8266             sal_Int16              radix = 16;
8267 
8268             expVal += OString( "0" );
8269             aStrBuf.append( input, radix );
8270 
8271             CPPUNIT_ASSERT_MESSAGE
8272             (
8273                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
8274                 aStrBuf.getStr()== expVal &&
8275                     aStrBuf.getLength() == expVal.getLength()
8276             );
8277 
8278         }
8279 
append_074()8280         void append_074()
8281         {
8282             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
8283             OString                expVal( aStrBuf.getStr() );
8284             sal_Int32              input = -4;
8285             sal_Int16              radix = 16;
8286 
8287             expVal += OString( "-" );
8288             expVal += OString( "4" );
8289             aStrBuf.append( input, radix );
8290 
8291             CPPUNIT_ASSERT_MESSAGE
8292             (
8293                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
8294                 aStrBuf.getStr()== expVal &&
8295                     aStrBuf.getLength() == expVal.getLength()
8296             );
8297 
8298         }
8299 
append_075()8300         void append_075()
8301         {
8302             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
8303             OString                expVal( aStrBuf.getStr() );
8304             sal_Int32              input = -8;
8305             sal_Int16              radix = 16;
8306 
8307             expVal += OString( "-" );
8308             expVal += OString( "8" );
8309             aStrBuf.append( input, radix );
8310 
8311             CPPUNIT_ASSERT_MESSAGE
8312             (
8313                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
8314                 aStrBuf.getStr()== expVal &&
8315                     aStrBuf.getLength() == expVal.getLength()
8316             );
8317 
8318         }
8319 
append_076()8320         void append_076()
8321         {
8322             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
8323             OString                expVal( aStrBuf.getStr() );
8324             sal_Int32              input = -15;
8325             sal_Int16              radix = 16;
8326 
8327             expVal += OString( "-" );
8328             expVal += OString( "f" );
8329             aStrBuf.append( input, radix );
8330 
8331             CPPUNIT_ASSERT_MESSAGE
8332             (
8333                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
8334                 aStrBuf.getStr()== expVal &&
8335                     aStrBuf.getLength() == expVal.getLength()
8336             );
8337 
8338         }
8339 
append_077()8340         void append_077()
8341         {
8342             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
8343             OString                expVal( aStrBuf.getStr() );
8344             sal_Int32              input = -0;
8345             sal_Int16              radix = 36;
8346 
8347             expVal += OString( "0" );
8348             aStrBuf.append( input, radix );
8349 
8350             CPPUNIT_ASSERT_MESSAGE
8351             (
8352                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
8353                 aStrBuf.getStr()== expVal &&
8354                     aStrBuf.getLength() == expVal.getLength()
8355             );
8356 
8357         }
8358 
append_078()8359         void append_078()
8360         {
8361             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
8362             OString                expVal( aStrBuf.getStr() );
8363             sal_Int32              input = -4;
8364             sal_Int16              radix = 36;
8365 
8366             expVal += OString( "-" );
8367             expVal += OString( "4" );
8368             aStrBuf.append( input, radix );
8369 
8370             CPPUNIT_ASSERT_MESSAGE
8371             (
8372                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
8373                 aStrBuf.getStr()== expVal &&
8374                     aStrBuf.getLength() == expVal.getLength()
8375             );
8376 
8377         }
8378 
append_079()8379         void append_079()
8380         {
8381             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
8382             OString                expVal( aStrBuf.getStr() );
8383             sal_Int32              input = -8;
8384             sal_Int16              radix = 36;
8385 
8386             expVal += OString( "-" );
8387             expVal += OString( "8" );
8388             aStrBuf.append( input, radix );
8389 
8390             CPPUNIT_ASSERT_MESSAGE
8391             (
8392                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
8393                 aStrBuf.getStr()== expVal &&
8394                     aStrBuf.getLength() == expVal.getLength()
8395             );
8396 
8397         }
8398 
append_080()8399         void append_080()
8400         {
8401             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
8402             OString                expVal( aStrBuf.getStr() );
8403             sal_Int32              input = -35;
8404             sal_Int16              radix = 36;
8405 
8406             expVal += OString( "-" );
8407             expVal += OString( "z" );
8408             aStrBuf.append( input, radix );
8409 
8410             CPPUNIT_ASSERT_MESSAGE
8411             (
8412                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
8413                 aStrBuf.getStr()== expVal &&
8414                     aStrBuf.getLength() == expVal.getLength()
8415             );
8416 
8417         }
8418 
append_081()8419         void append_081()
8420         {
8421             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
8422             OString                expVal( aStrBuf.getStr() );
8423             sal_Int32              input = -0;
8424             sal_Int16              radix = 2;
8425 
8426             expVal += OString( "0" );
8427             aStrBuf.append( input, radix );
8428 
8429             CPPUNIT_ASSERT_MESSAGE
8430             (
8431                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
8432                 aStrBuf.getStr()== expVal &&
8433                     aStrBuf.getLength() == expVal.getLength()
8434             );
8435 
8436         }
8437 
append_082()8438         void append_082()
8439         {
8440             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
8441             OString                expVal( aStrBuf.getStr() );
8442             sal_Int32              input = -4;
8443             sal_Int16              radix = 2;
8444 
8445             expVal += OString( "-" );
8446             expVal += OString( "100" );
8447             aStrBuf.append( input, radix );
8448 
8449             CPPUNIT_ASSERT_MESSAGE
8450             (
8451                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
8452                 aStrBuf.getStr()== expVal &&
8453                     aStrBuf.getLength() == expVal.getLength()
8454             );
8455 
8456         }
8457 
append_083()8458         void append_083()
8459         {
8460             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
8461             OString                expVal( aStrBuf.getStr() );
8462             sal_Int32              input = -8;
8463             sal_Int16              radix = 2;
8464 
8465             expVal += OString( "-" );
8466             expVal += OString( "1000" );
8467             aStrBuf.append( input, radix );
8468 
8469             CPPUNIT_ASSERT_MESSAGE
8470             (
8471                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
8472                 aStrBuf.getStr()== expVal &&
8473                     aStrBuf.getLength() == expVal.getLength()
8474             );
8475 
8476         }
8477 
append_084()8478         void append_084()
8479         {
8480             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
8481             OString                expVal( aStrBuf.getStr() );
8482             sal_Int32              input = -15;
8483             sal_Int16              radix = 2;
8484 
8485             expVal += OString( "-" );
8486             expVal += OString( "1111" );
8487             aStrBuf.append( input, radix );
8488 
8489             CPPUNIT_ASSERT_MESSAGE
8490             (
8491                 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
8492                 aStrBuf.getStr()== expVal &&
8493                     aStrBuf.getLength() == expVal.getLength()
8494             );
8495 
8496         }
8497 
append_085()8498         void append_085()
8499         {
8500             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
8501             OString                expVal( aStrBuf.getStr() );
8502             sal_Int32              input = -0;
8503             sal_Int16              radix = 8;
8504 
8505             expVal += OString( "0" );
8506             aStrBuf.append( input, radix );
8507 
8508             CPPUNIT_ASSERT_MESSAGE
8509             (
8510                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
8511                 aStrBuf.getStr()== expVal &&
8512                     aStrBuf.getLength() == expVal.getLength()
8513             );
8514 
8515         }
8516 
append_086()8517         void append_086()
8518         {
8519             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
8520             OString                expVal( aStrBuf.getStr() );
8521             sal_Int32              input = -4;
8522             sal_Int16              radix = 8;
8523 
8524             expVal += OString( "-" );
8525             expVal += OString( "4" );
8526             aStrBuf.append( input, radix );
8527 
8528             CPPUNIT_ASSERT_MESSAGE
8529             (
8530                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
8531                 aStrBuf.getStr()== expVal &&
8532                     aStrBuf.getLength() == expVal.getLength()
8533             );
8534 
8535         }
8536 
append_087()8537         void append_087()
8538         {
8539             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
8540             OString                expVal( aStrBuf.getStr() );
8541             sal_Int32              input = -8;
8542             sal_Int16              radix = 8;
8543 
8544             expVal += OString( "-" );
8545             expVal += OString( "10" );
8546             aStrBuf.append( input, radix );
8547 
8548             CPPUNIT_ASSERT_MESSAGE
8549             (
8550                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
8551                 aStrBuf.getStr()== expVal &&
8552                     aStrBuf.getLength() == expVal.getLength()
8553             );
8554 
8555         }
8556 
append_088()8557         void append_088()
8558         {
8559             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
8560             OString                expVal( aStrBuf.getStr() );
8561             sal_Int32              input = -15;
8562             sal_Int16              radix = 8;
8563 
8564             expVal += OString( "-" );
8565             expVal += OString( "17" );
8566             aStrBuf.append( input, radix );
8567 
8568             CPPUNIT_ASSERT_MESSAGE
8569             (
8570                 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
8571                 aStrBuf.getStr()== expVal &&
8572                     aStrBuf.getLength() == expVal.getLength()
8573             );
8574 
8575         }
8576 
append_089()8577         void append_089()
8578         {
8579             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
8580             OString                expVal( aStrBuf.getStr() );
8581             sal_Int32              input = -0;
8582             sal_Int16              radix = 10;
8583 
8584             expVal += OString( "0" );
8585             aStrBuf.append( input, radix );
8586 
8587             CPPUNIT_ASSERT_MESSAGE
8588             (
8589                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
8590                 aStrBuf.getStr()== expVal &&
8591                     aStrBuf.getLength() == expVal.getLength()
8592             );
8593 
8594         }
8595 
append_090()8596         void append_090()
8597         {
8598             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
8599             OString                expVal( aStrBuf.getStr() );
8600             sal_Int32              input = -4;
8601             sal_Int16              radix = 10;
8602 
8603             expVal += OString( "-" );
8604             expVal += OString( "4" );
8605             aStrBuf.append( input, radix );
8606 
8607             CPPUNIT_ASSERT_MESSAGE
8608             (
8609                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
8610                 aStrBuf.getStr()== expVal &&
8611                     aStrBuf.getLength() == expVal.getLength()
8612             );
8613 
8614         }
8615 
append_091()8616         void append_091()
8617         {
8618             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
8619             OString                expVal( aStrBuf.getStr() );
8620             sal_Int32              input = -8;
8621             sal_Int16              radix = 10;
8622 
8623             expVal += OString( "-" );
8624             expVal += OString( "8" );
8625             aStrBuf.append( input, radix );
8626 
8627             CPPUNIT_ASSERT_MESSAGE
8628             (
8629                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
8630                 aStrBuf.getStr()== expVal &&
8631                     aStrBuf.getLength() == expVal.getLength()
8632             );
8633 
8634         }
8635 
append_092()8636         void append_092()
8637         {
8638             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
8639             OString                expVal( aStrBuf.getStr() );
8640             sal_Int32              input = -15;
8641             sal_Int16              radix = 10;
8642 
8643             expVal += OString( "-" );
8644             expVal += OString( "15" );
8645             aStrBuf.append( input, radix );
8646 
8647             CPPUNIT_ASSERT_MESSAGE
8648             (
8649                 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
8650                 aStrBuf.getStr()== expVal &&
8651                     aStrBuf.getLength() == expVal.getLength()
8652             );
8653 
8654         }
8655 
append_093()8656         void append_093()
8657         {
8658             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
8659             OString                expVal( aStrBuf.getStr() );
8660             sal_Int32              input = -0;
8661             sal_Int16              radix = 16;
8662 
8663             expVal += OString( "0" );
8664             aStrBuf.append( input, radix );
8665 
8666             CPPUNIT_ASSERT_MESSAGE
8667             (
8668                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
8669                 aStrBuf.getStr()== expVal &&
8670                     aStrBuf.getLength() == expVal.getLength()
8671             );
8672 
8673         }
8674 
append_094()8675         void append_094()
8676         {
8677             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
8678             OString                expVal( aStrBuf.getStr() );
8679             sal_Int32              input = -4;
8680             sal_Int16              radix = 16;
8681 
8682             expVal += OString( "-" );
8683             expVal += OString( "4" );
8684             aStrBuf.append( input, radix );
8685 
8686             CPPUNIT_ASSERT_MESSAGE
8687             (
8688                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
8689                 aStrBuf.getStr()== expVal &&
8690                     aStrBuf.getLength() == expVal.getLength()
8691             );
8692 
8693         }
8694 
append_095()8695         void append_095()
8696         {
8697             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
8698             OString                expVal( aStrBuf.getStr() );
8699             sal_Int32              input = -8;
8700             sal_Int16              radix = 16;
8701 
8702             expVal += OString( "-" );
8703             expVal += OString( "8" );
8704             aStrBuf.append( input, radix );
8705 
8706             CPPUNIT_ASSERT_MESSAGE
8707             (
8708                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
8709                 aStrBuf.getStr()== expVal &&
8710                     aStrBuf.getLength() == expVal.getLength()
8711             );
8712 
8713         }
8714 
append_096()8715         void append_096()
8716         {
8717             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
8718             OString                expVal( aStrBuf.getStr() );
8719             sal_Int32              input = -15;
8720             sal_Int16              radix = 16;
8721 
8722             expVal += OString( "-" );
8723             expVal += OString( "f" );
8724             aStrBuf.append( input, radix );
8725 
8726             CPPUNIT_ASSERT_MESSAGE
8727             (
8728                 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
8729                 aStrBuf.getStr()== expVal &&
8730                     aStrBuf.getLength() == expVal.getLength()
8731             );
8732 
8733         }
8734 
append_097()8735         void append_097()
8736         {
8737             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
8738             OString                expVal( aStrBuf.getStr() );
8739             sal_Int32              input = -0;
8740             sal_Int16              radix = 36;
8741 
8742             expVal += OString( "0" );
8743             aStrBuf.append( input, radix );
8744 
8745             CPPUNIT_ASSERT_MESSAGE
8746             (
8747                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
8748                 aStrBuf.getStr()== expVal &&
8749                     aStrBuf.getLength() == expVal.getLength()
8750             );
8751 
8752         }
8753 
append_098()8754         void append_098()
8755         {
8756             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
8757             OString                expVal( aStrBuf.getStr() );
8758             sal_Int32              input = -4;
8759             sal_Int16              radix = 36;
8760 
8761             expVal += OString( "-" );
8762             expVal += OString( "4" );
8763             aStrBuf.append( input, radix );
8764 
8765             CPPUNIT_ASSERT_MESSAGE
8766             (
8767                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
8768                 aStrBuf.getStr()== expVal &&
8769                     aStrBuf.getLength() == expVal.getLength()
8770             );
8771 
8772         }
8773 
append_099()8774         void append_099()
8775         {
8776             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
8777             OString                expVal( aStrBuf.getStr() );
8778             sal_Int32              input = -8;
8779             sal_Int16              radix = 36;
8780 
8781             expVal += OString( "-" );
8782             expVal += OString( "8" );
8783             aStrBuf.append( input, radix );
8784 
8785             CPPUNIT_ASSERT_MESSAGE
8786             (
8787                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
8788                 aStrBuf.getStr()== expVal &&
8789                     aStrBuf.getLength() == expVal.getLength()
8790             );
8791 
8792         }
8793 
append_100()8794         void append_100()
8795         {
8796             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
8797             OString                expVal( aStrBuf.getStr() );
8798             sal_Int32              input = -35;
8799             sal_Int16              radix = 36;
8800 
8801             expVal += OString( "-" );
8802             expVal += OString( "z" );
8803             aStrBuf.append( input, radix );
8804 
8805             CPPUNIT_ASSERT_MESSAGE
8806             (
8807                 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
8808                 aStrBuf.getStr()== expVal &&
8809                     aStrBuf.getLength() == expVal.getLength()
8810             );
8811 
8812         }
8813 
8814         CPPUNIT_TEST_SUITE( append_006_Int32_Negative );
8815         CPPUNIT_TEST( append_001 ); CPPUNIT_TEST( append_002 );
8816         CPPUNIT_TEST( append_003 ); CPPUNIT_TEST( append_004 );
8817         CPPUNIT_TEST( append_005 ); CPPUNIT_TEST( append_006 );
8818         CPPUNIT_TEST( append_007 ); CPPUNIT_TEST( append_008 );
8819         CPPUNIT_TEST( append_009 ); CPPUNIT_TEST( append_010 );
8820         CPPUNIT_TEST( append_011 ); CPPUNIT_TEST( append_012 );
8821         CPPUNIT_TEST( append_013 ); CPPUNIT_TEST( append_014 );
8822         CPPUNIT_TEST( append_015 ); CPPUNIT_TEST( append_016 );
8823         CPPUNIT_TEST( append_017 ); CPPUNIT_TEST( append_018 );
8824         CPPUNIT_TEST( append_019 ); CPPUNIT_TEST( append_020 );
8825         CPPUNIT_TEST( append_021 ); CPPUNIT_TEST( append_022 );
8826         CPPUNIT_TEST( append_023 ); CPPUNIT_TEST( append_024 );
8827         CPPUNIT_TEST( append_025 ); CPPUNIT_TEST( append_026 );
8828         CPPUNIT_TEST( append_027 ); CPPUNIT_TEST( append_028 );
8829         CPPUNIT_TEST( append_029 ); CPPUNIT_TEST( append_030 );
8830         CPPUNIT_TEST( append_031 ); CPPUNIT_TEST( append_032 );
8831         CPPUNIT_TEST( append_033 ); CPPUNIT_TEST( append_034 );
8832         CPPUNIT_TEST( append_035 ); CPPUNIT_TEST( append_036 );
8833         CPPUNIT_TEST( append_037 ); CPPUNIT_TEST( append_038 );
8834         CPPUNIT_TEST( append_039 ); CPPUNIT_TEST( append_040 );
8835         CPPUNIT_TEST( append_041 ); CPPUNIT_TEST( append_042 );
8836         CPPUNIT_TEST( append_043 ); CPPUNIT_TEST( append_044 );
8837         CPPUNIT_TEST( append_045 ); CPPUNIT_TEST( append_046 );
8838         CPPUNIT_TEST( append_047 ); CPPUNIT_TEST( append_048 );
8839         CPPUNIT_TEST( append_049 ); CPPUNIT_TEST( append_050 );
8840         CPPUNIT_TEST( append_051 ); CPPUNIT_TEST( append_052 );
8841         CPPUNIT_TEST( append_053 ); CPPUNIT_TEST( append_054 );
8842         CPPUNIT_TEST( append_055 ); CPPUNIT_TEST( append_056 );
8843         CPPUNIT_TEST( append_057 ); CPPUNIT_TEST( append_058 );
8844         CPPUNIT_TEST( append_059 ); CPPUNIT_TEST( append_060 );
8845         CPPUNIT_TEST( append_061 ); CPPUNIT_TEST( append_062 );
8846         CPPUNIT_TEST( append_063 ); CPPUNIT_TEST( append_064 );
8847         CPPUNIT_TEST( append_065 ); CPPUNIT_TEST( append_066 );
8848         CPPUNIT_TEST( append_067 ); CPPUNIT_TEST( append_068 );
8849         CPPUNIT_TEST( append_069 ); CPPUNIT_TEST( append_070 );
8850         CPPUNIT_TEST( append_071 ); CPPUNIT_TEST( append_072 );
8851         CPPUNIT_TEST( append_073 ); CPPUNIT_TEST( append_074 );
8852         CPPUNIT_TEST( append_075 ); CPPUNIT_TEST( append_076 );
8853         CPPUNIT_TEST( append_077 ); CPPUNIT_TEST( append_078 );
8854         CPPUNIT_TEST( append_079 ); CPPUNIT_TEST( append_080 );
8855         CPPUNIT_TEST( append_081 ); CPPUNIT_TEST( append_082 );
8856         CPPUNIT_TEST( append_083 ); CPPUNIT_TEST( append_084 );
8857         CPPUNIT_TEST( append_085 ); CPPUNIT_TEST( append_086 );
8858         CPPUNIT_TEST( append_087 ); CPPUNIT_TEST( append_088 );
8859         CPPUNIT_TEST( append_089 ); CPPUNIT_TEST( append_090 );
8860         CPPUNIT_TEST( append_091 ); CPPUNIT_TEST( append_092 );
8861         CPPUNIT_TEST( append_093 ); CPPUNIT_TEST( append_094 );
8862         CPPUNIT_TEST( append_095 ); CPPUNIT_TEST( append_096 );
8863         CPPUNIT_TEST( append_097 ); CPPUNIT_TEST( append_098 );
8864         CPPUNIT_TEST( append_099 ); CPPUNIT_TEST( append_100 );
8865         CPPUNIT_TEST_SUITE_END();
8866     };
8867 //------------------------------------------------------------------------
8868 // testing the method append( sal_Int32 i, sal_Int16 radix ) where radix = -5
8869 //------------------------------------------------------------------------
8870     class  append_006_Int32_WrongRadix : public CppUnit::TestFixture
8871     {
8872         OString* arrOUS[5];
8873         sal_Int32 intVal;
8874 
8875     public:
setUp()8876         void setUp()
8877         {
8878             arrOUS[0] = new OString( kTestStr7 );
8879             arrOUS[1] = new OString(  );
8880             arrOUS[2] = new OString( kTestStr25 );
8881             arrOUS[3] = new OString( "\0"  );
8882             arrOUS[4] = new OString( kTestStr28 );
8883             intVal = 11;
8884 
8885         }
8886 
tearDown()8887         void tearDown()
8888         {
8889             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
8890             delete arrOUS[3]; delete arrOUS[4];
8891         }
8892 
append_001()8893         void append_001()
8894         {
8895             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
8896             OString                expVal( kTestStr59 );
8897 
8898             aStrBuf.append( intVal, -5 );
8899 
8900             CPPUNIT_ASSERT_MESSAGE
8901             (
8902                 "Appends the WrongRadix to the string buffer arrOUS[0]",
8903                 sal_True
8904             );
8905 
8906         }
8907 
append_002()8908         void append_002()
8909         {
8910             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
8911             OString                expVal( kTestStr60 );
8912 
8913             aStrBuf.append( intVal, -5 );
8914 
8915             CPPUNIT_ASSERT_MESSAGE
8916             (
8917                 "Appends the WrongRadix to the string buffer arrOUS[1]",
8918                 sal_True
8919             );
8920 
8921         }
8922 
append_003()8923         void append_003()
8924         {
8925             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
8926             OString                expVal( kTestStr60 );
8927 
8928             aStrBuf.append( intVal, -5 );
8929 
8930             CPPUNIT_ASSERT_MESSAGE
8931             (
8932                 "Appends the WrongRadix to the string buffer arrOUS[2]",
8933                 sal_True
8934             );
8935 
8936         }
8937 
append_004()8938         void append_004()
8939         {
8940             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
8941             OString                expVal( kTestStr60 );
8942 
8943             aStrBuf.append( intVal, -5 );
8944 
8945             CPPUNIT_ASSERT_MESSAGE
8946             (
8947                 "Appends the WrongRadix to the string buffer arrOUS[3]",
8948                 sal_True
8949             );
8950 
8951         }
8952 
append_005()8953         void append_005()
8954         {
8955             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
8956             OString                expVal( kTestStr61 );
8957 
8958             aStrBuf.append( intVal, -5 );
8959 
8960             CPPUNIT_ASSERT_MESSAGE
8961             (
8962                 "Appends the WrongRadix to the string buffer arrOUS[4]",
8963                 sal_True
8964             );
8965 
8966         }
8967 #ifdef WITH_CORE
append_006()8968         void append_006()
8969         {
8970             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
8971             OString                expVal( kTestStr60 );
8972 
8973             aStrBuf.append( intVal, -5 );
8974 
8975             CPPUNIT_ASSERT_MESSAGE
8976             (
8977                 "Appends the WrongRadix to the string buffer(with INT_MAX)",
8978                 sal_True
8979             );
8980 
8981         }
8982 #endif
8983 
8984         CPPUNIT_TEST_SUITE( append_006_Int32_WrongRadix );
8985         CPPUNIT_TEST( append_001 );
8986         CPPUNIT_TEST( append_002 );
8987         CPPUNIT_TEST( append_003 );
8988         CPPUNIT_TEST( append_004 );
8989         CPPUNIT_TEST( append_005 );
8990 #ifdef WITH_CORE
8991         CPPUNIT_TEST( append_006 );
8992 #endif
8993         CPPUNIT_TEST_SUITE_END();
8994     };
8995 //------------------------------------------------------------------------
8996     class  append_006_Int32_defaultParam : public CppUnit::TestFixture
8997     {
8998         OString* arrOUS[5];
8999 
9000     public:
setUp()9001         void setUp()
9002         {
9003             arrOUS[0] = new OString( kTestStr7 );
9004             arrOUS[1] = new OString(  );
9005             arrOUS[2] = new OString( kTestStr25 );
9006             arrOUS[3] = new OString( "\0"  );
9007             arrOUS[4] = new OString( kTestStr28 );
9008 
9009         }
9010 
tearDown()9011         void tearDown()
9012         {
9013             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
9014             delete arrOUS[3]; delete arrOUS[4];
9015         }
9016 
append_001()9017         void append_001()
9018         {
9019             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
9020             OString                expVal( kTestStr59 );
9021             sal_Int32              input = 11;
9022 
9023             aStrBuf.append( input );
9024 
9025             CPPUNIT_ASSERT_MESSAGE
9026             (
9027                 "input Int32 11 and return OStringBuffer[0]+11",
9028                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
9029             );
9030 
9031         }
9032 
append_002()9033         void append_002()
9034         {
9035             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
9036             OString                expVal( kTestStr62 );
9037             sal_Int32              input = 0;
9038 
9039             aStrBuf.append( input );
9040 
9041             CPPUNIT_ASSERT_MESSAGE
9042             (
9043                 "input Int32 0 and return OStringBuffer[0]+0",
9044                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
9045             );
9046 
9047         }
9048 
append_003()9049         void append_003()
9050         {
9051             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
9052             OString                expVal( kTestStr63 );
9053             sal_Int32              input = -11;
9054 
9055             aStrBuf.append( input );
9056 
9057             CPPUNIT_ASSERT_MESSAGE
9058             (
9059                 "input Int32 -11 and return OStringBuffer[0]+(-11)",
9060                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
9061             );
9062 
9063         }
9064 
append_004()9065         void append_004()
9066         {
9067             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
9068             OString                expVal( kTestStr64 );
9069             sal_Int32              input = 2147483647;
9070 
9071             aStrBuf.append( input );
9072 
9073             CPPUNIT_ASSERT_MESSAGE
9074             (
9075                 "input Int32 2147483647 and return OStringBuffer[0]+2147483647",
9076                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
9077             );
9078 
9079         }
9080 
append_005()9081         void append_005()
9082         {
9083             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
9084             OString                expVal( kTestStr65 );
9085             sal_Int32              input = kNonSInt32Max;
9086 
9087             aStrBuf.append( input );
9088 
9089             CPPUNIT_ASSERT_MESSAGE
9090             (
9091                 "input Int32 -2147483648 and return OStringBuffer[0]+(-2147483648)",
9092                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
9093             );
9094 
9095         }
9096 
append_006()9097         void append_006()
9098         {
9099             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
9100             OString                expVal( kTestStr60 );
9101             sal_Int32              input = 11;
9102 
9103             aStrBuf.append( input );
9104 
9105             CPPUNIT_ASSERT_MESSAGE
9106             (
9107                 "input Int32 11 and return OStringBuffer[1]+11",
9108                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
9109             );
9110 
9111         }
9112 
append_007()9113         void append_007()
9114         {
9115             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
9116             OString                expVal( kTestStr66 );
9117             sal_Int32              input = 0;
9118 
9119             aStrBuf.append( input );
9120 
9121             CPPUNIT_ASSERT_MESSAGE
9122             (
9123                 "input Int32 0 and return OStringBuffer[1]+0",
9124                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
9125             );
9126 
9127         }
9128 
append_008()9129         void append_008()
9130         {
9131             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
9132             OString                expVal( kTestStr67 );
9133             sal_Int32              input = -11;
9134 
9135             aStrBuf.append( input );
9136 
9137             CPPUNIT_ASSERT_MESSAGE
9138             (
9139                 "input Int32 -11 and return OStringBuffer[1]+(-11)",
9140                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
9141             );
9142 
9143         }
9144 
append_009()9145         void append_009()
9146         {
9147             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
9148             OString                expVal( kTestStr68 );
9149             sal_Int32              input = 2147483647;
9150 
9151             aStrBuf.append( input );
9152 
9153             CPPUNIT_ASSERT_MESSAGE
9154             (
9155                 "input Int32 2147483647 and return OStringBuffer[1]+2147483647",
9156                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
9157             );
9158 
9159         }
9160 
append_010()9161         void append_010()
9162         {
9163             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
9164             OString                expVal( kTestStr69 );
9165             sal_Int32              input = SAL_MIN_INT32 /*-2147483648*/;
9166 
9167             aStrBuf.append( input );
9168 
9169             CPPUNIT_ASSERT_MESSAGE
9170             (
9171                 "input Int32 -2147483648 and return OStringBuffer[1]+(-2147483648)",
9172                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
9173             );
9174 
9175         }
9176 
append_011()9177         void append_011()
9178         {
9179             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
9180             OString                expVal( kTestStr60 );
9181             sal_Int32              input = 11;
9182 
9183             aStrBuf.append( input );
9184 
9185             CPPUNIT_ASSERT_MESSAGE
9186             (
9187                 "input Int32 11 and return OStringBuffer[2]+11",
9188                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
9189             );
9190 
9191         }
9192 
append_012()9193         void append_012()
9194         {
9195             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
9196             OString                expVal( kTestStr66 );
9197             sal_Int32              input = 0;
9198 
9199             aStrBuf.append( input );
9200 
9201             CPPUNIT_ASSERT_MESSAGE
9202             (
9203                 "input Int32 0 and return OUStringBuffer[2]+0",
9204                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
9205             );
9206 
9207         }
9208 
append_013()9209         void append_013()
9210         {
9211             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
9212             OString                expVal( kTestStr67 );
9213             sal_Int32              input = -11;
9214 
9215             aStrBuf.append( input );
9216 
9217             CPPUNIT_ASSERT_MESSAGE
9218             (
9219                 "input Int32 -11 and return OUStringBuffer[2]+(-11)",
9220                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
9221             );
9222 
9223         }
9224 
append_014()9225         void append_014()
9226         {
9227             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
9228             OString                expVal( kTestStr68 );
9229             sal_Int32              input = 2147483647;
9230 
9231             aStrBuf.append( input );
9232 
9233             CPPUNIT_ASSERT_MESSAGE
9234             (
9235                 "input Int32 2147483647 and return OStringBuffer[2]+2147483647",
9236                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
9237             );
9238 
9239         }
9240 
append_015()9241         void append_015()
9242         {
9243             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
9244             OString                expVal( kTestStr69 );
9245             sal_Int32              input = SAL_MIN_INT32;
9246 
9247             aStrBuf.append( input );
9248 
9249             CPPUNIT_ASSERT_MESSAGE
9250             (
9251                 "input Int32 -2147483648 and return OStringBuffer[2]+(-2147483648)",
9252                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
9253             );
9254 
9255         }
9256 
append_016()9257         void append_016()
9258         {
9259             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
9260             OString                expVal( kTestStr60 );
9261             sal_Int32              input = 11;
9262 
9263             aStrBuf.append( input );
9264 
9265             CPPUNIT_ASSERT_MESSAGE
9266             (
9267                 "input Int32 11 and return OStringBuffer[3]+11",
9268                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
9269             );
9270 
9271         }
9272 
append_017()9273         void append_017()
9274         {
9275             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
9276             OString                expVal( kTestStr66 );
9277             sal_Int32              input = 0;
9278 
9279             aStrBuf.append( input );
9280 
9281             CPPUNIT_ASSERT_MESSAGE
9282             (
9283                 "input Int32 0 and return OStringBuffer[3]+0",
9284                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
9285             );
9286 
9287         }
9288 
append_018()9289         void append_018()
9290         {
9291             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
9292             OString                expVal( kTestStr67 );
9293             sal_Int32              input = -11;
9294 
9295             aStrBuf.append( input );
9296 
9297             CPPUNIT_ASSERT_MESSAGE
9298             (
9299                 "input Int32 -11 and return OStringBuffer[3]+(-11)",
9300                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
9301             );
9302 
9303         }
9304 
append_019()9305         void append_019()
9306         {
9307             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
9308             OString                expVal( kTestStr68 );
9309             sal_Int32              input = 2147483647;
9310 
9311             aStrBuf.append( input );
9312 
9313             CPPUNIT_ASSERT_MESSAGE
9314             (
9315                 "input Int32 2147483647 and return OStringBuffer[3]+2147483647",
9316                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
9317             );
9318 
9319         }
9320 
append_020()9321         void append_020()
9322         {
9323             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
9324             OString                expVal( kTestStr69 );
9325             sal_Int32              input = SAL_MIN_INT32;
9326 
9327             aStrBuf.append( input );
9328 
9329             CPPUNIT_ASSERT_MESSAGE
9330             (
9331                 "input Int32 -2147483648 and return OStringBuffer[3]+(-2147483648)",
9332                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
9333             );
9334 
9335         }
9336 
append_021()9337         void append_021()
9338         {
9339             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
9340             OString                expVal( kTestStr61 );
9341             sal_Int32              input = 11;
9342 
9343             aStrBuf.append( input );
9344 
9345             CPPUNIT_ASSERT_MESSAGE
9346             (
9347                 "input Int32 11 and return OStringBuffer[4]+11",
9348                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
9349             );
9350 
9351         }
9352 
append_022()9353         void append_022()
9354         {
9355             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
9356             OString                expVal( kTestStr70 );
9357             sal_Int32              input = 0;
9358 
9359             aStrBuf.append( input );
9360 
9361             CPPUNIT_ASSERT_MESSAGE
9362             (
9363                 "input Int32 0 and return OStringBuffer[4]+0",
9364                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
9365             );
9366 
9367         }
9368 
append_023()9369         void append_023()
9370         {
9371             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
9372             OString                expVal( kTestStr71 );
9373             sal_Int32              input = -11;
9374 
9375             aStrBuf.append( input );
9376 
9377             CPPUNIT_ASSERT_MESSAGE
9378             (
9379                 "input Int32 -11 and return OStringBuffer[4]+(-11)",
9380                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
9381             );
9382 
9383         }
9384 
append_024()9385         void append_024()
9386         {
9387             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
9388             OString                expVal( kTestStr72 );
9389             sal_Int32              input = 2147483647;
9390 
9391             aStrBuf.append( input );
9392 
9393             CPPUNIT_ASSERT_MESSAGE
9394             (
9395                 "input Int32 2147483647 and return OStringBuffer[4]+2147483647",
9396                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
9397             );
9398 
9399         }
9400 
append_025()9401         void append_025()
9402         {
9403             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
9404             OString                expVal( kTestStr73 );
9405             sal_Int32              input = SAL_MIN_INT32;
9406 
9407             aStrBuf.append( input );
9408 
9409             CPPUNIT_ASSERT_MESSAGE
9410             (
9411                 "input Int32 -2147483648 and return OStringBuffer[4]+(-2147483648)",
9412                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
9413             );
9414 
9415         }
9416 #ifdef WITH_CORE
append_026()9417         void append_026()
9418         {
9419             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
9420             OString                expVal( kTestStr60 );
9421             sal_Int32              input = 11;
9422 
9423             aStrBuf.append( input );
9424 
9425             CPPUNIT_ASSERT_MESSAGE
9426             (
9427                 "input Int32 11 and return OStringBuffer(kSInt32Max)+11",
9428                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
9429             );
9430 
9431         }
9432 
append_027()9433         void append_027()
9434         {
9435             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
9436             OString                expVal( kTestStr66 );
9437             sal_Int32              input = 0;
9438 
9439             aStrBuf.append( input );
9440 
9441             CPPUNIT_ASSERT_MESSAGE
9442             (
9443                 "input Int32 0 and return OStringBuffer(kSInt32Max)+0",
9444                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
9445             );
9446 
9447         }
9448 
append_028()9449         void append_028()
9450         {
9451             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
9452             OString                expVal( kTestStr67 );
9453             sal_Int32              input = -11;
9454 
9455             aStrBuf.append( input );
9456 
9457             CPPUNIT_ASSERT_MESSAGE
9458             (
9459                 "input Int32 -11 and return OStringBuffer(kSInt32Max)+(-11)",
9460                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
9461             );
9462 
9463         }
9464 
append_029()9465         void append_029()
9466         {
9467             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
9468             OString                expVal( kTestStr68 );
9469             sal_Int32              input = 2147483647;
9470 
9471             aStrBuf.append( input );
9472 
9473             CPPUNIT_ASSERT_MESSAGE
9474             (
9475                 "input Int32 2147483647 and return OStringBuffer(kSInt32Max)+2147483647",
9476                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
9477             );
9478 
9479         }
9480 
append_030()9481         void append_030()
9482         {
9483             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
9484             OString                expVal( kTestStr69 );
9485             sal_Int32              input = SAL_MIN_INT32;
9486 
9487             aStrBuf.append( input );
9488 
9489             CPPUNIT_ASSERT_MESSAGE
9490             (
9491                 "input Int32 -2147483648 and return OStringBuffer(kSInt32Max)+(-2147483648)",
9492                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
9493             );
9494 
9495         }
9496 #endif
9497 
9498         CPPUNIT_TEST_SUITE( append_006_Int32_defaultParam );
9499         CPPUNIT_TEST( append_001 );
9500         CPPUNIT_TEST( append_002 );
9501         CPPUNIT_TEST( append_003 );
9502         CPPUNIT_TEST( append_004 );
9503         CPPUNIT_TEST( append_005 );
9504         CPPUNIT_TEST( append_006 );
9505         CPPUNIT_TEST( append_007 );
9506         CPPUNIT_TEST( append_008 );
9507         CPPUNIT_TEST( append_009 );
9508         CPPUNIT_TEST( append_010 );
9509         CPPUNIT_TEST( append_011 );
9510         CPPUNIT_TEST( append_012 );
9511         CPPUNIT_TEST( append_013 );
9512         CPPUNIT_TEST( append_014 );
9513         CPPUNIT_TEST( append_015 );
9514         CPPUNIT_TEST( append_016 );
9515         CPPUNIT_TEST( append_017 );
9516         CPPUNIT_TEST( append_018 );
9517         CPPUNIT_TEST( append_019 );
9518         CPPUNIT_TEST( append_020 );
9519         CPPUNIT_TEST( append_021 );
9520         CPPUNIT_TEST( append_022 );
9521         CPPUNIT_TEST( append_023 );
9522         CPPUNIT_TEST( append_024 );
9523         CPPUNIT_TEST( append_025 );
9524 #ifdef WITH_CORE
9525         CPPUNIT_TEST( append_026 );
9526         CPPUNIT_TEST( append_027 );
9527         CPPUNIT_TEST( append_028 );
9528         CPPUNIT_TEST( append_029 );
9529         CPPUNIT_TEST( append_030 );
9530 #endif
9531         CPPUNIT_TEST_SUITE_END();
9532     };
9533 //------------------------------------------------------------------------
9534 // testing the method append( sal_Int64 l, sal_Int16 radix=2 )
9535 // testing the method append( sal_Int64 l, sal_Int16 radix=8 )
9536 // testing the method append( sal_Int64 l, sal_Int16 radix=10 )
9537 // testing the method append( sal_Int64 l, sal_Int16 radix=16 )
9538 // testing the method append( sal_Int64 l, sal_Int16 radix=36 )
9539 //------------------------------------------------------------------------
9540     class  append_007_Int64 : public CppUnit::TestFixture
9541     {
9542         OString* arrOUS[5];
9543 
9544     public:
setUp()9545         void setUp()
9546         {
9547             arrOUS[0] = new OString( kTestStr7 );
9548             arrOUS[1] = new OString(  );
9549             arrOUS[2] = new OString( kTestStr25 );
9550             arrOUS[3] = new OString( "\0"  );
9551             arrOUS[4] = new OString( kTestStr28 );
9552 
9553         }
9554 
tearDown()9555         void tearDown()
9556         {
9557             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
9558             delete arrOUS[3]; delete arrOUS[4];
9559         }
9560 
append_001()9561         void append_001()
9562         {
9563             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
9564             OString                expVal( aStrBuf.getStr() );
9565             sal_Int64              input = 0;
9566             sal_Int16              radix = 2;
9567 
9568             expVal += OString( "0" );
9569             aStrBuf.append( input, radix );
9570 
9571             CPPUNIT_ASSERT_MESSAGE
9572             (
9573                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
9574                 aStrBuf.getStr()== expVal &&
9575                     aStrBuf.getLength() == expVal.getLength()
9576             );
9577 
9578         }
9579 
append_002()9580         void append_002()
9581         {
9582             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
9583             OString                expVal( aStrBuf.getStr() );
9584             sal_Int64              input = 4;
9585             sal_Int16              radix = 2;
9586 
9587             expVal += OString( "100" );
9588             aStrBuf.append( input, radix );
9589 
9590             CPPUNIT_ASSERT_MESSAGE
9591             (
9592                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
9593                 aStrBuf.getStr()== expVal &&
9594                     aStrBuf.getLength() == expVal.getLength()
9595             );
9596 
9597         }
9598 
append_003()9599         void append_003()
9600         {
9601             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
9602             OString                expVal( aStrBuf.getStr() );
9603             sal_Int64              input = 8;
9604             sal_Int16              radix = 2;
9605 
9606             expVal += OString( "1000" );
9607             aStrBuf.append( input, radix );
9608 
9609             CPPUNIT_ASSERT_MESSAGE
9610             (
9611                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
9612                 aStrBuf.getStr()== expVal &&
9613                     aStrBuf.getLength() == expVal.getLength()
9614             );
9615 
9616         }
9617 
append_004()9618         void append_004()
9619         {
9620             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
9621             OString                expVal( aStrBuf.getStr() );
9622             sal_Int64              input = 15;
9623             sal_Int16              radix = 2;
9624 
9625             expVal += OString( "1111" );
9626             aStrBuf.append( input, radix );
9627 
9628             CPPUNIT_ASSERT_MESSAGE
9629             (
9630                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
9631                 aStrBuf.getStr()== expVal &&
9632                     aStrBuf.getLength() == expVal.getLength()
9633             );
9634 
9635         }
9636 
append_005()9637         void append_005()
9638         {
9639             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
9640             OString                expVal( aStrBuf.getStr() );
9641             sal_Int64              input = 0;
9642             sal_Int16              radix = 8;
9643 
9644             expVal += OString( "0" );
9645             aStrBuf.append( input, radix );
9646 
9647             CPPUNIT_ASSERT_MESSAGE
9648             (
9649                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
9650                 aStrBuf.getStr()== expVal &&
9651                     aStrBuf.getLength() == expVal.getLength()
9652             );
9653 
9654         }
9655 
append_006()9656         void append_006()
9657         {
9658             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
9659             OString                expVal( aStrBuf.getStr() );
9660             sal_Int64              input = 4;
9661             sal_Int16              radix = 8;
9662 
9663             expVal += OString( "4" );
9664             aStrBuf.append( input, radix );
9665 
9666             CPPUNIT_ASSERT_MESSAGE
9667             (
9668                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
9669                 aStrBuf.getStr()== expVal &&
9670                     aStrBuf.getLength() == expVal.getLength()
9671             );
9672 
9673         }
9674 
append_007()9675         void append_007()
9676         {
9677             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
9678             OString                expVal( aStrBuf.getStr() );
9679             sal_Int64              input = 8;
9680             sal_Int16              radix = 8;
9681 
9682             expVal += OString( "10" );
9683             aStrBuf.append( input, radix );
9684 
9685             CPPUNIT_ASSERT_MESSAGE
9686             (
9687                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
9688                 aStrBuf.getStr()== expVal &&
9689                     aStrBuf.getLength() == expVal.getLength()
9690             );
9691 
9692         }
9693 
append_008()9694         void append_008()
9695         {
9696             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
9697             OString                expVal( aStrBuf.getStr() );
9698             sal_Int64              input = 15;
9699             sal_Int16              radix = 8;
9700 
9701             expVal += OString( "17" );
9702             aStrBuf.append( input, radix );
9703 
9704             CPPUNIT_ASSERT_MESSAGE
9705             (
9706                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
9707                 aStrBuf.getStr()== expVal &&
9708                     aStrBuf.getLength() == expVal.getLength()
9709             );
9710 
9711         }
9712 
append_009()9713         void append_009()
9714         {
9715             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
9716             OString                expVal( aStrBuf.getStr() );
9717             sal_Int64             input = 0;
9718             sal_Int16              radix = 10;
9719 
9720             expVal += OString( "0" );
9721             aStrBuf.append( input, radix );
9722 
9723             CPPUNIT_ASSERT_MESSAGE
9724             (
9725                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
9726                 aStrBuf.getStr()== expVal &&
9727                     aStrBuf.getLength() == expVal.getLength()
9728             );
9729 
9730         }
9731 
append_010()9732         void append_010()
9733         {
9734             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
9735             OString                expVal( aStrBuf.getStr() );
9736             sal_Int64              input = 4;
9737             sal_Int16              radix = 10;
9738 
9739             expVal += OString( "4" );
9740             aStrBuf.append( input, radix );
9741 
9742             CPPUNIT_ASSERT_MESSAGE
9743             (
9744                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
9745                 aStrBuf.getStr()== expVal &&
9746                     aStrBuf.getLength() == expVal.getLength()
9747             );
9748 
9749         }
9750 
append_011()9751         void append_011()
9752         {
9753             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
9754             OString                expVal( aStrBuf.getStr() );
9755             sal_Int64              input = 8;
9756             sal_Int16              radix = 10;
9757 
9758             expVal += OString( "8" );
9759             aStrBuf.append( input, radix );
9760 
9761             CPPUNIT_ASSERT_MESSAGE
9762             (
9763                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
9764                 aStrBuf.getStr()== expVal &&
9765                     aStrBuf.getLength() == expVal.getLength()
9766             );
9767 
9768         }
9769 
append_012()9770         void append_012()
9771         {
9772             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
9773             OString                expVal( aStrBuf.getStr() );
9774             sal_Int64              input = 15;
9775             sal_Int16              radix = 10;
9776 
9777             expVal += OString( "15" );
9778             aStrBuf.append( input, radix );
9779 
9780             CPPUNIT_ASSERT_MESSAGE
9781             (
9782                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
9783                 aStrBuf.getStr()== expVal &&
9784                     aStrBuf.getLength() == expVal.getLength()
9785             );
9786 
9787         }
9788 
append_013()9789         void append_013()
9790         {
9791             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
9792             OString                expVal( aStrBuf.getStr() );
9793             sal_Int64              input = 0;
9794             sal_Int16              radix = 16;
9795 
9796             expVal += OString( "0" );
9797             aStrBuf.append( input, radix );
9798 
9799             CPPUNIT_ASSERT_MESSAGE
9800             (
9801                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
9802                 aStrBuf.getStr()== expVal &&
9803                     aStrBuf.getLength() == expVal.getLength()
9804             );
9805 
9806         }
9807 
append_014()9808         void append_014()
9809         {
9810             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
9811             OString                expVal( aStrBuf.getStr() );
9812             sal_Int64              input = 4;
9813             sal_Int16              radix = 16;
9814 
9815             expVal += OString( "4" );
9816             aStrBuf.append( input, radix );
9817 
9818             CPPUNIT_ASSERT_MESSAGE
9819             (
9820                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
9821                 aStrBuf.getStr()== expVal &&
9822                     aStrBuf.getLength() == expVal.getLength()
9823             );
9824 
9825         }
9826 
append_015()9827         void append_015()
9828         {
9829             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
9830             OString                expVal( aStrBuf.getStr() );
9831             sal_Int64              input = 8;
9832             sal_Int16              radix = 16;
9833 
9834             expVal += OString( "8" );
9835             aStrBuf.append( input, radix );
9836 
9837             CPPUNIT_ASSERT_MESSAGE
9838             (
9839                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
9840                 aStrBuf.getStr()== expVal &&
9841                     aStrBuf.getLength() == expVal.getLength()
9842             );
9843 
9844         }
9845 
append_016()9846         void append_016()
9847         {
9848             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
9849             OString                expVal( aStrBuf.getStr() );
9850             sal_Int64              input = 15;
9851             sal_Int16              radix = 16;
9852 
9853             expVal += OString( "f" );
9854             aStrBuf.append( input, radix );
9855 
9856             CPPUNIT_ASSERT_MESSAGE
9857             (
9858                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
9859                 aStrBuf.getStr()== expVal &&
9860                     aStrBuf.getLength() == expVal.getLength()
9861             );
9862 
9863         }
9864 
append_017()9865         void append_017()
9866         {
9867             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
9868             OString                expVal( aStrBuf.getStr() );
9869             sal_Int64              input = 0;
9870             sal_Int16              radix = 36;
9871 
9872             expVal += OString( "0" );
9873             aStrBuf.append( input, radix );
9874 
9875             CPPUNIT_ASSERT_MESSAGE
9876             (
9877                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
9878                 aStrBuf.getStr()== expVal &&
9879                     aStrBuf.getLength() == expVal.getLength()
9880             );
9881 
9882         }
9883 
append_018()9884         void append_018()
9885         {
9886             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
9887             OString                expVal( aStrBuf.getStr() );
9888             sal_Int64              input = 4;
9889             sal_Int16              radix = 36;
9890 
9891             expVal += OString( "4" );
9892             aStrBuf.append( input, radix );
9893 
9894             CPPUNIT_ASSERT_MESSAGE
9895             (
9896                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
9897                 aStrBuf.getStr()== expVal &&
9898                     aStrBuf.getLength() == expVal.getLength()
9899             );
9900 
9901         }
9902 
append_019()9903         void append_019()
9904         {
9905             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
9906             OString                expVal( aStrBuf.getStr() );
9907             sal_Int64              input = 8;
9908             sal_Int16              radix = 36;
9909 
9910             expVal += OString( "8" );
9911             aStrBuf.append( input, radix );
9912 
9913             CPPUNIT_ASSERT_MESSAGE
9914             (
9915                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
9916                 aStrBuf.getStr()== expVal &&
9917                     aStrBuf.getLength() == expVal.getLength()
9918             );
9919 
9920         }
9921 
append_020()9922         void append_020()
9923         {
9924             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
9925             OString                expVal( aStrBuf.getStr() );
9926             sal_Int64              input = 35;
9927             sal_Int16              radix = 36;
9928 
9929             expVal += OString( "z" );
9930             aStrBuf.append( input, radix );
9931 
9932             CPPUNIT_ASSERT_MESSAGE
9933             (
9934                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
9935                 aStrBuf.getStr()== expVal &&
9936                     aStrBuf.getLength() == expVal.getLength()
9937             );
9938 
9939         }
9940 
append_021()9941         void append_021()
9942         {
9943             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
9944             OString                expVal( aStrBuf.getStr() );
9945             sal_Int64              input = 0;
9946             sal_Int16              radix = 2;
9947 
9948             expVal += OString( "0" );
9949             aStrBuf.append( input, radix );
9950 
9951             CPPUNIT_ASSERT_MESSAGE
9952             (
9953                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
9954                 aStrBuf.getStr()== expVal &&
9955                     aStrBuf.getLength() == expVal.getLength()
9956             );
9957 
9958         }
9959 
append_022()9960         void append_022()
9961         {
9962             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
9963             OString                expVal( aStrBuf.getStr() );
9964             sal_Int64              input = 4;
9965             sal_Int16              radix = 2;
9966 
9967             expVal += OString( "100" );
9968             aStrBuf.append( input, radix );
9969 
9970             CPPUNIT_ASSERT_MESSAGE
9971             (
9972                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
9973                 aStrBuf.getStr()== expVal &&
9974                     aStrBuf.getLength() == expVal.getLength()
9975             );
9976 
9977         }
9978 
append_023()9979         void append_023()
9980         {
9981             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
9982             OString                expVal( aStrBuf.getStr() );
9983             sal_Int64              input = 8;
9984             sal_Int16              radix = 2;
9985 
9986             expVal += OString( "1000" );
9987             aStrBuf.append( input, radix );
9988 
9989             CPPUNIT_ASSERT_MESSAGE
9990             (
9991                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
9992                 aStrBuf.getStr()== expVal &&
9993                     aStrBuf.getLength() == expVal.getLength()
9994             );
9995 
9996         }
9997 
append_024()9998         void append_024()
9999         {
10000             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
10001             OString                expVal( aStrBuf.getStr() );
10002             sal_Int64              input = 15;
10003             sal_Int16              radix = 2;
10004 
10005             expVal += OString( "1111" );
10006             aStrBuf.append( input, radix );
10007 
10008             CPPUNIT_ASSERT_MESSAGE
10009             (
10010                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
10011                 aStrBuf.getStr()== expVal &&
10012                     aStrBuf.getLength() == expVal.getLength()
10013             );
10014 
10015         }
10016 
append_025()10017         void append_025()
10018         {
10019             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
10020             OString                expVal( aStrBuf.getStr() );
10021             sal_Int64              input = 0;
10022             sal_Int16              radix = 8;
10023 
10024             expVal += OString( "0" );
10025             aStrBuf.append( input, radix );
10026 
10027             CPPUNIT_ASSERT_MESSAGE
10028             (
10029                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
10030                 aStrBuf.getStr()== expVal &&
10031                     aStrBuf.getLength() == expVal.getLength()
10032             );
10033 
10034         }
10035 
append_026()10036         void append_026()
10037         {
10038             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
10039             OString                expVal( aStrBuf.getStr() );
10040             sal_Int64              input = 4;
10041             sal_Int16              radix = 8;
10042 
10043             expVal += OString( "4" );
10044             aStrBuf.append( input, radix );
10045 
10046             CPPUNIT_ASSERT_MESSAGE
10047             (
10048                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
10049                 aStrBuf.getStr()== expVal &&
10050                     aStrBuf.getLength() == expVal.getLength()
10051             );
10052 
10053         }
10054 
append_027()10055         void append_027()
10056         {
10057             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
10058             OString                expVal( aStrBuf.getStr() );
10059             sal_Int64              input = 8;
10060             sal_Int16              radix = 8;
10061 
10062             expVal += OString( "10" );
10063             aStrBuf.append( input, radix );
10064 
10065             CPPUNIT_ASSERT_MESSAGE
10066             (
10067                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
10068                 aStrBuf.getStr()== expVal &&
10069                     aStrBuf.getLength() == expVal.getLength()
10070             );
10071 
10072         }
10073 
append_028()10074         void append_028()
10075         {
10076             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
10077             OString                expVal( aStrBuf.getStr() );
10078             sal_Int64              input = 15;
10079             sal_Int16              radix = 8;
10080 
10081             expVal += OString( "17" );
10082             aStrBuf.append( input, radix );
10083 
10084             CPPUNIT_ASSERT_MESSAGE
10085             (
10086                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
10087                 aStrBuf.getStr()== expVal &&
10088                     aStrBuf.getLength() == expVal.getLength()
10089             );
10090 
10091         }
10092 
append_029()10093         void append_029()
10094         {
10095             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
10096             OString                expVal( aStrBuf.getStr() );
10097             sal_Int64              input = 0;
10098             sal_Int16              radix = 10;
10099 
10100             expVal += OString( "0" );
10101             aStrBuf.append( input, radix );
10102 
10103             CPPUNIT_ASSERT_MESSAGE
10104             (
10105                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
10106                 aStrBuf.getStr()== expVal &&
10107                     aStrBuf.getLength() == expVal.getLength()
10108             );
10109 
10110         }
10111 
append_030()10112         void append_030()
10113         {
10114             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
10115             OString                expVal( aStrBuf.getStr() );
10116             sal_Int64              input = 4;
10117             sal_Int16              radix = 10;
10118 
10119             expVal += OString( "4" );
10120             aStrBuf.append( input, radix );
10121 
10122             CPPUNIT_ASSERT_MESSAGE
10123             (
10124                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
10125                 aStrBuf.getStr()== expVal &&
10126                     aStrBuf.getLength() == expVal.getLength()
10127             );
10128 
10129         }
10130 
append_031()10131         void append_031()
10132         {
10133             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
10134             OString                expVal( aStrBuf.getStr() );
10135             sal_Int64              input = 8;
10136             sal_Int16              radix = 10;
10137 
10138             expVal += OString( "8" );
10139             aStrBuf.append( input, radix );
10140 
10141             CPPUNIT_ASSERT_MESSAGE
10142             (
10143                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
10144                 aStrBuf.getStr()== expVal &&
10145                     aStrBuf.getLength() == expVal.getLength()
10146             );
10147 
10148         }
10149 
append_032()10150         void append_032()
10151         {
10152             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
10153             OString                expVal( aStrBuf.getStr() );
10154             sal_Int64              input = 15;
10155             sal_Int16              radix = 10;
10156 
10157             expVal += OString( "15" );
10158             aStrBuf.append( input, radix );
10159 
10160             CPPUNIT_ASSERT_MESSAGE
10161             (
10162                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
10163                 aStrBuf.getStr()== expVal &&
10164                     aStrBuf.getLength() == expVal.getLength()
10165             );
10166 
10167         }
10168 
append_033()10169         void append_033()
10170         {
10171             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
10172             OString                expVal( aStrBuf.getStr() );
10173             sal_Int64              input = 0;
10174             sal_Int16              radix = 16;
10175 
10176             expVal += OString( "0" );
10177             aStrBuf.append( input, radix );
10178 
10179             CPPUNIT_ASSERT_MESSAGE
10180             (
10181                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
10182                 aStrBuf.getStr()== expVal &&
10183                     aStrBuf.getLength() == expVal.getLength()
10184             );
10185 
10186         }
10187 
append_034()10188         void append_034()
10189         {
10190             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
10191             OString                expVal( aStrBuf.getStr() );
10192             sal_Int64              input = 4;
10193             sal_Int16              radix = 16;
10194 
10195             expVal += OString( "4" );
10196             aStrBuf.append( input, radix );
10197 
10198             CPPUNIT_ASSERT_MESSAGE
10199             (
10200                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
10201                 aStrBuf.getStr()== expVal &&
10202                     aStrBuf.getLength() == expVal.getLength()
10203             );
10204 
10205         }
10206 
append_035()10207         void append_035()
10208         {
10209             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
10210             OString                expVal( aStrBuf.getStr() );
10211             sal_Int64              input = 8;
10212             sal_Int16              radix = 16;
10213 
10214             expVal += OString( "8" );
10215             aStrBuf.append( input, radix );
10216 
10217             CPPUNIT_ASSERT_MESSAGE
10218             (
10219                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
10220                 aStrBuf.getStr()== expVal &&
10221                     aStrBuf.getLength() == expVal.getLength()
10222             );
10223 
10224         }
10225 
append_036()10226         void append_036()
10227         {
10228             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
10229             OString                expVal( aStrBuf.getStr() );
10230             sal_Int64              input = 15;
10231             sal_Int16              radix = 16;
10232 
10233             expVal += OString( "f" );
10234             aStrBuf.append( input, radix );
10235 
10236             CPPUNIT_ASSERT_MESSAGE
10237             (
10238                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
10239                 aStrBuf.getStr()== expVal &&
10240                     aStrBuf.getLength() == expVal.getLength()
10241             );
10242 
10243         }
10244 
append_037()10245         void append_037()
10246         {
10247             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
10248             OString                expVal( aStrBuf.getStr() );
10249             sal_Int64              input = 0;
10250             sal_Int16              radix = 36;
10251 
10252             expVal += OString( "0" );
10253             aStrBuf.append( input, radix );
10254 
10255             CPPUNIT_ASSERT_MESSAGE
10256             (
10257                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
10258                 aStrBuf.getStr()== expVal &&
10259                     aStrBuf.getLength() == expVal.getLength()
10260             );
10261 
10262         }
10263 
append_038()10264         void append_038()
10265         {
10266             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
10267             OString                expVal( aStrBuf.getStr() );
10268             sal_Int64              input = 4;
10269             sal_Int16              radix = 36;
10270 
10271             expVal += OString( "4" );
10272             aStrBuf.append( input, radix );
10273 
10274             CPPUNIT_ASSERT_MESSAGE
10275             (
10276                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
10277                 aStrBuf.getStr()== expVal &&
10278                     aStrBuf.getLength() == expVal.getLength()
10279             );
10280 
10281         }
10282 
append_039()10283         void append_039()
10284         {
10285             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
10286             OString                expVal( aStrBuf.getStr() );
10287             sal_Int64              input = 8;
10288             sal_Int16              radix = 36;
10289 
10290             expVal += OString( "8" );
10291             aStrBuf.append( input, radix );
10292 
10293             CPPUNIT_ASSERT_MESSAGE
10294             (
10295                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
10296                 aStrBuf.getStr()== expVal &&
10297                     aStrBuf.getLength() == expVal.getLength()
10298             );
10299 
10300         }
10301 
append_040()10302         void append_040()
10303         {
10304             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
10305             OString                expVal( aStrBuf.getStr() );
10306             sal_Int64              input = 35;
10307             sal_Int16              radix = 36;
10308 
10309             expVal += OString( "z" );
10310             aStrBuf.append( input, radix );
10311 
10312             CPPUNIT_ASSERT_MESSAGE
10313             (
10314                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
10315                 aStrBuf.getStr()== expVal &&
10316                     aStrBuf.getLength() == expVal.getLength()
10317             );
10318 
10319         }
10320 
append_041()10321         void append_041()
10322         {
10323             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
10324             OString                expVal( aStrBuf.getStr() );
10325             sal_Int64              input = 0;
10326             sal_Int16              radix = 2;
10327 
10328             expVal += OString( "0" );
10329             aStrBuf.append( input, radix );
10330 
10331             CPPUNIT_ASSERT_MESSAGE
10332             (
10333                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
10334                 aStrBuf.getStr()== expVal &&
10335                     aStrBuf.getLength() == expVal.getLength()
10336             );
10337 
10338         }
10339 
append_042()10340         void append_042()
10341         {
10342             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
10343             OString                expVal( aStrBuf.getStr() );
10344             sal_Int64              input = 4;
10345             sal_Int16              radix = 2;
10346 
10347             expVal += OString( "100" );
10348             aStrBuf.append( input, radix );
10349 
10350             CPPUNIT_ASSERT_MESSAGE
10351             (
10352                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
10353                 aStrBuf.getStr()== expVal &&
10354                     aStrBuf.getLength() == expVal.getLength()
10355             );
10356 
10357         }
10358 
append_043()10359         void append_043()
10360         {
10361             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
10362             OString                expVal( aStrBuf.getStr() );
10363             sal_Int64              input = 8;
10364             sal_Int16              radix = 2;
10365 
10366             expVal += OString( "1000" );
10367             aStrBuf.append( input, radix );
10368 
10369             CPPUNIT_ASSERT_MESSAGE
10370             (
10371                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
10372                 aStrBuf.getStr()== expVal &&
10373                     aStrBuf.getLength() == expVal.getLength()
10374             );
10375 
10376         }
10377 
append_044()10378         void append_044()
10379         {
10380             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
10381             OString                expVal( aStrBuf.getStr() );
10382             sal_Int64              input = 15;
10383             sal_Int16              radix = 2;
10384 
10385             expVal += OString( "1111" );
10386             aStrBuf.append( input, radix );
10387 
10388             CPPUNIT_ASSERT_MESSAGE
10389             (
10390                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
10391                 aStrBuf.getStr()== expVal &&
10392                     aStrBuf.getLength() == expVal.getLength()
10393             );
10394 
10395         }
10396 
append_045()10397         void append_045()
10398         {
10399             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
10400             OString                expVal( aStrBuf.getStr() );
10401             sal_Int64              input = 0;
10402             sal_Int16              radix = 8;
10403 
10404             expVal += OString( "0" );
10405             aStrBuf.append( input, radix );
10406 
10407             CPPUNIT_ASSERT_MESSAGE
10408             (
10409                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
10410                 aStrBuf.getStr()== expVal &&
10411                     aStrBuf.getLength() == expVal.getLength()
10412             );
10413 
10414         }
10415 
append_046()10416         void append_046()
10417         {
10418             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
10419             OString                expVal( aStrBuf.getStr() );
10420             sal_Int64              input = 4;
10421             sal_Int16              radix = 8;
10422 
10423             expVal += OString( "4" );
10424             aStrBuf.append( input, radix );
10425 
10426             CPPUNIT_ASSERT_MESSAGE
10427             (
10428                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
10429                 aStrBuf.getStr()== expVal &&
10430                     aStrBuf.getLength() == expVal.getLength()
10431             );
10432 
10433         }
10434 
append_047()10435         void append_047()
10436         {
10437             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
10438             OString                expVal( aStrBuf.getStr() );
10439             sal_Int64              input = 8;
10440             sal_Int16              radix = 8;
10441 
10442             expVal += OString( "10" );
10443             aStrBuf.append( input, radix );
10444 
10445             CPPUNIT_ASSERT_MESSAGE
10446             (
10447                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
10448                 aStrBuf.getStr()== expVal &&
10449                     aStrBuf.getLength() == expVal.getLength()
10450             );
10451 
10452         }
10453 
append_048()10454         void append_048()
10455         {
10456             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
10457             OString                expVal( aStrBuf.getStr() );
10458             sal_Int64              input = 15;
10459             sal_Int16              radix = 8;
10460 
10461             expVal += OString( "17" );
10462             aStrBuf.append( input, radix );
10463 
10464             CPPUNIT_ASSERT_MESSAGE
10465             (
10466                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
10467                 aStrBuf.getStr()== expVal &&
10468                     aStrBuf.getLength() == expVal.getLength()
10469             );
10470 
10471         }
10472 
append_049()10473         void append_049()
10474         {
10475             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
10476             OString                expVal( aStrBuf.getStr() );
10477             sal_Int64              input = 0;
10478             sal_Int16              radix = 10;
10479 
10480             expVal += OString( "0" );
10481             aStrBuf.append( input, radix );
10482 
10483             CPPUNIT_ASSERT_MESSAGE
10484             (
10485                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
10486                 aStrBuf.getStr()== expVal &&
10487                     aStrBuf.getLength() == expVal.getLength()
10488             );
10489 
10490         }
10491 
append_050()10492         void append_050()
10493         {
10494             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
10495             OString                expVal( aStrBuf.getStr() );
10496             sal_Int64              input = 4;
10497             sal_Int16              radix = 10;
10498 
10499             expVal += OString( "4" );
10500             aStrBuf.append( input, radix );
10501 
10502             CPPUNIT_ASSERT_MESSAGE
10503             (
10504                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
10505                 aStrBuf.getStr()== expVal &&
10506                     aStrBuf.getLength() == expVal.getLength()
10507             );
10508 
10509         }
10510 
append_051()10511         void append_051()
10512         {
10513             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
10514             OString                expVal( aStrBuf.getStr() );
10515             sal_Int64              input = 8;
10516             sal_Int16              radix = 10;
10517 
10518             expVal += OString( "8" );
10519             aStrBuf.append( input, radix );
10520 
10521             CPPUNIT_ASSERT_MESSAGE
10522             (
10523                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
10524                 aStrBuf.getStr()== expVal &&
10525                     aStrBuf.getLength() == expVal.getLength()
10526             );
10527 
10528         }
10529 
append_052()10530         void append_052()
10531         {
10532             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
10533             OString                expVal( aStrBuf.getStr() );
10534             sal_Int64              input = 15;
10535             sal_Int16              radix = 10;
10536 
10537             expVal += OString( "15" );
10538             aStrBuf.append( input, radix );
10539 
10540             CPPUNIT_ASSERT_MESSAGE
10541             (
10542                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
10543                 aStrBuf.getStr()== expVal &&
10544                     aStrBuf.getLength() == expVal.getLength()
10545             );
10546 
10547         }
10548 
append_053()10549         void append_053()
10550         {
10551             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
10552             OString                expVal( aStrBuf.getStr() );
10553             sal_Int64              input = 0;
10554             sal_Int16              radix = 16;
10555 
10556             expVal += OString( "0" );
10557             aStrBuf.append( input, radix );
10558 
10559             CPPUNIT_ASSERT_MESSAGE
10560             (
10561                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
10562                 aStrBuf.getStr()== expVal &&
10563                     aStrBuf.getLength() == expVal.getLength()
10564             );
10565 
10566         }
10567 
append_054()10568         void append_054()
10569         {
10570             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
10571             OString                expVal( aStrBuf.getStr() );
10572             sal_Int64              input = 4;
10573             sal_Int16              radix = 16;
10574 
10575             expVal += OString( "4" );
10576             aStrBuf.append( input, radix );
10577 
10578             CPPUNIT_ASSERT_MESSAGE
10579             (
10580                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
10581                 aStrBuf.getStr()== expVal &&
10582                     aStrBuf.getLength() == expVal.getLength()
10583             );
10584 
10585         }
10586 
append_055()10587         void append_055()
10588         {
10589             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
10590             OString                expVal( aStrBuf.getStr() );
10591             sal_Int64              input = 8;
10592             sal_Int16              radix = 16;
10593 
10594             expVal += OString( "8" );
10595             aStrBuf.append( input, radix );
10596 
10597             CPPUNIT_ASSERT_MESSAGE
10598             (
10599                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
10600                 aStrBuf.getStr()== expVal &&
10601                     aStrBuf.getLength() == expVal.getLength()
10602             );
10603 
10604         }
10605 
append_056()10606         void append_056()
10607         {
10608             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
10609             OString                expVal( aStrBuf.getStr() );
10610             sal_Int64              input = 15;
10611             sal_Int16              radix = 16;
10612 
10613             expVal += OString( "f" );
10614             aStrBuf.append( input, radix );
10615 
10616             CPPUNIT_ASSERT_MESSAGE
10617             (
10618                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
10619                 aStrBuf.getStr()== expVal &&
10620                     aStrBuf.getLength() == expVal.getLength()
10621             );
10622 
10623         }
10624 
append_057()10625         void append_057()
10626         {
10627             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
10628             OString                expVal( aStrBuf.getStr() );
10629             sal_Int64              input = 0;
10630             sal_Int16              radix = 36;
10631 
10632             expVal += OString( "0" );
10633             aStrBuf.append( input, radix );
10634 
10635             CPPUNIT_ASSERT_MESSAGE
10636             (
10637                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
10638                 aStrBuf.getStr()== expVal &&
10639                     aStrBuf.getLength() == expVal.getLength()
10640             );
10641 
10642         }
10643 
append_058()10644         void append_058()
10645         {
10646             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
10647             OString                expVal( aStrBuf.getStr() );
10648             sal_Int64              input = 4;
10649             sal_Int16              radix = 36;
10650 
10651             expVal += OString( "4" );
10652             aStrBuf.append( input, radix );
10653 
10654             CPPUNIT_ASSERT_MESSAGE
10655             (
10656                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
10657                 aStrBuf.getStr()== expVal &&
10658                     aStrBuf.getLength() == expVal.getLength()
10659             );
10660 
10661         }
10662 
append_059()10663         void append_059()
10664         {
10665             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
10666             OString                expVal( aStrBuf.getStr() );
10667             sal_Int64              input = 8;
10668             sal_Int16              radix = 36;
10669 
10670             expVal += OString( "8" );
10671             aStrBuf.append( input, radix );
10672 
10673             CPPUNIT_ASSERT_MESSAGE
10674             (
10675                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
10676                 aStrBuf.getStr()== expVal &&
10677                     aStrBuf.getLength() == expVal.getLength()
10678             );
10679 
10680         }
10681 
append_060()10682         void append_060()
10683         {
10684             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
10685             OString                expVal( aStrBuf.getStr() );
10686             sal_Int64              input = 35;
10687             sal_Int16              radix = 36;
10688 
10689             expVal += OString( "z" );
10690             aStrBuf.append( input, radix );
10691 
10692             CPPUNIT_ASSERT_MESSAGE
10693             (
10694                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
10695                 aStrBuf.getStr()== expVal &&
10696                     aStrBuf.getLength() == expVal.getLength()
10697             );
10698 
10699         }
10700 
append_061()10701         void append_061()
10702         {
10703             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
10704             OString                expVal( aStrBuf.getStr() );
10705             sal_Int64              input = 0;
10706             sal_Int16              radix = 2;
10707 
10708             expVal += OString( "0" );
10709             aStrBuf.append( input, radix );
10710 
10711             CPPUNIT_ASSERT_MESSAGE
10712             (
10713                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
10714                 aStrBuf.getStr()== expVal &&
10715                     aStrBuf.getLength() == expVal.getLength()
10716             );
10717 
10718         }
10719 
append_062()10720         void append_062()
10721         {
10722             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
10723             OString                expVal( aStrBuf.getStr() );
10724             sal_Int64              input = 4;
10725             sal_Int16              radix = 2;
10726 
10727             expVal += OString( "100" );
10728             aStrBuf.append( input, radix );
10729 
10730             CPPUNIT_ASSERT_MESSAGE
10731             (
10732                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
10733                 aStrBuf.getStr()== expVal &&
10734                     aStrBuf.getLength() == expVal.getLength()
10735             );
10736 
10737         }
10738 
append_063()10739         void append_063()
10740         {
10741             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
10742             OString                expVal( aStrBuf.getStr() );
10743             sal_Int64              input = 8;
10744             sal_Int16              radix = 2;
10745 
10746             expVal += OString( "1000" );
10747             aStrBuf.append( input, radix );
10748 
10749             CPPUNIT_ASSERT_MESSAGE
10750             (
10751                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
10752                 aStrBuf.getStr()== expVal &&
10753                     aStrBuf.getLength() == expVal.getLength()
10754             );
10755 
10756         }
10757 
append_064()10758         void append_064()
10759         {
10760             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
10761             OString                expVal( aStrBuf.getStr() );
10762             sal_Int64              input = 15;
10763             sal_Int16              radix = 2;
10764 
10765             expVal += OString( "1111" );
10766             aStrBuf.append( input, radix );
10767 
10768             CPPUNIT_ASSERT_MESSAGE
10769             (
10770                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
10771                 aStrBuf.getStr()== expVal &&
10772                     aStrBuf.getLength() == expVal.getLength()
10773             );
10774 
10775         }
10776 
append_065()10777         void append_065()
10778         {
10779             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
10780             OString                expVal( aStrBuf.getStr() );
10781             sal_Int64              input = 0;
10782             sal_Int16              radix = 8;
10783 
10784             expVal += OString( "0" );
10785             aStrBuf.append( input, radix );
10786 
10787             CPPUNIT_ASSERT_MESSAGE
10788             (
10789                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
10790                 aStrBuf.getStr()== expVal &&
10791                     aStrBuf.getLength() == expVal.getLength()
10792             );
10793 
10794         }
10795 
append_066()10796         void append_066()
10797         {
10798             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
10799             OString                expVal( aStrBuf.getStr() );
10800             sal_Int64              input = 4;
10801             sal_Int16              radix = 8;
10802 
10803             expVal += OString( "4" );
10804             aStrBuf.append( input, radix );
10805 
10806             CPPUNIT_ASSERT_MESSAGE
10807             (
10808                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
10809                 aStrBuf.getStr()== expVal &&
10810                     aStrBuf.getLength() == expVal.getLength()
10811             );
10812 
10813         }
10814 
append_067()10815         void append_067()
10816         {
10817             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
10818             OString                expVal( aStrBuf.getStr() );
10819             sal_Int64              input = 8;
10820             sal_Int16              radix = 8;
10821 
10822             expVal += OString( "10" );
10823             aStrBuf.append( input, radix );
10824 
10825             CPPUNIT_ASSERT_MESSAGE
10826             (
10827                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
10828                 aStrBuf.getStr()== expVal &&
10829                     aStrBuf.getLength() == expVal.getLength()
10830             );
10831 
10832         }
10833 
append_068()10834         void append_068()
10835         {
10836             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
10837             OString                expVal( aStrBuf.getStr() );
10838             sal_Int64              input = 15;
10839             sal_Int16              radix = 8;
10840 
10841             expVal += OString( "17" );
10842             aStrBuf.append( input, radix );
10843 
10844             CPPUNIT_ASSERT_MESSAGE
10845             (
10846                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
10847                 aStrBuf.getStr()== expVal &&
10848                     aStrBuf.getLength() == expVal.getLength()
10849             );
10850 
10851         }
10852 
append_069()10853         void append_069()
10854         {
10855             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
10856             OString                expVal( aStrBuf.getStr() );
10857             sal_Int64              input = 0;
10858             sal_Int16              radix = 10;
10859 
10860             expVal += OString( "0" );
10861             aStrBuf.append( input, radix );
10862 
10863             CPPUNIT_ASSERT_MESSAGE
10864             (
10865                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
10866                 aStrBuf.getStr()== expVal &&
10867                     aStrBuf.getLength() == expVal.getLength()
10868             );
10869 
10870         }
10871 
append_070()10872         void append_070()
10873         {
10874             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
10875             OString                expVal( aStrBuf.getStr() );
10876             sal_Int64              input = 4;
10877             sal_Int16              radix = 10;
10878 
10879             expVal += OString( "4" );
10880             aStrBuf.append( input, radix );
10881 
10882             CPPUNIT_ASSERT_MESSAGE
10883             (
10884                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
10885                 aStrBuf.getStr()== expVal &&
10886                     aStrBuf.getLength() == expVal.getLength()
10887             );
10888 
10889         }
10890 
append_071()10891         void append_071()
10892         {
10893             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
10894             OString                expVal( aStrBuf.getStr() );
10895             sal_Int64              input = 8;
10896             sal_Int16              radix = 10;
10897 
10898             expVal += OString( "8" );
10899             aStrBuf.append( input, radix );
10900 
10901             CPPUNIT_ASSERT_MESSAGE
10902             (
10903                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
10904                 aStrBuf.getStr()== expVal &&
10905                     aStrBuf.getLength() == expVal.getLength()
10906             );
10907 
10908         }
10909 
append_072()10910         void append_072()
10911         {
10912             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
10913             OString                expVal( aStrBuf.getStr() );
10914             sal_Int64              input = 15;
10915             sal_Int16              radix = 10;
10916 
10917             expVal += OString( "15" );
10918             aStrBuf.append( input, radix );
10919 
10920             CPPUNIT_ASSERT_MESSAGE
10921             (
10922                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
10923                 aStrBuf.getStr()== expVal &&
10924                     aStrBuf.getLength() == expVal.getLength()
10925             );
10926 
10927         }
10928 
append_073()10929         void append_073()
10930         {
10931             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
10932             OString                expVal( aStrBuf.getStr() );
10933             sal_Int64              input = 0;
10934             sal_Int16              radix = 16;
10935 
10936             expVal += OString( "0" );
10937             aStrBuf.append( input, radix );
10938 
10939             CPPUNIT_ASSERT_MESSAGE
10940             (
10941                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
10942                 aStrBuf.getStr()== expVal &&
10943                     aStrBuf.getLength() == expVal.getLength()
10944             );
10945 
10946         }
10947 
append_074()10948         void append_074()
10949         {
10950             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
10951             OString                expVal( aStrBuf.getStr() );
10952             sal_Int64              input = 4;
10953             sal_Int16              radix = 16;
10954 
10955             expVal += OString( "4" );
10956             aStrBuf.append( input, radix );
10957 
10958             CPPUNIT_ASSERT_MESSAGE
10959             (
10960                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
10961                 aStrBuf.getStr()== expVal &&
10962                     aStrBuf.getLength() == expVal.getLength()
10963             );
10964 
10965         }
10966 
append_075()10967         void append_075()
10968         {
10969             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
10970             OString                expVal( aStrBuf.getStr() );
10971             sal_Int64              input = 8;
10972             sal_Int16              radix = 16;
10973 
10974             expVal += OString( "8" );
10975             aStrBuf.append( input, radix );
10976 
10977             CPPUNIT_ASSERT_MESSAGE
10978             (
10979                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
10980                 aStrBuf.getStr()== expVal &&
10981                     aStrBuf.getLength() == expVal.getLength()
10982             );
10983 
10984         }
10985 
append_076()10986         void append_076()
10987         {
10988             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
10989             OString                expVal( aStrBuf.getStr() );
10990             sal_Int64              input = 15;
10991             sal_Int16              radix = 16;
10992 
10993             expVal += OString( "f" );
10994             aStrBuf.append( input, radix );
10995 
10996             CPPUNIT_ASSERT_MESSAGE
10997             (
10998                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
10999                 aStrBuf.getStr()== expVal &&
11000                     aStrBuf.getLength() == expVal.getLength()
11001             );
11002 
11003         }
11004 
append_077()11005         void append_077()
11006         {
11007             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
11008             OString                expVal( aStrBuf.getStr() );
11009             sal_Int64              input = 0;
11010             sal_Int16              radix = 36;
11011 
11012             expVal += OString( "0" );
11013             aStrBuf.append( input, radix );
11014 
11015             CPPUNIT_ASSERT_MESSAGE
11016             (
11017                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
11018                 aStrBuf.getStr()== expVal &&
11019                     aStrBuf.getLength() == expVal.getLength()
11020             );
11021 
11022         }
11023 
append_078()11024         void append_078()
11025         {
11026             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
11027             OString                expVal( aStrBuf.getStr() );
11028             sal_Int64              input = 4;
11029             sal_Int16              radix = 36;
11030 
11031             expVal += OString( "4" );
11032             aStrBuf.append( input, radix );
11033 
11034             CPPUNIT_ASSERT_MESSAGE
11035             (
11036                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
11037                 aStrBuf.getStr()== expVal &&
11038                     aStrBuf.getLength() == expVal.getLength()
11039             );
11040 
11041         }
11042 
append_079()11043         void append_079()
11044         {
11045             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
11046             OString                expVal( aStrBuf.getStr() );
11047             sal_Int64              input = 8;
11048             sal_Int16              radix = 36;
11049 
11050             expVal += OString( "8" );
11051             aStrBuf.append( input, radix );
11052 
11053             CPPUNIT_ASSERT_MESSAGE
11054             (
11055                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
11056                 aStrBuf.getStr()== expVal &&
11057                     aStrBuf.getLength() == expVal.getLength()
11058             );
11059 
11060         }
11061 
append_080()11062         void append_080()
11063         {
11064             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
11065             OString                expVal( aStrBuf.getStr() );
11066             sal_Int64              input = 35;
11067             sal_Int16              radix = 36;
11068 
11069             expVal += OString( "z" );
11070             aStrBuf.append( input, radix );
11071 
11072             CPPUNIT_ASSERT_MESSAGE
11073             (
11074                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
11075                 aStrBuf.getStr()== expVal &&
11076                     aStrBuf.getLength() == expVal.getLength()
11077             );
11078 
11079         }
11080 
append_081()11081         void append_081()
11082         {
11083             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
11084             OString                expVal( aStrBuf.getStr() );
11085             sal_Int64              input = 0;
11086             sal_Int16              radix = 2;
11087 
11088             expVal += OString( "0" );
11089             aStrBuf.append( input, radix );
11090 
11091             CPPUNIT_ASSERT_MESSAGE
11092             (
11093                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
11094                 aStrBuf.getStr()== expVal &&
11095                     aStrBuf.getLength() == expVal.getLength()
11096             );
11097 
11098         }
11099 
append_082()11100         void append_082()
11101         {
11102             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
11103             OString                expVal( aStrBuf.getStr() );
11104             sal_Int64              input = 4;
11105             sal_Int16              radix = 2;
11106 
11107             expVal += OString( "100" );
11108             aStrBuf.append( input, radix );
11109 
11110             CPPUNIT_ASSERT_MESSAGE
11111             (
11112                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
11113                 aStrBuf.getStr()== expVal &&
11114                     aStrBuf.getLength() == expVal.getLength()
11115             );
11116 
11117         }
11118 
append_083()11119         void append_083()
11120         {
11121             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
11122             OString                expVal( aStrBuf.getStr() );
11123             sal_Int64              input = 8;
11124             sal_Int16              radix = 2;
11125 
11126             expVal += OString( "1000" );
11127             aStrBuf.append( input, radix );
11128 
11129             CPPUNIT_ASSERT_MESSAGE
11130             (
11131                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
11132                 aStrBuf.getStr()== expVal &&
11133                     aStrBuf.getLength() == expVal.getLength()
11134             );
11135 
11136         }
11137 
append_084()11138         void append_084()
11139         {
11140             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
11141             OString                expVal( aStrBuf.getStr() );
11142             sal_Int64              input = 15;
11143             sal_Int16              radix = 2;
11144 
11145             expVal += OString( "1111" );
11146             aStrBuf.append( input, radix );
11147 
11148             CPPUNIT_ASSERT_MESSAGE
11149             (
11150                 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
11151                 aStrBuf.getStr()== expVal &&
11152                     aStrBuf.getLength() == expVal.getLength()
11153             );
11154 
11155         }
11156 
append_085()11157         void append_085()
11158         {
11159             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
11160             OString                expVal( aStrBuf.getStr() );
11161             sal_Int64              input = 0;
11162             sal_Int16              radix = 8;
11163 
11164             expVal += OString( "0" );
11165             aStrBuf.append( input, radix );
11166 
11167             CPPUNIT_ASSERT_MESSAGE
11168             (
11169                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
11170                 aStrBuf.getStr()== expVal &&
11171                     aStrBuf.getLength() == expVal.getLength()
11172             );
11173 
11174         }
11175 
append_086()11176         void append_086()
11177         {
11178             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
11179             OString                expVal( aStrBuf.getStr() );
11180             sal_Int64              input = 4;
11181             sal_Int16              radix = 8;
11182 
11183             expVal += OString( "4" );
11184             aStrBuf.append( input, radix );
11185 
11186             CPPUNIT_ASSERT_MESSAGE
11187             (
11188                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
11189                 aStrBuf.getStr()== expVal &&
11190                     aStrBuf.getLength() == expVal.getLength()
11191             );
11192 
11193         }
11194 
append_087()11195         void append_087()
11196         {
11197             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
11198             OString                expVal( aStrBuf.getStr() );
11199             sal_Int64              input = 8;
11200             sal_Int16              radix = 8;
11201 
11202             expVal += OString( "10" );
11203             aStrBuf.append( input, radix );
11204 
11205             CPPUNIT_ASSERT_MESSAGE
11206             (
11207                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
11208                 aStrBuf.getStr()== expVal &&
11209                     aStrBuf.getLength() == expVal.getLength()
11210             );
11211 
11212         }
11213 
append_088()11214         void append_088()
11215         {
11216             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
11217             OString                expVal( aStrBuf.getStr() );
11218             sal_Int64              input = 15;
11219             sal_Int16              radix = 8;
11220 
11221             expVal += OString( "17" );
11222             aStrBuf.append( input, radix );
11223 
11224             CPPUNIT_ASSERT_MESSAGE
11225             (
11226                 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
11227                 aStrBuf.getStr()== expVal &&
11228                     aStrBuf.getLength() == expVal.getLength()
11229             );
11230 
11231         }
11232 
append_089()11233         void append_089()
11234         {
11235             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
11236             OString                expVal( aStrBuf.getStr() );
11237             sal_Int64              input = 0;
11238             sal_Int16              radix = 10;
11239 
11240             expVal += OString( "0" );
11241             aStrBuf.append( input, radix );
11242 
11243             CPPUNIT_ASSERT_MESSAGE
11244             (
11245                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
11246                 aStrBuf.getStr()== expVal &&
11247                     aStrBuf.getLength() == expVal.getLength()
11248             );
11249 
11250         }
11251 
append_090()11252         void append_090()
11253         {
11254             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
11255             OString                expVal( aStrBuf.getStr() );
11256             sal_Int64              input = 4;
11257             sal_Int16              radix = 10;
11258 
11259             expVal += OString( "4" );
11260             aStrBuf.append( input, radix );
11261 
11262             CPPUNIT_ASSERT_MESSAGE
11263             (
11264                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
11265                 aStrBuf.getStr()== expVal &&
11266                     aStrBuf.getLength() == expVal.getLength()
11267             );
11268 
11269         }
11270 
append_091()11271         void append_091()
11272         {
11273             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
11274             OString                expVal( aStrBuf.getStr() );
11275             sal_Int64              input = 8;
11276             sal_Int16              radix = 10;
11277 
11278             expVal += OString( "8" );
11279             aStrBuf.append( input, radix );
11280 
11281             CPPUNIT_ASSERT_MESSAGE
11282             (
11283                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
11284                 aStrBuf.getStr()== expVal &&
11285                     aStrBuf.getLength() == expVal.getLength()
11286             );
11287 
11288         }
11289 
append_092()11290         void append_092()
11291         {
11292             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
11293             OString                expVal( aStrBuf.getStr() );
11294             sal_Int64              input = 15;
11295             sal_Int16              radix = 10;
11296 
11297             expVal += OString( "15" );
11298             aStrBuf.append( input, radix );
11299 
11300             CPPUNIT_ASSERT_MESSAGE
11301             (
11302                 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
11303                 aStrBuf.getStr()== expVal &&
11304                     aStrBuf.getLength() == expVal.getLength()
11305             );
11306 
11307         }
11308 
append_093()11309         void append_093()
11310         {
11311             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
11312             OString                expVal( aStrBuf.getStr() );
11313             sal_Int64              input = 0;
11314             sal_Int16              radix = 16;
11315 
11316             expVal += OString( "0" );
11317             aStrBuf.append( input, radix );
11318 
11319             CPPUNIT_ASSERT_MESSAGE
11320             (
11321                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
11322                 aStrBuf.getStr()== expVal &&
11323                     aStrBuf.getLength() == expVal.getLength()
11324             );
11325 
11326         }
11327 
append_094()11328         void append_094()
11329         {
11330             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
11331             OString                expVal( aStrBuf.getStr() );
11332             sal_Int64              input = 4;
11333             sal_Int16              radix = 16;
11334 
11335             expVal += OString( "4" );
11336             aStrBuf.append( input, radix );
11337 
11338             CPPUNIT_ASSERT_MESSAGE
11339             (
11340                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
11341                 aStrBuf.getStr()== expVal &&
11342                     aStrBuf.getLength() == expVal.getLength()
11343             );
11344 
11345         }
11346 
append_095()11347         void append_095()
11348         {
11349             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
11350             OString                expVal( aStrBuf.getStr() );
11351             sal_Int64              input = 8;
11352             sal_Int16              radix = 16;
11353 
11354             expVal += OString( "8" );
11355             aStrBuf.append( input, radix );
11356 
11357             CPPUNIT_ASSERT_MESSAGE
11358             (
11359                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
11360                 aStrBuf.getStr()== expVal &&
11361                     aStrBuf.getLength() == expVal.getLength()
11362             );
11363 
11364         }
11365 
append_096()11366         void append_096()
11367         {
11368             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
11369             OString                expVal( aStrBuf.getStr() );
11370             sal_Int64              input = 15;
11371             sal_Int16              radix = 16;
11372 
11373             expVal += OString( "f" );
11374             aStrBuf.append( input, radix );
11375 
11376             CPPUNIT_ASSERT_MESSAGE
11377             (
11378                 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
11379                 aStrBuf.getStr()== expVal &&
11380                     aStrBuf.getLength() == expVal.getLength()
11381             );
11382 
11383         }
11384 
append_097()11385         void append_097()
11386         {
11387             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
11388             OString                expVal( aStrBuf.getStr() );
11389             sal_Int64              input = 0;
11390             sal_Int16              radix = 36;
11391 
11392             expVal += OString( "0" );
11393             aStrBuf.append( input, radix );
11394 
11395             CPPUNIT_ASSERT_MESSAGE
11396             (
11397                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
11398                 aStrBuf.getStr()== expVal &&
11399                     aStrBuf.getLength() == expVal.getLength()
11400             );
11401 
11402         }
11403 
append_098()11404         void append_098()
11405         {
11406             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
11407             OString                expVal( aStrBuf.getStr() );
11408             sal_Int64              input = 4;
11409             sal_Int16              radix = 36;
11410 
11411             expVal += OString( "4" );
11412             aStrBuf.append( input, radix );
11413 
11414             CPPUNIT_ASSERT_MESSAGE
11415             (
11416                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
11417                 aStrBuf.getStr()== expVal &&
11418                     aStrBuf.getLength() == expVal.getLength()
11419             );
11420 
11421         }
11422 
append_099()11423         void append_099()
11424         {
11425             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
11426             OString                expVal( aStrBuf.getStr() );
11427             sal_Int64              input = 8;
11428             sal_Int16              radix = 36;
11429 
11430             expVal += OString( "8" );
11431             aStrBuf.append( input, radix );
11432 
11433             CPPUNIT_ASSERT_MESSAGE
11434             (
11435                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
11436                 aStrBuf.getStr()== expVal &&
11437                     aStrBuf.getLength() == expVal.getLength()
11438             );
11439 
11440         }
11441 
append_100()11442         void append_100()
11443         {
11444             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
11445             OString                expVal( aStrBuf.getStr() );
11446             sal_Int64              input = 35;
11447             sal_Int16              radix = 36;
11448 
11449             expVal += OString( "z" );
11450             aStrBuf.append( input, radix );
11451 
11452             CPPUNIT_ASSERT_MESSAGE
11453             (
11454                 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
11455                 aStrBuf.getStr()== expVal &&
11456                     aStrBuf.getLength() == expVal.getLength()
11457             );
11458 
11459         }
11460 
11461         CPPUNIT_TEST_SUITE( append_007_Int64 );
11462         CPPUNIT_TEST( append_001 ); CPPUNIT_TEST( append_002 );
11463         CPPUNIT_TEST( append_003 ); CPPUNIT_TEST( append_004 );
11464         CPPUNIT_TEST( append_005 ); CPPUNIT_TEST( append_006 );
11465         CPPUNIT_TEST( append_007 ); CPPUNIT_TEST( append_008 );
11466         CPPUNIT_TEST( append_009 ); CPPUNIT_TEST( append_010 );
11467         CPPUNIT_TEST( append_011 ); CPPUNIT_TEST( append_012 );
11468         CPPUNIT_TEST( append_013 ); CPPUNIT_TEST( append_014 );
11469         CPPUNIT_TEST( append_015 ); CPPUNIT_TEST( append_016 );
11470         CPPUNIT_TEST( append_017 ); CPPUNIT_TEST( append_018 );
11471         CPPUNIT_TEST( append_019 ); CPPUNIT_TEST( append_020 );
11472         CPPUNIT_TEST( append_021 ); CPPUNIT_TEST( append_022 );
11473         CPPUNIT_TEST( append_023 ); CPPUNIT_TEST( append_024 );
11474         CPPUNIT_TEST( append_025 ); CPPUNIT_TEST( append_026 );
11475         CPPUNIT_TEST( append_027 ); CPPUNIT_TEST( append_028 );
11476         CPPUNIT_TEST( append_029 ); CPPUNIT_TEST( append_030 );
11477         CPPUNIT_TEST( append_031 ); CPPUNIT_TEST( append_032 );
11478         CPPUNIT_TEST( append_033 ); CPPUNIT_TEST( append_034 );
11479         CPPUNIT_TEST( append_035 ); CPPUNIT_TEST( append_036 );
11480         CPPUNIT_TEST( append_037 ); CPPUNIT_TEST( append_038 );
11481         CPPUNIT_TEST( append_039 ); CPPUNIT_TEST( append_040 );
11482         CPPUNIT_TEST( append_041 ); CPPUNIT_TEST( append_042 );
11483         CPPUNIT_TEST( append_043 ); CPPUNIT_TEST( append_044 );
11484         CPPUNIT_TEST( append_045 ); CPPUNIT_TEST( append_046 );
11485         CPPUNIT_TEST( append_047 ); CPPUNIT_TEST( append_048 );
11486         CPPUNIT_TEST( append_049 ); CPPUNIT_TEST( append_050 );
11487         CPPUNIT_TEST( append_051 ); CPPUNIT_TEST( append_052 );
11488         CPPUNIT_TEST( append_053 ); CPPUNIT_TEST( append_054 );
11489         CPPUNIT_TEST( append_055 ); CPPUNIT_TEST( append_056 );
11490         CPPUNIT_TEST( append_057 ); CPPUNIT_TEST( append_058 );
11491         CPPUNIT_TEST( append_059 ); CPPUNIT_TEST( append_060 );
11492         CPPUNIT_TEST( append_061 ); CPPUNIT_TEST( append_062 );
11493         CPPUNIT_TEST( append_063 ); CPPUNIT_TEST( append_064 );
11494         CPPUNIT_TEST( append_065 ); CPPUNIT_TEST( append_066 );
11495         CPPUNIT_TEST( append_067 ); CPPUNIT_TEST( append_068 );
11496         CPPUNIT_TEST( append_069 ); CPPUNIT_TEST( append_070 );
11497         CPPUNIT_TEST( append_071 ); CPPUNIT_TEST( append_072 );
11498         CPPUNIT_TEST( append_073 ); CPPUNIT_TEST( append_074 );
11499         CPPUNIT_TEST( append_075 ); CPPUNIT_TEST( append_076 );
11500         CPPUNIT_TEST( append_077 ); CPPUNIT_TEST( append_078 );
11501         CPPUNIT_TEST( append_079 ); CPPUNIT_TEST( append_080 );
11502         CPPUNIT_TEST( append_081 ); CPPUNIT_TEST( append_082 );
11503         CPPUNIT_TEST( append_083 ); CPPUNIT_TEST( append_084 );
11504         CPPUNIT_TEST( append_085 ); CPPUNIT_TEST( append_086 );
11505         CPPUNIT_TEST( append_087 ); CPPUNIT_TEST( append_088 );
11506         CPPUNIT_TEST( append_089 ); CPPUNIT_TEST( append_090 );
11507         CPPUNIT_TEST( append_091 ); CPPUNIT_TEST( append_092 );
11508         CPPUNIT_TEST( append_093 ); CPPUNIT_TEST( append_094 );
11509         CPPUNIT_TEST( append_095 ); CPPUNIT_TEST( append_096 );
11510         CPPUNIT_TEST( append_097 ); CPPUNIT_TEST( append_098 );
11511         CPPUNIT_TEST( append_099 ); CPPUNIT_TEST( append_100 );
11512         CPPUNIT_TEST_SUITE_END();
11513     };
11514 //------------------------------------------------------------------------
11515 // testing the method append( sal_Int64 i, sal_Int16 radix=2 )
11516 // where i = large constants
11517 // testing the method append( sal_Int64 i, sal_Int16 radix=8 )
11518 // where i = large constants
11519 // testing the method append( sal_Int64 i, sal_Int16 radix=10 )
11520 // where i = large constants
11521 // testing the method append( sal_Int64 i, sal_Int16 radix=16 )
11522 // where i = large constants
11523 // testing the method append( sal_Int64 i, sal_Int16 radix=36 )
11524 // where i = large constants
11525 //------------------------------------------------------------------------
11526     class  append_007_Int64_Bounderies : public CppUnit::TestFixture
11527     {
11528         OString* arrOUS[5];
11529 
11530     public:
setUp()11531         void setUp()
11532         {
11533             arrOUS[0] = new OString( kTestStr7 );
11534             arrOUS[1] = new OString(  );
11535             arrOUS[2] = new OString( kTestStr25 );
11536             arrOUS[3] = new OString( "\0"  );
11537             arrOUS[4] = new OString( kTestStr28 );
11538 
11539         }
11540 
tearDown()11541         void tearDown()
11542         {
11543             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
11544             delete arrOUS[3]; delete arrOUS[4];
11545         }
11546 
append_001()11547         void append_001()
11548         {
11549             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
11550             OString                expVal( aStrBuf.getStr() );
11551             sal_Int64              input = kSInt8Max;
11552             sal_Int16              radix = 2;
11553 
11554             expVal += OString( "1111111" );
11555             aStrBuf.append( input, radix );
11556 
11557             CPPUNIT_ASSERT_MESSAGE
11558             (
11559                 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
11560                 aStrBuf.getStr()== expVal &&
11561                     aStrBuf.getLength() == expVal.getLength()
11562             );
11563 
11564         }
11565 
append_002()11566         void append_002()
11567         {
11568             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
11569             OString                expVal( aStrBuf.getStr() );
11570             sal_Int64              input = kSInt64Max;
11571             sal_Int16              radix = 2;
11572 
11573             expVal += OString( "111111111111111111111111111111111111111111111111111111111111111" );
11574             aStrBuf.append( input, radix );
11575 
11576             CPPUNIT_ASSERT_MESSAGE
11577             (
11578                 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
11579                 aStrBuf.getStr()== expVal &&
11580                     aStrBuf.getLength() == expVal.getLength()
11581             );
11582 
11583         }
11584 
append_003()11585         void append_003()
11586         {
11587             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
11588             OString                expVal( aStrBuf.getStr() );
11589             sal_Int64              input = kSInt8Max;
11590             sal_Int16              radix = 8;
11591 
11592             expVal += OString( "177" );
11593             aStrBuf.append( input, radix );
11594 
11595             CPPUNIT_ASSERT_MESSAGE
11596             (
11597                 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
11598                 aStrBuf.getStr()== expVal &&
11599                     aStrBuf.getLength() == expVal.getLength()
11600             );
11601 
11602         }
11603 
append_004()11604         void append_004()
11605         {
11606             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
11607             OString                expVal( aStrBuf.getStr() );
11608             sal_Int64             input = kSInt64Max;
11609             sal_Int16              radix = 8;
11610 
11611             expVal += OString( "777777777777777777777" );
11612             aStrBuf.append( input, radix );
11613 
11614             CPPUNIT_ASSERT_MESSAGE
11615             (
11616                 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
11617                 aStrBuf.getStr()== expVal &&
11618                     aStrBuf.getLength() == expVal.getLength()
11619             );
11620 
11621         }
11622 
append_005()11623         void append_005()
11624         {
11625             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
11626             OString                expVal( aStrBuf.getStr() );
11627             sal_Int64              input = kSInt8Max;
11628             sal_Int16              radix = 10;
11629 
11630             expVal += OString( "127" );
11631             aStrBuf.append( input, radix );
11632 
11633             CPPUNIT_ASSERT_MESSAGE
11634             (
11635                 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
11636                 aStrBuf.getStr()== expVal &&
11637                     aStrBuf.getLength() == expVal.getLength()
11638             );
11639 
11640         }
11641 
append_006()11642         void append_006()
11643         {
11644             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
11645             OString                expVal( aStrBuf.getStr() );
11646             sal_Int64              input = kSInt64Max;
11647             sal_Int16              radix = 10;
11648 
11649             expVal += OString( "9223372036854775807" );
11650             aStrBuf.append( input, radix );
11651 
11652             CPPUNIT_ASSERT_MESSAGE
11653             (
11654                 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
11655                 aStrBuf.getStr()== expVal &&
11656                     aStrBuf.getLength() == expVal.getLength()
11657             );
11658 
11659         }
11660 
append_007()11661         void append_007()
11662         {
11663             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
11664             OString                expVal( aStrBuf.getStr() );
11665             sal_Int64              input = kSInt8Max;
11666             sal_Int16              radix = 16;
11667 
11668             expVal += OString( "7f" );
11669             aStrBuf.append( input, radix );
11670 
11671             CPPUNIT_ASSERT_MESSAGE
11672             (
11673                 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
11674                 aStrBuf.getStr()== expVal &&
11675                     aStrBuf.getLength() == expVal.getLength()
11676             );
11677 
11678         }
11679 
append_008()11680         void append_008()
11681         {
11682             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
11683             OString                expVal( aStrBuf.getStr() );
11684             sal_Int64              input = kSInt64Max;
11685             sal_Int16              radix = 16;
11686 
11687             expVal += OString( "7fffffffffffffff" );
11688             aStrBuf.append( input, radix );
11689 
11690             CPPUNIT_ASSERT_MESSAGE
11691             (
11692                 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
11693                 aStrBuf.getStr()== expVal &&
11694                     aStrBuf.getLength() == expVal.getLength()
11695             );
11696 
11697         }
11698 
append_009()11699         void append_009()
11700         {
11701             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
11702             OString                expVal( aStrBuf.getStr() );
11703             sal_Int64              input = kSInt8Max;
11704             sal_Int16              radix = 36;
11705 
11706             expVal += OString( "3j" );
11707             aStrBuf.append( input, radix );
11708 
11709             CPPUNIT_ASSERT_MESSAGE
11710             (
11711                 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
11712                 aStrBuf.getStr()== expVal &&
11713                     aStrBuf.getLength() == expVal.getLength()
11714             );
11715 
11716         }
11717 
append_010()11718         void append_010()
11719         {
11720             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
11721             OString                expVal( aStrBuf.getStr() );
11722             sal_Int64              input = kSInt64Max;
11723             sal_Int16              radix = 36;
11724 
11725             expVal += OString( "1y2p0ij32e8e7" );
11726             aStrBuf.append( input, radix );
11727 
11728             CPPUNIT_ASSERT_MESSAGE
11729             (
11730                 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
11731                 aStrBuf.getStr()== expVal &&
11732                     aStrBuf.getLength() == expVal.getLength()
11733             );
11734 
11735         }
11736 
append_011()11737         void append_011()
11738         {
11739             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
11740             OString                expVal( aStrBuf.getStr() );
11741             sal_Int64              input = kSInt8Max;
11742             sal_Int16              radix = 2;
11743 
11744             expVal += OString( "1111111" );
11745             aStrBuf.append( input, radix );
11746 
11747             CPPUNIT_ASSERT_MESSAGE
11748             (
11749                 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
11750                 aStrBuf.getStr()== expVal &&
11751                     aStrBuf.getLength() == expVal.getLength()
11752             );
11753 
11754         }
11755 
append_012()11756         void append_012()
11757         {
11758             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
11759             OString                expVal( aStrBuf.getStr() );
11760             sal_Int64              input = kSInt64Max;
11761             sal_Int16              radix = 2;
11762 
11763             expVal += OString( "111111111111111111111111111111111111111111111111111111111111111" );
11764             aStrBuf.append( input, radix );
11765 
11766             CPPUNIT_ASSERT_MESSAGE
11767             (
11768                 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
11769                 aStrBuf.getStr()== expVal &&
11770                     aStrBuf.getLength() == expVal.getLength()
11771             );
11772 
11773         }
11774 
append_013()11775         void append_013()
11776         {
11777             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
11778             OString                expVal( aStrBuf.getStr() );
11779             sal_Int64              input = kSInt8Max;
11780             sal_Int16              radix = 8;
11781 
11782             expVal += OString( "177" );
11783             aStrBuf.append( input, radix );
11784 
11785             CPPUNIT_ASSERT_MESSAGE
11786             (
11787                 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
11788                 aStrBuf.getStr()== expVal &&
11789                     aStrBuf.getLength() == expVal.getLength()
11790             );
11791 
11792         }
11793 
append_014()11794         void append_014()
11795         {
11796             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
11797             OString                expVal( aStrBuf.getStr() );
11798             sal_Int64              input = kSInt64Max;
11799             sal_Int16              radix = 8;
11800 
11801             expVal += OString( "777777777777777777777" );
11802             aStrBuf.append( input, radix );
11803 
11804             CPPUNIT_ASSERT_MESSAGE
11805             (
11806                 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
11807                 aStrBuf.getStr()== expVal &&
11808                     aStrBuf.getLength() == expVal.getLength()
11809             );
11810 
11811         }
11812 
append_015()11813         void append_015()
11814         {
11815             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
11816             OString                expVal( aStrBuf.getStr() );
11817             sal_Int64              input = kSInt8Max;
11818             sal_Int16              radix = 10;
11819 
11820             expVal += OString( "127" );
11821             aStrBuf.append( input, radix );
11822 
11823             CPPUNIT_ASSERT_MESSAGE
11824             (
11825                 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
11826                 aStrBuf.getStr()== expVal &&
11827                     aStrBuf.getLength() == expVal.getLength()
11828             );
11829 
11830         }
11831 
append_016()11832         void append_016()
11833         {
11834             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
11835             OString                expVal( aStrBuf.getStr() );
11836             sal_Int64              input = kSInt64Max;
11837             sal_Int16              radix = 10;
11838 
11839             expVal += OString( "9223372036854775807" );
11840             aStrBuf.append( input, radix );
11841 
11842             CPPUNIT_ASSERT_MESSAGE
11843             (
11844                 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
11845                 aStrBuf.getStr()== expVal &&
11846                     aStrBuf.getLength() == expVal.getLength()
11847             );
11848 
11849         }
11850 
append_017()11851         void append_017()
11852         {
11853             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
11854             OString                expVal( aStrBuf.getStr() );
11855             sal_Int64              input = kSInt8Max;
11856             sal_Int16              radix = 16;
11857 
11858             expVal += OString( "7f" );
11859             aStrBuf.append( input, radix );
11860 
11861             CPPUNIT_ASSERT_MESSAGE
11862             (
11863                 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
11864                 aStrBuf.getStr()== expVal &&
11865                     aStrBuf.getLength() == expVal.getLength()
11866             );
11867 
11868         }
11869 
append_018()11870         void append_018()
11871         {
11872             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
11873             OString                expVal( aStrBuf.getStr() );
11874             sal_Int64              input = kSInt64Max;
11875             sal_Int16              radix = 16;
11876 
11877             expVal += OString( "7fffffffffffffff" );
11878             aStrBuf.append( input, radix );
11879 
11880             CPPUNIT_ASSERT_MESSAGE
11881             (
11882                 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
11883                 aStrBuf.getStr()== expVal &&
11884                     aStrBuf.getLength() == expVal.getLength()
11885             );
11886 
11887         }
11888 
append_019()11889         void append_019()
11890         {
11891             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
11892             OString                expVal( aStrBuf.getStr() );
11893             sal_Int64              input = kSInt8Max;
11894             sal_Int16              radix = 36;
11895 
11896             expVal += OString( "3j" );
11897             aStrBuf.append( input, radix );
11898 
11899             CPPUNIT_ASSERT_MESSAGE
11900             (
11901                 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
11902                 aStrBuf.getStr()== expVal &&
11903                     aStrBuf.getLength() == expVal.getLength()
11904             );
11905 
11906         }
11907 
append_020()11908         void append_020()
11909         {
11910             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
11911             OString                expVal( aStrBuf.getStr() );
11912             sal_Int64              input = kSInt64Max;
11913             sal_Int16              radix = 36;
11914 
11915             expVal += OString( "1y2p0ij32e8e7" );
11916             aStrBuf.append( input, radix );
11917 
11918             CPPUNIT_ASSERT_MESSAGE
11919             (
11920                 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
11921                 aStrBuf.getStr()== expVal &&
11922                     aStrBuf.getLength() == expVal.getLength()
11923             );
11924 
11925         }
11926 
append_021()11927         void append_021()
11928         {
11929             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
11930             OString                expVal( aStrBuf.getStr() );
11931             sal_Int64              input = kSInt8Max;
11932             sal_Int16              radix = 2;
11933 
11934             expVal += OString( "1111111" );
11935             aStrBuf.append( input, radix );
11936 
11937             CPPUNIT_ASSERT_MESSAGE
11938             (
11939                 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
11940                 aStrBuf.getStr()== expVal &&
11941                     aStrBuf.getLength() == expVal.getLength()
11942             );
11943 
11944         }
11945 
append_022()11946         void append_022()
11947         {
11948             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
11949             OString                expVal( aStrBuf.getStr() );
11950             sal_Int64              input = kSInt64Max;
11951             sal_Int16              radix = 2;
11952 
11953             expVal += OString( "111111111111111111111111111111111111111111111111111111111111111" );
11954             aStrBuf.append( input, radix );
11955 
11956             CPPUNIT_ASSERT_MESSAGE
11957             (
11958                 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
11959                 aStrBuf.getStr()== expVal &&
11960                     aStrBuf.getLength() == expVal.getLength()
11961             );
11962 
11963         }
11964 
append_023()11965         void append_023()
11966         {
11967             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
11968             OString                expVal( aStrBuf.getStr() );
11969             sal_Int64              input = kSInt8Max;
11970             sal_Int16              radix = 8;
11971 
11972             expVal += OString( "177" );
11973             aStrBuf.append( input, radix );
11974 
11975             CPPUNIT_ASSERT_MESSAGE
11976             (
11977                 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
11978                 aStrBuf.getStr()== expVal &&
11979                     aStrBuf.getLength() == expVal.getLength()
11980             );
11981 
11982         }
11983 
append_024()11984         void append_024()
11985         {
11986             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
11987             OString                expVal( aStrBuf.getStr() );
11988             sal_Int64              input = kSInt64Max;
11989             sal_Int16              radix = 8;
11990 
11991             expVal += OString( "777777777777777777777" );
11992             aStrBuf.append( input, radix );
11993 
11994             CPPUNIT_ASSERT_MESSAGE
11995             (
11996                 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
11997                 aStrBuf.getStr()== expVal &&
11998                     aStrBuf.getLength() == expVal.getLength()
11999             );
12000 
12001         }
12002 
append_025()12003         void append_025()
12004         {
12005             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
12006             OString                expVal( aStrBuf.getStr() );
12007             sal_Int64              input = kSInt8Max;
12008             sal_Int16              radix = 10;
12009 
12010             expVal += OString( "127" );
12011             aStrBuf.append( input, radix );
12012 
12013             CPPUNIT_ASSERT_MESSAGE
12014             (
12015                 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
12016                 aStrBuf.getStr()== expVal &&
12017                     aStrBuf.getLength() == expVal.getLength()
12018             );
12019 
12020         }
12021 
append_026()12022         void append_026()
12023         {
12024             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
12025             OString                expVal( aStrBuf.getStr() );
12026             sal_Int64              input = kSInt64Max;
12027             sal_Int16              radix = 10;
12028 
12029             expVal += OString( "9223372036854775807" );
12030             aStrBuf.append( input, radix );
12031 
12032             CPPUNIT_ASSERT_MESSAGE
12033             (
12034                 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
12035                 aStrBuf.getStr()== expVal &&
12036                     aStrBuf.getLength() == expVal.getLength()
12037             );
12038 
12039         }
12040 
append_027()12041         void append_027()
12042         {
12043             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
12044             OString                expVal( aStrBuf.getStr() );
12045             sal_Int64              input = kSInt8Max;
12046             sal_Int16              radix = 16;
12047 
12048             expVal += OString( "7f" );
12049             aStrBuf.append( input, radix );
12050 
12051             CPPUNIT_ASSERT_MESSAGE
12052             (
12053                 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
12054                 aStrBuf.getStr()== expVal &&
12055                     aStrBuf.getLength() == expVal.getLength()
12056             );
12057 
12058         }
12059 
append_028()12060         void append_028()
12061         {
12062             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
12063             OString                expVal( aStrBuf.getStr() );
12064             sal_Int64              input = kSInt64Max;
12065             sal_Int16              radix = 16;
12066 
12067             expVal += OString( "7fffffffffffffff" );
12068             aStrBuf.append( input, radix );
12069 
12070             CPPUNIT_ASSERT_MESSAGE
12071             (
12072                 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
12073                 aStrBuf.getStr()== expVal &&
12074                     aStrBuf.getLength() == expVal.getLength()
12075             );
12076 
12077         }
12078 
append_029()12079         void append_029()
12080         {
12081             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
12082             OString                expVal( aStrBuf.getStr() );
12083             sal_Int64              input = kSInt8Max;
12084             sal_Int16              radix = 36;
12085 
12086             expVal += OString( "3j" );
12087             aStrBuf.append( input, radix );
12088 
12089             CPPUNIT_ASSERT_MESSAGE
12090             (
12091                 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
12092                 aStrBuf.getStr()== expVal &&
12093                     aStrBuf.getLength() == expVal.getLength()
12094             );
12095 
12096         }
12097 
append_030()12098         void append_030()
12099         {
12100             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
12101             OString                expVal( aStrBuf.getStr() );
12102             sal_Int64              input = kSInt64Max;
12103             sal_Int16              radix = 36;
12104 
12105             expVal += OString( "1y2p0ij32e8e7" );
12106             aStrBuf.append( input, radix );
12107 
12108             CPPUNIT_ASSERT_MESSAGE
12109             (
12110                 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
12111                 aStrBuf.getStr()== expVal &&
12112                     aStrBuf.getLength() == expVal.getLength()
12113             );
12114 
12115         }
12116 
append_031()12117         void append_031()
12118         {
12119             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
12120             OString                expVal( aStrBuf.getStr() );
12121             sal_Int64              input = kSInt8Max;
12122             sal_Int16              radix = 2;
12123 
12124             expVal += OString( "1111111" );
12125             aStrBuf.append( input, radix );
12126 
12127             CPPUNIT_ASSERT_MESSAGE
12128             (
12129                 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
12130                 aStrBuf.getStr()== expVal &&
12131                     aStrBuf.getLength() == expVal.getLength()
12132             );
12133 
12134         }
12135 
append_032()12136         void append_032()
12137         {
12138             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
12139             OString                expVal( aStrBuf.getStr() );
12140             sal_Int64              input = kSInt64Max;
12141             sal_Int16              radix = 2;
12142 
12143             expVal += OString( "111111111111111111111111111111111111111111111111111111111111111" );
12144             aStrBuf.append( input, radix );
12145 
12146             CPPUNIT_ASSERT_MESSAGE
12147             (
12148                 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
12149                 aStrBuf.getStr()== expVal &&
12150                     aStrBuf.getLength() == expVal.getLength()
12151             );
12152 
12153         }
12154 
append_033()12155         void append_033()
12156         {
12157             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
12158             OString                expVal( aStrBuf.getStr() );
12159             sal_Int64              input = kSInt8Max;
12160             sal_Int16              radix = 8;
12161 
12162             expVal += OString( "177" );
12163             aStrBuf.append( input, radix );
12164 
12165             CPPUNIT_ASSERT_MESSAGE
12166             (
12167                 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
12168                 aStrBuf.getStr()== expVal &&
12169                     aStrBuf.getLength() == expVal.getLength()
12170             );
12171 
12172         }
12173 
append_034()12174         void append_034()
12175         {
12176             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
12177             OString                expVal( aStrBuf.getStr() );
12178             sal_Int64              input = kSInt64Max;
12179             sal_Int16              radix = 8;
12180 
12181             expVal += OString( "777777777777777777777" );
12182             aStrBuf.append( input, radix );
12183 
12184             CPPUNIT_ASSERT_MESSAGE
12185             (
12186                 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
12187                 aStrBuf.getStr()== expVal &&
12188                     aStrBuf.getLength() == expVal.getLength()
12189             );
12190 
12191         }
12192 
append_035()12193         void append_035()
12194         {
12195             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
12196             OString                expVal( aStrBuf.getStr() );
12197             sal_Int64              input = kSInt8Max;
12198             sal_Int16              radix = 10;
12199 
12200             expVal += OString( "127" );
12201             aStrBuf.append( input, radix );
12202 
12203             CPPUNIT_ASSERT_MESSAGE
12204             (
12205                 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
12206                 aStrBuf.getStr()== expVal &&
12207                     aStrBuf.getLength() == expVal.getLength()
12208             );
12209 
12210         }
12211 
append_036()12212         void append_036()
12213         {
12214             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
12215             OString                expVal( aStrBuf.getStr() );
12216             sal_Int64              input = kSInt64Max;
12217             sal_Int16              radix = 10;
12218 
12219             expVal += OString( "9223372036854775807" );
12220             aStrBuf.append( input, radix );
12221 
12222             CPPUNIT_ASSERT_MESSAGE
12223             (
12224                 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
12225                 aStrBuf.getStr()== expVal &&
12226                     aStrBuf.getLength() == expVal.getLength()
12227             );
12228 
12229         }
12230 
append_037()12231         void append_037()
12232         {
12233             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
12234             OString                expVal( aStrBuf.getStr() );
12235             sal_Int64              input = kSInt8Max;
12236             sal_Int16              radix = 16;
12237 
12238             expVal += OString( "7f" );
12239             aStrBuf.append( input, radix );
12240 
12241             CPPUNIT_ASSERT_MESSAGE
12242             (
12243                 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
12244                 aStrBuf.getStr()== expVal &&
12245                     aStrBuf.getLength() == expVal.getLength()
12246             );
12247 
12248         }
12249 
append_038()12250         void append_038()
12251         {
12252             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
12253             OString                expVal( aStrBuf.getStr() );
12254             sal_Int64              input = kSInt64Max;
12255             sal_Int16              radix = 16;
12256 
12257             expVal += OString( "7fffffffffffffff" );
12258             aStrBuf.append( input, radix );
12259 
12260             CPPUNIT_ASSERT_MESSAGE
12261             (
12262                 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
12263                 aStrBuf.getStr()== expVal &&
12264                     aStrBuf.getLength() == expVal.getLength()
12265             );
12266 
12267         }
12268 
append_039()12269         void append_039()
12270         {
12271             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
12272             OString                expVal( aStrBuf.getStr() );
12273             sal_Int64              input = kSInt8Max;
12274             sal_Int16              radix = 36;
12275 
12276             expVal += OString( "3j" );
12277             aStrBuf.append( input, radix );
12278 
12279             CPPUNIT_ASSERT_MESSAGE
12280             (
12281                 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
12282                 aStrBuf.getStr()== expVal &&
12283                     aStrBuf.getLength() == expVal.getLength()
12284             );
12285 
12286         }
12287 
append_040()12288         void append_040()
12289         {
12290             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
12291             OString                expVal( aStrBuf.getStr() );
12292             sal_Int64              input = kSInt64Max;
12293             sal_Int16              radix = 36;
12294 
12295             expVal += OString( "1y2p0ij32e8e7" );
12296             aStrBuf.append( input, radix );
12297 
12298             CPPUNIT_ASSERT_MESSAGE
12299             (
12300                 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
12301                 aStrBuf.getStr()== expVal &&
12302                     aStrBuf.getLength() == expVal.getLength()
12303             );
12304 
12305         }
12306 
append_041()12307         void append_041()
12308         {
12309             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
12310             OString                expVal( aStrBuf.getStr() );
12311             sal_Int64              input = kSInt8Max;
12312             sal_Int16              radix = 2;
12313 
12314             expVal += OString( "1111111" );
12315             aStrBuf.append( input, radix );
12316 
12317             CPPUNIT_ASSERT_MESSAGE
12318             (
12319                 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
12320                 aStrBuf.getStr()== expVal &&
12321                     aStrBuf.getLength() == expVal.getLength()
12322             );
12323 
12324         }
12325 
append_042()12326         void append_042()
12327         {
12328             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
12329             OString                expVal( aStrBuf.getStr() );
12330             sal_Int64              input = kSInt64Max;
12331             sal_Int16              radix = 2;
12332 
12333             expVal += OString( "111111111111111111111111111111111111111111111111111111111111111" );
12334             aStrBuf.append( input, radix );
12335 
12336             CPPUNIT_ASSERT_MESSAGE
12337             (
12338                 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
12339                 aStrBuf.getStr()== expVal &&
12340                     aStrBuf.getLength() == expVal.getLength()
12341             );
12342 
12343         }
12344 
append_043()12345         void append_043()
12346         {
12347             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
12348             OString                expVal( aStrBuf.getStr() );
12349             sal_Int64              input = kSInt8Max;
12350             sal_Int16              radix = 8;
12351 
12352             expVal += OString( "177" );
12353             aStrBuf.append( input, radix );
12354 
12355             CPPUNIT_ASSERT_MESSAGE
12356             (
12357                 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
12358                 aStrBuf.getStr()== expVal &&
12359                     aStrBuf.getLength() == expVal.getLength()
12360             );
12361 
12362         }
12363 
append_044()12364         void append_044()
12365         {
12366             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
12367             OString                expVal( aStrBuf.getStr() );
12368             sal_Int64              input = kSInt64Max;
12369             sal_Int16              radix = 8;
12370 
12371             expVal += OString( "777777777777777777777" );
12372             aStrBuf.append( input, radix );
12373 
12374             CPPUNIT_ASSERT_MESSAGE
12375             (
12376                 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
12377                 aStrBuf.getStr()== expVal &&
12378                     aStrBuf.getLength() == expVal.getLength()
12379             );
12380 
12381         }
12382 
append_045()12383         void append_045()
12384         {
12385             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
12386             OString                expVal( aStrBuf.getStr() );
12387             sal_Int64              input = kSInt8Max;
12388             sal_Int16              radix = 10;
12389 
12390             expVal += OString( "127" );
12391             aStrBuf.append( input, radix );
12392 
12393             CPPUNIT_ASSERT_MESSAGE
12394             (
12395                 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
12396                 aStrBuf.getStr()== expVal &&
12397                     aStrBuf.getLength() == expVal.getLength()
12398             );
12399 
12400         }
12401 
append_046()12402         void append_046()
12403         {
12404             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
12405             OString                expVal( aStrBuf.getStr() );
12406             sal_Int64              input = kSInt64Max;
12407             sal_Int16              radix = 10;
12408 
12409             expVal += OString( "9223372036854775807" );
12410             aStrBuf.append( input, radix );
12411 
12412             CPPUNIT_ASSERT_MESSAGE
12413             (
12414                 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
12415                 aStrBuf.getStr()== expVal &&
12416                     aStrBuf.getLength() == expVal.getLength()
12417             );
12418 
12419         }
12420 
append_047()12421         void append_047()
12422         {
12423             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
12424             OString                expVal( aStrBuf.getStr() );
12425             sal_Int64              input = kSInt8Max;
12426             sal_Int16              radix = 16;
12427 
12428             expVal += OString( "7f" );
12429             aStrBuf.append( input, radix );
12430 
12431             CPPUNIT_ASSERT_MESSAGE
12432             (
12433                 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
12434                 aStrBuf.getStr()== expVal &&
12435                     aStrBuf.getLength() == expVal.getLength()
12436             );
12437 
12438         }
12439 
append_048()12440         void append_048()
12441         {
12442             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
12443             OString                expVal( aStrBuf.getStr() );
12444             sal_Int64              input = kSInt64Max;
12445             sal_Int16              radix = 16;
12446 
12447             expVal += OString( "7fffffffffffffff" );
12448             aStrBuf.append( input, radix );
12449 
12450             CPPUNIT_ASSERT_MESSAGE
12451             (
12452                 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
12453                 aStrBuf.getStr()== expVal &&
12454                     aStrBuf.getLength() == expVal.getLength()
12455             );
12456 
12457         }
12458 
append_049()12459         void append_049()
12460         {
12461             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
12462             OString                expVal( aStrBuf.getStr() );
12463             sal_Int64              input = kSInt8Max;
12464             sal_Int16              radix = 36;
12465 
12466             expVal += OString( "3j" );
12467             aStrBuf.append( input, radix );
12468 
12469             CPPUNIT_ASSERT_MESSAGE
12470             (
12471                 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
12472                 aStrBuf.getStr()== expVal &&
12473                     aStrBuf.getLength() == expVal.getLength()
12474             );
12475 
12476         }
12477 
append_050()12478         void append_050()
12479         {
12480             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
12481             OString                expVal( aStrBuf.getStr() );
12482             sal_Int64              input = kSInt64Max;
12483             sal_Int16              radix = 36;
12484 
12485             expVal += OString( "1y2p0ij32e8e7" );
12486             aStrBuf.append( input, radix );
12487 
12488             CPPUNIT_ASSERT_MESSAGE
12489             (
12490                 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
12491                 aStrBuf.getStr()== expVal &&
12492                     aStrBuf.getLength() == expVal.getLength()
12493             );
12494 
12495         }
12496 
12497         CPPUNIT_TEST_SUITE( append_007_Int64_Bounderies );
12498         CPPUNIT_TEST( append_001 ); CPPUNIT_TEST( append_002 );
12499         CPPUNIT_TEST( append_003 ); CPPUNIT_TEST( append_004 );
12500         CPPUNIT_TEST( append_005 ); CPPUNIT_TEST( append_006 );
12501         CPPUNIT_TEST( append_007 ); CPPUNIT_TEST( append_008 );
12502         CPPUNIT_TEST( append_009 ); CPPUNIT_TEST( append_010 );
12503         CPPUNIT_TEST( append_011 ); CPPUNIT_TEST( append_012 );
12504         CPPUNIT_TEST( append_013 ); CPPUNIT_TEST( append_014 );
12505         CPPUNIT_TEST( append_015 ); CPPUNIT_TEST( append_016 );
12506         CPPUNIT_TEST( append_017 ); CPPUNIT_TEST( append_018 );
12507         CPPUNIT_TEST( append_019 ); CPPUNIT_TEST( append_020 );
12508         CPPUNIT_TEST( append_021 ); CPPUNIT_TEST( append_022 );
12509         CPPUNIT_TEST( append_023 ); CPPUNIT_TEST( append_024 );
12510         CPPUNIT_TEST( append_025 ); CPPUNIT_TEST( append_026 );
12511         CPPUNIT_TEST( append_027 ); CPPUNIT_TEST( append_028 );
12512         CPPUNIT_TEST( append_029 ); CPPUNIT_TEST( append_030 );
12513         CPPUNIT_TEST( append_031 ); CPPUNIT_TEST( append_032 );
12514         CPPUNIT_TEST( append_033 ); CPPUNIT_TEST( append_034 );
12515         CPPUNIT_TEST( append_035 ); CPPUNIT_TEST( append_036 );
12516         CPPUNIT_TEST( append_037 ); CPPUNIT_TEST( append_038 );
12517         CPPUNIT_TEST( append_039 ); CPPUNIT_TEST( append_040 );
12518         CPPUNIT_TEST( append_041 ); CPPUNIT_TEST( append_042 );
12519         CPPUNIT_TEST( append_043 ); CPPUNIT_TEST( append_044 );
12520         CPPUNIT_TEST( append_045 ); CPPUNIT_TEST( append_046 );
12521         CPPUNIT_TEST( append_047 ); CPPUNIT_TEST( append_048 );
12522         CPPUNIT_TEST( append_049 ); CPPUNIT_TEST( append_050 );
12523         CPPUNIT_TEST_SUITE_END();
12524     };
12525 //------------------------------------------------------------------------
12526 // testing the method append( sal_Int64 i, sal_Int16 radix=2 )
12527 // for negative value
12528 // testing the method append( sal_Int64 i, sal_Int16 radix=8 )
12529 // for negative value
12530 // testing the method append( sal_Int64 i, sal_Int16 radix=10 )
12531 // for negative value
12532 // testing the method append( sal_Int64 i, sal_Int16 radix=16 )
12533 // for negative value
12534 // testing the method append( sal_Int64 i, sal_Int16 radix=36 )
12535 // for negative value
12536 //------------------------------------------------------------------------
12537     class  append_007_Int64_Negative : public CppUnit::TestFixture
12538     {
12539         OString* arrOUS[5];
12540 
12541     public:
setUp()12542         void setUp()
12543         {
12544             arrOUS[0] = new OString( kTestStr7 );
12545             arrOUS[1] = new OString(  );
12546             arrOUS[2] = new OString( kTestStr25 );
12547             arrOUS[3] = new OString( "\0"  );
12548             arrOUS[4] = new OString( kTestStr28 );
12549 
12550         }
12551 
tearDown()12552         void tearDown()
12553         {
12554             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
12555             delete arrOUS[3]; delete arrOUS[4];
12556         }
12557 
append_001()12558         void append_001()
12559         {
12560             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
12561             OString                expVal( aStrBuf.getStr() );
12562             sal_Int64              input = -0;
12563             sal_Int16              radix = 2;
12564 
12565             expVal += OString( "0" );
12566             aStrBuf.append( input, radix );
12567 
12568             CPPUNIT_ASSERT_MESSAGE
12569             (
12570                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
12571                 aStrBuf.getStr()== expVal &&
12572                     aStrBuf.getLength() == expVal.getLength()
12573             );
12574 
12575         }
12576 
append_002()12577         void append_002()
12578         {
12579             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
12580             OString                expVal( aStrBuf.getStr() );
12581             sal_Int64              input = -4;
12582             sal_Int16              radix = 2;
12583 
12584             expVal += OString( "-" );
12585             expVal += OString( "100" );
12586             aStrBuf.append( input, radix );
12587 
12588             CPPUNIT_ASSERT_MESSAGE
12589             (
12590                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
12591                 aStrBuf.getStr()== expVal &&
12592                     aStrBuf.getLength() == expVal.getLength()
12593             );
12594 
12595         }
12596 
append_003()12597         void append_003()
12598         {
12599             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
12600             OString                expVal( aStrBuf.getStr() );
12601             sal_Int64              input = -8;
12602             sal_Int16              radix = 2;
12603 
12604             expVal += OString( "-" );
12605             expVal += OString( "1000" );
12606             aStrBuf.append( input, radix );
12607 
12608             CPPUNIT_ASSERT_MESSAGE
12609             (
12610                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
12611                 aStrBuf.getStr()== expVal &&
12612                     aStrBuf.getLength() == expVal.getLength()
12613             );
12614 
12615         }
12616 
append_004()12617         void append_004()
12618         {
12619             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
12620             OString                expVal( aStrBuf.getStr() );
12621             sal_Int64              input = -15;
12622             sal_Int16              radix = 2;
12623 
12624             expVal += OString( "-" );
12625             expVal += OString( "1111" );
12626             aStrBuf.append( input, radix );
12627 
12628             CPPUNIT_ASSERT_MESSAGE
12629             (
12630                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
12631                 aStrBuf.getStr()== expVal &&
12632                     aStrBuf.getLength() == expVal.getLength()
12633             );
12634 
12635         }
12636 
append_005()12637         void append_005()
12638         {
12639             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
12640             OString                expVal( aStrBuf.getStr() );
12641             sal_Int64              input = -0;
12642             sal_Int16              radix = 8;
12643 
12644             expVal += OString( "0" );
12645             aStrBuf.append( input, radix );
12646 
12647             CPPUNIT_ASSERT_MESSAGE
12648             (
12649                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
12650                 aStrBuf.getStr()== expVal &&
12651                     aStrBuf.getLength() == expVal.getLength()
12652             );
12653 
12654         }
12655 
append_006()12656         void append_006()
12657         {
12658             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
12659             OString                expVal( aStrBuf.getStr() );
12660             sal_Int64              input = -4;
12661             sal_Int16              radix = 8;
12662 
12663             expVal += OString( "-" );
12664             expVal += OString( "4" );
12665             aStrBuf.append( input, radix );
12666 
12667             CPPUNIT_ASSERT_MESSAGE
12668             (
12669                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
12670                 aStrBuf.getStr()== expVal &&
12671                     aStrBuf.getLength() == expVal.getLength()
12672             );
12673 
12674         }
12675 
append_007()12676         void append_007()
12677         {
12678             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
12679             OString                expVal( aStrBuf.getStr() );
12680             sal_Int64              input = -8;
12681             sal_Int16              radix = 8;
12682 
12683             expVal += OString( "-" );
12684             expVal += OString( "10" );
12685             aStrBuf.append( input, radix );
12686 
12687             CPPUNIT_ASSERT_MESSAGE
12688             (
12689                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
12690                 aStrBuf.getStr()== expVal &&
12691                     aStrBuf.getLength() == expVal.getLength()
12692             );
12693 
12694         }
12695 
append_008()12696         void append_008()
12697         {
12698             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
12699             OString                expVal( aStrBuf.getStr() );
12700             sal_Int64              input = -15;
12701             sal_Int16              radix = 8;
12702 
12703             expVal += OString( "-" );
12704             expVal += OString( "17" );
12705             aStrBuf.append( input, radix );
12706 
12707             CPPUNIT_ASSERT_MESSAGE
12708             (
12709                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
12710                 aStrBuf.getStr()== expVal &&
12711                     aStrBuf.getLength() == expVal.getLength()
12712             );
12713 
12714         }
12715 
append_009()12716         void append_009()
12717         {
12718             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
12719             OString                expVal( aStrBuf.getStr() );
12720             sal_Int64              input = -0;
12721             sal_Int16              radix = 10;
12722 
12723             expVal += OString( "0" );
12724             aStrBuf.append( input, radix );
12725 
12726             CPPUNIT_ASSERT_MESSAGE
12727             (
12728                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
12729                 aStrBuf.getStr()== expVal &&
12730                     aStrBuf.getLength() == expVal.getLength()
12731             );
12732 
12733         }
12734 
append_010()12735         void append_010()
12736         {
12737             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
12738             OString                expVal( aStrBuf.getStr() );
12739             sal_Int64              input = -4;
12740             sal_Int16              radix = 10;
12741 
12742             expVal += OString( "-" );
12743             expVal += OString( "4" );
12744             aStrBuf.append( input, radix );
12745 
12746             CPPUNIT_ASSERT_MESSAGE
12747             (
12748                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
12749                 aStrBuf.getStr()== expVal &&
12750                     aStrBuf.getLength() == expVal.getLength()
12751             );
12752 
12753         }
12754 
append_011()12755         void append_011()
12756         {
12757             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
12758             OString                expVal( aStrBuf.getStr() );
12759             sal_Int64              input = -8;
12760             sal_Int16              radix = 10;
12761 
12762             expVal += OString( "-" );
12763             expVal += OString( "8" );
12764             aStrBuf.append( input, radix );
12765 
12766             CPPUNIT_ASSERT_MESSAGE
12767             (
12768                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
12769                 aStrBuf.getStr()== expVal &&
12770                     aStrBuf.getLength() == expVal.getLength()
12771             );
12772 
12773         }
12774 
append_012()12775         void append_012()
12776         {
12777             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
12778             OString                expVal( aStrBuf.getStr() );
12779             sal_Int64              input = -15;
12780             sal_Int16              radix = 10;
12781 
12782             expVal += OString( "-" );
12783             expVal += OString( "15" );
12784             aStrBuf.append( input, radix );
12785 
12786             CPPUNIT_ASSERT_MESSAGE
12787             (
12788                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
12789                 aStrBuf.getStr()== expVal &&
12790                     aStrBuf.getLength() == expVal.getLength()
12791             );
12792 
12793         }
12794 
append_013()12795         void append_013()
12796         {
12797             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
12798             OString                expVal( aStrBuf.getStr() );
12799             sal_Int64              input = -0;
12800             sal_Int16              radix = 16;
12801 
12802             expVal += OString( "0" );
12803             aStrBuf.append( input, radix );
12804 
12805             CPPUNIT_ASSERT_MESSAGE
12806             (
12807                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
12808                 aStrBuf.getStr()== expVal &&
12809                     aStrBuf.getLength() == expVal.getLength()
12810             );
12811 
12812         }
12813 
append_014()12814         void append_014()
12815         {
12816             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
12817             OString                expVal( aStrBuf.getStr() );
12818             sal_Int64              input = -4;
12819             sal_Int16              radix = 16;
12820 
12821             expVal += OString( "-" );
12822             expVal += OString( "4" );
12823             aStrBuf.append( input, radix );
12824 
12825             CPPUNIT_ASSERT_MESSAGE
12826             (
12827                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
12828                 aStrBuf.getStr()== expVal &&
12829                     aStrBuf.getLength() == expVal.getLength()
12830             );
12831 
12832         }
12833 
append_015()12834         void append_015()
12835         {
12836             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
12837             OString                expVal( aStrBuf.getStr() );
12838             sal_Int64              input = -8;
12839             sal_Int16              radix = 16;
12840 
12841             expVal += OString( "-" );
12842             expVal += OString( "8" );
12843             aStrBuf.append( input, radix );
12844 
12845             CPPUNIT_ASSERT_MESSAGE
12846             (
12847                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
12848                 aStrBuf.getStr()== expVal &&
12849                     aStrBuf.getLength() == expVal.getLength()
12850             );
12851 
12852         }
12853 
append_016()12854         void append_016()
12855         {
12856             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
12857             OString                expVal( aStrBuf.getStr() );
12858             sal_Int64              input = -15;
12859             sal_Int16              radix = 16;
12860 
12861             expVal += OString( "-" );
12862             expVal += OString( "f" );
12863             aStrBuf.append( input, radix );
12864 
12865             CPPUNIT_ASSERT_MESSAGE
12866             (
12867                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
12868                 aStrBuf.getStr()== expVal &&
12869                     aStrBuf.getLength() == expVal.getLength()
12870             );
12871 
12872         }
12873 
append_017()12874         void append_017()
12875         {
12876             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
12877             OString                expVal( aStrBuf.getStr() );
12878             sal_Int64              input = -0;
12879             sal_Int16              radix = 36;
12880 
12881             expVal += OString( "0" );
12882             aStrBuf.append( input, radix );
12883 
12884             CPPUNIT_ASSERT_MESSAGE
12885             (
12886                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
12887                 aStrBuf.getStr()== expVal &&
12888                     aStrBuf.getLength() == expVal.getLength()
12889             );
12890 
12891         }
12892 
append_018()12893         void append_018()
12894         {
12895             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
12896             OString                expVal( aStrBuf.getStr() );
12897             sal_Int64              input = -4;
12898             sal_Int16              radix = 36;
12899 
12900             expVal += OString( "-" );
12901             expVal += OString( "4" );
12902             aStrBuf.append( input, radix );
12903 
12904             CPPUNIT_ASSERT_MESSAGE
12905             (
12906                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
12907                 aStrBuf.getStr()== expVal &&
12908                     aStrBuf.getLength() == expVal.getLength()
12909             );
12910 
12911         }
12912 
append_019()12913         void append_019()
12914         {
12915             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
12916             OString                expVal( aStrBuf.getStr() );
12917             sal_Int64              input = -8;
12918             sal_Int16              radix = 36;
12919 
12920             expVal += OString( "-" );
12921             expVal += OString( "8" );
12922             aStrBuf.append( input, radix );
12923 
12924             CPPUNIT_ASSERT_MESSAGE
12925             (
12926                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
12927                 aStrBuf.getStr()== expVal &&
12928                     aStrBuf.getLength() == expVal.getLength()
12929             );
12930 
12931         }
12932 
append_020()12933         void append_020()
12934         {
12935             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
12936             OString                expVal( aStrBuf.getStr() );
12937             sal_Int64              input = -35;
12938             sal_Int16              radix = 36;
12939 
12940             expVal += OString( "-" );
12941             expVal += OString( "z" );
12942             aStrBuf.append( input, radix );
12943 
12944             CPPUNIT_ASSERT_MESSAGE
12945             (
12946                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
12947                 aStrBuf.getStr()== expVal &&
12948                     aStrBuf.getLength() == expVal.getLength()
12949             );
12950 
12951         }
12952 
append_021()12953         void append_021()
12954         {
12955             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
12956             OString                expVal( aStrBuf.getStr() );
12957             sal_Int64              input = -0;
12958             sal_Int16              radix = 2;
12959 
12960             expVal += OString( "0" );
12961             aStrBuf.append( input, radix );
12962 
12963             CPPUNIT_ASSERT_MESSAGE
12964             (
12965                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
12966                 aStrBuf.getStr()== expVal &&
12967                     aStrBuf.getLength() == expVal.getLength()
12968             );
12969 
12970         }
12971 
append_022()12972         void append_022()
12973         {
12974             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
12975             OString                expVal( aStrBuf.getStr() );
12976             sal_Int64              input = -4;
12977             sal_Int16              radix = 2;
12978 
12979             expVal += OString( "-" );
12980             expVal += OString( "100" );
12981             aStrBuf.append( input, radix );
12982 
12983             CPPUNIT_ASSERT_MESSAGE
12984             (
12985                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
12986                 aStrBuf.getStr()== expVal &&
12987                     aStrBuf.getLength() == expVal.getLength()
12988             );
12989 
12990         }
12991 
append_023()12992         void append_023()
12993         {
12994             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
12995             OString                expVal( aStrBuf.getStr() );
12996             sal_Int64              input = -8;
12997             sal_Int16              radix = 2;
12998 
12999             expVal += OString( "-" );
13000             expVal += OString( "1000" );
13001             aStrBuf.append( input, radix );
13002 
13003             CPPUNIT_ASSERT_MESSAGE
13004             (
13005                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
13006                 aStrBuf.getStr()== expVal &&
13007                     aStrBuf.getLength() == expVal.getLength()
13008             );
13009 
13010         }
13011 
append_024()13012         void append_024()
13013         {
13014             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
13015             OString                expVal( aStrBuf.getStr() );
13016             sal_Int64              input = -15;
13017             sal_Int16              radix = 2;
13018 
13019             expVal += OString( "-" );
13020             expVal += OString( "1111" );
13021             aStrBuf.append( input, radix );
13022 
13023             CPPUNIT_ASSERT_MESSAGE
13024             (
13025                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
13026                 aStrBuf.getStr()== expVal &&
13027                     aStrBuf.getLength() == expVal.getLength()
13028             );
13029 
13030         }
13031 
append_025()13032         void append_025()
13033         {
13034             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
13035             OString                expVal( aStrBuf.getStr() );
13036             sal_Int64              input = -0;
13037             sal_Int16              radix = 8;
13038 
13039             expVal += OString( "0" );
13040             aStrBuf.append( input, radix );
13041 
13042             CPPUNIT_ASSERT_MESSAGE
13043             (
13044                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
13045                 aStrBuf.getStr()== expVal &&
13046                     aStrBuf.getLength() == expVal.getLength()
13047             );
13048 
13049         }
13050 
append_026()13051         void append_026()
13052         {
13053             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
13054             OString                expVal( aStrBuf.getStr() );
13055             sal_Int64              input = -4;
13056             sal_Int16              radix = 8;
13057 
13058             expVal += OString( "-" );
13059             expVal += OString( "4" );
13060             aStrBuf.append( input, radix );
13061 
13062             CPPUNIT_ASSERT_MESSAGE
13063             (
13064                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
13065                 aStrBuf.getStr()== expVal &&
13066                     aStrBuf.getLength() == expVal.getLength()
13067             );
13068 
13069         }
13070 
append_027()13071         void append_027()
13072         {
13073             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
13074             OString                expVal( aStrBuf.getStr() );
13075             sal_Int64              input = -8;
13076             sal_Int16              radix = 8;
13077 
13078             expVal += OString( "-" );
13079             expVal += OString( "10" );
13080             aStrBuf.append( input, radix );
13081 
13082             CPPUNIT_ASSERT_MESSAGE
13083             (
13084                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
13085                 aStrBuf.getStr()== expVal &&
13086                     aStrBuf.getLength() == expVal.getLength()
13087             );
13088 
13089         }
13090 
append_028()13091         void append_028()
13092         {
13093             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
13094             OString                expVal( aStrBuf.getStr() );
13095             sal_Int64              input = -15;
13096             sal_Int16              radix = 8;
13097 
13098             expVal += OString( "-" );
13099             expVal += OString( "17" );
13100             aStrBuf.append( input, radix );
13101 
13102             CPPUNIT_ASSERT_MESSAGE
13103             (
13104                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
13105                 aStrBuf.getStr()== expVal &&
13106                     aStrBuf.getLength() == expVal.getLength()
13107             );
13108 
13109         }
13110 
append_029()13111         void append_029()
13112         {
13113             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
13114             OString                expVal( aStrBuf.getStr() );
13115             sal_Int64              input = -0;
13116             sal_Int16              radix = 10;
13117 
13118             expVal += OString( "0" );
13119             aStrBuf.append( input, radix );
13120 
13121             CPPUNIT_ASSERT_MESSAGE
13122             (
13123                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
13124                 aStrBuf.getStr()== expVal &&
13125                     aStrBuf.getLength() == expVal.getLength()
13126             );
13127 
13128         }
13129 
append_030()13130         void append_030()
13131         {
13132             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
13133             OString                expVal( aStrBuf.getStr() );
13134             sal_Int64              input = -4;
13135             sal_Int16              radix = 10;
13136 
13137             expVal += OString( "-" );
13138             expVal += OString( "4" );
13139             aStrBuf.append( input, radix );
13140 
13141             CPPUNIT_ASSERT_MESSAGE
13142             (
13143                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
13144                 aStrBuf.getStr()== expVal &&
13145                     aStrBuf.getLength() == expVal.getLength()
13146             );
13147 
13148         }
13149 
append_031()13150         void append_031()
13151         {
13152             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
13153             OString                expVal( aStrBuf.getStr() );
13154             sal_Int64              input = -8;
13155             sal_Int16              radix = 10;
13156 
13157             expVal += OString( "-" );
13158             expVal += OString( "8" );
13159             aStrBuf.append( input, radix );
13160 
13161             CPPUNIT_ASSERT_MESSAGE
13162             (
13163                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
13164                 aStrBuf.getStr()== expVal &&
13165                     aStrBuf.getLength() == expVal.getLength()
13166             );
13167 
13168         }
13169 
append_032()13170         void append_032()
13171         {
13172             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
13173             OString                expVal( aStrBuf.getStr() );
13174             sal_Int64              input = -15;
13175             sal_Int16              radix = 10;
13176 
13177             expVal += OString( "-" );
13178             expVal += OString( "15" );
13179             aStrBuf.append( input, radix );
13180 
13181             CPPUNIT_ASSERT_MESSAGE
13182             (
13183                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
13184                 aStrBuf.getStr()== expVal &&
13185                     aStrBuf.getLength() == expVal.getLength()
13186             );
13187 
13188         }
13189 
append_033()13190         void append_033()
13191         {
13192             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
13193             OString                expVal( aStrBuf.getStr() );
13194             sal_Int64              input = -0;
13195             sal_Int16              radix = 16;
13196 
13197             expVal += OString( "0" );
13198             aStrBuf.append( input, radix );
13199 
13200             CPPUNIT_ASSERT_MESSAGE
13201             (
13202                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
13203                 aStrBuf.getStr()== expVal &&
13204                     aStrBuf.getLength() == expVal.getLength()
13205             );
13206 
13207         }
13208 
append_034()13209         void append_034()
13210         {
13211             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
13212             OString                expVal( aStrBuf.getStr() );
13213             sal_Int64              input = -4;
13214             sal_Int16              radix = 16;
13215 
13216             expVal += OString( "-" );
13217             expVal += OString( "4" );
13218             aStrBuf.append( input, radix );
13219 
13220             CPPUNIT_ASSERT_MESSAGE
13221             (
13222                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
13223                 aStrBuf.getStr()== expVal &&
13224                     aStrBuf.getLength() == expVal.getLength()
13225             );
13226 
13227         }
13228 
append_035()13229         void append_035()
13230         {
13231             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
13232             OString                expVal( aStrBuf.getStr() );
13233             sal_Int64              input = -8;
13234             sal_Int16              radix = 16;
13235 
13236             expVal += OString( "-" );
13237             expVal += OString( "8" );
13238             aStrBuf.append( input, radix );
13239 
13240             CPPUNIT_ASSERT_MESSAGE
13241             (
13242                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
13243                 aStrBuf.getStr()== expVal &&
13244                     aStrBuf.getLength() == expVal.getLength()
13245             );
13246 
13247         }
13248 
append_036()13249         void append_036()
13250         {
13251             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
13252             OString                expVal( aStrBuf.getStr() );
13253             sal_Int64              input = -15;
13254             sal_Int16              radix = 16;
13255 
13256             expVal += OString( "-" );
13257             expVal += OString( "f" );
13258             aStrBuf.append( input, radix );
13259 
13260             CPPUNIT_ASSERT_MESSAGE
13261             (
13262                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
13263                 aStrBuf.getStr()== expVal &&
13264                     aStrBuf.getLength() == expVal.getLength()
13265             );
13266 
13267         }
13268 
append_037()13269         void append_037()
13270         {
13271             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
13272             OString                expVal( aStrBuf.getStr() );
13273             sal_Int64              input = -0;
13274             sal_Int16              radix = 36;
13275 
13276             expVal += OString( "0" );
13277             aStrBuf.append( input, radix );
13278 
13279             CPPUNIT_ASSERT_MESSAGE
13280             (
13281                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
13282                 aStrBuf.getStr()== expVal &&
13283                     aStrBuf.getLength() == expVal.getLength()
13284             );
13285 
13286         }
13287 
append_038()13288         void append_038()
13289         {
13290             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
13291             OString                expVal( aStrBuf.getStr() );
13292             sal_Int64              input = -4;
13293             sal_Int16              radix = 36;
13294 
13295             expVal += OString( "-" );
13296             expVal += OString( "4" );
13297             aStrBuf.append( input, radix );
13298 
13299             CPPUNIT_ASSERT_MESSAGE
13300             (
13301                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
13302                 aStrBuf.getStr()== expVal &&
13303                     aStrBuf.getLength() == expVal.getLength()
13304             );
13305 
13306         }
13307 
append_039()13308         void append_039()
13309         {
13310             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
13311             OString                expVal( aStrBuf.getStr() );
13312             sal_Int64              input = -8;
13313             sal_Int16              radix = 36;
13314 
13315             expVal += OString( "-" );
13316             expVal += OString( "8" );
13317             aStrBuf.append( input, radix );
13318 
13319             CPPUNIT_ASSERT_MESSAGE
13320             (
13321                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
13322                 aStrBuf.getStr()== expVal &&
13323                     aStrBuf.getLength() == expVal.getLength()
13324             );
13325 
13326         }
13327 
append_040()13328         void append_040()
13329         {
13330             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
13331             OString                expVal( aStrBuf.getStr() );
13332             sal_Int64              input = -35;
13333             sal_Int16              radix = 36;
13334 
13335             expVal += OString( "-" );
13336             expVal += OString( "z" );
13337             aStrBuf.append( input, radix );
13338 
13339             CPPUNIT_ASSERT_MESSAGE
13340             (
13341                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
13342                 aStrBuf.getStr()== expVal &&
13343                     aStrBuf.getLength() == expVal.getLength()
13344             );
13345 
13346         }
13347 
append_041()13348         void append_041()
13349         {
13350             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
13351             OString                expVal( aStrBuf.getStr() );
13352             sal_Int64              input = -0;
13353             sal_Int16              radix = 2;
13354 
13355             expVal += OString( "0" );
13356             aStrBuf.append( input, radix );
13357 
13358             CPPUNIT_ASSERT_MESSAGE
13359             (
13360                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
13361                 aStrBuf.getStr()== expVal &&
13362                     aStrBuf.getLength() == expVal.getLength()
13363             );
13364 
13365         }
13366 
append_042()13367         void append_042()
13368         {
13369             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
13370             OString                expVal( aStrBuf.getStr() );
13371             sal_Int64              input = -4;
13372             sal_Int16              radix = 2;
13373 
13374             expVal += OString( "-" );
13375             expVal += OString( "100" );
13376             aStrBuf.append( input, radix );
13377 
13378             CPPUNIT_ASSERT_MESSAGE
13379             (
13380                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
13381                 aStrBuf.getStr()== expVal &&
13382                     aStrBuf.getLength() == expVal.getLength()
13383             );
13384 
13385         }
13386 
append_043()13387         void append_043()
13388         {
13389             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
13390             OString                expVal( aStrBuf.getStr() );
13391             sal_Int64              input = -8;
13392             sal_Int16              radix = 2;
13393 
13394             expVal += OString( "-" );
13395             expVal += OString( "1000" );
13396             aStrBuf.append( input, radix );
13397 
13398             CPPUNIT_ASSERT_MESSAGE
13399             (
13400                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
13401                 aStrBuf.getStr()== expVal &&
13402                     aStrBuf.getLength() == expVal.getLength()
13403             );
13404 
13405         }
13406 
append_044()13407         void append_044()
13408         {
13409             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
13410             OString                expVal( aStrBuf.getStr() );
13411             sal_Int64              input = -15;
13412             sal_Int16              radix = 2;
13413 
13414             expVal += OString( "-" );
13415             expVal += OString( "1111" );
13416             aStrBuf.append( input, radix );
13417 
13418             CPPUNIT_ASSERT_MESSAGE
13419             (
13420                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
13421                 aStrBuf.getStr()== expVal &&
13422                     aStrBuf.getLength() == expVal.getLength()
13423             );
13424 
13425         }
13426 
append_045()13427         void append_045()
13428         {
13429             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
13430             OString                expVal( aStrBuf.getStr() );
13431             sal_Int64              input = -0;
13432             sal_Int16              radix = 8;
13433 
13434             expVal += OString( "0" );
13435             aStrBuf.append( input, radix );
13436 
13437             CPPUNIT_ASSERT_MESSAGE
13438             (
13439                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
13440                 aStrBuf.getStr()== expVal &&
13441                     aStrBuf.getLength() == expVal.getLength()
13442             );
13443 
13444         }
13445 
append_046()13446         void append_046()
13447         {
13448             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
13449             OString                expVal( aStrBuf.getStr() );
13450             sal_Int64              input = -4;
13451             sal_Int16              radix = 8;
13452 
13453             expVal += OString( "-" );
13454             expVal += OString( "4" );
13455             aStrBuf.append( input, radix );
13456 
13457             CPPUNIT_ASSERT_MESSAGE
13458             (
13459                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
13460                 aStrBuf.getStr()== expVal &&
13461                     aStrBuf.getLength() == expVal.getLength()
13462             );
13463 
13464         }
13465 
append_047()13466         void append_047()
13467         {
13468             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
13469             OString                expVal( aStrBuf.getStr() );
13470             sal_Int64              input = -8;
13471             sal_Int16              radix = 8;
13472 
13473             expVal += OString( "-" );
13474             expVal += OString( "10" );
13475             aStrBuf.append( input, radix );
13476 
13477             CPPUNIT_ASSERT_MESSAGE
13478             (
13479                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
13480                 aStrBuf.getStr()== expVal &&
13481                     aStrBuf.getLength() == expVal.getLength()
13482             );
13483 
13484         }
13485 
append_048()13486         void append_048()
13487         {
13488             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
13489             OString                expVal( aStrBuf.getStr() );
13490             sal_Int64              input = -15;
13491             sal_Int16              radix = 8;
13492 
13493             expVal += OString( "-" );
13494             expVal += OString( "17" );
13495             aStrBuf.append( input, radix );
13496 
13497             CPPUNIT_ASSERT_MESSAGE
13498             (
13499                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
13500                 aStrBuf.getStr()== expVal &&
13501                     aStrBuf.getLength() == expVal.getLength()
13502             );
13503 
13504         }
13505 
append_049()13506         void append_049()
13507         {
13508             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
13509             OString                expVal( aStrBuf.getStr() );
13510             sal_Int64              input = -0;
13511             sal_Int16              radix = 10;
13512 
13513             expVal += OString( "0" );
13514             aStrBuf.append( input, radix );
13515 
13516             CPPUNIT_ASSERT_MESSAGE
13517             (
13518                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
13519                 aStrBuf.getStr()== expVal &&
13520                     aStrBuf.getLength() == expVal.getLength()
13521             );
13522 
13523         }
13524 
append_050()13525         void append_050()
13526         {
13527             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
13528             OString                expVal( aStrBuf.getStr() );
13529             sal_Int64              input = -4;
13530             sal_Int16              radix = 10;
13531 
13532             expVal += OString( "-" );
13533             expVal += OString( "4" );
13534             aStrBuf.append( input, radix );
13535 
13536             CPPUNIT_ASSERT_MESSAGE
13537             (
13538                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
13539                 aStrBuf.getStr()== expVal &&
13540                     aStrBuf.getLength() == expVal.getLength()
13541             );
13542 
13543         }
13544 
append_051()13545         void append_051()
13546         {
13547             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
13548             OString                expVal( aStrBuf.getStr() );
13549             sal_Int64              input = -8;
13550             sal_Int16              radix = 10;
13551 
13552             expVal += OString( "-" );
13553             expVal += OString( "8" );
13554             aStrBuf.append( input, radix );
13555 
13556             CPPUNIT_ASSERT_MESSAGE
13557             (
13558                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
13559                 aStrBuf.getStr()== expVal &&
13560                     aStrBuf.getLength() == expVal.getLength()
13561             );
13562 
13563         }
13564 
append_052()13565         void append_052()
13566         {
13567             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
13568             OString                expVal( aStrBuf.getStr() );
13569             sal_Int64              input = -15;
13570             sal_Int16              radix = 10;
13571 
13572             expVal += OString( "-" );
13573             expVal += OString( "15" );
13574             aStrBuf.append( input, radix );
13575 
13576             CPPUNIT_ASSERT_MESSAGE
13577             (
13578                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
13579                 aStrBuf.getStr()== expVal &&
13580                     aStrBuf.getLength() == expVal.getLength()
13581             );
13582 
13583         }
13584 
append_053()13585         void append_053()
13586         {
13587             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
13588             OString                expVal( aStrBuf.getStr() );
13589             sal_Int64              input = -0;
13590             sal_Int16              radix = 16;
13591 
13592             expVal += OString( "0" );
13593             aStrBuf.append( input, radix );
13594 
13595             CPPUNIT_ASSERT_MESSAGE
13596             (
13597                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
13598                 aStrBuf.getStr()== expVal &&
13599                     aStrBuf.getLength() == expVal.getLength()
13600             );
13601 
13602         }
13603 
append_054()13604         void append_054()
13605         {
13606             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
13607             OString                expVal( aStrBuf.getStr() );
13608             sal_Int64              input = -4;
13609             sal_Int16              radix = 16;
13610 
13611             expVal += OString( "-" );
13612             expVal += OString( "4" );
13613             aStrBuf.append( input, radix );
13614 
13615             CPPUNIT_ASSERT_MESSAGE
13616             (
13617                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
13618                 aStrBuf.getStr()== expVal &&
13619                     aStrBuf.getLength() == expVal.getLength()
13620             );
13621 
13622         }
13623 
append_055()13624         void append_055()
13625         {
13626             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
13627             OString                expVal( aStrBuf.getStr() );
13628             sal_Int64              input = -8;
13629             sal_Int16              radix = 16;
13630 
13631             expVal += OString( "-" );
13632             expVal += OString( "8" );
13633             aStrBuf.append( input, radix );
13634 
13635             CPPUNIT_ASSERT_MESSAGE
13636             (
13637                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
13638                 aStrBuf.getStr()== expVal &&
13639                     aStrBuf.getLength() == expVal.getLength()
13640             );
13641 
13642         }
13643 
append_056()13644         void append_056()
13645         {
13646             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
13647             OString                expVal( aStrBuf.getStr() );
13648             sal_Int64              input = -15;
13649             sal_Int16              radix = 16;
13650 
13651             expVal += OString( "-" );
13652             expVal += OString( "f" );
13653             aStrBuf.append( input, radix );
13654 
13655             CPPUNIT_ASSERT_MESSAGE
13656             (
13657                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
13658                 aStrBuf.getStr()== expVal &&
13659                     aStrBuf.getLength() == expVal.getLength()
13660             );
13661 
13662         }
13663 
append_057()13664         void append_057()
13665         {
13666             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
13667             OString                expVal( aStrBuf.getStr() );
13668             sal_Int64              input = -0;
13669             sal_Int16              radix = 36;
13670 
13671             expVal += OString( "0" );
13672             aStrBuf.append( input, radix );
13673 
13674             CPPUNIT_ASSERT_MESSAGE
13675             (
13676                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
13677                 aStrBuf.getStr()== expVal &&
13678                     aStrBuf.getLength() == expVal.getLength()
13679             );
13680 
13681         }
13682 
append_058()13683         void append_058()
13684         {
13685             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
13686             OString                expVal( aStrBuf.getStr() );
13687             sal_Int64              input = -4;
13688             sal_Int16              radix = 36;
13689 
13690             expVal += OString( "-" );
13691             expVal += OString( "4" );
13692             aStrBuf.append( input, radix );
13693 
13694             CPPUNIT_ASSERT_MESSAGE
13695             (
13696                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
13697                 aStrBuf.getStr()== expVal &&
13698                     aStrBuf.getLength() == expVal.getLength()
13699             );
13700 
13701         }
13702 
append_059()13703         void append_059()
13704         {
13705             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
13706             OString                expVal( aStrBuf.getStr() );
13707             sal_Int64              input = -8;
13708             sal_Int16              radix = 36;
13709 
13710             expVal += OString( "-" );
13711             expVal += OString( "8" );
13712             aStrBuf.append( input, radix );
13713 
13714             CPPUNIT_ASSERT_MESSAGE
13715             (
13716                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
13717                 aStrBuf.getStr()== expVal &&
13718                     aStrBuf.getLength() == expVal.getLength()
13719             );
13720 
13721         }
13722 
append_060()13723         void append_060()
13724         {
13725             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
13726             OString                expVal( aStrBuf.getStr() );
13727             sal_Int64              input = -35;
13728             sal_Int16              radix = 36;
13729 
13730             expVal += OString( "-" );
13731             expVal += OString( "z" );
13732             aStrBuf.append( input, radix );
13733 
13734             CPPUNIT_ASSERT_MESSAGE
13735             (
13736                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
13737                 aStrBuf.getStr()== expVal &&
13738                     aStrBuf.getLength() == expVal.getLength()
13739             );
13740 
13741         }
13742 
append_061()13743         void append_061()
13744         {
13745             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
13746             OString                expVal( aStrBuf.getStr() );
13747             sal_Int64              input = -0;
13748             sal_Int16              radix = 2;
13749 
13750             expVal += OString( "0" );
13751             aStrBuf.append( input, radix );
13752 
13753             CPPUNIT_ASSERT_MESSAGE
13754             (
13755                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
13756                 aStrBuf.getStr()== expVal &&
13757                     aStrBuf.getLength() == expVal.getLength()
13758             );
13759 
13760         }
13761 
append_062()13762         void append_062()
13763         {
13764             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
13765             OString                expVal( aStrBuf.getStr() );
13766             sal_Int64              input = -4;
13767             sal_Int16              radix = 2;
13768 
13769             expVal += OString( "-" );
13770             expVal += OString( "100" );
13771             aStrBuf.append( input, radix );
13772 
13773             CPPUNIT_ASSERT_MESSAGE
13774             (
13775                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
13776                 aStrBuf.getStr()== expVal &&
13777                     aStrBuf.getLength() == expVal.getLength()
13778             );
13779 
13780         }
13781 
append_063()13782         void append_063()
13783         {
13784             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
13785             OString                expVal( aStrBuf.getStr() );
13786             sal_Int64              input = -8;
13787             sal_Int16              radix = 2;
13788 
13789             expVal += OString( "-" );
13790             expVal += OString( "1000" );
13791             aStrBuf.append( input, radix );
13792 
13793             CPPUNIT_ASSERT_MESSAGE
13794             (
13795                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
13796                 aStrBuf.getStr()== expVal &&
13797                     aStrBuf.getLength() == expVal.getLength()
13798             );
13799 
13800         }
13801 
append_064()13802         void append_064()
13803         {
13804             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
13805             OString                expVal( aStrBuf.getStr() );
13806             sal_Int64              input = -15;
13807             sal_Int16              radix = 2;
13808 
13809             expVal += OString( "-" );
13810             expVal += OString( "1111" );
13811             aStrBuf.append( input, radix );
13812 
13813             CPPUNIT_ASSERT_MESSAGE
13814             (
13815                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
13816                 aStrBuf.getStr()== expVal &&
13817                     aStrBuf.getLength() == expVal.getLength()
13818             );
13819 
13820         }
13821 
append_065()13822         void append_065()
13823         {
13824             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
13825             OString                expVal( aStrBuf.getStr() );
13826             sal_Int64              input = -0;
13827             sal_Int16              radix = 8;
13828 
13829             expVal += OString( "0" );
13830             aStrBuf.append( input, radix );
13831 
13832             CPPUNIT_ASSERT_MESSAGE
13833             (
13834                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
13835                 aStrBuf.getStr()== expVal &&
13836                     aStrBuf.getLength() == expVal.getLength()
13837             );
13838 
13839         }
13840 
append_066()13841         void append_066()
13842         {
13843             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
13844             OString                expVal( aStrBuf.getStr() );
13845             sal_Int64              input = -4;
13846             sal_Int16              radix = 8;
13847 
13848             expVal += OString( "-" );
13849             expVal += OString( "4" );
13850             aStrBuf.append( input, radix );
13851 
13852             CPPUNIT_ASSERT_MESSAGE
13853             (
13854                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
13855                 aStrBuf.getStr()== expVal &&
13856                     aStrBuf.getLength() == expVal.getLength()
13857             );
13858 
13859         }
13860 
append_067()13861         void append_067()
13862         {
13863             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
13864             OString                expVal( aStrBuf.getStr() );
13865             sal_Int64              input = -8;
13866             sal_Int16              radix = 8;
13867 
13868             expVal += OString( "-" );
13869             expVal += OString( "10" );
13870             aStrBuf.append( input, radix );
13871 
13872             CPPUNIT_ASSERT_MESSAGE
13873             (
13874                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
13875                 aStrBuf.getStr()== expVal &&
13876                     aStrBuf.getLength() == expVal.getLength()
13877             );
13878 
13879         }
13880 
append_068()13881         void append_068()
13882         {
13883             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
13884             OString                expVal( aStrBuf.getStr() );
13885             sal_Int64              input = -15;
13886             sal_Int16              radix = 8;
13887 
13888             expVal += OString( "-" );
13889             expVal += OString( "17" );
13890             aStrBuf.append( input, radix );
13891 
13892             CPPUNIT_ASSERT_MESSAGE
13893             (
13894                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
13895                 aStrBuf.getStr()== expVal &&
13896                     aStrBuf.getLength() == expVal.getLength()
13897             );
13898 
13899         }
13900 
append_069()13901         void append_069()
13902         {
13903             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
13904             OString                expVal( aStrBuf.getStr() );
13905             sal_Int64              input = -0;
13906             sal_Int16              radix = 10;
13907 
13908             expVal += OString( "0" );
13909             aStrBuf.append( input, radix );
13910 
13911             CPPUNIT_ASSERT_MESSAGE
13912             (
13913                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
13914                 aStrBuf.getStr()== expVal &&
13915                     aStrBuf.getLength() == expVal.getLength()
13916             );
13917 
13918         }
13919 
append_070()13920         void append_070()
13921         {
13922             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
13923             OString                expVal( aStrBuf.getStr() );
13924             sal_Int64              input = -4;
13925             sal_Int16              radix = 10;
13926 
13927             expVal += OString( "-" );
13928             expVal += OString( "4" );
13929             aStrBuf.append( input, radix );
13930 
13931             CPPUNIT_ASSERT_MESSAGE
13932             (
13933                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
13934                 aStrBuf.getStr()== expVal &&
13935                     aStrBuf.getLength() == expVal.getLength()
13936             );
13937 
13938         }
13939 
append_071()13940         void append_071()
13941         {
13942             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
13943             OString                expVal( aStrBuf.getStr() );
13944             sal_Int64              input = -8;
13945             sal_Int16              radix = 10;
13946 
13947             expVal += OString( "-" );
13948             expVal += OString( "8" );
13949             aStrBuf.append( input, radix );
13950 
13951             CPPUNIT_ASSERT_MESSAGE
13952             (
13953                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
13954                 aStrBuf.getStr()== expVal &&
13955                     aStrBuf.getLength() == expVal.getLength()
13956             );
13957 
13958         }
13959 
append_072()13960         void append_072()
13961         {
13962             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
13963             OString                expVal( aStrBuf.getStr() );
13964             sal_Int64              input = -15;
13965             sal_Int16              radix = 10;
13966 
13967             expVal += OString( "-" );
13968             expVal += OString( "15" );
13969             aStrBuf.append( input, radix );
13970 
13971             CPPUNIT_ASSERT_MESSAGE
13972             (
13973                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
13974                 aStrBuf.getStr()== expVal &&
13975                     aStrBuf.getLength() == expVal.getLength()
13976             );
13977 
13978         }
13979 
append_073()13980         void append_073()
13981         {
13982             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
13983             OString                expVal( aStrBuf.getStr() );
13984             sal_Int64              input = -0;
13985             sal_Int16              radix = 16;
13986 
13987             expVal += OString( "0" );
13988             aStrBuf.append( input, radix );
13989 
13990             CPPUNIT_ASSERT_MESSAGE
13991             (
13992                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
13993                 aStrBuf.getStr()== expVal &&
13994                     aStrBuf.getLength() == expVal.getLength()
13995             );
13996 
13997         }
13998 
append_074()13999         void append_074()
14000         {
14001             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
14002             OString                expVal( aStrBuf.getStr() );
14003             sal_Int64              input = -4;
14004             sal_Int16              radix = 16;
14005 
14006             expVal += OString( "-" );
14007             expVal += OString( "4" );
14008             aStrBuf.append( input, radix );
14009 
14010             CPPUNIT_ASSERT_MESSAGE
14011             (
14012                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
14013                 aStrBuf.getStr()== expVal &&
14014                     aStrBuf.getLength() == expVal.getLength()
14015             );
14016 
14017         }
14018 
append_075()14019         void append_075()
14020         {
14021             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
14022             OString                expVal( aStrBuf.getStr() );
14023             sal_Int64              input = -8;
14024             sal_Int16              radix = 16;
14025 
14026             expVal += OString( "-" );
14027             expVal += OString( "8" );
14028             aStrBuf.append( input, radix );
14029 
14030             CPPUNIT_ASSERT_MESSAGE
14031             (
14032                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
14033                 aStrBuf.getStr()== expVal &&
14034                     aStrBuf.getLength() == expVal.getLength()
14035             );
14036 
14037         }
14038 
append_076()14039         void append_076()
14040         {
14041             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
14042             OString                expVal( aStrBuf.getStr() );
14043             sal_Int64              input = -15;
14044             sal_Int16              radix = 16;
14045 
14046             expVal += OString( "-" );
14047             expVal += OString( "f" );
14048             aStrBuf.append( input, radix );
14049 
14050             CPPUNIT_ASSERT_MESSAGE
14051             (
14052                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
14053                 aStrBuf.getStr()== expVal &&
14054                     aStrBuf.getLength() == expVal.getLength()
14055             );
14056 
14057         }
14058 
append_077()14059         void append_077()
14060         {
14061             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
14062             OString                expVal( aStrBuf.getStr() );
14063             sal_Int64              input = -0;
14064             sal_Int16              radix = 36;
14065 
14066             expVal += OString( "0" );
14067             aStrBuf.append( input, radix );
14068 
14069             CPPUNIT_ASSERT_MESSAGE
14070             (
14071                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
14072                 aStrBuf.getStr()== expVal &&
14073                     aStrBuf.getLength() == expVal.getLength()
14074             );
14075 
14076         }
14077 
append_078()14078         void append_078()
14079         {
14080             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
14081             OString                expVal( aStrBuf.getStr() );
14082             sal_Int64              input = -4;
14083             sal_Int16              radix = 36;
14084 
14085             expVal += OString( "-" );
14086             expVal += OString( "4" );
14087             aStrBuf.append( input, radix );
14088 
14089             CPPUNIT_ASSERT_MESSAGE
14090             (
14091                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
14092                 aStrBuf.getStr()== expVal &&
14093                     aStrBuf.getLength() == expVal.getLength()
14094             );
14095 
14096         }
14097 
append_079()14098         void append_079()
14099         {
14100             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
14101             OString                expVal( aStrBuf.getStr() );
14102             sal_Int64              input = -8;
14103             sal_Int16              radix = 36;
14104 
14105             expVal += OString( "-" );
14106             expVal += OString( "8" );
14107             aStrBuf.append( input, radix );
14108 
14109             CPPUNIT_ASSERT_MESSAGE
14110             (
14111                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
14112                 aStrBuf.getStr()== expVal &&
14113                     aStrBuf.getLength() == expVal.getLength()
14114             );
14115 
14116         }
14117 
append_080()14118         void append_080()
14119         {
14120             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
14121             OString                expVal( aStrBuf.getStr() );
14122             sal_Int64              input = -35;
14123             sal_Int16              radix = 36;
14124 
14125             expVal += OString( "-" );
14126             expVal += OString( "z" );
14127             aStrBuf.append( input, radix );
14128 
14129             CPPUNIT_ASSERT_MESSAGE
14130             (
14131                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
14132                 aStrBuf.getStr()== expVal &&
14133                     aStrBuf.getLength() == expVal.getLength()
14134             );
14135 
14136         }
14137 
append_081()14138         void append_081()
14139         {
14140             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
14141             OString                expVal( aStrBuf.getStr() );
14142             sal_Int64              input = -0;
14143             sal_Int16              radix = 2;
14144 
14145             expVal += OString( "0" );
14146             aStrBuf.append( input, radix );
14147 
14148             CPPUNIT_ASSERT_MESSAGE
14149             (
14150                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
14151                 aStrBuf.getStr()== expVal &&
14152                     aStrBuf.getLength() == expVal.getLength()
14153             );
14154 
14155         }
14156 
append_082()14157         void append_082()
14158         {
14159             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
14160             OString                expVal( aStrBuf.getStr() );
14161             sal_Int64              input = -4;
14162             sal_Int16              radix = 2;
14163 
14164             expVal += OString( "-" );
14165             expVal += OString( "100" );
14166             aStrBuf.append( input, radix );
14167 
14168             CPPUNIT_ASSERT_MESSAGE
14169             (
14170                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
14171                 aStrBuf.getStr()== expVal &&
14172                     aStrBuf.getLength() == expVal.getLength()
14173             );
14174 
14175         }
14176 
append_083()14177         void append_083()
14178         {
14179             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
14180             OString                expVal( aStrBuf.getStr() );
14181             sal_Int64              input = -8;
14182             sal_Int16              radix = 2;
14183 
14184             expVal += OString( "-" );
14185             expVal += OString( "1000" );
14186             aStrBuf.append( input, radix );
14187 
14188             CPPUNIT_ASSERT_MESSAGE
14189             (
14190                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
14191                 aStrBuf.getStr()== expVal &&
14192                     aStrBuf.getLength() == expVal.getLength()
14193             );
14194 
14195         }
14196 
append_084()14197         void append_084()
14198         {
14199             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
14200             OString                expVal( aStrBuf.getStr() );
14201             sal_Int64              input = -15;
14202             sal_Int16              radix = 2;
14203 
14204             expVal += OString( "-" );
14205             expVal += OString( "1111" );
14206             aStrBuf.append( input, radix );
14207 
14208             CPPUNIT_ASSERT_MESSAGE
14209             (
14210                 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
14211                 aStrBuf.getStr()== expVal &&
14212                     aStrBuf.getLength() == expVal.getLength()
14213             );
14214 
14215         }
14216 
append_085()14217         void append_085()
14218         {
14219             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
14220             OString                expVal( aStrBuf.getStr() );
14221             sal_Int64              input = -0;
14222             sal_Int16              radix = 8;
14223 
14224             expVal += OString( "0" );
14225             aStrBuf.append( input, radix );
14226 
14227             CPPUNIT_ASSERT_MESSAGE
14228             (
14229                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
14230                 aStrBuf.getStr()== expVal &&
14231                     aStrBuf.getLength() == expVal.getLength()
14232             );
14233 
14234         }
14235 
append_086()14236         void append_086()
14237         {
14238             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
14239             OString                expVal( aStrBuf.getStr() );
14240             sal_Int64              input = -4;
14241             sal_Int16              radix = 8;
14242 
14243             expVal += OString( "-" );
14244             expVal += OString( "4" );
14245             aStrBuf.append( input, radix );
14246 
14247             CPPUNIT_ASSERT_MESSAGE
14248             (
14249                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
14250                 aStrBuf.getStr()== expVal &&
14251                     aStrBuf.getLength() == expVal.getLength()
14252             );
14253 
14254         }
14255 
append_087()14256         void append_087()
14257         {
14258             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
14259             OString                expVal( aStrBuf.getStr() );
14260             sal_Int64              input = -8;
14261             sal_Int16              radix = 8;
14262 
14263             expVal += OString( "-" );
14264             expVal += OString( "10" );
14265             aStrBuf.append( input, radix );
14266 
14267             CPPUNIT_ASSERT_MESSAGE
14268             (
14269                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
14270                 aStrBuf.getStr()== expVal &&
14271                     aStrBuf.getLength() == expVal.getLength()
14272             );
14273 
14274         }
14275 
append_088()14276         void append_088()
14277         {
14278             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
14279             OString                expVal( aStrBuf.getStr() );
14280             sal_Int64              input = -15;
14281             sal_Int16              radix = 8;
14282 
14283             expVal += OString( "-" );
14284             expVal += OString( "17" );
14285             aStrBuf.append( input, radix );
14286 
14287             CPPUNIT_ASSERT_MESSAGE
14288             (
14289                 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
14290                 aStrBuf.getStr()== expVal &&
14291                     aStrBuf.getLength() == expVal.getLength()
14292             );
14293 
14294         }
14295 
append_089()14296         void append_089()
14297         {
14298             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
14299             OString                expVal( aStrBuf.getStr() );
14300             sal_Int64              input = -0;
14301             sal_Int16              radix = 10;
14302 
14303             expVal += OString( "0" );
14304             aStrBuf.append( input, radix );
14305 
14306             CPPUNIT_ASSERT_MESSAGE
14307             (
14308                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
14309                 aStrBuf.getStr()== expVal &&
14310                     aStrBuf.getLength() == expVal.getLength()
14311             );
14312 
14313         }
14314 
append_090()14315         void append_090()
14316         {
14317             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
14318             OString                expVal( aStrBuf.getStr() );
14319             sal_Int64              input = -4;
14320             sal_Int16              radix = 10;
14321 
14322             expVal += OString( "-" );
14323             expVal += OString( "4" );
14324             aStrBuf.append( input, radix );
14325 
14326             CPPUNIT_ASSERT_MESSAGE
14327             (
14328                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
14329                 aStrBuf.getStr()== expVal &&
14330                     aStrBuf.getLength() == expVal.getLength()
14331             );
14332 
14333         }
14334 
append_091()14335         void append_091()
14336         {
14337             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
14338             OString                expVal( aStrBuf.getStr() );
14339             sal_Int64              input = -8;
14340             sal_Int16              radix = 10;
14341 
14342             expVal += OString( "-" );
14343             expVal += OString( "8" );
14344             aStrBuf.append( input, radix );
14345 
14346             CPPUNIT_ASSERT_MESSAGE
14347             (
14348                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
14349                 aStrBuf.getStr()== expVal &&
14350                     aStrBuf.getLength() == expVal.getLength()
14351             );
14352 
14353         }
14354 
append_092()14355         void append_092()
14356         {
14357             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
14358             OString                expVal( aStrBuf.getStr() );
14359             sal_Int64              input = -15;
14360             sal_Int16              radix = 10;
14361 
14362             expVal += OString( "-" );
14363             expVal += OString( "15" );
14364             aStrBuf.append( input, radix );
14365 
14366             CPPUNIT_ASSERT_MESSAGE
14367             (
14368                 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
14369                 aStrBuf.getStr()== expVal &&
14370                     aStrBuf.getLength() == expVal.getLength()
14371             );
14372 
14373         }
14374 
append_093()14375         void append_093()
14376         {
14377             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
14378             OString                expVal( aStrBuf.getStr() );
14379             sal_Int64              input = -0;
14380             sal_Int16              radix = 16;
14381 
14382             expVal += OString( "0" );
14383             aStrBuf.append( input, radix );
14384 
14385             CPPUNIT_ASSERT_MESSAGE
14386             (
14387                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
14388                 aStrBuf.getStr()== expVal &&
14389                     aStrBuf.getLength() == expVal.getLength()
14390             );
14391 
14392         }
14393 
append_094()14394         void append_094()
14395         {
14396             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
14397             OString                expVal( aStrBuf.getStr() );
14398             sal_Int64              input = -4;
14399             sal_Int16              radix = 16;
14400 
14401             expVal += OString( "-" );
14402             expVal += OString( "4" );
14403             aStrBuf.append( input, radix );
14404 
14405             CPPUNIT_ASSERT_MESSAGE
14406             (
14407                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
14408                 aStrBuf.getStr()== expVal &&
14409                     aStrBuf.getLength() == expVal.getLength()
14410             );
14411 
14412         }
14413 
append_095()14414         void append_095()
14415         {
14416             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
14417             OString                expVal( aStrBuf.getStr() );
14418             sal_Int64              input = -8;
14419             sal_Int16              radix = 16;
14420 
14421             expVal += OString( "-" );
14422             expVal += OString( "8" );
14423             aStrBuf.append( input, radix );
14424 
14425             CPPUNIT_ASSERT_MESSAGE
14426             (
14427                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
14428                 aStrBuf.getStr()== expVal &&
14429                     aStrBuf.getLength() == expVal.getLength()
14430             );
14431 
14432         }
14433 
append_096()14434         void append_096()
14435         {
14436             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
14437             OString                expVal( aStrBuf.getStr() );
14438             sal_Int64              input = -15;
14439             sal_Int16              radix = 16;
14440 
14441             expVal += OString( "-" );
14442             expVal += OString( "f" );
14443             aStrBuf.append( input, radix );
14444 
14445             CPPUNIT_ASSERT_MESSAGE
14446             (
14447                 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
14448                 aStrBuf.getStr()== expVal &&
14449                     aStrBuf.getLength() == expVal.getLength()
14450             );
14451 
14452         }
14453 
append_097()14454         void append_097()
14455         {
14456             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
14457             OString                expVal( aStrBuf.getStr() );
14458             sal_Int64              input = -0;
14459             sal_Int16              radix = 36;
14460 
14461             expVal += OString( "0" );
14462             aStrBuf.append( input, radix );
14463 
14464             CPPUNIT_ASSERT_MESSAGE
14465             (
14466                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
14467                 aStrBuf.getStr()== expVal &&
14468                     aStrBuf.getLength() == expVal.getLength()
14469             );
14470 
14471         }
14472 
append_098()14473         void append_098()
14474         {
14475             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
14476             OString                expVal( aStrBuf.getStr() );
14477             sal_Int64              input = -4;
14478             sal_Int16              radix = 36;
14479 
14480             expVal += OString( "-" );
14481             expVal += OString( "4" );
14482             aStrBuf.append( input, radix );
14483 
14484             CPPUNIT_ASSERT_MESSAGE
14485             (
14486                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
14487                 aStrBuf.getStr()== expVal &&
14488                     aStrBuf.getLength() == expVal.getLength()
14489             );
14490 
14491         }
14492 
append_099()14493         void append_099()
14494         {
14495             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
14496             OString                expVal( aStrBuf.getStr() );
14497             sal_Int64              input = -8;
14498             sal_Int16              radix = 36;
14499 
14500             expVal += OString( "-" );
14501             expVal += OString( "8" );
14502             aStrBuf.append( input, radix );
14503 
14504             CPPUNIT_ASSERT_MESSAGE
14505             (
14506                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
14507                 aStrBuf.getStr()== expVal &&
14508                     aStrBuf.getLength() == expVal.getLength()
14509             );
14510 
14511         }
14512 
append_100()14513         void append_100()
14514         {
14515             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
14516             OString                expVal( aStrBuf.getStr() );
14517             sal_Int64              input = -35;
14518             sal_Int16              radix = 36;
14519 
14520             expVal += OString( "-" );
14521             expVal += OString( "z" );
14522             aStrBuf.append( input, radix );
14523 
14524             CPPUNIT_ASSERT_MESSAGE
14525             (
14526                 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
14527                 aStrBuf.getStr()== expVal &&
14528                     aStrBuf.getLength() == expVal.getLength()
14529             );
14530 
14531         }
14532 
14533         CPPUNIT_TEST_SUITE( append_007_Int64_Negative );
14534         CPPUNIT_TEST( append_001 ); CPPUNIT_TEST( append_002 );
14535         CPPUNIT_TEST( append_003 ); CPPUNIT_TEST( append_004 );
14536         CPPUNIT_TEST( append_005 ); CPPUNIT_TEST( append_006 );
14537         CPPUNIT_TEST( append_007 ); CPPUNIT_TEST( append_008 );
14538         CPPUNIT_TEST( append_009 ); CPPUNIT_TEST( append_010 );
14539         CPPUNIT_TEST( append_011 ); CPPUNIT_TEST( append_012 );
14540         CPPUNIT_TEST( append_013 ); CPPUNIT_TEST( append_014 );
14541         CPPUNIT_TEST( append_015 ); CPPUNIT_TEST( append_016 );
14542         CPPUNIT_TEST( append_017 ); CPPUNIT_TEST( append_018 );
14543         CPPUNIT_TEST( append_019 ); CPPUNIT_TEST( append_020 );
14544         CPPUNIT_TEST( append_021 ); CPPUNIT_TEST( append_022 );
14545         CPPUNIT_TEST( append_023 ); CPPUNIT_TEST( append_024 );
14546         CPPUNIT_TEST( append_025 ); CPPUNIT_TEST( append_026 );
14547         CPPUNIT_TEST( append_027 ); CPPUNIT_TEST( append_028 );
14548         CPPUNIT_TEST( append_029 ); CPPUNIT_TEST( append_030 );
14549         CPPUNIT_TEST( append_031 ); CPPUNIT_TEST( append_032 );
14550         CPPUNIT_TEST( append_033 ); CPPUNIT_TEST( append_034 );
14551         CPPUNIT_TEST( append_035 ); CPPUNIT_TEST( append_036 );
14552         CPPUNIT_TEST( append_037 ); CPPUNIT_TEST( append_038 );
14553         CPPUNIT_TEST( append_039 ); CPPUNIT_TEST( append_040 );
14554         CPPUNIT_TEST( append_041 ); CPPUNIT_TEST( append_042 );
14555         CPPUNIT_TEST( append_043 ); CPPUNIT_TEST( append_044 );
14556         CPPUNIT_TEST( append_045 ); CPPUNIT_TEST( append_046 );
14557         CPPUNIT_TEST( append_047 ); CPPUNIT_TEST( append_048 );
14558         CPPUNIT_TEST( append_049 ); CPPUNIT_TEST( append_050 );
14559         CPPUNIT_TEST( append_051 ); CPPUNIT_TEST( append_052 );
14560         CPPUNIT_TEST( append_053 ); CPPUNIT_TEST( append_054 );
14561         CPPUNIT_TEST( append_055 ); CPPUNIT_TEST( append_056 );
14562         CPPUNIT_TEST( append_057 ); CPPUNIT_TEST( append_058 );
14563         CPPUNIT_TEST( append_059 ); CPPUNIT_TEST( append_060 );
14564         CPPUNIT_TEST( append_061 ); CPPUNIT_TEST( append_062 );
14565         CPPUNIT_TEST( append_063 ); CPPUNIT_TEST( append_064 );
14566         CPPUNIT_TEST( append_065 ); CPPUNIT_TEST( append_066 );
14567         CPPUNIT_TEST( append_067 ); CPPUNIT_TEST( append_068 );
14568         CPPUNIT_TEST( append_069 ); CPPUNIT_TEST( append_070 );
14569         CPPUNIT_TEST( append_071 ); CPPUNIT_TEST( append_072 );
14570         CPPUNIT_TEST( append_073 ); CPPUNIT_TEST( append_074 );
14571         CPPUNIT_TEST( append_075 ); CPPUNIT_TEST( append_076 );
14572         CPPUNIT_TEST( append_077 ); CPPUNIT_TEST( append_078 );
14573         CPPUNIT_TEST( append_079 ); CPPUNIT_TEST( append_080 );
14574         CPPUNIT_TEST( append_081 ); CPPUNIT_TEST( append_082 );
14575         CPPUNIT_TEST( append_083 ); CPPUNIT_TEST( append_084 );
14576         CPPUNIT_TEST( append_085 ); CPPUNIT_TEST( append_086 );
14577         CPPUNIT_TEST( append_087 ); CPPUNIT_TEST( append_088 );
14578         CPPUNIT_TEST( append_089 ); CPPUNIT_TEST( append_090 );
14579         CPPUNIT_TEST( append_091 ); CPPUNIT_TEST( append_092 );
14580         CPPUNIT_TEST( append_093 ); CPPUNIT_TEST( append_094 );
14581         CPPUNIT_TEST( append_095 ); CPPUNIT_TEST( append_096 );
14582         CPPUNIT_TEST( append_097 ); CPPUNIT_TEST( append_098 );
14583         CPPUNIT_TEST( append_099 ); CPPUNIT_TEST( append_100 );
14584         CPPUNIT_TEST_SUITE_END();
14585     };
14586 //------------------------------------------------------------------------
14587 // testing the method append( sal_Int64 i, sal_Int16 radix ) where radix = -5
14588 //------------------------------------------------------------------------
14589     class  append_007_Int64_WrongRadix : public CppUnit::TestFixture
14590     {
14591         OString* arrOUS[5];
14592         sal_Int64 intVal;
14593 
14594     public:
setUp()14595         void setUp()
14596         {
14597             arrOUS[0] = new OString( kTestStr7 );
14598             arrOUS[1] = new OString(  );
14599             arrOUS[2] = new OString( kTestStr25 );
14600             arrOUS[3] = new OString( "\0"  );
14601             arrOUS[4] = new OString( kTestStr28 );
14602             intVal = 11;
14603 
14604         }
14605 
tearDown()14606         void tearDown()
14607         {
14608             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
14609             delete arrOUS[3]; delete arrOUS[4];
14610         }
14611 
append_001()14612         void append_001()
14613         {
14614             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
14615             OString                expVal( kTestStr59 );
14616 
14617             aStrBuf.append( intVal, -5 );
14618 
14619             CPPUNIT_ASSERT_MESSAGE
14620             (
14621                 "Appends the WrongRadix to the string buffer arrOUS[0]",
14622                 sal_True
14623             );
14624 
14625         }
14626 
append_002()14627         void append_002()
14628         {
14629             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
14630             OString                expVal( kTestStr60 );
14631 
14632             aStrBuf.append( intVal, -5 );
14633 
14634             CPPUNIT_ASSERT_MESSAGE
14635             (
14636                 "Appends the WrongRadix to the string buffer arrOUS[1]",
14637                 sal_True
14638             );
14639 
14640         }
14641 
append_003()14642         void append_003()
14643         {
14644             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
14645             OString                expVal( kTestStr60 );
14646 
14647             aStrBuf.append( intVal, -5 );
14648 
14649             CPPUNIT_ASSERT_MESSAGE
14650             (
14651                 "Appends the WrongRadix to the string buffer arrOUS[2]",
14652                 sal_True
14653             );
14654 
14655         }
14656 
append_004()14657         void append_004()
14658         {
14659             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
14660             OString                expVal( kTestStr60 );
14661 
14662             aStrBuf.append( intVal, -5 );
14663 
14664             CPPUNIT_ASSERT_MESSAGE
14665             (
14666                 "Appends the WrongRadix to the string buffer arrOUS[3]",
14667                 sal_True
14668             );
14669 
14670         }
14671 
append_005()14672         void append_005()
14673         {
14674             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
14675             OString                expVal( kTestStr61 );
14676 
14677             aStrBuf.append( intVal, -5 );
14678 
14679             CPPUNIT_ASSERT_MESSAGE
14680             (
14681                 "Appends the WrongRadix to the string buffer arrOUS[4]",
14682                 sal_True
14683             );
14684 
14685         }
14686 #ifdef WITH_CORE
append_006()14687         void append_006()
14688         {
14689             ::rtl::OStringBuffer   aStrBuf( kSInt64Max );
14690             OString                expVal( kTestStr60 );
14691 
14692             aStrBuf.append( intVal, -5 );
14693 
14694             CPPUNIT_ASSERT_MESSAGE
14695             (
14696                 "Appends the WrongRadix to the string buffer(with INT_MAX)",
14697                 sal_True
14698             );
14699 
14700         }
14701 #endif
14702 
14703         CPPUNIT_TEST_SUITE( append_007_Int64_WrongRadix );
14704         CPPUNIT_TEST( append_001 );
14705         CPPUNIT_TEST( append_002 );
14706         CPPUNIT_TEST( append_003 );
14707         CPPUNIT_TEST( append_004 );
14708         CPPUNIT_TEST( append_005 );
14709 #ifdef WITH_CORE
14710         CPPUNIT_TEST( append_006 );
14711 #endif
14712         CPPUNIT_TEST_SUITE_END();
14713     };
14714 //------------------------------------------------------------------------
14715     class  append_007_Int64_defaultParam : public CppUnit::TestFixture
14716     {
14717         OString* arrOUS[5];
14718 
14719     public:
setUp()14720         void setUp()
14721         {
14722             arrOUS[0] = new OString( kTestStr7 );
14723             arrOUS[1] = new OString(  );
14724             arrOUS[2] = new OString( kTestStr25 );
14725             arrOUS[3] = new OString( "\0"  );
14726             arrOUS[4] = new OString( kTestStr28 );
14727 
14728         }
14729 
tearDown()14730         void tearDown()
14731         {
14732             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
14733             delete arrOUS[3]; delete arrOUS[4];
14734         }
14735 
append_001()14736         void append_001()
14737         {
14738             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
14739             OString                expVal( kTestStr59 );
14740             sal_Int64              input = 11;
14741 
14742             aStrBuf.append( input );
14743 
14744             CPPUNIT_ASSERT_MESSAGE
14745             (
14746                 "input Int64 11 and return OStringBuffer[0]+11",
14747                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
14748             );
14749 
14750         }
14751 
append_002()14752         void append_002()
14753         {
14754             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
14755             OString                expVal( kTestStr62 );
14756             sal_Int64              input = 0;
14757 
14758             aStrBuf.append( input );
14759 
14760             CPPUNIT_ASSERT_MESSAGE
14761             (
14762                 "input Int64 0 and return OStringBuffer[0]+0",
14763                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
14764             );
14765 
14766         }
14767 
append_003()14768         void append_003()
14769         {
14770             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
14771             OString                expVal( kTestStr63 );
14772             sal_Int64              input = -11;
14773 
14774             aStrBuf.append( input );
14775 
14776             CPPUNIT_ASSERT_MESSAGE
14777             (
14778                 "input Int64 -11 and return OStringBuffer[0]+(-11)",
14779                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
14780             );
14781 
14782         }
14783 
append_004()14784         void append_004()
14785         {
14786             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
14787             OString                expVal( kTestStr116 );
14788             sal_Int64              input = SAL_CONST_INT64(9223372036854775807);
14789             aStrBuf.append( input );
14790 
14791             CPPUNIT_ASSERT_MESSAGE
14792             (
14793                 "input Int64 9223372036854775807 and return OStringBuffer[0]+9223372036854775807",
14794                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
14795             );
14796 
14797         }
14798 
append_005()14799         void append_005()
14800         {
14801             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
14802             OString                expVal( kTestStr117 );
14803             sal_Int64              input = SAL_MIN_INT64/*-9223372036854775808*/; // LLA: this is not the same :-( kNonSInt64Max;
14804 
14805             aStrBuf.append( input );
14806 
14807             sal_Bool bRes = expVal.equals( aStrBuf.getStr() );
14808             CPPUNIT_ASSERT_MESSAGE
14809             (
14810                 "input Int64 -9223372036854775808 and return OStringBuffer[0]+(-9223372036854775808)",
14811                 bRes && aStrBuf.getLength() == expVal.getLength()
14812             );
14813 
14814         }
14815 
append_006()14816         void append_006()
14817         {
14818             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
14819             OString                expVal( kTestStr60 );
14820             sal_Int64              input = 11;
14821 
14822             aStrBuf.append( input );
14823 
14824             CPPUNIT_ASSERT_MESSAGE
14825             (
14826                 "input Int64 11 and return OStringBuffer[1]+11",
14827                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
14828             );
14829 
14830         }
14831 
append_007()14832         void append_007()
14833         {
14834             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
14835             OString                expVal( kTestStr66 );
14836             sal_Int64              input = 0;
14837 
14838             aStrBuf.append( input );
14839 
14840             CPPUNIT_ASSERT_MESSAGE
14841             (
14842                 "input Int64 0 and return OStringBuffer[1]+0",
14843                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
14844             );
14845 
14846         }
14847 
append_008()14848         void append_008()
14849         {
14850             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
14851             OString                expVal( kTestStr67 );
14852             sal_Int64              input = -11;
14853 
14854             aStrBuf.append( input );
14855 
14856             CPPUNIT_ASSERT_MESSAGE
14857             (
14858                 "input Int64 -11 and return OStringBuffer[1]+(-11)",
14859                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
14860             );
14861 
14862         }
14863 
append_009()14864         void append_009()
14865         {
14866             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
14867             OString                expVal( kTestStr118 );
14868             sal_Int64              input = SAL_CONST_INT64(9223372036854775807);
14869             aStrBuf.append( input );
14870 
14871             CPPUNIT_ASSERT_MESSAGE
14872             (
14873                 "input Int64 9223372036854775807 and return OStringBuffer[1]+9223372036854775807",
14874                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
14875             );
14876 
14877         }
14878 
append_010()14879         void append_010()
14880         {
14881             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
14882             OString                expVal( kTestStr119 );
14883             sal_Int64              input = SAL_MIN_INT64; // LLA: this is not the same :-( kNonSInt64Max;
14884 
14885             aStrBuf.append( input );
14886 
14887             CPPUNIT_ASSERT_MESSAGE
14888             (
14889                 "input Int64 -9223372036854775808 and return OStringBuffer[1]+(-9223372036854775808)",
14890                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
14891             );
14892 
14893         }
14894 
append_011()14895         void append_011()
14896         {
14897             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
14898             OString                expVal( kTestStr60 );
14899             sal_Int64              input = 11;
14900 
14901             aStrBuf.append( input );
14902 
14903             CPPUNIT_ASSERT_MESSAGE
14904             (
14905                 "input Int64 11 and return OStringBuffer[2]+11",
14906                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
14907             );
14908 
14909         }
14910 
append_012()14911         void append_012()
14912         {
14913             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
14914             OString                expVal( kTestStr66 );
14915             sal_Int64              input = 0;
14916 
14917             aStrBuf.append( input );
14918 
14919             CPPUNIT_ASSERT_MESSAGE
14920             (
14921                 "input Int64 0 and return OUStringBuffer[2]+0",
14922                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
14923             );
14924 
14925         }
14926 
append_013()14927         void append_013()
14928         {
14929             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
14930             OString                expVal( kTestStr67 );
14931             sal_Int64              input = -11;
14932 
14933             aStrBuf.append( input );
14934 
14935             CPPUNIT_ASSERT_MESSAGE
14936             (
14937                 "input Int64 -11 and return OUStringBuffer[2]+(-11)",
14938                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
14939             );
14940 
14941         }
14942 
append_014()14943         void append_014()
14944         {
14945             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
14946             OString                expVal( kTestStr118 );
14947             sal_Int64              input = SAL_CONST_INT64(9223372036854775807);
14948             aStrBuf.append( input );
14949 
14950             CPPUNIT_ASSERT_MESSAGE
14951             (
14952                 "input Int64 9223372036854775807 and return OStringBuffer[2]+9223372036854775807",
14953                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
14954             );
14955 
14956         }
14957 
append_015()14958         void append_015()
14959         {
14960             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
14961             OString                expVal( kTestStr119 );
14962             sal_Int64              input = SAL_MIN_INT64; // LLA: this is not the same :-( kNonSInt64Max;
14963 
14964             aStrBuf.append( input );
14965 
14966             CPPUNIT_ASSERT_MESSAGE
14967             (
14968                 "input Int64 -9223372036854775808 and return OStringBuffer[2]+(-9223372036854775808)",
14969                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
14970             );
14971 
14972         }
14973 
append_016()14974         void append_016()
14975         {
14976             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
14977             OString                expVal( kTestStr60 );
14978             sal_Int64              input = 11;
14979 
14980             aStrBuf.append( input );
14981 
14982             CPPUNIT_ASSERT_MESSAGE
14983             (
14984                 "input Int64 11 and return OStringBuffer[3]+11",
14985                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
14986             );
14987 
14988         }
14989 
append_017()14990         void append_017()
14991         {
14992             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
14993             OString                expVal( kTestStr66 );
14994             sal_Int64              input = 0;
14995 
14996             aStrBuf.append( input );
14997 
14998             CPPUNIT_ASSERT_MESSAGE
14999             (
15000                 "input Int64 0 and return OStringBuffer[3]+0",
15001                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
15002             );
15003 
15004         }
15005 
append_018()15006         void append_018()
15007         {
15008             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
15009             OString                expVal( kTestStr67 );
15010             sal_Int64              input = -11;
15011 
15012             aStrBuf.append( input );
15013 
15014             CPPUNIT_ASSERT_MESSAGE
15015             (
15016                 "input Int64 -11 and return OStringBuffer[3]+(-11)",
15017                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
15018             );
15019 
15020         }
15021 
append_019()15022         void append_019()
15023         {
15024             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
15025             OString                expVal( kTestStr118 );
15026             sal_Int64              input = SAL_CONST_INT64(9223372036854775807);
15027             aStrBuf.append( input );
15028 
15029             CPPUNIT_ASSERT_MESSAGE
15030             (
15031                 "input Int64 9223372036854775807 and return OStringBuffer[3]+9223372036854775807",
15032                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
15033             );
15034 
15035         }
15036 
append_020()15037         void append_020()
15038         {
15039             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
15040             OString                expVal( kTestStr119 );
15041             sal_Int64              input = SAL_MIN_INT64; // LLA: this is not the same :-( kNonSInt64Max;
15042 
15043             aStrBuf.append( input );
15044 
15045             CPPUNIT_ASSERT_MESSAGE
15046             (
15047                 "input Int64 -9223372036854775808 and return OStringBuffer[3]+(-9223372036854775808)",
15048                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
15049             );
15050 
15051         }
15052 
append_021()15053         void append_021()
15054         {
15055             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
15056             OString                expVal( kTestStr61 );
15057             sal_Int64              input = 11;
15058 
15059             aStrBuf.append( input );
15060 
15061             CPPUNIT_ASSERT_MESSAGE
15062             (
15063                 "input Int64 11 and return OStringBuffer[4]+11",
15064                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
15065             );
15066 
15067         }
15068 
append_022()15069         void append_022()
15070         {
15071             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
15072             OString                expVal( kTestStr70 );
15073             sal_Int64              input = 0;
15074 
15075             aStrBuf.append( input );
15076 
15077             CPPUNIT_ASSERT_MESSAGE
15078             (
15079                 "input Int64 0 and return OStringBuffer[4]+0",
15080                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
15081             );
15082 
15083         }
15084 
append_023()15085         void append_023()
15086         {
15087             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
15088             OString                expVal( kTestStr71 );
15089             sal_Int64              input = -11;
15090 
15091             aStrBuf.append( input );
15092 
15093             CPPUNIT_ASSERT_MESSAGE
15094             (
15095                 "input Int64 -11 and return OStringBuffer[4]+(-11)",
15096                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
15097             );
15098 
15099         }
15100 
append_024()15101         void append_024()
15102         {
15103             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
15104             OString                expVal( kTestStr120 );
15105             sal_Int64              input = SAL_CONST_INT64(9223372036854775807);
15106             aStrBuf.append( input );
15107 
15108             CPPUNIT_ASSERT_MESSAGE
15109             (
15110                 "input Int64 9223372036854775807 and return OStringBuffer[4]+9223372036854775807",
15111                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
15112             );
15113 
15114         }
15115 
append_025()15116         void append_025()
15117         {
15118             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
15119             OString                expVal( kTestStr121 );
15120             sal_Int64              input = SAL_MIN_INT64; // LLA: this is not the same :-( kNonSInt64Max;
15121 
15122             aStrBuf.append( input );
15123 
15124             CPPUNIT_ASSERT_MESSAGE
15125             (
15126                 "input Int64 -9223372036854775808 and return OStringBuffer[4]+(-9223372036854775808)",
15127                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
15128             );
15129 
15130         }
15131 #ifdef WITH_CORE
append_026()15132         void append_026()
15133         {
15134             ::rtl::OStringBuffer   aStrBuf( kSInt64Max );
15135             OString                expVal( kTestStr60 );
15136             sal_Int64              input = 11;
15137 
15138             aStrBuf.append( input );
15139 
15140             CPPUNIT_ASSERT_MESSAGE
15141             (
15142                 "input Int64 11 and return OStringBuffer(kSInt64Max)+11",
15143                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
15144             );
15145 
15146         }
15147 
append_027()15148         void append_027()
15149         {
15150             ::rtl::OStringBuffer   aStrBuf( kSInt64Max );
15151             OString                expVal( kTestStr66 );
15152             sal_Int64              input = 0;
15153 
15154             aStrBuf.append( input );
15155 
15156             CPPUNIT_ASSERT_MESSAGE
15157             (
15158                 "input Int64 0 and return OStringBuffer(kSInt64Max)+0",
15159                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
15160             );
15161 
15162         }
15163 
append_028()15164         void append_028()
15165         {
15166             ::rtl::OStringBuffer   aStrBuf( kSInt64Max );
15167             OString                expVal( kTestStr67 );
15168             sal_Int64              input = -11;
15169 
15170             aStrBuf.append( input );
15171 
15172             CPPUNIT_ASSERT_MESSAGE
15173             (
15174                 "input Int64 -11 and return OStringBuffer(kSInt64Max)+(-11)",
15175                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
15176             );
15177 
15178         }
15179 
append_029()15180         void append_029()
15181         {
15182             ::rtl::OStringBuffer   aStrBuf( kSInt64Max );
15183             OString                expVal( kTestStr118 );
15184             sal_Int64              input = 9223372036854775807;
15185 
15186             aStrBuf.append( input );
15187 
15188             CPPUNIT_ASSERT_MESSAGE
15189             (
15190                 "input Int64 9223372036854775807 and return OStringBuffer(kSInt64Max)+9223372036854775807",
15191                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
15192             );
15193 
15194         }
15195 
append_030()15196         void append_030()
15197         {
15198             ::rtl::OStringBuffer   aStrBuf( kSInt64Max );
15199             OString                expVal( kTestStr119 );
15200             sal_Int64              input = SAL_MIN_INT64; // LLA: this is not the same :-( kNonSInt64Max;
15201 
15202             aStrBuf.append( input );
15203 
15204             CPPUNIT_ASSERT_MESSAGE
15205             (
15206                 "input Int64 -9223372036854775808 and return OStringBuffer(kSInt64Max)+(-9223372036854775808)",
15207                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
15208             );
15209 
15210         }
15211 #endif
15212 
15213         CPPUNIT_TEST_SUITE( append_007_Int64_defaultParam );
15214         CPPUNIT_TEST( append_001 );
15215         CPPUNIT_TEST( append_002 );
15216         CPPUNIT_TEST( append_003 );
15217         CPPUNIT_TEST( append_004 );
15218         CPPUNIT_TEST( append_005 );
15219         CPPUNIT_TEST( append_006 );
15220         CPPUNIT_TEST( append_007 );
15221         CPPUNIT_TEST( append_008 );
15222         CPPUNIT_TEST( append_009 );
15223         CPPUNIT_TEST( append_010 );
15224         CPPUNIT_TEST( append_011 );
15225         CPPUNIT_TEST( append_012 );
15226         CPPUNIT_TEST( append_013 );
15227         CPPUNIT_TEST( append_014 );
15228         CPPUNIT_TEST( append_015 );
15229         CPPUNIT_TEST( append_016 );
15230         CPPUNIT_TEST( append_017 );
15231         CPPUNIT_TEST( append_018 );
15232         CPPUNIT_TEST( append_019 );
15233         CPPUNIT_TEST( append_020 );
15234         CPPUNIT_TEST( append_021 );
15235         CPPUNIT_TEST( append_022 );
15236         CPPUNIT_TEST( append_023 );
15237         CPPUNIT_TEST( append_024 );
15238         CPPUNIT_TEST( append_025 );
15239 #ifdef WITH_CORE
15240         CPPUNIT_TEST( append_026 );
15241         CPPUNIT_TEST( append_027 );
15242         CPPUNIT_TEST( append_028 );
15243         CPPUNIT_TEST( append_029 );
15244         CPPUNIT_TEST( append_030 );
15245 #endif
15246         CPPUNIT_TEST_SUITE_END();
15247     };
15248 //------------------------------------------------------------------------
15249 // testing the method append( float f )
15250 //------------------------------------------------------------------------
15251     class checkfloat : public CppUnit::TestFixture
15252     {
15253     public:
checkIfStrBufContainAtPosTheFloat(rtl::OStringBuffer const & _sStrBuf,sal_Int32 _nLen,float _nFloat)15254         bool checkIfStrBufContainAtPosTheFloat(rtl::OStringBuffer const& _sStrBuf, sal_Int32 _nLen, float _nFloat)
15255             {
15256                 OString sFloatValue;
15257                 sFloatValue = rtl::OString::valueOf(_nFloat);
15258 
15259                 OString sBufferString(_sStrBuf.getStr());
15260                 sal_Int32 nPos = sBufferString.indexOf(sFloatValue);
15261                 if ( nPos >= 0 && nPos == _nLen)
15262                 {
15263                     return true;
15264                 }
15265                 return false;
15266             }
15267     };
15268 // -----------------------------------------------------------------------------
15269     class  append_008_float : public checkfloat
15270     {
15271         OString* arrOUS[5];
15272 
15273     public:
setUp()15274         void setUp()
15275         {
15276             arrOUS[0] = new OString( kTestStr7 );
15277             arrOUS[1] = new OString(  );
15278             arrOUS[2] = new OString( kTestStr25 );
15279             arrOUS[3] = new OString( "\0"  );
15280             arrOUS[4] = new OString( kTestStr28 );
15281 
15282         }
15283 
tearDown()15284         void tearDown()
15285         {
15286             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
15287             delete arrOUS[3]; delete arrOUS[4];
15288         }
15289 
append_001()15290         void append_001()
15291         {
15292             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
15293             // LLA: OString                expVal( kTestStr74 );
15294             float                  input = (float)atof("3.0");
15295 
15296             // LLA:
15297             // the complex problem is here, that a float value is not really what we write.
15298             // So a 3.0 could also be 3 or 3.0 or 3.0000001 or 2.9999999
15299             // this has to be checked.
15300             sal_Int32 nLen = aStrBuf.getLength();
15301             aStrBuf.append( input );
15302 
15303             CPPUNIT_ASSERT_MESSAGE
15304             (
15305                 "arrOUS[0] append 3.0",
15306                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15307             );
15308 
15309         }
15310 
append_002()15311         void append_002()
15312         {
15313             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
15314             // LLA: OString                expVal( kTestStr75 );
15315             float                  input = (float)atof("3.5");
15316 
15317             sal_Int32 nLen = aStrBuf.getLength();
15318             aStrBuf.append( input );
15319 
15320             CPPUNIT_ASSERT_MESSAGE
15321             (
15322                 "arrOUS[0] append 3.5",
15323                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15324             );
15325 
15326         }
15327 
append_003()15328         void append_003()
15329         {
15330             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
15331             // LLA: OString                expVal( kTestStr76 );
15332             float                  input = (float)atof("3.0625");
15333 
15334             sal_Int32 nLen = aStrBuf.getLength();
15335             aStrBuf.append( input );
15336 
15337             CPPUNIT_ASSERT_MESSAGE
15338             (
15339                 "arrOUS[0] append 3.0625",
15340                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15341             );
15342 
15343         }
15344 
append_004()15345         void append_004()
15346         {
15347             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
15348             // LLA: OString                expVal( kTestStr77 );
15349             float                  input = (float)atof("3.502525");
15350 
15351             sal_Int32 nLen = aStrBuf.getLength();
15352             aStrBuf.append( input );
15353 
15354             CPPUNIT_ASSERT_MESSAGE
15355             (
15356                 "arrOUS[0] append 3.502525",
15357                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15358             );
15359 
15360         }
15361 
append_005()15362         void append_005()
15363         {
15364             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
15365             // LLA: OString                expVal( kTestStr78 );
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                 "arrOUS[0] append 3.141592",
15374                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15375             );
15376 
15377         }
15378 
append_006()15379         void append_006()
15380         {
15381             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
15382             // LLA: OString                expVal( kTestStr79 );
15383             float                  input = (float)atof("3.5025255");
15384 
15385             sal_Int32 nLen = aStrBuf.getLength();
15386             aStrBuf.append( input );
15387 
15388             CPPUNIT_ASSERT_MESSAGE
15389             (
15390                 "arrOUS[0] append 3.5025255",
15391                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15392             );
15393 
15394         }
15395 
append_007()15396         void append_007()
15397         {
15398             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
15399             // LLA: OString                expVal( kTestStr80 );
15400             float                  input = (float)atof("3.00390625");
15401 
15402             sal_Int32 nLen = aStrBuf.getLength();
15403             aStrBuf.append( input );
15404 
15405             CPPUNIT_ASSERT_MESSAGE
15406             (
15407                 "arrOUS[0] append 3.0039062",
15408                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15409             );
15410 
15411         }
15412 
append_008()15413         void append_008()
15414         {
15415             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
15416             // LLA: OString                expVal( kTestStr81 );
15417             float                  input = (float)atof("3.0");
15418 
15419             sal_Int32 nLen = aStrBuf.getLength();
15420             aStrBuf.append( input );
15421 
15422             CPPUNIT_ASSERT_MESSAGE
15423             (
15424                 "arrOUS[1] append 3.0",
15425                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15426             );
15427 
15428         }
15429 
append_009()15430         void append_009()
15431         {
15432             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
15433             // LLA: OString                expVal( kTestStr82 );
15434             float                  input = (float)atof("3.5");
15435 
15436             sal_Int32 nLen = aStrBuf.getLength();
15437             aStrBuf.append( input );
15438 
15439             CPPUNIT_ASSERT_MESSAGE
15440             (
15441                 "arrOUS[1] append 3.5",
15442                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15443             );
15444 
15445         }
15446 
append_010()15447         void append_010()
15448         {
15449             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
15450             // LLA: OString                expVal( kTestStr83 );
15451             float                  input = (float)atof("3.0625");
15452 
15453             sal_Int32 nLen = aStrBuf.getLength();
15454             aStrBuf.append( input );
15455 
15456             CPPUNIT_ASSERT_MESSAGE
15457             (
15458                 "arrOUS[1] append 3.0625",
15459                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15460             );
15461 
15462         }
15463 
append_011()15464         void append_011()
15465         {
15466             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
15467             // LLA: OString                expVal( kTestStr84 );
15468             float                  input = (float)atof("3.502525");
15469 
15470             sal_Int32 nLen = aStrBuf.getLength();
15471             aStrBuf.append( input );
15472 
15473             CPPUNIT_ASSERT_MESSAGE
15474             (
15475                 "arrOUS[1] append 3.502525",
15476                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15477             );
15478 
15479         }
15480 
append_012()15481         void append_012()
15482         {
15483             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
15484             // LLA: OString                expVal( kTestStr85 );
15485             float                  input = (float)atof("3.141592");
15486 
15487             sal_Int32 nLen = aStrBuf.getLength();
15488             aStrBuf.append( input );
15489 
15490             CPPUNIT_ASSERT_MESSAGE
15491             (
15492                 "arrOUS[1] append 3.141592",
15493                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15494             );
15495 
15496         }
15497 
append_013()15498         void append_013()
15499         {
15500             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
15501             // LLA: OString                expVal( kTestStr86 );
15502             float                  input = (float)atof("3.5025255");
15503 
15504             sal_Int32 nLen = aStrBuf.getLength();
15505             aStrBuf.append( input );
15506 
15507             CPPUNIT_ASSERT_MESSAGE
15508             (
15509                 "arrOUS[1] append 3.5025255",
15510                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15511             );
15512 
15513         }
15514 
append_014()15515         void append_014()
15516         {
15517             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
15518             // LLA: OString                expVal( kTestStr87 );
15519             float                  input = (float)atof("3.00390625");
15520 
15521             sal_Int32 nLen = aStrBuf.getLength();
15522             aStrBuf.append( input );
15523 
15524             CPPUNIT_ASSERT_MESSAGE
15525             (
15526                 "arrOUS[1] append 3.0039062",
15527                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15528             );
15529 
15530         }
15531 
append_015()15532         void append_015()
15533         {
15534             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
15535             // LLA: OString                expVal( kTestStr81 );
15536             float                  input = (float)atof("3.0");
15537 
15538             sal_Int32 nLen = aStrBuf.getLength();
15539             aStrBuf.append( input );
15540 
15541             CPPUNIT_ASSERT_MESSAGE
15542             (
15543                 "arrOUS[2] append 3.0",
15544                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15545             );
15546 
15547         }
15548 
append_016()15549         void append_016()
15550         {
15551             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
15552             // LLA: OString                expVal( kTestStr82 );
15553             float                  input = (float)atof("3.5");
15554 
15555             sal_Int32 nLen = aStrBuf.getLength();
15556             aStrBuf.append( input );
15557 
15558             CPPUNIT_ASSERT_MESSAGE
15559             (
15560                 "arrOUS[2] append 3.5",
15561                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15562             );
15563 
15564         }
15565 
append_017()15566         void append_017()
15567         {
15568             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
15569             // LLA: OString                expVal( kTestStr83 );
15570             float                  input = (float)atof("3.0625");
15571 
15572             sal_Int32 nLen = aStrBuf.getLength();
15573             aStrBuf.append( input );
15574 
15575             CPPUNIT_ASSERT_MESSAGE
15576             (
15577                 "arrOUS[2] append 3.0625",
15578                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15579             );
15580 
15581         }
15582 
append_018()15583         void append_018()
15584         {
15585             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
15586             // LLA: OString                expVal( kTestStr84 );
15587             float                  input = (float)atof("3.502525");
15588 
15589             sal_Int32 nLen = aStrBuf.getLength();
15590             aStrBuf.append( input );
15591 
15592             CPPUNIT_ASSERT_MESSAGE
15593             (
15594                 "arrOUS[2] append 3.502525",
15595                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15596             );
15597 
15598         }
15599 
append_019()15600         void append_019()
15601         {
15602             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
15603             // LLA: OString                expVal( kTestStr85 );
15604             float                  input = (float)atof("3.141592");
15605 
15606             sal_Int32 nLen = aStrBuf.getLength();
15607             aStrBuf.append( input );
15608 
15609             CPPUNIT_ASSERT_MESSAGE
15610             (
15611                 "arrOUS[2] append 3.141592",
15612                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15613             );
15614 
15615         }
15616 
append_020()15617         void append_020()
15618         {
15619             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
15620             // LLA: OString                expVal( kTestStr86 );
15621             float                  input = (float)atof("3.5025255");
15622 
15623             sal_Int32 nLen = aStrBuf.getLength();
15624             aStrBuf.append( input );
15625 
15626             CPPUNIT_ASSERT_MESSAGE
15627             (
15628                 "arrOUS[2] append 3.5025255",
15629                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15630             );
15631 
15632         }
15633 
append_021()15634         void append_021()
15635         {
15636             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
15637             // LLA: OString                expVal( kTestStr87 );
15638             float                  input = (float)atof("3.00390625");
15639 
15640             sal_Int32 nLen = aStrBuf.getLength();
15641             aStrBuf.append( input );
15642 
15643             CPPUNIT_ASSERT_MESSAGE
15644             (
15645                 "arrOUS[2] append 3.0039062",
15646                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15647             );
15648 
15649         }
15650 
append_022()15651         void append_022()
15652         {
15653             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
15654             // LLA: OString                expVal( kTestStr81 );
15655             float                  input = (float)atof("3.0");
15656 
15657             sal_Int32 nLen = aStrBuf.getLength();
15658             aStrBuf.append( input );
15659 
15660             CPPUNIT_ASSERT_MESSAGE
15661             (
15662                 "arrOUS[3] append 3.0",
15663                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15664             );
15665 
15666         }
15667 
append_023()15668         void append_023()
15669         {
15670             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
15671             // LLA: OString                expVal( kTestStr82 );
15672             float                  input = (float)atof("3.5");
15673 
15674             sal_Int32 nLen = aStrBuf.getLength();
15675             aStrBuf.append( input );
15676 
15677             CPPUNIT_ASSERT_MESSAGE
15678             (
15679                 "arrOUS[3] append 3.5",
15680                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15681             );
15682 
15683         }
15684 
append_024()15685         void append_024()
15686         {
15687             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
15688             // LLA: OString                expVal( kTestStr83 );
15689             float                  input = (float)atof("3.0625");
15690 
15691             sal_Int32 nLen = aStrBuf.getLength();
15692             aStrBuf.append( input );
15693 
15694             CPPUNIT_ASSERT_MESSAGE
15695             (
15696                 "arrOUS[3] append 3.0625",
15697                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15698             );
15699 
15700         }
15701 
append_025()15702         void append_025()
15703         {
15704             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
15705             // LLA: OString                expVal( kTestStr84 );
15706             float                  input = (float)atof("3.502525");
15707 
15708             sal_Int32 nLen = aStrBuf.getLength();
15709             aStrBuf.append( input );
15710 
15711             CPPUNIT_ASSERT_MESSAGE
15712             (
15713                 "arrOUS[3] append 3.502525",
15714                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15715             );
15716 
15717         }
15718 
append_026()15719         void append_026()
15720         {
15721             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
15722             // LLA: OString                expVal( kTestStr85 );
15723             float                  input = (float)atof("3.141592");
15724 
15725             sal_Int32 nLen = aStrBuf.getLength();
15726             aStrBuf.append( input );
15727 
15728             CPPUNIT_ASSERT_MESSAGE
15729             (
15730                 "arrOUS[3] append 3.141592",
15731                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15732             );
15733 
15734         }
15735 
append_027()15736         void append_027()
15737         {
15738             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
15739             // LLA: OString                expVal( kTestStr86 );
15740             float                  input = (float)atof("3.5025255");
15741 
15742             sal_Int32 nLen = aStrBuf.getLength();
15743             aStrBuf.append( input );
15744 
15745             CPPUNIT_ASSERT_MESSAGE
15746             (
15747                 "arrOUS[3] append 3.5025255",
15748                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15749             );
15750 
15751         }
15752 
append_028()15753         void append_028()
15754         {
15755             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
15756             // LLA: OString                expVal( kTestStr87 );
15757             float                  input = (float)atof("3.00390625");
15758 
15759             sal_Int32 nLen = aStrBuf.getLength();
15760             aStrBuf.append( input );
15761 
15762             CPPUNIT_ASSERT_MESSAGE
15763             (
15764                 "arrOUS[3] append 3.0039062",
15765                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15766             );
15767 
15768         }
15769 
append_029()15770         void append_029()
15771         {
15772             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
15773             // LLA: OString                expVal( kTestStr88 );
15774             float                  input = (float)atof("3.0");
15775 
15776             sal_Int32 nLen = aStrBuf.getLength();
15777             aStrBuf.append( input );
15778 
15779             CPPUNIT_ASSERT_MESSAGE
15780             (
15781                 "arrOUS[4] append 3.0",
15782                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15783             );
15784 
15785         }
15786 
append_030()15787         void append_030()
15788         {
15789             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
15790             // LLA: OString                expVal( kTestStr89 );
15791             float                  input = (float)atof("3.5");
15792 
15793             sal_Int32 nLen = aStrBuf.getLength();
15794             aStrBuf.append( input );
15795 
15796             CPPUNIT_ASSERT_MESSAGE
15797             (
15798                 "arrOUS[4] append 3.5",
15799                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15800             );
15801 
15802         }
15803 
append_031()15804         void append_031()
15805         {
15806             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
15807             // LLA: OString                expVal( kTestStr90 );
15808             float                  input = (float)atof("3.0625");
15809 
15810             sal_Int32 nLen = aStrBuf.getLength();
15811             aStrBuf.append( input );
15812 
15813             CPPUNIT_ASSERT_MESSAGE
15814             (
15815                 "arrOUS[4] append 3.0625",
15816                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15817             );
15818 
15819         }
15820 
append_032()15821         void append_032()
15822         {
15823             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
15824             // LLA: OString                expVal( kTestStr91 );
15825             float                  input = (float)atof("3.502525");
15826 
15827             sal_Int32 nLen = aStrBuf.getLength();
15828             aStrBuf.append( input );
15829 
15830             CPPUNIT_ASSERT_MESSAGE
15831             (
15832                 "arrOUS[4] append 3.502525",
15833                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15834             );
15835 
15836         }
15837 
append_033()15838         void append_033()
15839         {
15840             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
15841             // LLA: OString                expVal( kTestStr92 );
15842             float                  input = (float)atof("3.141592");
15843 
15844             sal_Int32 nLen = aStrBuf.getLength();
15845             aStrBuf.append( input );
15846 
15847             CPPUNIT_ASSERT_MESSAGE
15848             (
15849                 "arrOUS[4] append 3.141592",
15850                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15851             );
15852 
15853         }
15854 
append_034()15855         void append_034()
15856         {
15857             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
15858             // LLA: OString                expVal( kTestStr93 );
15859             float                  input = (float)atof("3.5025255");
15860 
15861             sal_Int32 nLen = aStrBuf.getLength();
15862             aStrBuf.append( input );
15863 
15864             CPPUNIT_ASSERT_MESSAGE
15865             (
15866                 "arrOUS[4] append 3.5025255",
15867                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15868             );
15869 
15870         }
15871 
append_035()15872         void append_035()
15873         {
15874             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
15875             // LLA: OString                expVal( kTestStr94 );
15876             float                  input = (float)atof("3.00390625");
15877 
15878             sal_Int32 nLen = aStrBuf.getLength();
15879             aStrBuf.append( input );
15880 
15881             CPPUNIT_ASSERT_MESSAGE
15882             (
15883                 "arrOUS[4] append 3.0039062",
15884                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15885             );
15886 
15887         }
15888 #ifdef WITH_CORE
append_036()15889         void append_036()
15890         {
15891             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
15892             // LLA: OString                expVal( kTestStr81 );
15893             float                  input = (float)atof("3.0");
15894 
15895             sal_Int32 nLen = aStrBuf.getLength();
15896             aStrBuf.append( input );
15897 
15898             CPPUNIT_ASSERT_MESSAGE
15899             (
15900                 "OStringBuffer( kSInt32Max ) append 3.0",
15901                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15902             );
15903 
15904         }
15905 
append_037()15906         void append_037()
15907         {
15908             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
15909             // LLA: OString                expVal( kTestStr82 );
15910             float                  input = (float)atof("3.5");
15911 
15912             sal_Int32 nLen = aStrBuf.getLength();
15913             aStrBuf.append( input );
15914 
15915             CPPUNIT_ASSERT_MESSAGE
15916             (
15917                 "OStringBuffer( kSInt32Max ) append 3.5",
15918                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15919             );
15920 
15921         }
15922 
append_038()15923         void append_038()
15924         {
15925             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
15926             // LLA: OString                expVal( kTestStr83 );
15927             float                  input = (float)atof("3.0625");
15928 
15929             sal_Int32 nLen = aStrBuf.getLength();
15930             aStrBuf.append( input );
15931 
15932             CPPUNIT_ASSERT_MESSAGE
15933             (
15934                 "OStringBuffer( kSInt32Max ) append 3.0625",
15935                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15936             );
15937 
15938         }
15939 
append_039()15940         void append_039()
15941         {
15942             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
15943             // LLA: OString                expVal( kTestStr84 );
15944             float                  input = (float)atof("3.502525");
15945 
15946             sal_Int32 nLen = aStrBuf.getLength();
15947             aStrBuf.append( input );
15948 
15949             CPPUNIT_ASSERT_MESSAGE
15950             (
15951                 "OStringBuffer( kSInt32Max ) append 3.502525",
15952                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15953             );
15954 
15955         }
15956 
append_040()15957         void append_040()
15958         {
15959             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
15960             // LLA: OString                expVal( kTestStr85 );
15961             float                  input = (float)atof("3.141592");
15962 
15963             sal_Int32 nLen = aStrBuf.getLength();
15964             aStrBuf.append( input );
15965 
15966             CPPUNIT_ASSERT_MESSAGE
15967             (
15968                 "OStringBuffer( kSInt32Max ) append 3.141592",
15969                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15970             );
15971 
15972         }
15973 
append_041()15974         void append_041()
15975         {
15976             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
15977             // LLA: OString                expVal( kTestStr86 );
15978             float                  input = (float)atof("3.5025255");
15979 
15980             sal_Int32 nLen = aStrBuf.getLength();
15981             aStrBuf.append( input );
15982 
15983             CPPUNIT_ASSERT_MESSAGE
15984             (
15985                 "OStringBuffer( kSInt32Max ) append 3.5025255",
15986                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15987             );
15988 
15989         }
15990 
append_042()15991         void append_042()
15992         {
15993             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
15994             // LLA: OString                expVal( kTestStr87 );
15995             float                  input = (float)atof("3.00390625");
15996 
15997             sal_Int32 nLen = aStrBuf.getLength();
15998             aStrBuf.append( input );
15999 
16000             CPPUNIT_ASSERT_MESSAGE
16001             (
16002                 "OStringBuffer( kSInt32Max ) append 3.0039062",
16003                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16004             );
16005 
16006         }
16007 #endif
16008 
16009         CPPUNIT_TEST_SUITE( append_008_float );
16010         CPPUNIT_TEST( append_001 );
16011         CPPUNIT_TEST( append_002 );
16012         CPPUNIT_TEST( append_003 );
16013         CPPUNIT_TEST( append_004 );
16014         CPPUNIT_TEST( append_005 );
16015         CPPUNIT_TEST( append_006 );
16016         CPPUNIT_TEST( append_007 );
16017         CPPUNIT_TEST( append_008 );
16018         CPPUNIT_TEST( append_009 );
16019         CPPUNIT_TEST( append_010 );
16020         CPPUNIT_TEST( append_011 );
16021         CPPUNIT_TEST( append_012 );
16022         CPPUNIT_TEST( append_013 );
16023         CPPUNIT_TEST( append_014 );
16024         CPPUNIT_TEST( append_015 );
16025         CPPUNIT_TEST( append_016 );
16026         CPPUNIT_TEST( append_017 );
16027         CPPUNIT_TEST( append_018 );
16028         CPPUNIT_TEST( append_019 );
16029         CPPUNIT_TEST( append_020 );
16030         CPPUNIT_TEST( append_021 );
16031         CPPUNIT_TEST( append_022 );
16032         CPPUNIT_TEST( append_023 );
16033         CPPUNIT_TEST( append_024 );
16034         CPPUNIT_TEST( append_025 );
16035 #ifdef WITH_CORE
16036         CPPUNIT_TEST( append_026 );
16037         CPPUNIT_TEST( append_027 );
16038         CPPUNIT_TEST( append_028 );
16039         CPPUNIT_TEST( append_029 );
16040         CPPUNIT_TEST( append_030 );
16041 #endif
16042         CPPUNIT_TEST_SUITE_END();
16043     };
16044 //------------------------------------------------------------------------
16045 // testing the method append( float f ) for negative value
16046 //------------------------------------------------------------------------
16047     class  append_008_Float_Negative : public checkfloat
16048     {
16049         OString* arrOUS[5];
16050 
16051     public:
setUp()16052         void setUp()
16053         {
16054             arrOUS[0] = new OString( kTestStr7 );
16055             arrOUS[1] = new OString(  );
16056             arrOUS[2] = new OString( kTestStr25 );
16057             arrOUS[3] = new OString( "\0"  );
16058             arrOUS[4] = new OString( kTestStr28 );
16059 
16060         }
16061 
tearDown()16062         void tearDown()
16063         {
16064             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
16065             delete arrOUS[3]; delete arrOUS[4];
16066         }
16067 
append_001()16068         void append_001()
16069         {
16070             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
16071             // LLA: OString                expVal( kTestStr95 );
16072             float                  input = (float)atof("-3.0");
16073 
16074             sal_Int32 nLen = aStrBuf.getLength();
16075             aStrBuf.append( input );
16076 
16077             CPPUNIT_ASSERT_MESSAGE
16078             (
16079                 "arrOUS[0] append -3.0",
16080                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16081             );
16082 
16083         }
16084 
append_002()16085         void append_002()
16086         {
16087             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
16088             // LLA: OString                expVal( kTestStr96 );
16089             float                  input = (float)atof("-3.5");
16090 
16091             sal_Int32 nLen = aStrBuf.getLength();
16092             aStrBuf.append( input );
16093 
16094             CPPUNIT_ASSERT_MESSAGE
16095             (
16096                 "arrOUS[0] append -3.5",
16097                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16098             );
16099 
16100         }
16101 
append_003()16102         void append_003()
16103         {
16104             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
16105             // LLA: OString                expVal( kTestStr97 );
16106             float                  input = (float)atof("-3.0625");
16107 
16108             sal_Int32 nLen = aStrBuf.getLength();
16109             aStrBuf.append( input );
16110 
16111             CPPUNIT_ASSERT_MESSAGE
16112             (
16113                 "arrOUS[0] append -3.0625",
16114                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16115             );
16116 
16117         }
16118 
append_004()16119         void append_004()
16120         {
16121             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
16122             // LLA: OString                expVal( kTestStr98 );
16123             float                  input = (float)atof("-3.502525");
16124 
16125             sal_Int32 nLen = aStrBuf.getLength();
16126             aStrBuf.append( input );
16127 
16128             CPPUNIT_ASSERT_MESSAGE
16129             (
16130                 "arrOUS[0] append -3.502525",
16131                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16132             );
16133 
16134         }
16135 
append_005()16136         void append_005()
16137         {
16138             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
16139             // LLA: OString                expVal( kTestStr99 );
16140             float                  input = (float)atof("-3.141592");
16141 
16142             sal_Int32 nLen = aStrBuf.getLength();
16143             aStrBuf.append( input );
16144 
16145             CPPUNIT_ASSERT_MESSAGE
16146             (
16147                 "arrOUS[0] append -3.141592",
16148                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16149             );
16150 
16151         }
16152 
append_006()16153         void append_006()
16154         {
16155             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
16156             // LLA: OString                expVal( kTestStr100 );
16157             float                  input = (float)atof("-3.5025255");
16158 
16159             sal_Int32 nLen = aStrBuf.getLength();
16160             aStrBuf.append( input );
16161 
16162             CPPUNIT_ASSERT_MESSAGE
16163             (
16164                 "arrOUS[0] append -3.5025255",
16165                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16166             );
16167 
16168         }
16169 
append_007()16170         void append_007()
16171         {
16172             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
16173             // LLA: OString                expVal( kTestStr101 );
16174             float                  input = (float)atof("-3.00390625");
16175 
16176             sal_Int32 nLen = aStrBuf.getLength();
16177             aStrBuf.append( input );
16178 
16179             CPPUNIT_ASSERT_MESSAGE
16180             (
16181                 "arrOUS[0] append -3.0039062",
16182                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16183             );
16184 
16185         }
16186 
append_008()16187         void append_008()
16188         {
16189             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
16190             // LLA: OString                expVal( kTestStr102 );
16191             float                  input = (float)atof("-3.0");
16192 
16193             sal_Int32 nLen = aStrBuf.getLength();
16194             aStrBuf.append( input );
16195 
16196             CPPUNIT_ASSERT_MESSAGE
16197             (
16198                 "arrOUS[1] append -3.0",
16199                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16200             );
16201 
16202         }
16203 
append_009()16204         void append_009()
16205         {
16206             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
16207             // LLA: OString                expVal( kTestStr103 );
16208             float                  input = (float)atof("-3.5");
16209 
16210             sal_Int32 nLen = aStrBuf.getLength();
16211             aStrBuf.append( input );
16212 
16213             CPPUNIT_ASSERT_MESSAGE
16214             (
16215                 "arrOUS[1] append -3.5",
16216                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16217             );
16218 
16219         }
16220 
append_010()16221         void append_010()
16222         {
16223             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
16224             // LLA: OString                expVal( kTestStr104 );
16225             float                  input = (float)atof("-3.0625");
16226 
16227             sal_Int32 nLen = aStrBuf.getLength();
16228             aStrBuf.append( input );
16229 
16230             CPPUNIT_ASSERT_MESSAGE
16231             (
16232                 "arrOUS[1] append -3.0625",
16233                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16234             );
16235 
16236         }
16237 
append_011()16238         void append_011()
16239         {
16240             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
16241             // LLA: OString                expVal( kTestStr105 );
16242             float                  input = (float)atof("-3.502525");
16243 
16244             sal_Int32 nLen = aStrBuf.getLength();
16245             aStrBuf.append( input );
16246 
16247             CPPUNIT_ASSERT_MESSAGE
16248             (
16249                 "arrOUS[1] append -3.502525",
16250                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16251             );
16252 
16253         }
16254 
append_012()16255         void append_012()
16256         {
16257             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
16258             // LLA: OString                expVal( kTestStr106 );
16259             float                  input = (float)atof("-3.141592");
16260 
16261             sal_Int32 nLen = aStrBuf.getLength();
16262             aStrBuf.append( input );
16263 
16264             CPPUNIT_ASSERT_MESSAGE
16265             (
16266                 "arrOUS[1] append -3.141592",
16267                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16268             );
16269 
16270         }
16271 
append_013()16272         void append_013()
16273         {
16274             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
16275             // LLA: OString                expVal( kTestStr107 );
16276             float                  input = (float)atof("-3.5025255");
16277 
16278             sal_Int32 nLen = aStrBuf.getLength();
16279             aStrBuf.append( input );
16280 
16281             CPPUNIT_ASSERT_MESSAGE
16282             (
16283                 "arrOUS[1] append -3.5025255",
16284                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16285             );
16286 
16287         }
16288 
append_014()16289         void append_014()
16290         {
16291             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
16292             // LLA: OString                expVal( kTestStr108 );
16293             float                  input = (float)atof("-3.00390625");
16294 
16295             sal_Int32 nLen = aStrBuf.getLength();
16296             aStrBuf.append( input );
16297 
16298             CPPUNIT_ASSERT_MESSAGE
16299             (
16300                 "arrOUS[1] append -3.0039062",
16301                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16302             );
16303 
16304         }
16305 
append_015()16306         void append_015()
16307         {
16308             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
16309             // LLA: OString                expVal( kTestStr102 );
16310             float                  input = (float)atof("-3.0");
16311 
16312             sal_Int32 nLen = aStrBuf.getLength();
16313             aStrBuf.append( input );
16314 
16315             CPPUNIT_ASSERT_MESSAGE
16316             (
16317                 "arrOUS[2] append -3.0",
16318                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16319             );
16320 
16321         }
16322 
append_016()16323         void append_016()
16324         {
16325             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
16326             // LLA: OString                expVal( kTestStr103 );
16327             float                  input = (float)atof("-3.5");
16328 
16329             sal_Int32 nLen = aStrBuf.getLength();
16330             aStrBuf.append( input );
16331 
16332             CPPUNIT_ASSERT_MESSAGE
16333             (
16334                 "arrOUS[2] append -3.5",
16335                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16336             );
16337 
16338         }
16339 
append_017()16340         void append_017()
16341         {
16342             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
16343             // LLA: OString                expVal( kTestStr104 );
16344             float                  input = (float)atof("-3.0625");
16345 
16346             sal_Int32 nLen = aStrBuf.getLength();
16347             aStrBuf.append( input );
16348 
16349             CPPUNIT_ASSERT_MESSAGE
16350             (
16351                 "arrOUS[2] append -3.0625",
16352                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16353             );
16354 
16355         }
16356 
append_018()16357         void append_018()
16358         {
16359             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
16360             // LLA: OString                expVal( kTestStr105 );
16361             float                  input = (float)atof("-3.502525");
16362 
16363             sal_Int32 nLen = aStrBuf.getLength();
16364             aStrBuf.append( input );
16365 
16366             CPPUNIT_ASSERT_MESSAGE
16367             (
16368                 "arrOUS[2] append -3.502525",
16369                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16370             );
16371 
16372         }
16373 
append_019()16374         void append_019()
16375         {
16376             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
16377             // LLA: OString                expVal( kTestStr106 );
16378             float                  input = (float)atof("-3.141592");
16379 
16380             sal_Int32 nLen = aStrBuf.getLength();
16381             aStrBuf.append( input );
16382 
16383             CPPUNIT_ASSERT_MESSAGE
16384             (
16385                 "arrOUS[2] append -3.141592",
16386                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16387             );
16388 
16389         }
16390 
append_020()16391         void append_020()
16392         {
16393             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
16394             // LLA: OString                expVal( kTestStr107 );
16395             float                  input = (float)atof("-3.5025255");
16396 
16397             sal_Int32 nLen = aStrBuf.getLength();
16398             aStrBuf.append( input );
16399 
16400             CPPUNIT_ASSERT_MESSAGE
16401             (
16402                 "arrOUS[2] append -3.5025255",
16403                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16404             );
16405 
16406         }
16407 
append_021()16408         void append_021()
16409         {
16410             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
16411             // LLA: OString                expVal( kTestStr108 );
16412             float                  input = (float)atof("-3.00390625");
16413 
16414             sal_Int32 nLen = aStrBuf.getLength();
16415             aStrBuf.append( input );
16416 
16417             CPPUNIT_ASSERT_MESSAGE
16418             (
16419                 "arrOUS[2] append -3.0039062",
16420                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16421             );
16422 
16423         }
16424 
append_022()16425         void append_022()
16426         {
16427             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
16428             // LLA: OString                expVal( kTestStr102 );
16429             float                  input = (float)atof("-3.0");
16430 
16431             sal_Int32 nLen = aStrBuf.getLength();
16432             aStrBuf.append( input );
16433 
16434             CPPUNIT_ASSERT_MESSAGE
16435             (
16436                 "arrOUS[3] append -3.0",
16437                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16438             );
16439 
16440         }
16441 
append_023()16442         void append_023()
16443         {
16444             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
16445             // LLA: OString                expVal( kTestStr103 );
16446             float                  input = (float)atof("-3.5");
16447 
16448             sal_Int32 nLen = aStrBuf.getLength();
16449             aStrBuf.append( input );
16450 
16451             CPPUNIT_ASSERT_MESSAGE
16452             (
16453                 "arrOUS[3] append -3.5",
16454                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16455             );
16456 
16457         }
16458 
append_024()16459         void append_024()
16460         {
16461             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
16462             // LLA: OString                expVal( kTestStr104 );
16463             float                  input = (float)atof("-3.0625");
16464 
16465             sal_Int32 nLen = aStrBuf.getLength();
16466             aStrBuf.append( input );
16467 
16468             CPPUNIT_ASSERT_MESSAGE
16469             (
16470                 "arrOUS[3] append -3.0625",
16471                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16472             );
16473 
16474         }
16475 
append_025()16476         void append_025()
16477         {
16478             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
16479             // LLA: OString                expVal( kTestStr105 );
16480             float                  input = (float)atof("-3.502525");
16481 
16482             sal_Int32 nLen = aStrBuf.getLength();
16483             aStrBuf.append( input );
16484 
16485             CPPUNIT_ASSERT_MESSAGE
16486             (
16487                 "arrOUS[3] append -3.502525",
16488                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16489             );
16490 
16491         }
16492 
append_026()16493         void append_026()
16494         {
16495             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
16496             // LLA: OString                expVal( kTestStr106 );
16497             float                  input = (float)atof("-3.141592");
16498 
16499             sal_Int32 nLen = aStrBuf.getLength();
16500             aStrBuf.append( input );
16501 
16502             CPPUNIT_ASSERT_MESSAGE
16503             (
16504                 "arrOUS[3] append -3.141592",
16505                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16506             );
16507 
16508         }
16509 
append_027()16510         void append_027()
16511         {
16512             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
16513             // LLA: OString                expVal( kTestStr107 );
16514             float                  input = (float)atof("-3.5025255");
16515 
16516             sal_Int32 nLen = aStrBuf.getLength();
16517             aStrBuf.append( input );
16518 
16519             CPPUNIT_ASSERT_MESSAGE
16520             (
16521                 "arrOUS[3] append -3.5025255",
16522                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16523             );
16524 
16525         }
16526 
append_028()16527         void append_028()
16528         {
16529             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
16530             // LLA: OString                expVal( kTestStr108 );
16531             float                  input = (float)atof("-3.00390625");
16532 
16533             sal_Int32 nLen = aStrBuf.getLength();
16534             aStrBuf.append( input );
16535 
16536             CPPUNIT_ASSERT_MESSAGE
16537             (
16538                 "arrOUS[3] append -3.0039062",
16539                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16540             );
16541 
16542         }
16543 
append_029()16544         void append_029()
16545         {
16546             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
16547             // LLA: OString                expVal( kTestStr109 );
16548             float                  input = (float)atof("-3.0");
16549 
16550             sal_Int32 nLen = aStrBuf.getLength();
16551             aStrBuf.append( input );
16552 
16553             CPPUNIT_ASSERT_MESSAGE
16554             (
16555                 "arrOUS[4] append -3.0",
16556                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16557             );
16558 
16559         }
16560 
append_030()16561         void append_030()
16562         {
16563             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
16564             // LLA: OString                expVal( kTestStr110 );
16565             float                  input = (float)atof("-3.5");
16566 
16567             sal_Int32 nLen = aStrBuf.getLength();
16568             aStrBuf.append( input );
16569 
16570             CPPUNIT_ASSERT_MESSAGE
16571             (
16572                 "arrOUS[4] append -3.5",
16573                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16574             );
16575 
16576         }
16577 
append_031()16578         void append_031()
16579         {
16580             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
16581             // LLA: OString                expVal( kTestStr111 );
16582             float                  input = (float)atof("-3.0625");
16583 
16584             sal_Int32 nLen = aStrBuf.getLength();
16585             aStrBuf.append( input );
16586 
16587             CPPUNIT_ASSERT_MESSAGE
16588             (
16589                 "arrOUS[4] append -3.0625",
16590                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16591             );
16592 
16593         }
16594 
append_032()16595         void append_032()
16596         {
16597             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
16598             // LLA: OString                expVal( kTestStr112 );
16599             float                  input = (float)atof("-3.502525");
16600 
16601             sal_Int32 nLen = aStrBuf.getLength();
16602             aStrBuf.append( input );
16603 
16604             CPPUNIT_ASSERT_MESSAGE
16605             (
16606                 "arrOUS[4] append -3.502525",
16607                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16608             );
16609 
16610         }
16611 
append_033()16612         void append_033()
16613         {
16614             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
16615             // LLA: OString                expVal( kTestStr113 );
16616             float                  input = (float)atof("-3.141592");
16617 
16618             sal_Int32 nLen = aStrBuf.getLength();
16619             aStrBuf.append( input );
16620 
16621             CPPUNIT_ASSERT_MESSAGE
16622             (
16623                 "arrOUS[4] append -3.141592",
16624                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16625             );
16626 
16627         }
16628 
append_034()16629         void append_034()
16630         {
16631             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
16632             // LLA: OString                expVal( kTestStr114 );
16633             float                  input = (float)atof("-3.5025255");
16634 
16635             sal_Int32 nLen = aStrBuf.getLength();
16636             aStrBuf.append( input );
16637 
16638             CPPUNIT_ASSERT_MESSAGE
16639             (
16640                 "arrOUS[4] append -3.5025255",
16641                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16642             );
16643 
16644         }
16645 
append_035()16646         void append_035()
16647         {
16648             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
16649             // LLA: OString                expVal( kTestStr115 );
16650             float                  input = (float)atof("-3.00390625");
16651 
16652             sal_Int32 nLen = aStrBuf.getLength();
16653             aStrBuf.append( input );
16654 
16655             CPPUNIT_ASSERT_MESSAGE
16656             (
16657                 "arrOUS[4] append -3.0039062",
16658                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16659             );
16660 
16661         }
16662 #ifdef WITH_CORE
append_036()16663         void append_036()
16664         {
16665             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
16666             // LLA: OString                expVal( kTestStr102 );
16667             float                  input = (float)atof("-3.0");
16668 
16669             sal_Int32 nLen = aStrBuf.getLength();
16670             aStrBuf.append( input );
16671 
16672             CPPUNIT_ASSERT_MESSAGE
16673             (
16674                 "OStringBuffer( kSInt32Max ) append -3.0",
16675                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16676             );
16677 
16678         }
16679 
append_037()16680         void append_037()
16681         {
16682             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
16683             // LLA: OString                expVal( kTestStr103 );
16684             float                  input = (float)atof("-3.5");
16685 
16686             sal_Int32 nLen = aStrBuf.getLength();
16687             aStrBuf.append( input );
16688 
16689             CPPUNIT_ASSERT_MESSAGE
16690             (
16691                 "OStringBuffer( kSInt32Max ) append -3.5",
16692                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16693             );
16694 
16695         }
16696 
append_038()16697         void append_038()
16698         {
16699             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
16700             // LLA: OString                expVal( kTestStr104 );
16701             float                  input = (float)atof("-3.0625");
16702 
16703             sal_Int32 nLen = aStrBuf.getLength();
16704             aStrBuf.append( input );
16705 
16706             CPPUNIT_ASSERT_MESSAGE
16707             (
16708                 "OStringBuffer( kSInt32Max ) append -3.0625",
16709                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16710             );
16711 
16712         }
16713 
append_039()16714         void append_039()
16715         {
16716             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
16717             // LLA: OString                expVal( kTestStr105 );
16718             float                  input = (float)atof("-3.502525");
16719 
16720             sal_Int32 nLen = aStrBuf.getLength();
16721             aStrBuf.append( input );
16722 
16723             CPPUNIT_ASSERT_MESSAGE
16724             (
16725                 "OStringBuffer( kSInt32Max ) append -3.502525",
16726                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16727             );
16728 
16729         }
16730 
append_040()16731         void append_040()
16732         {
16733             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
16734             // LLA: OString                expVal( kTestStr106 );
16735             float                  input = (float)atof("-3.141592");
16736 
16737             sal_Int32 nLen = aStrBuf.getLength();
16738             aStrBuf.append( input );
16739 
16740             CPPUNIT_ASSERT_MESSAGE
16741             (
16742                 "OStringBuffer( kSInt32Max ) append -3.141592",
16743                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16744             );
16745 
16746         }
16747 
append_041()16748         void append_041()
16749         {
16750             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
16751             // LLA: OString                expVal( kTestStr107 );
16752             float                  input = (float)atof("-3.5025255");
16753 
16754             sal_Int32 nLen = aStrBuf.getLength();
16755             aStrBuf.append( input );
16756 
16757             CPPUNIT_ASSERT_MESSAGE
16758             (
16759                 "OStringBuffer( kSInt32Max ) append -3.5025255",
16760                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16761             );
16762 
16763         }
16764 
append_042()16765         void append_042()
16766         {
16767             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
16768             // LLA: OString                expVal( kTestStr108 );
16769             float                  input = (float)atof("-3.00390625");
16770 
16771             sal_Int32 nLen = aStrBuf.getLength();
16772             aStrBuf.append( input );
16773 
16774             CPPUNIT_ASSERT_MESSAGE
16775             (
16776                 "OStringBuffer( kSInt32Max ) append -3.0039062",
16777                 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16778             );
16779 
16780         }
16781 #endif
16782 
16783         CPPUNIT_TEST_SUITE( append_008_Float_Negative );
16784         CPPUNIT_TEST( append_001 );
16785         CPPUNIT_TEST( append_002 );
16786         CPPUNIT_TEST( append_003 );
16787         CPPUNIT_TEST( append_004 );
16788         CPPUNIT_TEST( append_005 );
16789         CPPUNIT_TEST( append_006 );
16790         CPPUNIT_TEST( append_007 );
16791         CPPUNIT_TEST( append_008 );
16792         CPPUNIT_TEST( append_009 );
16793         CPPUNIT_TEST( append_010 );
16794         CPPUNIT_TEST( append_011 );
16795         CPPUNIT_TEST( append_012 );
16796         CPPUNIT_TEST( append_013 );
16797         CPPUNIT_TEST( append_014 );
16798         CPPUNIT_TEST( append_015 );
16799         CPPUNIT_TEST( append_016 );
16800         CPPUNIT_TEST( append_017 );
16801         CPPUNIT_TEST( append_018 );
16802         CPPUNIT_TEST( append_019 );
16803         CPPUNIT_TEST( append_020 );
16804         CPPUNIT_TEST( append_021 );
16805         CPPUNIT_TEST( append_022 );
16806         CPPUNIT_TEST( append_023 );
16807         CPPUNIT_TEST( append_024 );
16808         CPPUNIT_TEST( append_025 );
16809 #ifdef WITH_CORE
16810         CPPUNIT_TEST( append_026 );
16811         CPPUNIT_TEST( append_027 );
16812         CPPUNIT_TEST( append_028 );
16813         CPPUNIT_TEST( append_029 );
16814         CPPUNIT_TEST( append_030 );
16815 #endif
16816         CPPUNIT_TEST_SUITE_END();
16817     };
16818 //------------------------------------------------------------------------
16819 // testing the method append( double d )
16820 //------------------------------------------------------------------------
16821 
16822     class checkdouble : public CppUnit::TestFixture
16823     {
16824     public:
checkIfStrBufContainAtPosTheDouble(rtl::OStringBuffer const & _sStrBuf,sal_Int32 _nLen,double _nDouble)16825         bool checkIfStrBufContainAtPosTheDouble(rtl::OStringBuffer const& _sStrBuf, sal_Int32 _nLen, double _nDouble)
16826             {
16827                 OString sDoubleValue;
16828                 sDoubleValue = rtl::OString::valueOf(_nDouble);
16829 
16830                 OString sBufferString(_sStrBuf.getStr());
16831                 sal_Int32 nPos = sBufferString.indexOf(sDoubleValue);
16832                 if ( nPos >= 0 && nPos == _nLen)
16833                 {
16834                     return true;
16835                 }
16836                 return false;
16837             }
16838     };
16839 
16840     class  append_009_double : public checkdouble
16841     {
16842         OString* arrOUS[5];
16843 
16844     public:
setUp()16845         void setUp()
16846         {
16847             arrOUS[0] = new OString( kTestStr7 );
16848             arrOUS[1] = new OString(  );
16849             arrOUS[2] = new OString( kTestStr25 );
16850             arrOUS[3] = new OString( "\0"  );
16851             arrOUS[4] = new OString( kTestStr28 );
16852 
16853         }
16854 
tearDown()16855         void tearDown()
16856         {
16857             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
16858             delete arrOUS[3]; delete arrOUS[4];
16859         }
16860 
append_001()16861         void append_001()
16862         {
16863             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
16864             // LLA: OString                expVal( kTestStr74 );
16865             double                 input = atof("3.0");
16866 
16867             sal_Int32 nLen = aStrBuf.getLength();
16868             aStrBuf.append( input );
16869 
16870             CPPUNIT_ASSERT_MESSAGE
16871             (
16872                 "arrOUS[0] append 3.0",
16873                 checkIfStrBufContainAtPosTheDouble(aStrBuf, nLen, input)
16874             );
16875 
16876         }
16877 
16878 /*
16879         void append_002()
16880         {
16881             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
16882             OString                expVal( kTestStr75 );
16883             double                 input = atof("3.5");
16884 
16885             aStrBuf.append( input );
16886 
16887             CPPUNIT_ASSERT_MESSAGE
16888             (
16889                 "arrOUS[0] append 3.5",
16890                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
16891             );
16892 
16893         }
16894 
16895         void append_003()
16896         {
16897             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
16898             OString                expVal( kTestStr76 );
16899             double                 input = atof("3.0625");
16900 
16901             aStrBuf.append( input );
16902 
16903             CPPUNIT_ASSERT_MESSAGE
16904             (
16905                 "arrOUS[0] append 3.0625",
16906                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
16907             );
16908 
16909         }
16910 
16911         void append_004()
16912         {
16913             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
16914             OString                expVal( kTestStr122 );
16915             double                 input = atof("3.1415926535");
16916 
16917             aStrBuf.append( input );
16918 
16919             CPPUNIT_ASSERT_MESSAGE
16920             (
16921                 "arrOUS[0] append 3.1415926535",
16922                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
16923             );
16924 
16925         }
16926 
16927         void append_005()
16928         {
16929             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
16930             OString                expVal( kTestStr123 );
16931             double                 input = atof("3.141592653589793");
16932 
16933             aStrBuf.append( input );
16934 
16935             CPPUNIT_ASSERT_MESSAGE
16936             (
16937                 "arrOUS[0] append 3.141592653589793",
16938                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
16939             );
16940 
16941         }
16942 
16943         void append_006()
16944         {
16945             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
16946             OString                expVal( kTestStr124 );
16947             double                  input = atof("3.14159265358979323");
16948 
16949             aStrBuf.append( input );
16950 
16951             CPPUNIT_ASSERT_MESSAGE
16952             (
16953                 "arrOUS[0] append 3.14159265358979323",
16954                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
16955             );
16956 
16957         }
16958 
16959         void append_007()
16960         {
16961             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
16962             OString                expVal( kTestStr125 );
16963             double                 input = atof("3.141592653589793238462643");
16964 
16965             aStrBuf.append( input );
16966 
16967             CPPUNIT_ASSERT_MESSAGE
16968             (
16969                 "arrOUS[0] append 3.141592653589793238462643",
16970                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
16971             );
16972 
16973         }
16974 
16975         void append_008()
16976         {
16977             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
16978             OString                expVal( kTestStr81 );
16979             double                 input = atof("3.0");
16980 
16981             aStrBuf.append( input );
16982 
16983             CPPUNIT_ASSERT_MESSAGE
16984             (
16985                 "arrOUS[1] append 3.0",
16986                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
16987             );
16988 
16989         }
16990 
16991         void append_009()
16992         {
16993             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
16994             OString                expVal( kTestStr82 );
16995             double                 input = atof("3.5");
16996 
16997             aStrBuf.append( input );
16998 
16999             CPPUNIT_ASSERT_MESSAGE
17000             (
17001                 "arrOUS[1] append 3.5",
17002                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17003             );
17004 
17005         }
17006 
17007         void append_010()
17008         {
17009             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
17010             OString                expVal( kTestStr83 );
17011             double                 input = atof("3.0625");
17012 
17013             aStrBuf.append( input );
17014 
17015             CPPUNIT_ASSERT_MESSAGE
17016             (
17017                 "arrOUS[1] append 3.0625",
17018                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17019             );
17020 
17021         }
17022 
17023         void append_011()
17024         {
17025             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
17026             OString                expVal( kTestStr126 );
17027             double                 input = atof("3.1415926535");
17028 
17029             aStrBuf.append( input );
17030 
17031             CPPUNIT_ASSERT_MESSAGE
17032             (
17033                 "arrOUS[1] append 3.1415926535",
17034                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17035             );
17036 
17037         }
17038 
17039         void append_012()
17040         {
17041             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
17042             OString                expVal( kTestStr127 );
17043             double                 input = atof("3.141592653589793");
17044 
17045             aStrBuf.append( input );
17046             OString     *result = new OString( aStrBuf.getStr());
17047             double      output = result->toDouble();
17048             OString     *final = new OString();
17049             *final = final->valueOf(output);
17050 t_print("the OStringvalus is:");
17051 for(int m=0;m<final->getLength();m++)
17052 {
17053     t_print("%c",final->pData->buffer[m]);
17054 }
17055 t_print("\n");
17056 t_print("the OStringBuffer is %d\n", aStrBuf.getLength());
17057 t_print("the expVal is %d\n", expVal.getLength());
17058 t_print("the OStringbuffervalus is:");
17059 for(int j=0;j<aStrBuf.getLength();j++)
17060 {
17061     t_print("%c",*(aStrBuf.getStr()+j));
17062 }
17063 t_print("\n");
17064 t_print("the expVlavalus is:");
17065 for(int k=0;k<expVal.getLength();k++)
17066 {
17067     t_print("%c",expVal.pData->buffer[k]);
17068 }
17069 t_print("\n");
17070             CPPUNIT_ASSERT_MESSAGE
17071             (
17072                 "arrOUS[1] append 3.141592653589793",
17073                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17074             );
17075 
17076         }
17077 
17078         void append_013()
17079         {
17080             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
17081             OString                expVal( kTestStr128 );
17082             double                  input = atof("3.14159265358979323");
17083 
17084             aStrBuf.append( input );
17085 
17086             CPPUNIT_ASSERT_MESSAGE
17087             (
17088                 "arrOUS[1] append 3.14159265358979323",
17089                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17090             );
17091 
17092         }
17093 
17094         void append_014()
17095         {
17096             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
17097             OString                expVal( kTestStr129 );
17098             double                 input = atof("3.141592653589793238462643");
17099 
17100             aStrBuf.append( input );
17101 
17102             CPPUNIT_ASSERT_MESSAGE
17103             (
17104                 "arrOUS[1] append 3.141592653589793238462643",
17105                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17106             );
17107 
17108         }
17109 
17110         void append_015()
17111         {
17112             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
17113             OString                expVal( kTestStr81 );
17114             double                 input = atof("3.0");
17115 
17116             aStrBuf.append( input );
17117 
17118             CPPUNIT_ASSERT_MESSAGE
17119             (
17120                 "arrOUS[2] append 3.0",
17121                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17122             );
17123 
17124         }
17125 
17126         void append_016()
17127         {
17128             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
17129             OString                expVal( kTestStr82 );
17130             double                 input = atof("3.5");
17131 
17132             aStrBuf.append( input );
17133 
17134             CPPUNIT_ASSERT_MESSAGE
17135             (
17136                 "arrOUS[2] append 3.5",
17137                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17138             );
17139 
17140         }
17141 
17142         void append_017()
17143         {
17144             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
17145             OString                expVal( kTestStr83 );
17146             double                 input = atof("3.0625");
17147 
17148             aStrBuf.append( input );
17149 
17150             CPPUNIT_ASSERT_MESSAGE
17151             (
17152                 "arrOUS[2] append 3.0625",
17153                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17154             );
17155 
17156         }
17157 
17158         void append_018()
17159         {
17160             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
17161             OString                expVal( kTestStr126 );
17162             double                 input = atof("3.1415926535");
17163 
17164             aStrBuf.append( input );
17165 
17166             CPPUNIT_ASSERT_MESSAGE
17167             (
17168                 "arrOUS[2] append 3.1415926535",
17169                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17170             );
17171 
17172         }
17173 
17174         void append_019()
17175         {
17176             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
17177             OString                expVal( kTestStr127 );
17178             double                 input = atof("3.141592653589793");
17179 
17180             aStrBuf.append( input );
17181 
17182             CPPUNIT_ASSERT_MESSAGE
17183             (
17184                 "arrOUS[2] append 3.141592653589793",
17185                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17186             );
17187 
17188         }
17189 
17190         void append_020()
17191         {
17192             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
17193             OString                expVal( kTestStr128 );
17194             double                  input = atof("3.14159265358979323");
17195 
17196             aStrBuf.append( input );
17197 
17198             CPPUNIT_ASSERT_MESSAGE
17199             (
17200                 "arrOUS[2] append 3.14159265358979323",
17201                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17202             );
17203 
17204         }
17205 
17206         void append_021()
17207         {
17208             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
17209             OString                expVal( kTestStr129 );
17210             double                 input = atof("3.141592653589793238462643");
17211 
17212             aStrBuf.append( input );
17213 
17214             CPPUNIT_ASSERT_MESSAGE
17215             (
17216                 "arrOUS[2] append 3.141592653589793238462643",
17217                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17218             );
17219 
17220         }
17221 
17222         void append_022()
17223         {
17224             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
17225             OString                expVal( kTestStr81 );
17226             double                 input = atof("3.0");
17227 
17228             aStrBuf.append( input );
17229 
17230             CPPUNIT_ASSERT_MESSAGE
17231             (
17232                 "arrOUS[3] append 3.0",
17233                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17234             );
17235 
17236         }
17237 
17238         void append_023()
17239         {
17240             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
17241             OString                expVal( kTestStr82 );
17242             double                 input = atof("3.5");
17243 
17244             aStrBuf.append( input );
17245 
17246             CPPUNIT_ASSERT_MESSAGE
17247             (
17248                 "arrOUS[3] append 3.5",
17249                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17250             );
17251 
17252         }
17253 
17254         void append_024()
17255         {
17256             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
17257             OString                expVal( kTestStr83 );
17258             double                 input = atof("3.0625");
17259 
17260             aStrBuf.append( input );
17261 
17262             CPPUNIT_ASSERT_MESSAGE
17263             (
17264                 "arrOUS[3] append 3.0625",
17265                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17266             );
17267 
17268         }
17269 
17270         void append_025()
17271         {
17272             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
17273             OString                expVal( kTestStr126 );
17274             double                 input = atof("3.1415926535");
17275 
17276             aStrBuf.append( input );
17277 
17278             CPPUNIT_ASSERT_MESSAGE
17279             (
17280                 "arrOUS[3] append 3.1415926535",
17281                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17282             );
17283 
17284         }
17285 
17286         void append_026()
17287         {
17288             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
17289             OString                expVal( kTestStr127 );
17290             double                 input = atof("3.141592653589793");
17291 
17292             aStrBuf.append( input );
17293 
17294             CPPUNIT_ASSERT_MESSAGE
17295             (
17296                 "arrOUS[3] append 3.141592653589793",
17297                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17298             );
17299 
17300         }
17301 
17302         void append_027()
17303         {
17304             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
17305             OString                expVal( kTestStr128 );
17306             double                  input = atof("3.14159265358979323");
17307 
17308             aStrBuf.append( input );
17309 
17310             CPPUNIT_ASSERT_MESSAGE
17311             (
17312                 "arrOUS[1] append 3.14159265358979323",
17313                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17314             );
17315 
17316         }
17317 
17318         void append_028()
17319         {
17320             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
17321             OString                expVal( kTestStr129 );
17322             double                 input = atof("3.141592653589793238462643");
17323 
17324             aStrBuf.append( input );
17325 
17326             CPPUNIT_ASSERT_MESSAGE
17327             (
17328                 "arrOUS[3] append 3.141592653589793238462643",
17329                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17330             );
17331 
17332         }
17333 
17334         void append_029()
17335         {
17336             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
17337             OString                expVal( kTestStr88 );
17338             double                 input = atof("3.0");
17339 
17340             aStrBuf.append( input );
17341 
17342             CPPUNIT_ASSERT_MESSAGE
17343             (
17344                 "arrOUS[4] append 3.0",
17345                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17346             );
17347 
17348         }
17349 
17350         void append_030()
17351         {
17352             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
17353             OString                expVal( kTestStr89 );
17354             double                 input = atof("3.5");
17355 
17356             aStrBuf.append( input );
17357 
17358             CPPUNIT_ASSERT_MESSAGE
17359             (
17360                 "arrOUS[4] append 3.5",
17361                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17362             );
17363 
17364         }
17365 
17366         void append_031()
17367         {
17368             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
17369             OString                expVal( kTestStr90 );
17370             double                 input = atof("3.0625");
17371 
17372             aStrBuf.append( input );
17373 
17374             CPPUNIT_ASSERT_MESSAGE
17375             (
17376                 "arrOUS[4] append 3.0625",
17377                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17378             );
17379 
17380         }
17381 
17382         void append_032()
17383         {
17384             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
17385             OString                expVal( kTestStr130 );
17386             double                 input = atof("3.1415926535");
17387 
17388             aStrBuf.append( input );
17389 
17390             CPPUNIT_ASSERT_MESSAGE
17391             (
17392                 "arrOUS[4] append 3.1415926535",
17393                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17394             );
17395 
17396         }
17397 
17398         void append_033()
17399         {
17400             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
17401             OString                expVal( kTestStr131 );
17402             double                 input = atof("3.141592653589793");
17403 
17404             aStrBuf.append( input );
17405 
17406             CPPUNIT_ASSERT_MESSAGE
17407             (
17408                 "arrOUS[4] append 3.141592653589793",
17409                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17410             );
17411 
17412         }
17413 
17414         void append_034()
17415         {
17416             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
17417             OString                expVal( kTestStr132 );
17418             double                  input = atof("3.14159265358979323");
17419 
17420             aStrBuf.append( input );
17421 
17422             CPPUNIT_ASSERT_MESSAGE
17423             (
17424                 "arrOUS[4] append 3.14159265358979323",
17425                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17426             );
17427 
17428         }
17429 */
append_035()17430         void append_035()
17431         {
17432             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
17433             // LLA: OString                expVal( kTestStr133 );
17434             double                 input = atof("3.141592653589793238462643");
17435 
17436             sal_Int32 nLen = aStrBuf.getLength();
17437             aStrBuf.append( input );
17438 
17439             CPPUNIT_ASSERT_MESSAGE
17440             (
17441                 "arrOUS[4] append 3.141592653589793238462643",
17442                 checkIfStrBufContainAtPosTheDouble(aStrBuf, nLen, input)
17443             );
17444 
17445         }
17446 /*
17447 #ifdef WITH_CORE
17448         void append_036()
17449         {
17450             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
17451             OString                expVal( kTestStr81 );
17452             double                 input = atof("3.0");
17453 
17454             aStrBuf.append( input );
17455 
17456             CPPUNIT_ASSERT_MESSAGE
17457             (
17458                 "OStringBuffer( kSInt32Max ) append 3.0",
17459                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17460             );
17461 
17462         }
17463 
17464         void append_037()
17465         {
17466             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
17467             OString                expVal( kTestStr82 );
17468             double                 input = atof("3.5");
17469 
17470             aStrBuf.append( input );
17471 
17472             CPPUNIT_ASSERT_MESSAGE
17473             (
17474                 "OStringBuffer( kSInt32Max ) append 3.5",
17475                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17476             );
17477 
17478         }
17479 
17480         void append_038()
17481         {
17482             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
17483             OString                expVal( kTestStr83 );
17484             double                 input = atof("3.0625");
17485 
17486             aStrBuf.append( input );
17487 
17488             CPPUNIT_ASSERT_MESSAGE
17489             (
17490                 "OStringBuffer( kSInt32Max ) append 3.0625",
17491                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17492             );
17493 
17494         }
17495 
17496         void append_039()
17497         {
17498             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
17499             OString                expVal( kTestStr126 );
17500             double                 input = atof("3.1415926535");
17501 
17502             aStrBuf.append( input );
17503 
17504             CPPUNIT_ASSERT_MESSAGE
17505             (
17506                 "OStringBuffer( kSInt32Max ) append 3.1415926535",
17507                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17508             );
17509 
17510         }
17511 
17512         void append_040()
17513         {
17514             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
17515             OString                expVal( kTestStr127 );
17516             double                 input = atof("3.141592653589793";
17517 
17518             aStrBuf.append( input );
17519 
17520             CPPUNIT_ASSERT_MESSAGE
17521             (
17522                 "OStringBuffer( kSInt32Max ) append 3.141592653589793",
17523                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17524             );
17525 
17526         }
17527 
17528         void append_041()
17529         {
17530             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
17531             OString                expVal( kTestStr128 );
17532             double                 input = atof("3.14159265358979323");
17533 
17534             aStrBuf.append( input );
17535 
17536             CPPUNIT_ASSERT_MESSAGE
17537             (
17538                 "OStringBuffer( kSInt32Max ) append 3.14159265358979323",
17539                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17540             );
17541 
17542         }
17543 
17544         void append_042()
17545         {
17546             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
17547             OString                expVal( kTestStr129 );
17548             double                 input = atof("3.141592653589793238462643");
17549 
17550             aStrBuf.append( input );
17551 
17552             CPPUNIT_ASSERT_MESSAGE
17553             (
17554                 "OStringBuffer( kSInt32Max ) append 3.141592653589793238462643",
17555                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17556             );
17557 
17558         }
17559 #endif
17560 */
17561         CPPUNIT_TEST_SUITE( append_009_double );
17562         CPPUNIT_TEST( append_001 );
17563 /*
17564         CPPUNIT_TEST( append_002 );
17565         CPPUNIT_TEST( append_003 );
17566         CPPUNIT_TEST( append_004 );
17567         CPPUNIT_TEST( append_005 );
17568         CPPUNIT_TEST( append_006 );
17569         CPPUNIT_TEST( append_007 );
17570         CPPUNIT_TEST( append_008 );
17571         CPPUNIT_TEST( append_009 );
17572         CPPUNIT_TEST( append_010 );
17573         CPPUNIT_TEST( append_011 );
17574         CPPUNIT_TEST( append_012 );
17575         CPPUNIT_TEST( append_013 );
17576         CPPUNIT_TEST( append_014 );
17577         CPPUNIT_TEST( append_015 );
17578         CPPUNIT_TEST( append_016 );
17579         CPPUNIT_TEST( append_017 );
17580         CPPUNIT_TEST( append_018 );
17581         CPPUNIT_TEST( append_019 );
17582         CPPUNIT_TEST( append_020 );
17583         CPPUNIT_TEST( append_021 );
17584         CPPUNIT_TEST( append_022 );
17585         CPPUNIT_TEST( append_023 );
17586         CPPUNIT_TEST( append_024 );
17587         CPPUNIT_TEST( append_025 );
17588 #ifdef WITH_CORE
17589         CPPUNIT_TEST( append_026 );
17590         CPPUNIT_TEST( append_027 );
17591         CPPUNIT_TEST( append_028 );
17592         CPPUNIT_TEST( append_029 );
17593         CPPUNIT_TEST( append_030 );
17594 #endif
17595 */
17596         CPPUNIT_TEST( append_035 );
17597         CPPUNIT_TEST_SUITE_END();
17598     };
17599 //------------------------------------------------------------------------
17600 // testing the method append( double f ) for negative value
17601 //------------------------------------------------------------------------
17602     class  append_009_Double_Negative : public checkdouble
17603     {
17604         OString* arrOUS[5];
17605 
17606     public:
setUp()17607         void setUp()
17608         {
17609             arrOUS[0] = new OString( kTestStr7 );
17610             arrOUS[1] = new OString(  );
17611             arrOUS[2] = new OString( kTestStr25 );
17612             arrOUS[3] = new OString( "\0"  );
17613             arrOUS[4] = new OString( kTestStr28 );
17614 
17615         }
17616 
tearDown()17617         void tearDown()
17618         {
17619             delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
17620             delete arrOUS[3]; delete arrOUS[4];
17621         }
17622 
append_001()17623         void append_001()
17624         {
17625             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
17626             // LLA: OString                expVal( kTestStr95 );
17627             double                 input = atof("-3.0");
17628 
17629             sal_Int32 nLen = aStrBuf.getLength();
17630             aStrBuf.append( input );
17631 
17632             CPPUNIT_ASSERT_MESSAGE
17633             (
17634                 "arrOUS[0] append -3.0",
17635                 checkIfStrBufContainAtPosTheDouble(aStrBuf, nLen, input)
17636             );
17637 
17638         }
17639 /*
17640         void append_002()
17641         {
17642             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
17643             OString                expVal( kTestStr96 );
17644             double                 input = atof("-3.5");
17645 
17646             aStrBuf.append( input );
17647 
17648             CPPUNIT_ASSERT_MESSAGE
17649             (
17650                 "arrOUS[0] append -3.5",
17651                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17652             );
17653 
17654         }
17655 
17656         void append_003()
17657         {
17658             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
17659             OString                expVal( kTestStr97 );
17660             double                 input = atof("-3.0625");
17661 
17662             aStrBuf.append( input );
17663 
17664             CPPUNIT_ASSERT_MESSAGE
17665             (
17666                 "arrOUS[0] append -3.0625",
17667                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17668             );
17669 
17670         }
17671 
17672         void append_004()
17673         {
17674             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
17675             OString                expVal( kTestStr98 );
17676             double                 input = atof("-3.502525");
17677 
17678             aStrBuf.append( input );
17679 
17680             CPPUNIT_ASSERT_MESSAGE
17681             (
17682                 "arrOUS[0] append -3.502525",
17683                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17684             );
17685 
17686         }
17687 
17688         void append_005()
17689         {
17690             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
17691             OString                expVal( kTestStr134 );
17692             double                 input = atof("-3.141592653589793");
17693 
17694             aStrBuf.append( input );
17695 
17696             CPPUNIT_ASSERT_MESSAGE
17697             (
17698                 "arrOUS[0] append -3.141592653589793",
17699                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17700             );
17701 
17702         }
17703 
17704         void append_006()
17705         {
17706             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
17707             OString                expVal( kTestStr135 );
17708             double                  input = atof("-3.14159265358979323");
17709 
17710             aStrBuf.append( input );
17711 
17712             CPPUNIT_ASSERT_MESSAGE
17713             (
17714                 "arrOUS[0] append -3.14159265358979323",
17715                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17716             );
17717 
17718         }
17719 
17720         void append_007()
17721         {
17722             ::rtl::OStringBuffer   aStrBuf( *arrOUS[0] );
17723             OString                expVal( kTestStr136 );
17724             double                 input = atof("-3.141592653589793238462643");
17725 
17726             aStrBuf.append( input );
17727 
17728             CPPUNIT_ASSERT_MESSAGE
17729             (
17730                 "arrOUS[0] append -3.141592653589793238462643",
17731                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17732             );
17733 
17734         }
17735 
17736         void append_008()
17737         {
17738             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
17739             OString                expVal( kTestStr102 );
17740             double                 input = atof("-3.0");
17741 
17742             aStrBuf.append( input );
17743 
17744             CPPUNIT_ASSERT_MESSAGE
17745             (
17746                 "arrOUS[1] append -3.0",
17747                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17748             );
17749 
17750         }
17751 
17752         void append_009()
17753         {
17754             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
17755             OString                expVal( kTestStr103 );
17756             double                 input = atof("-3.5");
17757 
17758             aStrBuf.append( input );
17759 
17760             CPPUNIT_ASSERT_MESSAGE
17761             (
17762                 "arrOUS[1] append -3.5",
17763                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17764             );
17765 
17766         }
17767 
17768         void append_010()
17769         {
17770             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
17771             OString                expVal( kTestStr104 );
17772             double                 input = atof("-3.0625");
17773 
17774             aStrBuf.append( input );
17775             OString     *result = new OString( aStrBuf.getStr());
17776             double      output = result->toDouble();
17777             OString     *final = new OString();
17778             *final = final->valueOf(output);
17779 t_print("the OStringvalus is:");
17780 for(int m=0;m<final->getLength();m++)
17781 {
17782     t_print("%c",final->pData->buffer[m]);
17783 }
17784 t_print("\n");
17785 t_print("the OStringBuffer is %d\n", aStrBuf.getLength());
17786 t_print("the expVal is %d\n", expVal.getLength());
17787 t_print("the OStringbuffervalus is:");
17788 for(int j=0;j<aStrBuf.getLength();j++)
17789 {
17790     t_print("%c",*(aStrBuf.getStr()+j));
17791 }
17792 t_print("\n");
17793 t_print("the expVlavalus is:");
17794 for(int k=0;k<expVal.getLength();k++)
17795 {
17796     t_print("%c",expVal.pData->buffer[k]);
17797 }
17798 t_print("\n");
17799             CPPUNIT_ASSERT_MESSAGE
17800             (
17801                 "arrOUS[1] append -3.0625",
17802                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17803             );
17804 
17805         }
17806 
17807         void append_011()
17808         {
17809             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
17810             OString                expVal( kTestStr105 );
17811             double                 input = atof("-3.502525");
17812 
17813             aStrBuf.append( input );
17814 
17815             double      output = atof("-3.50252");
17816             OString     *final = new OString();
17817             *final = final->valueOf(output);
17818 t_print("the OStringvalus is:");
17819 for(int m=0;m<final->getLength();m++)
17820 {
17821     t_print("%c",final->pData->buffer[m]);
17822 }
17823 t_print("\n");
17824 t_print("the OStringBuffer is %d\n", aStrBuf.getLength());
17825 t_print("the expVal is %d\n", expVal.getLength());
17826 t_print("the OStringbuffervalus is:");
17827 for(int j=0;j<aStrBuf.getLength();j++)
17828 {
17829     t_print("%c",*(aStrBuf.getStr()+j));
17830 }
17831 t_print("\n");
17832 t_print("the expVlavalus is:");
17833 for(int k=0;k<expVal.getLength();k++)
17834 {
17835     t_print("%c",expVal.pData->buffer[k]);
17836 }
17837 t_print("\n");
17838             CPPUNIT_ASSERT_MESSAGE
17839             (
17840                 "arrOUS[1] append -3.502525",
17841                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17842             );
17843 
17844         }
17845 
17846         void append_012()
17847         {
17848             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
17849             OString                expVal( kTestStr137 );
17850             double                 input = atof("-3.141592653589793");
17851 
17852             aStrBuf.append( input );
17853 
17854             CPPUNIT_ASSERT_MESSAGE
17855             (
17856                 "arrOUS[1] append -3.141592653589793",
17857                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17858             );
17859 
17860         }
17861 
17862         void append_013()
17863         {
17864             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
17865             OString                expVal( kTestStr138 );
17866             double                  input = atof("-3.14159265358979323");
17867 
17868             aStrBuf.append( input );
17869 
17870             CPPUNIT_ASSERT_MESSAGE
17871             (
17872                 "arrOUS[1] append -3.14159265358979323",
17873                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17874             );
17875 
17876         }
17877 
17878         void append_014()
17879         {
17880             ::rtl::OStringBuffer   aStrBuf( *arrOUS[1] );
17881             OString                expVal( kTestStr139 );
17882             double                 input = atof("-3.141592653589793238462643");
17883 
17884             aStrBuf.append( input );
17885 
17886             CPPUNIT_ASSERT_MESSAGE
17887             (
17888                 "arrOUS[1] append -3.141592653589793238462643",
17889                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17890             );
17891 
17892         }
17893 
17894         void append_015()
17895         {
17896             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
17897             OString                expVal( kTestStr102 );
17898             double                 input = atof("-3.0");
17899 
17900             aStrBuf.append( input );
17901 
17902             CPPUNIT_ASSERT_MESSAGE
17903             (
17904                 "arrOUS[2] append -3.0",
17905                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17906             );
17907 
17908         }
17909 
17910         void append_016()
17911         {
17912             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
17913             OString                expVal( kTestStr103 );
17914             double                 input = atof("-3.5");
17915 
17916             aStrBuf.append( input );
17917 
17918             CPPUNIT_ASSERT_MESSAGE
17919             (
17920                 "arrOUS[2] append -3.5",
17921                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17922             );
17923 
17924         }
17925 
17926         void append_017()
17927         {
17928             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
17929             OString                expVal( kTestStr104 );
17930             double                 input = atof("-3.0625");
17931 
17932             aStrBuf.append( input );
17933 
17934             CPPUNIT_ASSERT_MESSAGE
17935             (
17936                 "arrOUS[2] append -3.0625",
17937                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17938             );
17939 
17940         }
17941 
17942         void append_018()
17943         {
17944             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
17945             OString                expVal( kTestStr105 );
17946             double                 input = atof("-3.502525");
17947 
17948             aStrBuf.append( input );
17949 
17950             CPPUNIT_ASSERT_MESSAGE
17951             (
17952                 "arrOUS[2] append -3.502525",
17953                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17954             );
17955 
17956         }
17957 
17958         void append_019()
17959         {
17960             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
17961             OString                expVal( kTestStr137 );
17962             double                 input = atof("-3.141592653589793");
17963 
17964             aStrBuf.append( input );
17965 
17966             CPPUNIT_ASSERT_MESSAGE
17967             (
17968                 "arrOUS[2] append -3.141592653589793",
17969                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17970             );
17971 
17972         }
17973 
17974         void append_020()
17975         {
17976             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
17977             OString                expVal( kTestStr138 );
17978             double                  input = atof("-3.14159265358979323");
17979 
17980             aStrBuf.append( input );
17981 
17982             CPPUNIT_ASSERT_MESSAGE
17983             (
17984                 "arrOUS[2] append -3.14159265358979323",
17985                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
17986             );
17987 
17988         }
17989 
17990         void append_021()
17991         {
17992             ::rtl::OStringBuffer   aStrBuf( *arrOUS[2] );
17993             OString                expVal( kTestStr139 );
17994             double                 input = atof("-3.141592653589793238462643");
17995 
17996             aStrBuf.append( input );
17997 
17998             CPPUNIT_ASSERT_MESSAGE
17999             (
18000                 "arrOUS[2] append -3.141592653589793238462643",
18001                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
18002             );
18003 
18004         }
18005 
18006         void append_022()
18007         {
18008             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
18009             OString                expVal( kTestStr102 );
18010             double                 input = atof("-3.0");
18011 
18012             aStrBuf.append( input );
18013 
18014             CPPUNIT_ASSERT_MESSAGE
18015             (
18016                 "arrOUS[3] append -3.0",
18017                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
18018             );
18019 
18020         }
18021 
18022         void append_023()
18023         {
18024             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
18025             OString                expVal( kTestStr103 );
18026             double                 input = atof("-3.5");
18027 
18028             aStrBuf.append( input );
18029 
18030             CPPUNIT_ASSERT_MESSAGE
18031             (
18032                 "arrOUS[3] append -3.5",
18033                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
18034             );
18035 
18036         }
18037 
18038         void append_024()
18039         {
18040             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
18041             OString                expVal( kTestStr104 );
18042             double                 input = atof("-3.0625");
18043 
18044             aStrBuf.append( input );
18045 
18046             CPPUNIT_ASSERT_MESSAGE
18047             (
18048                 "arrOUS[3] append -3.0625",
18049                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
18050             );
18051 
18052         }
18053 
18054         void append_025()
18055         {
18056             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
18057             OString                expVal( kTestStr105 );
18058             double                 input = atof("-3.502525");
18059 
18060             aStrBuf.append( input );
18061 
18062             CPPUNIT_ASSERT_MESSAGE
18063             (
18064                 "arrOUS[3] append -3.502525",
18065                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
18066             );
18067 
18068         }
18069 
18070         void append_026()
18071         {
18072             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
18073             OString                expVal( kTestStr137 );
18074             double                 input = atof("-3.141592653589793");
18075 
18076             aStrBuf.append( input );
18077 
18078             CPPUNIT_ASSERT_MESSAGE
18079             (
18080                 "arrOUS[3] append -3.141592653589793",
18081                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
18082             );
18083 
18084         }
18085 
18086         void append_027()
18087         {
18088             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
18089             OString                expVal( kTestStr138 );
18090             double                  input = atof("-3.14159265358979323");
18091 
18092             aStrBuf.append( input );
18093 
18094             CPPUNIT_ASSERT_MESSAGE
18095             (
18096                 "arrOUS[1] append -3.14159265358979323",
18097                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
18098             );
18099 
18100         }
18101 
18102         void append_028()
18103         {
18104             ::rtl::OStringBuffer   aStrBuf( *arrOUS[3] );
18105             OString                expVal( kTestStr139 );
18106             double                 input = atof("-3.141592653589793238462643");
18107 
18108             aStrBuf.append( input );
18109 
18110             CPPUNIT_ASSERT_MESSAGE
18111             (
18112                 "arrOUS[3] append -3.141592653589793238462643",
18113                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
18114             );
18115 
18116         }
18117 
18118         void append_029()
18119         {
18120             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
18121             OString                expVal( kTestStr109 );
18122             double                 input = atof("-3.0");
18123 
18124             aStrBuf.append( input );
18125 
18126             CPPUNIT_ASSERT_MESSAGE
18127             (
18128                 "arrOUS[4] append -3.0",
18129                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
18130             );
18131 
18132         }
18133 
18134         void append_030()
18135         {
18136             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
18137             OString                expVal( kTestStr110 );
18138             double                 input = atof("-3.5");
18139 
18140             aStrBuf.append( input );
18141 
18142             CPPUNIT_ASSERT_MESSAGE
18143             (
18144                 "arrOUS[4] append -3.5",
18145                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
18146             );
18147 
18148         }
18149 
18150         void append_031()
18151         {
18152             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
18153             OString                expVal( kTestStr111 );
18154             double                 input = atof("-3.0625");
18155 
18156             aStrBuf.append( input );
18157 
18158             CPPUNIT_ASSERT_MESSAGE
18159             (
18160                 "arrOUS[4] append -3.0625",
18161                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
18162             );
18163 
18164         }
18165 
18166         void append_032()
18167         {
18168             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
18169             OString                expVal( kTestStr112 );
18170             double                 input = atof("-3.502525");
18171 
18172             aStrBuf.append( input );
18173 
18174             CPPUNIT_ASSERT_MESSAGE
18175             (
18176                 "arrOUS[4] append -3.502525",
18177                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
18178             );
18179 
18180         }
18181 
18182         void append_033()
18183         {
18184             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
18185             OString                expVal( kTestStr140 );
18186             double                 input = atof("-3.141592653589793");
18187 
18188             aStrBuf.append( input );
18189 
18190             CPPUNIT_ASSERT_MESSAGE
18191             (
18192                 "arrOUS[4] append -3.141592653589793",
18193                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
18194             );
18195 
18196         }
18197 
18198         void append_034()
18199         {
18200             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
18201             OString                expVal( kTestStr141 );
18202             double                  input = atof("-3.14159265358979323");
18203 
18204             aStrBuf.append( input );
18205 
18206             CPPUNIT_ASSERT_MESSAGE
18207             (
18208                 "arrOUS[4] append -3.14159265358979323",
18209                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
18210             );
18211 
18212         }
18213 
18214 */
append_035()18215         void append_035()
18216         {
18217             ::rtl::OStringBuffer   aStrBuf( *arrOUS[4] );
18218             // LLA: OString                expVal( kTestStr142 );
18219             double                 input = atof("-3.141592653589793238462643");
18220 
18221             sal_Int32 nLen = aStrBuf.getLength();
18222             aStrBuf.append( input );
18223 
18224             CPPUNIT_ASSERT_MESSAGE
18225             (
18226                 "arrOUS[4] append -3.141592653589793238462643",
18227                 checkIfStrBufContainAtPosTheDouble(aStrBuf, nLen, input)
18228             );
18229 
18230         }
18231 /*
18232 #ifdef WITH_CORE
18233         void append_036()
18234         {
18235             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
18236             OString                expVal( kTestStr102 );
18237             double                 input = atof("-3.0");
18238 
18239             aStrBuf.append( input );
18240 
18241             CPPUNIT_ASSERT_MESSAGE
18242             (
18243                 "OStringBuffer( kSInt32Max ) append -3.0",
18244                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
18245             );
18246 
18247         }
18248 
18249         void append_037()
18250         {
18251             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
18252             OString                expVal( kTestStr103 );
18253             double                 input = atof("-3.5");
18254 
18255             aStrBuf.append( input );
18256 
18257             CPPUNIT_ASSERT_MESSAGE
18258             (
18259                 "OStringBuffer( kSInt32Max ) append -3.5",
18260                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
18261             );
18262 
18263         }
18264 
18265         void append_038()
18266         {
18267             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
18268             OString                expVal( kTestStr104 );
18269             double                 input = atof("-3.0625");
18270 
18271             aStrBuf.append( input );
18272 
18273             CPPUNIT_ASSERT_MESSAGE
18274             (
18275                 "OStringBuffer( kSInt32Max ) append -3.0625",
18276                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
18277             );
18278 
18279         }
18280 
18281         void append_039()
18282         {
18283             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
18284             OString                expVal( kTestStr105 );
18285             double                 input = atof("-3.502525");
18286 
18287             aStrBuf.append( input );
18288 
18289             CPPUNIT_ASSERT_MESSAGE
18290             (
18291                 "OStringBuffer( kSInt32Max ) append -3.502525",
18292                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
18293             );
18294 
18295         }
18296 
18297         void append_040()
18298         {
18299             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
18300             OString                expVal( kTestStr137 );
18301             double                 input = atof("-3.141592653589793");
18302 
18303             aStrBuf.append( input );
18304 
18305             CPPUNIT_ASSERT_MESSAGE
18306             (
18307                 "OStringBuffer( kSInt32Max ) append -3.141592653589793",
18308                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
18309             );
18310 
18311         }
18312 
18313         void append_041()
18314         {
18315             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
18316             OString                expVal( kTestStr138 );
18317             double                 input = atof("-3.14159265358979323");
18318 
18319             aStrBuf.append( input );
18320 
18321             CPPUNIT_ASSERT_MESSAGE
18322             (
18323                 "OStringBuffer( kSInt32Max ) append -3.14159265358979323",
18324                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
18325             );
18326 
18327         }
18328 
18329         void append_042()
18330         {
18331             ::rtl::OStringBuffer   aStrBuf( kSInt32Max );
18332             OString                expVal( kTestStr139 );
18333             double                 input = atof("-3.141592653589793238462643");
18334 
18335             aStrBuf.append( input );
18336 
18337             CPPUNIT_ASSERT_MESSAGE
18338             (
18339                 "OStringBuffer( kSInt32Max ) append -3.141592653589793238462643",
18340                 aStrBuf == expVal && aStrBuf.getLength() == expVal.getLength()
18341             );
18342 
18343         }
18344 #endif
18345 */
18346         CPPUNIT_TEST_SUITE( append_009_Double_Negative );
18347         CPPUNIT_TEST( append_001 );
18348 /*
18349         CPPUNIT_TEST( append_002 );
18350         CPPUNIT_TEST( append_003 );
18351         CPPUNIT_TEST( append_004 );
18352         CPPUNIT_TEST( append_005 );
18353         CPPUNIT_TEST( append_006 );
18354         CPPUNIT_TEST( append_007 );
18355         CPPUNIT_TEST( append_008 );
18356         CPPUNIT_TEST( append_009 );
18357         CPPUNIT_TEST( append_010 );
18358         CPPUNIT_TEST( append_011 );
18359         CPPUNIT_TEST( append_012 );
18360         CPPUNIT_TEST( append_013 );
18361         CPPUNIT_TEST( append_014 );
18362         CPPUNIT_TEST( append_015 );
18363         CPPUNIT_TEST( append_016 );
18364         CPPUNIT_TEST( append_017 );
18365         CPPUNIT_TEST( append_018 );
18366         CPPUNIT_TEST( append_019 );
18367         CPPUNIT_TEST( append_020 );
18368         CPPUNIT_TEST( append_021 );
18369         CPPUNIT_TEST( append_022 );
18370         CPPUNIT_TEST( append_023 );
18371         CPPUNIT_TEST( append_024 );
18372         CPPUNIT_TEST( append_025 );
18373 #ifdef WITH_CORE
18374         CPPUNIT_TEST( append_026 );
18375         CPPUNIT_TEST( append_027 );
18376         CPPUNIT_TEST( append_028 );
18377         CPPUNIT_TEST( append_029 );
18378         CPPUNIT_TEST( append_030 );
18379 #endif
18380 */
18381         CPPUNIT_TEST( append_035 );
18382         CPPUNIT_TEST_SUITE_END();
18383     };
18384 } // namespace rtl_OStringBuffer
18385 
18386 
18387 // -----------------------------------------------------------------------------
18388 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::ctors);
18389 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::makeStringAndClear);
18390 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::getLength);
18391 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::getCapacity);
18392 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::ensureCapacity);
18393 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::setLength);
18394 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::charAt);
18395 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::csuc);
18396 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::getStr);
18397 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::setCharAt);
18398 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_001);
18399 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_002);
18400 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_003);
18401 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_004);
18402 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_005);
18403 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32);
18404 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32_Bounderies);
18405 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32_Negative);
18406 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32_WrongRadix);
18407 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32_defaultParam);
18408 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64);
18409 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64_Bounderies);
18410 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64_Negative);
18411 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64_WrongRadix);
18412 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64_defaultParam);
18413 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_008_float);
18414 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_008_Float_Negative);
18415 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_009_double);
18416 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_009_Double_Negative);
18417 
18418 CPPUNIT_PLUGIN_IMPLEMENT();
18419