Version 4.2.0.1, tag libreoffice-4.2.0.1
[LibreOffice.git] / sal / qa / OStringBuffer / rtl_OStringBuffer.cxx
blob41477e92d56ca478f8c4a6f601569221cfa3bf35
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include <sal/types.h>
21 #include <rtl/string.hxx>
22 #include <rtl_String_Const.h>
23 #include <rtl_String_Utils.hxx>
24 #include <rtl/strbuf.hxx>
26 #include "cppunit/TestAssert.h"
27 #include "cppunit/TestFixture.h"
28 #include "cppunit/extensions/HelperMacros.h"
29 #include "cppunit/plugin/TestPlugIn.h"
30 #include <string.h>
32 using ::rtl::OStringBuffer;
33 using ::rtl::OString;
34 // This file contains cppunit tests for the
35 // OString and OStringBuffer classes
37 //------------------------------------------------------------------------
38 // testing constructors
39 //------------------------------------------------------------------------
41 namespace rtl_OStringBuffer
43 class ctors : public CppUnit::TestFixture
45 public:
47 void ctor_001()
49 ::rtl::OStringBuffer aStrBuf;
50 const sal_Char* pStr = aStrBuf.getStr();
52 CPPUNIT_ASSERT_MESSAGE
54 "New OStringBuffer containing no characters",
55 aStrBuf.isEmpty() &&
56 *pStr == '\0' && aStrBuf.getCapacity() == 16
60 void ctor_002()
62 ::rtl::OString aStrtmp( kTestStr1 );
63 ::rtl::OStringBuffer aStrBuftmp( aStrtmp );
64 ::rtl::OStringBuffer aStrBuf( aStrBuftmp );
65 // sal_Bool res = cmpstr(aStrBuftmp.getStr(),aStrBuf.getStr());
67 sal_Int32 nLenStrBuftmp = aStrBuftmp.getLength();
69 rtl::OString sStr(aStrBuftmp.getStr());
70 sal_Bool res = aStrtmp.equals( sStr );
72 CPPUNIT_ASSERT_MESSAGE
74 "New OStringBuffer from another OStringBuffer",
75 aStrBuf.getLength() == nLenStrBuftmp &&
76 aStrBuf.getCapacity() == aStrBuftmp.getCapacity() &&
77 res
82 void ctor_003()
84 ::rtl::OStringBuffer aStrBuf1(kTestStr2Len);
85 ::rtl::OStringBuffer aStrBuf2(0);
87 const sal_Char* pStr1 = aStrBuf1.getStr();
88 const sal_Char* pStr2 = aStrBuf2.getStr();
90 CPPUNIT_ASSERT_MESSAGE
92 "New OStringBuffer containing no characters and contain assigned capacity",
93 aStrBuf1.isEmpty() &&
94 *pStr1 == '\0' &&
95 aStrBuf1.getCapacity() == kTestStr2Len &&
96 aStrBuf2.isEmpty() &&
97 *pStr2 == '\0' &&
98 aStrBuf2.getCapacity() == 0
103 void ctor_003_1()
105 // StringBuffer with created negative size are the
106 // same as empty StringBuffers
107 ::rtl::OStringBuffer aStrBuf3(kNonSInt32Max);
109 const sal_Char* pStr = aStrBuf3.getStr();
111 CPPUNIT_ASSERT_MESSAGE
113 "New OStringBuffer containing no characters and contain assigned capacity",
114 aStrBuf3.isEmpty() &&
115 *pStr == '\0' &&
116 aStrBuf3.getCapacity() == kNonSInt32Max
120 void ctor_004()
122 ::rtl::OString aStrtmp( kTestStr1 );
123 ::rtl::OStringBuffer aStrBuf( aStrtmp );
124 sal_Int32 leg = aStrBuf.getLength();
126 CPPUNIT_ASSERT_MESSAGE
128 "New OStringBuffer from OString",
129 aStrBuf.getStr() == aStrtmp &&
130 leg == aStrtmp.pData->length &&
131 aStrBuf.getCapacity() == leg+16
136 void ctor_005() {
137 rtl::OStringBuffer b1;
138 b1.makeStringAndClear();
139 rtl::OStringBuffer b2(b1);
140 (void)b2;
143 void ctor_006()
145 //pass in a const char*, get a temp
146 //OString
147 ::rtl::OStringBuffer aStrBuf(kTestStr1);
148 sal_Int32 leg = aStrBuf.getLength();
150 CPPUNIT_ASSERT_MESSAGE
152 "New OStringBuffer from const char*",
153 leg == rtl_str_getLength(kTestStr1) &&
154 aStrBuf.getCapacity() == leg+16
158 CPPUNIT_TEST_SUITE(ctors);
159 CPPUNIT_TEST(ctor_001);
160 CPPUNIT_TEST(ctor_002);
161 CPPUNIT_TEST(ctor_003);
162 CPPUNIT_TEST(ctor_003_1);
163 CPPUNIT_TEST(ctor_004);
164 CPPUNIT_TEST(ctor_005);
165 CPPUNIT_TEST(ctor_006);
166 CPPUNIT_TEST_SUITE_END();
169 // -----------------------------------------------------------------------------
171 class makeStringAndClear : public CppUnit::TestFixture
173 OString* arrOUS[6];
175 public:
176 void setUp()
178 arrOUS[0] = new OString( kTestStr1 );
179 arrOUS[1] = new OString( kTestStr14 );
180 arrOUS[2] = new OString( kTestStr25 );
181 arrOUS[3] = new OString( kTestStr27 );
182 arrOUS[4] = new OString( kTestStr29 );
183 arrOUS[5] = new OString( "\0", 1 );
187 void tearDown()
189 delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
190 delete arrOUS[3]; delete arrOUS[4]; delete arrOUS[5];
193 void makeStringAndClear_001()
195 ::rtl::OStringBuffer aStrBuf1;
196 ::rtl::OString aStr1;
198 sal_Bool lastRes = (aStrBuf1.makeStringAndClear() == aStr1 );
200 CPPUNIT_ASSERT_MESSAGE
202 "two empty strings(def. constructor)",
203 lastRes && ( aStrBuf1.getCapacity() == 0 ) &&
204 ( *(aStrBuf1.getStr()) == '\0' )
209 void makeStringAndClear_002()
211 ::rtl::OStringBuffer aStrBuf2(26);
212 ::rtl::OString aStr2;
214 sal_Bool lastRes = (aStrBuf2.makeStringAndClear() == aStr2 );
216 CPPUNIT_ASSERT_MESSAGE
218 "two empty strings(with a argu)",
219 lastRes && ( aStrBuf2.getCapacity() == 0 ) &&
220 ( *(aStrBuf2.getStr()) == '\0' )
225 void makeStringAndClear_003()
227 ::rtl::OStringBuffer aStrBuf3(*arrOUS[0]);
228 ::rtl::OString aStr3(*arrOUS[0]);
230 sal_Bool lastRes = (aStrBuf3.makeStringAndClear() == aStr3 );
232 CPPUNIT_ASSERT_MESSAGE
234 "normal string",
235 lastRes && ( aStrBuf3.getCapacity() == 0 ) &&
236 ( *(aStrBuf3.getStr()) == '\0' )
241 void makeStringAndClear_004()
243 ::rtl::OStringBuffer aStrBuf4(*arrOUS[1]);
244 ::rtl::OString aStr4(*arrOUS[1]);
246 sal_Bool lastRes = (aStrBuf4.makeStringAndClear() == aStr4 );
248 CPPUNIT_ASSERT_MESSAGE
250 "string with space ",
251 lastRes && ( aStrBuf4.getCapacity() == 0 ) &&
252 ( *(aStrBuf4.getStr()) == '\0' )
256 void makeStringAndClear_005()
258 ::rtl::OStringBuffer aStrBuf5(*arrOUS[2]);
259 ::rtl::OString aStr5(*arrOUS[2]);
261 sal_Bool lastRes = (aStrBuf5.makeStringAndClear() == aStr5 );
263 CPPUNIT_ASSERT_MESSAGE
265 "empty string",
266 lastRes && ( aStrBuf5.getCapacity() == 0 ) &&
267 ( *(aStrBuf5.getStr()) == '\0' )
271 void makeStringAndClear_006()
273 ::rtl::OStringBuffer aStrBuf6(*arrOUS[3]);
274 ::rtl::OString aStr6(*arrOUS[3]);
276 sal_Bool lastRes = (aStrBuf6.makeStringAndClear() == aStr6 );
278 CPPUNIT_ASSERT_MESSAGE
280 "string with a character",
281 lastRes && ( aStrBuf6.getCapacity() == 0 ) &&
282 ( *(aStrBuf6.getStr()) == '\0' )
286 void makeStringAndClear_007()
288 ::rtl::OStringBuffer aStrBuf7(*arrOUS[4]);
289 ::rtl::OString aStr7(*arrOUS[4]);
291 sal_Bool lastRes = (aStrBuf7.makeStringAndClear() == aStr7 );
293 CPPUNIT_ASSERT_MESSAGE
295 "string with special characters",
296 lastRes && ( aStrBuf7.getCapacity() == 0 ) &&
297 ( *(aStrBuf7.getStr()) == '\0' )
301 void makeStringAndClear_008()
303 ::rtl::OStringBuffer aStrBuf8(*arrOUS[5]);
304 ::rtl::OString aStr8(*arrOUS[5]);
306 sal_Bool lastRes = (aStrBuf8.makeStringAndClear() == aStr8 );
308 CPPUNIT_ASSERT_MESSAGE
310 "string only with (\0)",
311 lastRes && ( aStrBuf8.getCapacity() == 0 ) &&
312 ( *(aStrBuf8.getStr()) == '\0' )
316 CPPUNIT_TEST_SUITE(makeStringAndClear);
317 CPPUNIT_TEST(makeStringAndClear_001);
318 CPPUNIT_TEST(makeStringAndClear_002);
319 CPPUNIT_TEST(makeStringAndClear_003);
320 CPPUNIT_TEST(makeStringAndClear_004);
321 CPPUNIT_TEST(makeStringAndClear_005);
322 CPPUNIT_TEST(makeStringAndClear_006);
323 CPPUNIT_TEST(makeStringAndClear_007);
324 CPPUNIT_TEST(makeStringAndClear_008);
325 CPPUNIT_TEST_SUITE_END();
329 class remove : public CppUnit::TestFixture
331 public:
332 void setUp()
336 void tearDown()
340 void remove_001()
342 ::rtl::OStringBuffer sb(
343 RTL_CONSTASCII_STRINGPARAM("Red Hat, Inc."));
345 sb.remove(0, 4);
346 CPPUNIT_ASSERT(sb.toString().equalsL(
347 RTL_CONSTASCII_STRINGPARAM("Hat, Inc.")));
349 sb.remove(3, 6);
350 CPPUNIT_ASSERT(sb.toString().equalsL(
351 RTL_CONSTASCII_STRINGPARAM("Hat")));
353 sb.remove(0, 100);
355 CPPUNIT_ASSERT(sb.toString().isEmpty());
357 sb.append(RTL_CONSTASCII_STRINGPARAM("Red Hat, Inc."));
359 sb.remove(3, 100);
361 CPPUNIT_ASSERT(sb.toString().equalsL(
362 RTL_CONSTASCII_STRINGPARAM("Red")));
364 sb.remove(0, sb.getLength());
366 CPPUNIT_ASSERT(sb.toString().isEmpty());
369 CPPUNIT_TEST_SUITE(remove);
370 CPPUNIT_TEST(remove_001);
371 CPPUNIT_TEST_SUITE_END();
375 // -----------------------------------------------------------------------------
377 class getLength : public CppUnit::TestFixture
379 OString* arrOUS[6];
381 public:
382 void setUp()
384 arrOUS[0] = new OString( kTestStr1 );
385 arrOUS[1] = new OString( "1" );
386 arrOUS[2] = new OString( );
387 arrOUS[3] = new OString( "" );
388 arrOUS[4] = new OString( "\0", 1 );
389 arrOUS[5] = new OString( kTestStr2 );
393 void tearDown()
395 delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
396 delete arrOUS[3]; delete arrOUS[4]; delete arrOUS[5];
399 void getLength_001()
401 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
402 sal_Int32 expVal = kTestStr1Len;
404 CPPUNIT_ASSERT_MESSAGE
406 "length of ascii string",
407 aStrBuf.getLength() == expVal
412 void getLength_002()
414 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
415 sal_Int32 expVal = 1;
417 CPPUNIT_ASSERT_MESSAGE
419 "length of ascci string of size 1",
420 aStrBuf.getLength() == expVal
424 void getLength_003()
426 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
427 sal_Int32 expVal = 0;
429 CPPUNIT_ASSERT_MESSAGE
431 "length of empty string",
432 aStrBuf.getLength() == expVal
436 void getLength_004()
438 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
439 sal_Int32 expVal = 0;
441 CPPUNIT_ASSERT_MESSAGE
443 "length of empty string (empty ascii string arg)",
444 aStrBuf.getLength() == expVal
448 void getLength_005()
450 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
451 sal_Int32 expVal = 1;
453 CPPUNIT_ASSERT_MESSAGE
455 "length of string with \\0 embedded",
456 aStrBuf.getLength() == expVal
460 void getLength_006()
462 ::rtl::OStringBuffer aStrBuf( *arrOUS[5] );
463 sal_Int32 expVal = kTestStr2Len;
465 CPPUNIT_ASSERT_MESSAGE
467 "length(>16) of ascii string",
468 aStrBuf.getLength() == expVal
472 void getLength_007()
474 ::rtl::OStringBuffer aStrBuf;
475 sal_Int32 expVal = 0;
477 CPPUNIT_ASSERT_MESSAGE
479 "length of empty string (default constructor)",
480 aStrBuf.getLength()== expVal
484 void getLength_008()
486 ::rtl::OStringBuffer aStrBuf( 26 );
487 sal_Int32 expVal = 0;
489 CPPUNIT_ASSERT_MESSAGE
491 "length of empty string (with capacity)",
492 aStrBuf.getLength()== expVal
496 CPPUNIT_TEST_SUITE( getLength );
497 CPPUNIT_TEST( getLength_001 );
498 CPPUNIT_TEST( getLength_002 );
499 CPPUNIT_TEST( getLength_003 );
500 CPPUNIT_TEST( getLength_004 );
501 CPPUNIT_TEST( getLength_005 );
502 CPPUNIT_TEST( getLength_006 );
503 CPPUNIT_TEST( getLength_007 );
504 CPPUNIT_TEST( getLength_008 );
505 CPPUNIT_TEST_SUITE_END();
508 // -----------------------------------------------------------------------------
510 class getCapacity : public CppUnit::TestFixture
512 OString* arrOUS[6];
514 public:
515 void setUp()
517 arrOUS[0] = new OString( kTestStr1 );
518 arrOUS[1] = new OString( "1" );
519 arrOUS[2] = new OString( );
520 arrOUS[3] = new OString( "" );
521 arrOUS[4] = new OString( "\0", 1 );
522 arrOUS[5] = new OString( kTestStr2 );
526 void tearDown()
528 delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
529 delete arrOUS[3]; delete arrOUS[4]; delete arrOUS[5];
532 void getCapacity_001()
534 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
535 sal_Int32 expVal = kTestStr1Len+16;
537 CPPUNIT_ASSERT_MESSAGE
539 "capacity of ascii string",
540 aStrBuf.getCapacity()== expVal
545 void getCapacity_002()
547 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
548 sal_Int32 expVal = 1+16;
550 CPPUNIT_ASSERT_MESSAGE
552 "capacity of ascci string of size 1",
553 aStrBuf.getCapacity() == expVal
557 void getCapacity_003()
559 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
560 sal_Int32 expVal = 0+16;
562 CPPUNIT_ASSERT_MESSAGE
564 "capacity of empty string",
565 aStrBuf.getCapacity() == expVal
569 void getCapacity_004()
571 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
572 sal_Int32 expVal = 0+16;
574 CPPUNIT_ASSERT_MESSAGE
576 "capacity of empty string (empty ascii string arg)",
577 aStrBuf.getCapacity()== expVal
581 void getCapacity_005()
583 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
584 sal_Int32 expVal = 1+16;
586 CPPUNIT_ASSERT_MESSAGE
588 "capacity of string with \\0 embedded",
589 aStrBuf.getCapacity() == expVal
593 void getCapacity_006()
595 ::rtl::OStringBuffer aStrBuf( *arrOUS[5] );
596 sal_Int32 expVal = kTestStr2Len+16;
598 CPPUNIT_ASSERT_MESSAGE
600 "capacity(>16) of ascii string",
601 aStrBuf.getCapacity() == expVal
605 void getCapacity_007()
607 ::rtl::OStringBuffer aStrBuf;
608 sal_Int32 expVal = 16;
610 CPPUNIT_ASSERT_MESSAGE
612 "capacity of empty string (default constructor)",
613 aStrBuf.getCapacity() == expVal
617 void getCapacity_009()
619 ::rtl::OStringBuffer aStrBuf( kNonSInt32Max );
620 sal_Int32 expVal = kNonSInt32Max;
622 CPPUNIT_ASSERT_MESSAGE
624 "capacity of empty string (with capacity -2147483648)",
625 aStrBuf.getCapacity() == expVal
629 void getCapacity_010()
631 ::rtl::OStringBuffer aStrBuf( 16 );
632 sal_Int32 expVal = 16;
634 CPPUNIT_ASSERT_MESSAGE
636 "capacity of empty string (with capacity 16)",
637 aStrBuf.getCapacity() == expVal
641 void getCapacity_011()
643 ::rtl::OStringBuffer aStrBuf( 6 );
644 sal_Int32 expVal = 6;
646 CPPUNIT_ASSERT_MESSAGE
648 "capacity of empty string (with capacity 6)",
649 aStrBuf.getCapacity() == expVal
653 void getCapacity_012()
655 ::rtl::OStringBuffer aStrBuf( 0 );
656 sal_Int32 expVal = 0;
658 CPPUNIT_ASSERT_MESSAGE
660 "capacity of empty string (with capacity 0)",
661 aStrBuf.getCapacity() == expVal
665 void getCapacity_013()
667 ::rtl::OStringBuffer aStrBuf( -2 );
668 sal_Int32 expVal = -2;
670 CPPUNIT_ASSERT_MESSAGE
672 "capacity of empty string (with capacity -2)",
673 aStrBuf.getCapacity() == expVal
677 CPPUNIT_TEST_SUITE( getCapacity );
678 CPPUNIT_TEST( getCapacity_001 );
679 CPPUNIT_TEST( getCapacity_002 );
680 CPPUNIT_TEST( getCapacity_003 );
681 CPPUNIT_TEST( getCapacity_004 );
682 CPPUNIT_TEST( getCapacity_005 );
683 CPPUNIT_TEST( getCapacity_006 );
684 CPPUNIT_TEST( getCapacity_007 );
685 CPPUNIT_TEST( getCapacity_009 );
686 CPPUNIT_TEST( getCapacity_010 );
687 CPPUNIT_TEST( getCapacity_011 );
688 CPPUNIT_TEST( getCapacity_012 );
689 CPPUNIT_TEST( getCapacity_013 );
690 CPPUNIT_TEST_SUITE_END();
692 // -----------------------------------------------------------------------------
694 class ensureCapacity : public CppUnit::TestFixture
696 void ensureCapacity_001()
698 sal_Int32 expVal = 16;
699 ::rtl::OStringBuffer aStrBuf;
700 sal_Int32 input = 5;
702 aStrBuf.ensureCapacity( input );
704 CPPUNIT_ASSERT_MESSAGE
706 "capacity equal to 16, minimum is 5",
707 aStrBuf.getCapacity() == expVal
712 void ensureCapacity_002()
714 sal_Int32 expVal = 16;
715 ::rtl::OStringBuffer aStrBuf;
716 sal_Int32 input = -5;
718 aStrBuf.ensureCapacity( input );
720 CPPUNIT_ASSERT_MESSAGE
722 "capacity equal to 16, minimum is -5",
723 aStrBuf.getCapacity() == expVal
728 void ensureCapacity_003()
730 sal_Int32 expVal = 16;
731 ::rtl::OStringBuffer aStrBuf;
732 sal_Int32 input = 0;
734 aStrBuf.ensureCapacity( input );
736 CPPUNIT_ASSERT_MESSAGE
738 "capacity equal to 16, minimum is 0",
739 aStrBuf.getCapacity() == expVal
744 void ensureCapacity_004() //the testcase is based on comments
746 sal_Int32 expVal = 20;
747 ::rtl::OStringBuffer aStrBuf;
748 sal_Int32 input = 20;
750 aStrBuf.ensureCapacity( input );
752 CPPUNIT_ASSERT_MESSAGE
754 "capacity equal to 16, minimum is 20",
755 aStrBuf.getCapacity() == expVal
760 void ensureCapacity_005()
762 sal_Int32 expVal = 50;
763 ::rtl::OStringBuffer aStrBuf;
764 sal_Int32 input = 50;
766 aStrBuf.ensureCapacity( input );
768 CPPUNIT_ASSERT_MESSAGE
770 "capacity equal to 16, minimum is 50",
771 aStrBuf.getCapacity() == expVal
776 void ensureCapacity_006()
778 sal_Int32 expVal = 20;
779 ::rtl::OStringBuffer aStrBuf( 6 );
780 sal_Int32 input = 20;
782 aStrBuf.ensureCapacity( input );
784 CPPUNIT_ASSERT_MESSAGE
786 "capacity equal to 6, minimum is 20",
787 aStrBuf.getCapacity() == expVal
792 void ensureCapacity_007()
794 sal_Int32 expVal = 6;
795 ::rtl::OStringBuffer aStrBuf( 6 );
796 sal_Int32 input = 2;
798 aStrBuf.ensureCapacity( input );
800 CPPUNIT_ASSERT_MESSAGE
802 "capacity equal to 6, minimum is 2",
803 aStrBuf.getCapacity() == expVal
808 void ensureCapacity_008()
810 sal_Int32 expVal = 6;
811 ::rtl::OStringBuffer aStrBuf( 6 );
812 sal_Int32 input = -6;
814 aStrBuf.ensureCapacity( input );
816 CPPUNIT_ASSERT_MESSAGE
818 "capacity equal to 6, minimum is -6",
819 aStrBuf.getCapacity() == expVal
824 void ensureCapacity_009() //the testcase is based on comments
826 sal_Int32 expVal = 10;
827 ::rtl::OStringBuffer aStrBuf( 6 );
828 sal_Int32 input = 10;
830 aStrBuf.ensureCapacity( input );
832 CPPUNIT_ASSERT_MESSAGE
834 "capacity equal to 6, minimum is -6",
835 aStrBuf.getCapacity() == expVal
840 void ensureCapacity_010()
842 sal_Int32 expVal = 6;
843 ::rtl::OStringBuffer aStrBuf( 0 );
844 sal_Int32 input = 6;
846 aStrBuf.ensureCapacity( input );
848 CPPUNIT_ASSERT_MESSAGE
850 "capacity equal to 0, minimum is 6",
851 aStrBuf.getCapacity() == expVal
856 void ensureCapacity_011() //the testcase is based on comments
858 sal_Int32 expVal = 2; // capacity is x = (str->length + 1) * 2; minimum < x ? x : minimum
859 ::rtl::OStringBuffer aStrBuf( 0 );
860 sal_Int32 input = 1;
862 aStrBuf.ensureCapacity( input );
864 CPPUNIT_ASSERT_MESSAGE
866 "capacity equal to 0, minimum is 1",
867 aStrBuf.getCapacity() == expVal
872 void ensureCapacity_012()
874 sal_Int32 expVal = 0;
875 ::rtl::OStringBuffer aStrBuf( 0 );
876 sal_Int32 input = -1;
878 aStrBuf.ensureCapacity( input );
880 CPPUNIT_ASSERT_MESSAGE
882 "capacity equal to 0, minimum is -1",
883 aStrBuf.getCapacity() == expVal
888 void ensureCapacity_018()
890 sal_Int32 expVal = 65535;
891 ::rtl::OStringBuffer aStrBuf( kNonSInt32Max );
892 sal_Int32 input = 65535;
894 aStrBuf.ensureCapacity( input );
896 CPPUNIT_ASSERT_MESSAGE
898 "capacity equal to -2147483648, minimum is 65535",
899 aStrBuf.getCapacity() == expVal
904 void ensureCapacity_020()
906 sal_Int32 expVal = 2;
907 ::rtl::OStringBuffer aStrBuf( kNonSInt32Max );
908 sal_Int32 input = -1;
910 aStrBuf.ensureCapacity( input );
912 CPPUNIT_ASSERT_MESSAGE
914 "capacity equal to -2147483648, minimum is -1",
915 aStrBuf.getCapacity() == expVal
920 void ensureCapacity_021()
922 sal_Int32 expVal = 2;
923 ::rtl::OStringBuffer aStrBuf( kNonSInt32Max );
924 sal_Int32 input = 0;
926 aStrBuf.ensureCapacity( input );
928 CPPUNIT_ASSERT_MESSAGE
930 "capacity equal to -2147483648, minimum is 0",
931 aStrBuf.getCapacity() == expVal
936 void ensureCapacity_022()
938 sal_Int32 expVal = kNonSInt32Max;
939 ::rtl::OStringBuffer aStrBuf( kNonSInt32Max );
940 sal_Int32 input = kNonSInt32Max;
942 aStrBuf.ensureCapacity( input );
944 CPPUNIT_ASSERT_MESSAGE
946 "capacity equal to -2147483648, minimum is -2147483648",
947 aStrBuf.getCapacity() == expVal
952 CPPUNIT_TEST_SUITE( ensureCapacity );
953 CPPUNIT_TEST( ensureCapacity_001 );
954 CPPUNIT_TEST( ensureCapacity_002 );
955 CPPUNIT_TEST( ensureCapacity_003 );
956 CPPUNIT_TEST( ensureCapacity_004 );
957 CPPUNIT_TEST( ensureCapacity_005 );
958 CPPUNIT_TEST( ensureCapacity_006 );
959 CPPUNIT_TEST( ensureCapacity_007 );
960 CPPUNIT_TEST( ensureCapacity_008 );
961 CPPUNIT_TEST( ensureCapacity_009 );
962 CPPUNIT_TEST( ensureCapacity_010 );
963 CPPUNIT_TEST( ensureCapacity_011 );
964 CPPUNIT_TEST( ensureCapacity_012 );
965 CPPUNIT_TEST( ensureCapacity_018 );
966 CPPUNIT_TEST( ensureCapacity_020 );
967 CPPUNIT_TEST( ensureCapacity_021 );
968 CPPUNIT_TEST( ensureCapacity_022 );
969 CPPUNIT_TEST_SUITE_END();
972 // -----------------------------------------------------------------------------
974 class setLength : public CppUnit::TestFixture
976 OString* arrOUS[6];
978 public:
979 void setUp()
981 arrOUS[0] = new OString( kTestStr1 );
982 arrOUS[1] = new OString( "1" );
983 arrOUS[2] = new OString( );
984 arrOUS[3] = new OString( "" );
985 arrOUS[4] = new OString( "\0", 1 );
986 arrOUS[5] = new OString( kTestStr2 );
990 void tearDown()
992 delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
993 delete arrOUS[3]; delete arrOUS[4]; delete arrOUS[5];
996 void setLength_001()
998 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
999 sal_Int32 expVal1 = 50;
1000 ::rtl::OString expVal2( kTestStr1 );
1001 sal_Int32 expVal3 = 50;
1002 sal_Int32 input = 50;
1004 aStrBuf.setLength( input );
1006 CPPUNIT_ASSERT_MESSAGE
1008 "newLength more than the capacity of OStringBuffer(kTestStr1)",
1009 aStrBuf.getStr() == expVal2 &&
1010 aStrBuf.getLength() == expVal1 &&
1011 aStrBuf.getCapacity() == expVal3
1016 void setLength_002()
1018 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
1019 sal_Int32 expVal1 = kTestStr13Len;
1020 ::rtl::OString expVal2( kTestStr1 );
1021 sal_Int32 expVal3 = 32;
1022 sal_Int32 input = kTestStr13Len;
1024 aStrBuf.setLength( input );
1026 CPPUNIT_ASSERT_MESSAGE
1028 "newLength more than the length of OStringBuffer(kTestStr1)",
1029 aStrBuf.getStr() == expVal2 &&
1030 aStrBuf.getLength() == expVal1 &&
1031 aStrBuf.getCapacity() == expVal3
1036 void setLength_003()
1038 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
1039 sal_Int32 expVal1 = kTestStr1Len;
1040 ::rtl::OString expVal2( kTestStr1 );
1041 sal_Int32 expVal3 = 32;
1042 sal_Int32 input = kTestStr1Len;
1044 aStrBuf.setLength( input );
1046 CPPUNIT_ASSERT_MESSAGE
1048 "newLength equal to the length of OStringBuffer(kTestStr1)",
1049 aStrBuf.getStr() == expVal2 &&
1050 aStrBuf.getLength() == expVal1 &&
1051 aStrBuf.getCapacity() == expVal3
1056 void setLength_004()
1058 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
1059 sal_Int32 expVal1 = kTestStr7Len;
1060 ::rtl::OString expVal2( kTestStr7 );
1061 sal_Int32 expVal3 = 32;
1062 sal_Int32 input = kTestStr7Len;
1064 aStrBuf.setLength( input );
1066 CPPUNIT_ASSERT_MESSAGE
1068 "newLength less than the length of OStringBuffer(kTestStr1)",
1069 aStrBuf.getStr() == expVal2 &&
1070 aStrBuf.getLength() == expVal1 &&
1071 aStrBuf.getCapacity() == expVal3
1076 void setLength_005()
1078 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
1079 sal_Int32 expVal1 = 0;
1080 ::rtl::OString expVal2;
1081 sal_Int32 expVal3 = 32;
1082 sal_Int32 input = 0;
1084 aStrBuf.setLength( input );
1086 CPPUNIT_ASSERT_MESSAGE
1088 "newLength equal to 0",
1089 aStrBuf.getStr() == expVal2 &&
1090 aStrBuf.getLength() == expVal1 &&
1091 aStrBuf.getCapacity() == expVal3
1096 void setLength_006()
1098 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
1099 sal_Int32 expVal1 = 25;
1100 ::rtl::OString expVal2( *arrOUS[1] );
1101 sal_Int32 expVal3 = 25;
1102 sal_Int32 input = 25;
1104 aStrBuf.setLength( input );
1106 CPPUNIT_ASSERT_MESSAGE
1108 "newLength more than the capacity of OStringBuffer(1)",
1109 aStrBuf.getStr() == expVal2 &&
1110 aStrBuf.getLength() == expVal1 &&
1111 aStrBuf.getCapacity() == expVal3
1116 void setLength_007()
1118 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
1119 sal_Int32 expVal1 = kTestStr27Len;
1120 ::rtl::OString expVal2( *arrOUS[1] );
1121 sal_Int32 expVal3 = 17;
1122 sal_Int32 input = kTestStr27Len;
1124 aStrBuf.setLength( input );
1126 CPPUNIT_ASSERT_MESSAGE
1128 "newLength equal to the length of OStringBuffer(1)",
1129 aStrBuf.getStr() == expVal2 &&
1130 aStrBuf.getLength() == expVal1 &&
1131 aStrBuf.getCapacity() == expVal3
1136 void setLength_008()
1138 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
1139 sal_Int32 expVal1 = 0;
1140 ::rtl::OString expVal2;
1141 sal_Int32 expVal3 = 17;
1142 sal_Int32 input = 0;
1144 aStrBuf.setLength( input );
1146 CPPUNIT_ASSERT_MESSAGE
1148 "newLength less than the length of OUStringBuffer(1)",
1149 aStrBuf.getStr() == expVal2 &&
1150 aStrBuf.getLength() == expVal1 &&
1151 aStrBuf.getCapacity() == expVal3
1156 void setLength_009()
1158 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
1159 sal_Int32 expVal1 = 20;
1160 ::rtl::OString expVal2;
1161 sal_Int32 expVal3 = 20;
1162 sal_Int32 input = 20;
1164 aStrBuf.setLength( input );
1166 CPPUNIT_ASSERT_MESSAGE
1168 "newLength more than the capacity of OStringBuffer()",
1169 aStrBuf.getStr() == expVal2 &&
1170 aStrBuf.getLength() == expVal1 &&
1171 aStrBuf.getCapacity() == expVal3
1176 void setLength_010()
1178 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
1179 sal_Int32 expVal1 = 3;
1180 ::rtl::OString expVal2;
1181 sal_Int32 expVal3 = 16;
1182 sal_Int32 input = 3;
1184 aStrBuf.setLength( input );
1186 CPPUNIT_ASSERT_MESSAGE
1188 "newLength more than the length of OStringBuffer()",
1189 aStrBuf.getStr() == expVal2 &&
1190 aStrBuf.getLength() == expVal1 &&
1191 aStrBuf.getCapacity() == expVal3
1196 void setLength_011()
1198 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
1199 sal_Int32 expVal1 = 0;
1200 ::rtl::OString expVal2;
1201 sal_Int32 expVal3 = 16;
1202 sal_Int32 input = 0;
1204 aStrBuf.setLength( input );
1206 CPPUNIT_ASSERT_MESSAGE
1208 "newLength more than the length of OStringBuffer()",
1209 aStrBuf.getStr() == expVal2 &&
1210 aStrBuf.getLength() == expVal1 &&
1211 aStrBuf.getCapacity() == expVal3
1216 void setLength_012()
1218 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
1219 sal_Int32 expVal1 = 20;
1220 ::rtl::OString expVal2;
1221 sal_Int32 expVal3 = 20;
1222 sal_Int32 input = 20;
1224 aStrBuf.setLength( input );
1226 CPPUNIT_ASSERT_MESSAGE
1228 "newLength more than the capacity of OStringBuffer("")",
1229 aStrBuf.getStr() == expVal2 &&
1230 aStrBuf.getLength() == expVal1 &&
1231 aStrBuf.getCapacity() == expVal3
1236 void setLength_013()
1238 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
1239 sal_Int32 expVal1 = 5;
1240 ::rtl::OString expVal2;
1241 sal_Int32 expVal3 = 16;
1242 sal_Int32 input = 5;
1244 aStrBuf.setLength( input );
1246 CPPUNIT_ASSERT_MESSAGE
1248 "newLength more than the length of OStringBuffer("")",
1249 aStrBuf.getStr() == expVal2 &&
1250 aStrBuf.getLength() == expVal1 &&
1251 aStrBuf.getCapacity() == expVal3
1256 void setLength_014()
1258 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
1259 sal_Int32 expVal1 = 0;
1260 ::rtl::OString expVal2;
1261 sal_Int32 expVal3 = 16;
1262 sal_Int32 input = 0;
1264 aStrBuf.setLength( input );
1266 CPPUNIT_ASSERT_MESSAGE
1268 "newLength less than the length of OStringBuffer("")",
1269 aStrBuf.getStr() == expVal2 &&
1270 aStrBuf.getLength() == expVal1 &&
1271 aStrBuf.getCapacity() == expVal3
1276 void setLength_015()
1278 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
1279 sal_Int32 expVal1 = 20;
1280 ::rtl::OString expVal2;
1281 sal_Int32 expVal3 = 20;
1282 sal_Int32 input = 20;
1284 aStrBuf.setLength( input );
1286 CPPUNIT_ASSERT_MESSAGE
1288 "newLength more than the length of OStringBuffer(\0)",
1289 aStrBuf.getStr() == expVal2 &&
1290 aStrBuf.getLength() == expVal1 &&
1291 aStrBuf.getCapacity() == expVal3
1296 void setLength_016()
1298 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
1299 sal_Int32 expVal1 = 5;
1300 ::rtl::OString expVal2;
1301 sal_Int32 expVal3 = 17;
1302 sal_Int32 input = 5;
1304 aStrBuf.setLength( input );
1306 CPPUNIT_ASSERT_MESSAGE
1308 "newLength more than the length of OStringBuffer(\0)",
1309 aStrBuf.getStr() == expVal2 &&
1310 aStrBuf.getLength() == expVal1 &&
1311 aStrBuf.getCapacity() == expVal3
1316 void setLength_017()
1318 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
1319 sal_Int32 expVal1 = 0;
1320 ::rtl::OString expVal2;
1321 sal_Int32 expVal3 = 17;
1322 sal_Int32 input = 0;
1324 aStrBuf.setLength( input );
1326 CPPUNIT_ASSERT_MESSAGE
1328 "newLength less than the length of OStringBuffer(\0)",
1329 aStrBuf.getStr() == expVal2 &&
1330 aStrBuf.getLength() == expVal1 &&
1331 aStrBuf.getCapacity() == expVal3
1336 void setLength_018()
1338 ::rtl::OStringBuffer aStrBuf( *arrOUS[5] );
1339 sal_Int32 expVal1 = 50;
1340 ::rtl::OString expVal2( kTestStr2 );
1341 sal_Int32 expVal3 = 66;
1342 sal_Int32 input = 50;
1344 aStrBuf.setLength( input );
1346 CPPUNIT_ASSERT_MESSAGE
1348 "newLength more than the capacity of OStringBuffer(kTestStr2)",
1349 aStrBuf.getStr() == expVal2 &&
1350 aStrBuf.getLength() == expVal1 &&
1351 aStrBuf.getCapacity() == expVal3
1356 void setLength_019()
1358 ::rtl::OStringBuffer aStrBuf( *arrOUS[5] );
1359 sal_Int32 expVal1 = 40;
1360 ::rtl::OString expVal2(kTestStr2);
1361 sal_Int32 expVal3 = 48;
1362 sal_Int32 input = 40;
1364 aStrBuf.setLength( input );
1366 CPPUNIT_ASSERT_MESSAGE
1368 "newLength more than the length of OStringBuffer(kTestStr2)",
1369 aStrBuf.getStr() == expVal2 &&
1370 aStrBuf.getLength() == expVal1 &&
1371 aStrBuf.getCapacity() == expVal3
1376 void setLength_020()
1378 ::rtl::OStringBuffer aStrBuf( *arrOUS[5] );
1379 sal_Int32 expVal1 = kTestStr2Len;
1380 ::rtl::OString expVal2(kTestStr2);
1381 sal_Int32 expVal3 = 48;
1382 sal_Int32 input = kTestStr2Len;
1384 aStrBuf.setLength( input );
1386 CPPUNIT_ASSERT_MESSAGE
1388 "newLength equal to the length of OUStringBuffer(kTestStr2)",
1389 aStrBuf.getStr() == expVal2 &&
1390 aStrBuf.getLength() == expVal1 &&
1391 aStrBuf.getCapacity() == expVal3
1396 void setLength_021()
1398 ::rtl::OStringBuffer aStrBuf( *arrOUS[5] );
1399 sal_Int32 expVal1 = kTestStr7Len;
1400 ::rtl::OString expVal2(kTestStr7);
1401 sal_Int32 expVal3 = 48;
1402 sal_Int32 input = kTestStr7Len;
1404 aStrBuf.setLength( input );
1406 CPPUNIT_ASSERT_MESSAGE
1408 "newLength less than the length of OUStringBuffer(TestStr2)",
1409 aStrBuf.getStr() == expVal2 &&
1410 aStrBuf.getLength() == expVal1 &&
1411 aStrBuf.getCapacity() == expVal3
1416 void setLength_022()
1418 ::rtl::OStringBuffer aStrBuf( *arrOUS[5] );
1419 sal_Int32 expVal1 = 0;
1420 ::rtl::OString expVal2;
1421 sal_Int32 expVal3 = 48;
1422 sal_Int32 input = 0;
1424 aStrBuf.setLength( input );
1426 CPPUNIT_ASSERT_MESSAGE
1428 "newLength equal to 0",
1429 aStrBuf.getStr() == expVal2 &&
1430 aStrBuf.getLength() == expVal1 &&
1431 aStrBuf.getCapacity() == expVal3
1436 CPPUNIT_TEST_SUITE( setLength );
1437 CPPUNIT_TEST( setLength_001 );
1438 CPPUNIT_TEST( setLength_002 );
1439 CPPUNIT_TEST( setLength_003 );
1440 CPPUNIT_TEST( setLength_004 );
1441 CPPUNIT_TEST( setLength_005 );
1442 CPPUNIT_TEST( setLength_006 );
1443 CPPUNIT_TEST( setLength_007 );
1444 CPPUNIT_TEST( setLength_008 );
1445 CPPUNIT_TEST( setLength_009 );
1446 CPPUNIT_TEST( setLength_010 );
1447 CPPUNIT_TEST( setLength_011 );
1448 CPPUNIT_TEST( setLength_012 );
1449 CPPUNIT_TEST( setLength_013 );
1450 CPPUNIT_TEST( setLength_014 );
1451 CPPUNIT_TEST( setLength_015 );
1452 CPPUNIT_TEST( setLength_016 );
1453 CPPUNIT_TEST( setLength_017 );
1454 CPPUNIT_TEST( setLength_018 );
1455 CPPUNIT_TEST( setLength_019 );
1456 CPPUNIT_TEST( setLength_020 );
1457 CPPUNIT_TEST( setLength_021 );
1458 CPPUNIT_TEST( setLength_022 );
1459 CPPUNIT_TEST_SUITE_END();
1462 // -----------------------------------------------------------------------------
1464 class csuc : public CppUnit::TestFixture
1466 void csuc_001()
1468 const sal_Char* expVal = kTestStr1;
1469 ::rtl::OStringBuffer aStrBuf( kTestStr1 );
1470 sal_Int32 cmpLen = kTestStr1Len;
1472 // LLA: wrong access! const sal_Char* pstr = *&aStrBuf;
1473 const sal_Char* pstr = aStrBuf.getStr();
1474 int nEqual = strncmp(pstr, expVal, cmpLen);
1476 CPPUNIT_ASSERT_MESSAGE
1478 "test normal string",
1479 /* cmpstr( pstr, expVal, cmpLen ) */
1480 nEqual == 0
1485 void csuc_002()
1487 ::rtl::OStringBuffer aStrBuf;
1489 // LLA: wrong access! const sal_Char* pstr = *&aStrBuf;
1490 const sal_Char* pstr = aStrBuf.getStr();
1491 sal_Int32 nLen = strlen(pstr);
1493 CPPUNIT_ASSERT_MESSAGE
1495 "test empty string",
1496 // cmpstr( pstr, &expVal, cmpLen )
1497 nLen == 0
1502 CPPUNIT_TEST_SUITE( csuc );
1503 CPPUNIT_TEST( csuc_001 );
1504 CPPUNIT_TEST( csuc_002 );
1505 CPPUNIT_TEST_SUITE_END();
1508 // -----------------------------------------------------------------------------
1510 class getStr : public CppUnit::TestFixture
1512 void getStr_001()
1514 const sal_Char* expVal = kTestStr1;
1515 ::rtl::OStringBuffer aStrBuf( kTestStr1 );
1516 sal_Int32 cmpLen = kTestStr1Len;
1518 const sal_Char* pstr = aStrBuf.getStr();
1519 int nEqual = strncmp(pstr, expVal, cmpLen);
1521 CPPUNIT_ASSERT_MESSAGE
1523 "test normal string",
1524 nEqual == 0
1529 void getStr_002()
1531 // const sal_Char tmpUC=0x0;
1532 // const sal_Char* expVal=&tmpUC;
1533 ::rtl::OStringBuffer aStrBuf;
1534 // sal_Int32 cmpLen = 1;
1536 const sal_Char* pstr = aStrBuf.getStr();
1537 sal_Int32 nLen = strlen(pstr);
1539 CPPUNIT_ASSERT_MESSAGE
1541 "test empty string",
1542 pstr != 0 &&
1543 nLen == 0
1548 CPPUNIT_TEST_SUITE( getStr );
1549 CPPUNIT_TEST( getStr_001 );
1550 CPPUNIT_TEST( getStr_002 );
1551 CPPUNIT_TEST_SUITE_END();
1554 // -----------------------------------------------------------------------------
1556 class append_001 : public CppUnit::TestFixture
1558 OString* arrOUS[5];
1560 public:
1561 void setUp()
1563 arrOUS[0] = new OString( kTestStr7 );
1564 arrOUS[1] = new OString( );
1565 arrOUS[2] = new OString( kTestStr25 );
1566 arrOUS[3] = new OString( "" );
1567 arrOUS[4] = new OString( kTestStr28 );
1571 void tearDown()
1573 delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
1574 delete arrOUS[3]; delete arrOUS[4];
1577 void append_001_001()
1579 OString expVal( kTestStr1 );
1580 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
1581 OString input2( kTestStr8 );
1583 aStrBuf.append( input2 );
1585 CPPUNIT_ASSERT_MESSAGE
1587 "Appends the string(length less than 16) to the string buffer arrOUS[0]",
1588 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
1593 void append_001_002()
1595 OString expVal( kTestStr2 );
1596 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
1597 OString input2( kTestStr36 );
1599 aStrBuf.append( input2 );
1601 CPPUNIT_ASSERT_MESSAGE
1603 "Appends the string(length more than 16) to the string buffer arrOUS[0]",
1604 aStrBuf.getStr()== expVal &&
1605 aStrBuf.getLength() == expVal.getLength()
1610 void append_001_003()
1612 OString expVal( kTestStr37 );
1613 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
1614 OString input2( kTestStr23 );
1616 aStrBuf.append( input2 );
1618 CPPUNIT_ASSERT_MESSAGE
1620 "Appends the string(length equal to 16) to the string buffer arrOUS[0]",
1621 aStrBuf.getStr()== expVal &&
1622 aStrBuf.getLength() == expVal.getLength()
1627 void append_001_004()
1629 OString expVal( kTestStr7 );
1630 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
1631 OString input2;
1633 aStrBuf.append( input2 );
1635 CPPUNIT_ASSERT_MESSAGE
1637 "Appends the string(length equal to 0) to the string buffer arrOUS[0]",
1638 aStrBuf.getStr()== expVal &&
1639 aStrBuf.getLength() == expVal.getLength()
1644 void append_001_005()
1646 OString expVal( kTestStr7 );
1647 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
1648 OString input2( kTestStr7 );
1650 aStrBuf.append( input2 );
1652 CPPUNIT_ASSERT_MESSAGE
1654 "Appends the string(length less than 16) to the string buffer arrOUS[1]",
1655 aStrBuf.getStr()== expVal &&
1656 aStrBuf.getLength() == expVal.getLength()
1661 void append_001_006()
1663 OString expVal( kTestStr2 );
1664 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
1665 OString input2( kTestStr2 );
1667 aStrBuf.append( input2 );
1669 CPPUNIT_ASSERT_MESSAGE
1671 "Appends the string(length more than 16) to the string buffer arrOUS[1]",
1672 aStrBuf.getStr()== expVal &&
1673 aStrBuf.getLength() == expVal.getLength()
1678 void append_001_007()
1680 OString expVal( kTestStr1 );
1681 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
1682 OString input2( kTestStr1 );
1684 aStrBuf.append( input2 );
1686 CPPUNIT_ASSERT_MESSAGE
1688 "Appends the string(length equal to 16) to the string buffer arrOUS[1]",
1689 aStrBuf.getStr()== expVal &&
1690 aStrBuf.getLength() == expVal.getLength()
1695 void append_001_008()
1697 OString expVal;
1698 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
1699 OString input2;
1701 aStrBuf.append( input2 );
1703 CPPUNIT_ASSERT_MESSAGE
1705 "Appends the string(length equal to 0) to the string buffer arrOUS[1]",
1706 aStrBuf.getStr()== expVal &&
1707 aStrBuf.getLength() == expVal.getLength()
1712 void append_001_009()
1714 OString expVal( kTestStr7 );
1715 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
1716 OString input2( kTestStr7 );
1718 aStrBuf.append( input2 );
1720 CPPUNIT_ASSERT_MESSAGE
1722 "Appends the string(length less than 16) to the string buffer arrOUS[2]",
1723 aStrBuf.getStr()== expVal &&
1724 aStrBuf.getLength() == expVal.getLength()
1729 void append_001_010()
1731 OString expVal( kTestStr2 );
1732 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
1733 OString input2( kTestStr2 );
1735 aStrBuf.append( input2 );
1737 CPPUNIT_ASSERT_MESSAGE
1739 "Appends the string(length more than 16) to the string buffer arrOUS[2]",
1740 aStrBuf.getStr()== expVal &&
1741 aStrBuf.getLength() == expVal.getLength()
1746 void append_001_011()
1748 OString expVal( kTestStr1 );
1749 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
1750 OString input2( kTestStr1 );
1752 aStrBuf.append( input2 );
1754 CPPUNIT_ASSERT_MESSAGE
1756 "Appends the string(length equal to 16) to the string buffer arrOUS[2]",
1757 aStrBuf.getStr()== expVal &&
1758 aStrBuf.getLength() == expVal.getLength()
1763 void append_001_012()
1765 OString expVal;
1766 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
1767 OString input2;
1769 aStrBuf.append( input2 );
1771 CPPUNIT_ASSERT_MESSAGE
1773 "Appends the string(length equal to 0) to the string buffer arrOUS[2]",
1774 aStrBuf.getStr()== expVal &&
1775 aStrBuf.getLength() == expVal.getLength()
1780 void append_001_013()
1782 OString expVal( kTestStr7 );
1783 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
1784 OString input2( kTestStr7 );
1786 aStrBuf.append( input2 );
1788 CPPUNIT_ASSERT_MESSAGE
1790 "Appends the string(length less than 16) to the string buffer arrOUS[3]",
1791 aStrBuf.getStr()== expVal &&
1792 aStrBuf.getLength() == expVal.getLength()
1797 void append_001_014()
1799 OString expVal( kTestStr2 );
1800 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
1801 OString input2( kTestStr2 );
1803 aStrBuf.append( input2 );
1805 CPPUNIT_ASSERT_MESSAGE
1807 "Appends the string(length more than 16) to the string buffer arrOUS[3]",
1808 aStrBuf.getStr()== expVal &&
1809 aStrBuf.getLength() == expVal.getLength()
1814 void append_001_015()
1816 OString expVal( kTestStr1 );
1817 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
1818 OString input2( kTestStr1 );
1820 aStrBuf.append( input2 );
1822 CPPUNIT_ASSERT_MESSAGE
1824 "Appends the string(length equal to 16) to the string buffer arrOUS[3]",
1825 aStrBuf.getStr()== expVal &&
1826 aStrBuf.getLength() == expVal.getLength()
1831 void append_001_016()
1833 OString expVal;
1834 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
1835 OString input2;
1837 aStrBuf.append( input2 );
1839 CPPUNIT_ASSERT_MESSAGE
1841 "Appends the string(length equal to 0) to the string buffer arrOUS[3]",
1842 aStrBuf.getStr()== expVal &&
1843 aStrBuf.getLength() == expVal.getLength()
1848 void append_001_017()
1850 OString expVal( kTestStr29 );
1851 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
1852 OString input2( kTestStr38 );
1854 aStrBuf.append( input2 );
1856 CPPUNIT_ASSERT_MESSAGE
1858 "Appends the string(length less than 16) to the string buffer arrOUS[4]",
1859 aStrBuf.getStr()== expVal &&
1860 aStrBuf.getLength() == expVal.getLength()
1865 void append_001_018()
1867 OString expVal( kTestStr39 );
1868 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
1869 OString input2( kTestStr17 );
1871 aStrBuf.append( input2 );
1873 CPPUNIT_ASSERT_MESSAGE
1875 "Appends the string(length more than 16) to the string buffer arrOUS[4]",
1876 aStrBuf.getStr()== expVal &&
1877 aStrBuf.getLength() == expVal.getLength()
1882 void append_001_019()
1884 OString expVal( kTestStr40 );
1885 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
1886 OString input2( kTestStr31 );
1888 aStrBuf.append( input2 );
1890 CPPUNIT_ASSERT_MESSAGE
1892 "Appends the string(length equal to 16) to the string buffer arrOUS[4]",
1893 aStrBuf.getStr()== expVal &&
1894 aStrBuf.getLength() == expVal.getLength()
1899 void append_001_020()
1901 OString expVal( kTestStr28 );
1902 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
1903 OString input2;
1905 aStrBuf.append( input2 );
1907 CPPUNIT_ASSERT_MESSAGE
1909 "Appends the string(length equal to 0) to the string buffer arrOUS[4]",
1910 aStrBuf.getStr()== expVal &&
1911 aStrBuf.getLength() == expVal.getLength()
1916 void append_null()
1918 ::rtl::OStringBuffer aStrBuf("hello world");
1920 aStrBuf.append('\0');
1921 aStrBuf.append('\1');
1922 aStrBuf.append('\2');
1924 aStrBuf.append("hello world");
1926 CPPUNIT_ASSERT_MESSAGE
1928 "should be able to append nulls",
1929 aStrBuf.getLength() ==
1930 2 * RTL_CONSTASCII_LENGTH("hello world") + 3 &&
1931 aStrBuf[RTL_CONSTASCII_LENGTH("hello world")] == 0 &&
1932 aStrBuf[RTL_CONSTASCII_LENGTH("hello world")]+1 == 1 &&
1933 aStrBuf[RTL_CONSTASCII_LENGTH("hello world")]+2 == 2
1938 CPPUNIT_TEST_SUITE( append_001 );
1939 CPPUNIT_TEST( append_001_001 );
1940 CPPUNIT_TEST( append_001_002 );
1941 CPPUNIT_TEST( append_001_003 );
1942 CPPUNIT_TEST( append_001_004 );
1943 CPPUNIT_TEST( append_001_005 );
1944 CPPUNIT_TEST( append_001_006 );
1945 CPPUNIT_TEST( append_001_007 );
1946 CPPUNIT_TEST( append_001_008 );
1947 CPPUNIT_TEST( append_001_009 );
1948 CPPUNIT_TEST( append_001_010 );
1949 CPPUNIT_TEST( append_001_011 );
1950 CPPUNIT_TEST( append_001_012 );
1951 CPPUNIT_TEST( append_001_013 );
1952 CPPUNIT_TEST( append_001_014 );
1953 CPPUNIT_TEST( append_001_015 );
1954 CPPUNIT_TEST( append_001_016 );
1955 CPPUNIT_TEST( append_001_017 );
1956 CPPUNIT_TEST( append_001_018 );
1957 CPPUNIT_TEST( append_001_019 );
1958 CPPUNIT_TEST( append_001_020 );
1959 CPPUNIT_TEST( append_null );
1960 CPPUNIT_TEST_SUITE_END();
1963 // -----------------------------------------------------------------------------
1965 class append_002 : public CppUnit::TestFixture
1967 OString* arrOUS[5];
1969 public:
1970 void setUp()
1972 arrOUS[0] = new OString( kTestStr7 );
1973 arrOUS[1] = new OString( );
1974 arrOUS[2] = new OString( kTestStr25 );
1975 arrOUS[3] = new OString( "" );
1976 arrOUS[4] = new OString( kTestStr28 );
1980 void tearDown()
1982 delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
1983 delete arrOUS[3]; delete arrOUS[4];
1986 void append_002_001()
1988 OString expVal( kTestStr1 );
1989 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
1990 const sal_Char* input = kTestStr8;
1992 aStrBuf.append( input );
1994 CPPUNIT_ASSERT_MESSAGE
1996 "Appends the string(length less than 16) to the string buffer arrOUS[0]",
1997 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2002 void append_002_002()
2004 OString expVal( kTestStr2 );
2005 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
2006 const sal_Char* input = kTestStr36;
2008 aStrBuf.append( input );
2010 CPPUNIT_ASSERT_MESSAGE
2012 "Appends the string(length more than 16) to the string buffer arrOUS[0]",
2013 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2018 void append_002_003()
2020 OString expVal( kTestStr37 );
2021 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
2022 const sal_Char* input = kTestStr23;
2024 aStrBuf.append( input );
2026 CPPUNIT_ASSERT_MESSAGE
2028 "Appends the string(length equal to 16) to the string buffer arrOUS[0]",
2029 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2034 void append_002_004()
2036 OString expVal( kTestStr7 );
2037 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
2038 const sal_Char* input = kTestStr25;
2040 aStrBuf.append( input );
2042 CPPUNIT_ASSERT_MESSAGE
2044 "Appends the string(length equal to 0) to the string buffer arrOUS[0]",
2045 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2050 void append_002_005()
2052 OString expVal( kTestStr7 );
2053 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
2054 const sal_Char* input = kTestStr7;
2056 aStrBuf.append( input );
2058 CPPUNIT_ASSERT_MESSAGE
2060 "Appends the string(length less than 16) to the string buffer arrOUS[1]",
2061 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2066 void append_002_006()
2068 OString expVal( kTestStr2 );
2069 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
2070 const sal_Char* input = kTestStr2;
2072 aStrBuf.append( input );
2074 CPPUNIT_ASSERT_MESSAGE
2076 "Appends the string(length more than 16) to the string buffer arrOUS[1]",
2077 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2082 void append_002_007()
2084 OString expVal( kTestStr1 );
2085 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
2086 const sal_Char* input = kTestStr1;
2088 aStrBuf.append( input );
2090 CPPUNIT_ASSERT_MESSAGE
2092 "Appends the string(length equal to 16) to the string buffer arrOUS[1]",
2093 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2098 void append_002_008()
2100 OString expVal;
2101 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
2102 const sal_Char* input = kTestStr25;
2104 aStrBuf.append( input );
2106 CPPUNIT_ASSERT_MESSAGE
2108 "Appends the string(length equal to 0) to the string buffer arrOUS[1]",
2109 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2114 void append_002_009()
2116 OString expVal( kTestStr7 );
2117 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
2118 const sal_Char* input = kTestStr7;
2120 aStrBuf.append( input );
2122 CPPUNIT_ASSERT_MESSAGE
2124 "Appends the string(length less than 16) to the string buffer arrOUS[2]",
2125 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2130 void append_002_010()
2132 OString expVal( kTestStr2 );
2133 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
2134 const sal_Char* input = kTestStr2;
2136 aStrBuf.append( input );
2138 CPPUNIT_ASSERT_MESSAGE
2140 "Appends the string(length more than 16) to the string buffer arrOUS[2]",
2141 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2146 void append_002_011()
2148 OString expVal( kTestStr1 );
2149 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
2150 const sal_Char* input = kTestStr1;
2152 aStrBuf.append( input );
2154 CPPUNIT_ASSERT_MESSAGE
2156 "Appends the string(length equal to 16) to the string buffer arrOUS[2]",
2157 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2162 void append_002_012()
2164 OString expVal;
2165 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
2166 const sal_Char* input = kTestStr25;
2168 aStrBuf.append( input );
2170 CPPUNIT_ASSERT_MESSAGE
2172 "Appends the string(length equal to 0) to the string buffer arrOUS[2]",
2173 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2178 void append_002_013()
2180 OString expVal( kTestStr7 );
2181 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
2182 const sal_Char* input = kTestStr7;
2184 aStrBuf.append( input );
2186 CPPUNIT_ASSERT_MESSAGE
2188 "Appends the string(length less than 16) to the string buffer arrOUS[3]",
2189 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2194 void append_002_014()
2196 OString expVal( kTestStr2 );
2197 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
2198 const sal_Char* input = kTestStr2;
2200 aStrBuf.append( input );
2202 CPPUNIT_ASSERT_MESSAGE
2204 "Appends the string(length more than 16) to the string buffer arrOUS[3]",
2205 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2210 void append_002_015()
2212 OString expVal( kTestStr1 );
2213 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
2214 const sal_Char* input = kTestStr1;
2216 aStrBuf.append( input );
2218 CPPUNIT_ASSERT_MESSAGE
2220 "Appends the string(length equal to 16) to the string buffer arrOUS[3]",
2221 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2226 void append_002_016()
2228 OString expVal;
2229 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
2230 const sal_Char* input = kTestStr25;
2232 aStrBuf.append( input );
2234 CPPUNIT_ASSERT_MESSAGE
2236 "Appends the string(length equal to 0) to the string buffer arrOUS[3]",
2237 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2242 void append_002_017()
2244 OString expVal( kTestStr29 );
2245 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
2246 const sal_Char* input = kTestStr38;
2248 aStrBuf.append( input );
2250 CPPUNIT_ASSERT_MESSAGE
2252 "Appends the string(length less than 16) to the string buffer arrOUS[4]",
2253 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2258 void append_002_018()
2260 OString expVal( kTestStr39 );
2261 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
2262 const sal_Char* input = kTestStr17;
2264 aStrBuf.append( input );
2266 CPPUNIT_ASSERT_MESSAGE
2268 "Appends the string(length more than 16) to the string buffer arrOUS[4]",
2269 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2274 void append_002_019()
2276 OString expVal( kTestStr40 );
2277 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
2278 const sal_Char* input = kTestStr31;
2280 aStrBuf.append( input );
2282 CPPUNIT_ASSERT_MESSAGE
2284 "Appends the string(length equal to 16) to the string buffer arrOUS[4]",
2285 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2290 void append_002_020()
2292 OString expVal( kTestStr28 );
2293 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
2294 const sal_Char* input = kTestStr25;
2296 aStrBuf.append( input );
2298 CPPUNIT_ASSERT_MESSAGE
2300 "Appends the string(length equal to 0) to the string buffer arrOUS[4]",
2301 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2306 #ifdef WITH_CORE
2307 void append_002_021()
2309 OString expVal;
2310 ::rtl::OStringBuffer aStrBuf( kSInt32Max );
2311 const sal_Char* input = kTestStr25;
2313 aStrBuf.append( input );
2315 CPPUNIT_ASSERT_MESSAGE
2317 "Appends the string(length equal to 0) to the string buffer(with INT_MAX)",
2318 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2322 #endif
2324 CPPUNIT_TEST_SUITE( append_002 );
2325 CPPUNIT_TEST( append_002_001 );
2326 CPPUNIT_TEST( append_002_002 );
2327 CPPUNIT_TEST( append_002_003 );
2328 CPPUNIT_TEST( append_002_004 );
2329 CPPUNIT_TEST( append_002_005 );
2330 CPPUNIT_TEST( append_002_006 );
2331 CPPUNIT_TEST( append_002_007 );
2332 CPPUNIT_TEST( append_002_008 );
2333 CPPUNIT_TEST( append_002_009 );
2334 CPPUNIT_TEST( append_002_010 );
2335 CPPUNIT_TEST( append_002_011 );
2336 CPPUNIT_TEST( append_002_012 );
2337 CPPUNIT_TEST( append_002_013 );
2338 CPPUNIT_TEST( append_002_014 );
2339 CPPUNIT_TEST( append_002_015 );
2340 CPPUNIT_TEST( append_002_016 );
2341 CPPUNIT_TEST( append_002_017 );
2342 CPPUNIT_TEST( append_002_018 );
2343 CPPUNIT_TEST( append_002_019 );
2344 CPPUNIT_TEST( append_002_020 );
2345 #ifdef WITH_CORE
2346 CPPUNIT_TEST( append_002_021 );
2347 #endif
2348 CPPUNIT_TEST_SUITE_END();
2350 // -----------------------------------------------------------------------------
2352 class append_003 : public CppUnit::TestFixture
2354 OString* arrOUS[5];
2356 public:
2357 void setUp()
2359 arrOUS[0] = new OString( kTestStr7 );
2360 arrOUS[1] = new OString( );
2361 arrOUS[2] = new OString( kTestStr25 );
2362 arrOUS[3] = new OString( "" );
2363 arrOUS[4] = new OString( kTestStr28 );
2367 void tearDown()
2369 delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
2370 delete arrOUS[3]; delete arrOUS[4];
2373 void append_003_001()
2375 OString expVal( kTestStr1 );
2376 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
2377 const sal_Char* input1 = kTestStr36;
2378 sal_Int32 input2 = 12;
2380 aStrBuf.append( input1, input2 );
2382 CPPUNIT_ASSERT_MESSAGE
2384 "Appends the string(length less than 16) to the string buffer arrOUS[0]",
2385 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2390 void append_003_002()
2392 OString expVal( kTestStr2 );
2393 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
2394 const sal_Char* input1 = kTestStr36;
2395 sal_Int32 input2 = 28;
2397 aStrBuf.append( input1, input2 );
2399 CPPUNIT_ASSERT_MESSAGE
2401 "Appends the string(length more than 16) to the string buffer arrOUS[0]",
2402 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2407 void append_003_003()
2409 OString expVal( kTestStr37 );
2410 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
2411 const sal_Char* input1 = kTestStr23;
2412 sal_Int32 input2 = 16;
2414 aStrBuf.append( input1, input2 );
2416 CPPUNIT_ASSERT_MESSAGE
2418 "Appends the string(length equal to 16) to the string buffer arrOUS[0]",
2419 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2424 void append_003_004()
2426 OString expVal( kTestStr7 );
2427 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
2428 const sal_Char* input1 = kTestStr2;
2429 sal_Int32 input2 = 0;
2431 aStrBuf.append( input1, input2 );
2433 CPPUNIT_ASSERT_MESSAGE
2435 "Appends the string(length equal to 0) to the string buffer arrOUS[0]",
2436 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2441 void append_003_006()
2443 OString expVal( kTestStr7 );
2444 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
2445 const sal_Char* input1 = kTestStr2;
2446 sal_Int32 input2 = 4;
2448 aStrBuf.append( input1, input2 );
2450 CPPUNIT_ASSERT_MESSAGE
2452 "Appends the string(length less than 16) to the string buffer arrOUS[1]",
2453 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2458 void append_003_007()
2460 OString expVal( kTestStr2 );
2461 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
2462 const sal_Char* input1 = kTestStr2;
2463 sal_Int32 input2 = 32;
2465 aStrBuf.append( input1, input2 );
2467 CPPUNIT_ASSERT_MESSAGE
2469 "Appends the string(length more than 16) to the string buffer arrOUS[1]",
2470 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2475 void append_003_008()
2477 OString expVal( kTestStr1 );
2478 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
2479 const sal_Char* input1 = kTestStr2;
2480 sal_Int32 input2 = 16;
2482 aStrBuf.append( input1, input2 );
2484 CPPUNIT_ASSERT_MESSAGE
2486 "Appends the string(length equal to 16) to the string buffer arrOUS[1]",
2487 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2492 void append_003_009()
2494 OString expVal;
2495 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
2496 const sal_Char* input1 = kTestStr2;
2497 sal_Int32 input2 = 0;
2499 aStrBuf.append( input1, input2 );
2501 CPPUNIT_ASSERT_MESSAGE
2503 "Appends the string(length equal to 0) to the string buffer arrOUS[1]",
2504 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2509 void append_003_011()
2511 OString expVal( kTestStr7 );
2512 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
2513 const sal_Char* input1 = kTestStr2;
2514 sal_Int32 input2 = 4;
2516 aStrBuf.append( input1, input2 );
2518 CPPUNIT_ASSERT_MESSAGE
2520 "Appends the string(length less than 16) to the string buffer arrOUS[2]",
2521 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2526 void append_003_012()
2528 OString expVal( kTestStr2 );
2529 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
2530 const sal_Char* input1 = kTestStr2;
2531 sal_Int32 input2 = 32;
2533 aStrBuf.append( input1, input2 );
2535 CPPUNIT_ASSERT_MESSAGE
2537 "Appends the string(length more than 16) to the string buffer arrOUS[2]",
2538 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2543 void append_003_013()
2545 OString expVal( kTestStr1 );
2546 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
2547 const sal_Char* input1 = kTestStr2;
2548 sal_Int32 input2 = 16;
2550 aStrBuf.append( input1, input2 );
2552 CPPUNIT_ASSERT_MESSAGE
2554 "Appends the string(length equal to 16) to the string buffer arrOUS[2]",
2555 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2560 void append_003_014()
2562 OString expVal;
2563 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
2564 const sal_Char* input1 = kTestStr2;
2565 sal_Int32 input2 = 0;
2567 aStrBuf.append( input1, input2 );
2569 CPPUNIT_ASSERT_MESSAGE
2571 "Appends the string(length equal to 0) to the string buffer arrOUS[2]",
2572 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2577 void append_003_016()
2579 OString expVal( kTestStr7 );
2580 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
2581 const sal_Char* input1 = kTestStr2;
2582 sal_Int32 input2 = 4;
2584 aStrBuf.append( input1, input2 );
2586 CPPUNIT_ASSERT_MESSAGE
2588 "Appends the string(length less than 16) to the string buffer arrOUS[3]",
2589 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2594 void append_003_017()
2596 OString expVal( kTestStr2 );
2597 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
2598 const sal_Char* input1 = kTestStr2;
2599 sal_Int32 input2 = 32;
2601 aStrBuf.append( input1, input2 );
2603 CPPUNIT_ASSERT_MESSAGE
2605 "Appends the string(length more than 16) to the string buffer arrOUS[3]",
2606 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2611 void append_003_018()
2613 OString expVal( kTestStr1 );
2614 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
2615 const sal_Char* input1 = kTestStr2;
2616 sal_Int32 input2 = 16;
2618 aStrBuf.append( input1, input2 );
2620 CPPUNIT_ASSERT_MESSAGE
2622 "Appends the string(length equal to 16) to the string buffer arrOUS[3]",
2623 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2628 void append_003_019()
2630 OString expVal;
2631 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
2632 const sal_Char* input1 = kTestStr2;
2633 sal_Int32 input2 = 0;
2635 aStrBuf.append( input1, input2 );
2637 CPPUNIT_ASSERT_MESSAGE
2639 "Appends the string(length equal to 0) to the string buffer arrOUS[3]",
2640 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2645 void append_003_021()
2647 OString expVal( kTestStr29 );
2648 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
2649 const sal_Char* input1 = kTestStr38;
2650 sal_Int32 input2 = 7;
2652 aStrBuf.append( input1, input2 );
2654 CPPUNIT_ASSERT_MESSAGE
2656 "Appends the string(length less than 16) to the string buffer arrOUS[4]",
2657 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2662 void append_003_022()
2664 OString expVal( kTestStr39 );
2665 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
2666 const sal_Char* input1 = kTestStr17;
2667 sal_Int32 input2 = 22;
2669 aStrBuf.append( input1, input2 );
2671 CPPUNIT_ASSERT_MESSAGE
2673 "Appends the string(length more than 16) to the string buffer arrOUS[4]",
2674 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2679 void append_003_023()
2681 OString expVal( kTestStr40 );
2682 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
2683 const sal_Char* input1 = kTestStr31;
2684 sal_Int32 input2 = 16;
2686 aStrBuf.append( input1, input2 );
2688 CPPUNIT_ASSERT_MESSAGE
2690 "Appends the string(length equal to 16) to the string buffer arrOUS[4]",
2691 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2696 void append_003_024()
2698 OString expVal( kTestStr28 );
2699 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
2700 const sal_Char* input1 = kTestStr2;
2701 sal_Int32 input2 = 0;
2703 aStrBuf.append( input1, input2 );
2705 CPPUNIT_ASSERT_MESSAGE
2707 "Appends the string(length equal to 0) to the string buffer arrOUS[4]",
2708 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2713 CPPUNIT_TEST_SUITE( append_003 );
2714 CPPUNIT_TEST( append_003_001 );
2715 CPPUNIT_TEST( append_003_002 );
2716 CPPUNIT_TEST( append_003_003 );
2717 CPPUNIT_TEST( append_003_004 );
2718 CPPUNIT_TEST( append_003_006 );
2719 CPPUNIT_TEST( append_003_007 );
2720 CPPUNIT_TEST( append_003_008 );
2721 CPPUNIT_TEST( append_003_009 );
2722 CPPUNIT_TEST( append_003_011 );
2723 CPPUNIT_TEST( append_003_012 );
2724 CPPUNIT_TEST( append_003_013 );
2725 CPPUNIT_TEST( append_003_014 );
2726 CPPUNIT_TEST( append_003_016 );
2727 CPPUNIT_TEST( append_003_017 );
2728 CPPUNIT_TEST( append_003_018 );
2729 CPPUNIT_TEST( append_003_019 );
2730 CPPUNIT_TEST( append_003_021 );
2731 CPPUNIT_TEST( append_003_022 );
2732 CPPUNIT_TEST( append_003_023 );
2733 CPPUNIT_TEST( append_003_024 );
2734 CPPUNIT_TEST_SUITE_END();
2736 //-----------------------------------------------------------------------------
2738 class append_004 : public CppUnit::TestFixture
2740 OString* arrOUS[5];
2742 public:
2743 void setUp()
2745 arrOUS[0] = new OString( kTestStr7 );
2746 arrOUS[1] = new OString( );
2747 arrOUS[2] = new OString( kTestStr25 );
2748 arrOUS[3] = new OString( "" );
2749 arrOUS[4] = new OString( kTestStr28 );
2753 void tearDown()
2755 delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
2756 delete arrOUS[3]; delete arrOUS[4];
2759 void append_004_001()
2761 OString expVal( kTestStr45 );
2762 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
2763 sal_Bool input = sal_True;
2765 aStrBuf.append( input );
2767 CPPUNIT_ASSERT_MESSAGE
2769 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[0]",
2770 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2775 void append_004_002()
2777 OString expVal( kTestStr46 );
2778 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
2779 sal_Bool input = sal_False;
2781 aStrBuf.append( input );
2783 CPPUNIT_ASSERT_MESSAGE
2785 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[0]",
2786 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2791 void append_004_003()
2793 OString expVal( kTestStr47 );
2794 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
2795 sal_Bool input = sal_True;
2797 aStrBuf.append( input );
2799 CPPUNIT_ASSERT_MESSAGE
2801 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[1]",
2802 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2807 void append_004_004()
2809 OString expVal( kTestStr48 );
2810 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
2811 sal_Bool input = sal_False;
2813 aStrBuf.append( input );
2815 CPPUNIT_ASSERT_MESSAGE
2817 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[1]",
2818 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2823 void append_004_005()
2825 OString expVal( kTestStr47 );
2826 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
2827 sal_Bool input = sal_True;
2829 aStrBuf.append( input );
2831 CPPUNIT_ASSERT_MESSAGE
2833 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[2]",
2834 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2839 void append_004_006()
2841 OString expVal( kTestStr48 );
2842 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
2843 sal_Bool input = sal_False;
2845 aStrBuf.append( input );
2847 CPPUNIT_ASSERT_MESSAGE
2849 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[2]",
2850 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2855 void append_004_007()
2857 OString expVal( kTestStr47 );
2858 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
2859 sal_Bool input = sal_True;
2861 aStrBuf.append( input );
2863 CPPUNIT_ASSERT_MESSAGE
2865 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[3]",
2866 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2871 void append_004_008()
2873 OString expVal( kTestStr48 );
2874 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
2875 sal_Bool input = sal_False;
2877 aStrBuf.append( input );
2879 CPPUNIT_ASSERT_MESSAGE
2881 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[3]",
2882 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2887 void append_004_009()
2889 OString expVal( kTestStr49 );
2890 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
2891 sal_Bool input = sal_True;
2893 aStrBuf.append( input );
2895 CPPUNIT_ASSERT_MESSAGE
2897 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[4]",
2898 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2903 void append_004_010()
2905 OString expVal( kTestStr50 );
2906 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
2907 sal_Bool input = sal_False;
2909 aStrBuf.append( input );
2911 CPPUNIT_ASSERT_MESSAGE
2913 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[4]",
2914 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2919 #ifdef WITH_CORE
2920 void append_004_011()
2922 OString expVal( kTestStr47 );
2923 ::rtl::OStringBuffer aStrBuf( kSInt32Max );
2924 sal_Bool input = sal_True;
2926 aStrBuf.append( input );
2928 CPPUNIT_ASSERT_MESSAGE
2930 "Appends the sal_Bool(sal_True) to the string buffer(with INT_MAX)",
2931 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2936 void append_004_012()
2938 OString expVal( kTestStr48 );
2939 ::rtl::OStringBuffer aStrBuf( kSInt32Max );
2940 sal_Bool input = sal_False;
2942 aStrBuf.append( input );
2944 CPPUNIT_ASSERT_MESSAGE
2946 "Appends the sal_Bool(sal_False) to the string buffer(with INT_MAX)",
2947 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
2951 #endif
2953 CPPUNIT_TEST_SUITE( append_004 );
2954 CPPUNIT_TEST( append_004_001 );
2955 CPPUNIT_TEST( append_004_002 );
2956 CPPUNIT_TEST( append_004_003 );
2957 CPPUNIT_TEST( append_004_004 );
2958 CPPUNIT_TEST( append_004_005 );
2959 CPPUNIT_TEST( append_004_006 );
2960 CPPUNIT_TEST( append_004_007 );
2961 CPPUNIT_TEST( append_004_008 );
2962 CPPUNIT_TEST( append_004_009 );
2963 CPPUNIT_TEST( append_004_010 );
2964 #ifdef WITH_CORE
2965 CPPUNIT_TEST( append_004_011 );
2966 CPPUNIT_TEST( append_004_012 );
2967 #endif
2968 CPPUNIT_TEST_SUITE_END();
2970 //------------------------------------------------------------------------
2971 // testing the method append(sal_Char c)
2972 //------------------------------------------------------------------------
2973 class append_005 : public CppUnit::TestFixture
2975 OString* arrOUS[5];
2977 public:
2978 void setUp()
2980 arrOUS[0] = new OString( kTestStr7 );
2981 arrOUS[1] = new OString( );
2982 arrOUS[2] = new OString( kTestStr25 );
2983 arrOUS[3] = new OString( "" );
2984 arrOUS[4] = new OString( kTestStr28 );
2988 void tearDown()
2990 delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
2991 delete arrOUS[3]; delete arrOUS[4];
2994 void append_001()
2996 OString expVal( kTestStr51 );
2997 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
2998 sal_Char input = 'M';
3000 aStrBuf.append( input );
3002 CPPUNIT_ASSERT_MESSAGE
3004 "Appends the sal_Char(M) to the string buffer arrOUS[0]",
3005 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3010 void append_002()
3012 OString expVal( kTestStr143 );
3013 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
3014 sal_Char input = static_cast<sal_Char>(SAL_MAX_UINT8);
3016 aStrBuf.append( input );
3018 CPPUNIT_ASSERT_MESSAGE
3020 "Appends the sal_Unicode(kSInt8Max) to the string buffer arrOUS[0]",
3021 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3026 void append_003()
3028 OString expVal( kTestStr27 );
3029 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
3030 sal_Char input = 's';
3032 aStrBuf.append( input );
3034 CPPUNIT_ASSERT_MESSAGE
3036 "Appends the sal_Char(s) to the string buffer arrOUS[1]",
3037 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3042 void append_004()
3044 OString expVal( kTestStr144 );
3045 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
3046 sal_Char input = static_cast<sal_Char>(SAL_MAX_UINT8);
3048 aStrBuf.append( input );
3050 CPPUNIT_ASSERT_MESSAGE
3052 "Appends the sal_Char(kSInt8Max) to the string buffer arrOUS[1]",
3053 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3058 void append_005_005()
3060 OString expVal( kTestStr27 );
3061 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
3062 sal_Char input = 's';
3064 aStrBuf.append( input );
3066 CPPUNIT_ASSERT_MESSAGE
3068 "Appends the sal_Char(s) to the string buffer arrOUS[2]",
3069 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3074 void append_006()
3076 OString expVal( kTestStr144 );
3077 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
3078 sal_Char input = static_cast<sal_Char>(SAL_MAX_UINT8);
3080 aStrBuf.append( input );
3082 CPPUNIT_ASSERT_MESSAGE
3084 "Appends the sal_Char(kSInt8Max) to the string buffer arrOUS[2]",
3085 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3090 void append_007()
3092 OString expVal( kTestStr27 );
3093 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
3094 sal_Char input = 's';
3096 aStrBuf.append( input );
3098 CPPUNIT_ASSERT_MESSAGE
3100 "Appends the sal_Char(s) to the string buffer arrOUS[3]",
3101 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3106 void append_008()
3108 OString expVal( kTestStr144 );
3109 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
3110 sal_Char input = static_cast<sal_Char>(SAL_MAX_UINT8);
3112 aStrBuf.append( input );
3114 CPPUNIT_ASSERT_MESSAGE
3116 "Appends the sal_Char(kSInt8Max) to the string buffer arrOUS[3]",
3117 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3122 void append_009()
3124 OString expVal( kTestStr56 );
3125 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
3126 sal_Char input = 's';
3128 aStrBuf.append( input );
3130 CPPUNIT_ASSERT_MESSAGE
3132 "Appends the sal_Char(s) to the string buffer arrOUS[4]",
3133 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3138 void append_010()
3140 OString expVal( kTestStr145 );
3141 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
3142 sal_Char input = static_cast<sal_Char>(SAL_MAX_UINT8);
3144 aStrBuf.append( input );
3146 CPPUNIT_ASSERT_MESSAGE
3148 "Appends the sal_Char(kSInt8Max) to the string buffer arrOUS[4]",
3149 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3154 #ifdef WITH_CORE
3155 void append_011()
3157 OString expVal( kTestStr27 );
3158 ::rtl::OStringBuffer aStrBuf( kSInt32Max );
3159 sal_Char input = 's';
3161 aStrBuf.append( input );
3163 CPPUNIT_ASSERT_MESSAGE
3165 "Appends the sal_Char(s) to the string buffer(with INT_MAX)",
3166 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3171 void append_012()
3173 OString expVal( kTestStr144 );
3174 ::rtl::OStringBuffer aStrBuf( kSInt32Max );
3175 sal_Char input = static_cast<sal_Char>(SAL_MAX_UINT8);
3177 aStrBuf.append( input );
3179 CPPUNIT_ASSERT_MESSAGE
3181 "Appends the sal_Char(kSInt8Max) to the string buffer with INT_MAX)",
3182 ( aStrBuf.getStr()== expVal) &&( aStrBuf.getLength() == expVal.getLength() )
3186 #endif
3188 CPPUNIT_TEST_SUITE( append_005 );
3189 CPPUNIT_TEST( append_001 );
3190 CPPUNIT_TEST( append_002 );
3191 CPPUNIT_TEST( append_003 );
3192 CPPUNIT_TEST( append_004 );
3193 CPPUNIT_TEST( append_005_005 );
3194 CPPUNIT_TEST( append_006 );
3195 CPPUNIT_TEST( append_007 );
3196 CPPUNIT_TEST( append_008 );
3197 CPPUNIT_TEST( append_009 );
3198 CPPUNIT_TEST( append_010 );
3199 #ifdef WITH_CORE
3200 CPPUNIT_TEST( append_011 );
3201 CPPUNIT_TEST( append_012 );
3202 #endif
3203 CPPUNIT_TEST_SUITE_END();
3206 class append_006_Int32 : public CppUnit::TestFixture
3208 OString* arrOUS[5];
3210 public:
3211 void setUp()
3213 arrOUS[0] = new OString( kTestStr7 );
3214 arrOUS[1] = new OString( );
3215 arrOUS[2] = new OString( kTestStr25 );
3216 arrOUS[3] = new OString( "" );
3217 arrOUS[4] = new OString( kTestStr28 );
3221 void tearDown()
3223 delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
3224 delete arrOUS[3]; delete arrOUS[4];
3227 void append_001()
3229 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
3230 OString expVal( aStrBuf.getStr() );
3231 sal_Int32 input = 0;
3232 sal_Int16 radix = 2;
3234 expVal += OString( "0" );
3235 aStrBuf.append( input, radix );
3237 CPPUNIT_ASSERT_MESSAGE
3239 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
3240 aStrBuf.getStr()== expVal &&
3241 aStrBuf.getLength() == expVal.getLength()
3246 void append_002()
3248 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
3249 OString expVal( aStrBuf.getStr() );
3250 sal_Int32 input = 4;
3251 sal_Int16 radix = 2;
3253 expVal += OString( "100" );
3254 aStrBuf.append( input, radix );
3256 CPPUNIT_ASSERT_MESSAGE
3258 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
3259 aStrBuf.getStr()== expVal &&
3260 aStrBuf.getLength() == expVal.getLength()
3265 void append_003()
3267 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
3268 OString expVal( aStrBuf.getStr() );
3269 sal_Int32 input = 8;
3270 sal_Int16 radix = 2;
3272 expVal += OString( "1000" );
3273 aStrBuf.append( input, radix );
3275 CPPUNIT_ASSERT_MESSAGE
3277 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
3278 aStrBuf.getStr()== expVal &&
3279 aStrBuf.getLength() == expVal.getLength()
3284 void append_004()
3286 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
3287 OString expVal( aStrBuf.getStr() );
3288 sal_Int32 input = 15;
3289 sal_Int16 radix = 2;
3291 expVal += OString( "1111" );
3292 aStrBuf.append( input, radix );
3294 CPPUNIT_ASSERT_MESSAGE
3296 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
3297 aStrBuf.getStr()== expVal &&
3298 aStrBuf.getLength() == expVal.getLength()
3303 void append_005()
3305 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
3306 OString expVal( aStrBuf.getStr() );
3307 sal_Int32 input = 0;
3308 sal_Int16 radix = 8;
3310 expVal += OString( "0" );
3311 aStrBuf.append( input, radix );
3313 CPPUNIT_ASSERT_MESSAGE
3315 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
3316 aStrBuf.getStr()== expVal &&
3317 aStrBuf.getLength() == expVal.getLength()
3322 void append_006()
3324 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
3325 OString expVal( aStrBuf.getStr() );
3326 sal_Int32 input = 4;
3327 sal_Int16 radix = 8;
3329 expVal += OString( "4" );
3330 aStrBuf.append( input, radix );
3332 CPPUNIT_ASSERT_MESSAGE
3334 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
3335 aStrBuf.getStr()== expVal &&
3336 aStrBuf.getLength() == expVal.getLength()
3341 void append_007()
3343 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
3344 OString expVal( aStrBuf.getStr() );
3345 sal_Int32 input = 8;
3346 sal_Int16 radix = 8;
3348 expVal += OString( "10" );
3349 aStrBuf.append( input, radix );
3351 CPPUNIT_ASSERT_MESSAGE
3353 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
3354 aStrBuf.getStr()== expVal &&
3355 aStrBuf.getLength() == expVal.getLength()
3360 void append_008()
3362 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
3363 OString expVal( aStrBuf.getStr() );
3364 sal_Int32 input = 15;
3365 sal_Int16 radix = 8;
3367 expVal += OString( "17" );
3368 aStrBuf.append( input, radix );
3370 CPPUNIT_ASSERT_MESSAGE
3372 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
3373 aStrBuf.getStr()== expVal &&
3374 aStrBuf.getLength() == expVal.getLength()
3379 void append_009()
3381 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
3382 OString expVal( aStrBuf.getStr() );
3383 sal_Int32 input = 0;
3384 sal_Int16 radix = 10;
3386 expVal += OString( "0" );
3387 aStrBuf.append( input, radix );
3389 CPPUNIT_ASSERT_MESSAGE
3391 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
3392 aStrBuf.getStr()== expVal &&
3393 aStrBuf.getLength() == expVal.getLength()
3398 void append_010()
3400 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
3401 OString expVal( aStrBuf.getStr() );
3402 sal_Int32 input = 4;
3403 sal_Int16 radix = 10;
3405 expVal += OString( "4" );
3406 aStrBuf.append( input, radix );
3408 CPPUNIT_ASSERT_MESSAGE
3410 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
3411 aStrBuf.getStr()== expVal &&
3412 aStrBuf.getLength() == expVal.getLength()
3417 void append_011()
3419 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
3420 OString expVal( aStrBuf.getStr() );
3421 sal_Int32 input = 8;
3422 sal_Int16 radix = 10;
3424 expVal += OString( "8" );
3425 aStrBuf.append( input, radix );
3427 CPPUNIT_ASSERT_MESSAGE
3429 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
3430 aStrBuf.getStr()== expVal &&
3431 aStrBuf.getLength() == expVal.getLength()
3436 void append_012()
3438 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
3439 OString expVal( aStrBuf.getStr() );
3440 sal_Int32 input = 15;
3441 sal_Int16 radix = 10;
3443 expVal += OString( "15" );
3444 aStrBuf.append( input, radix );
3446 CPPUNIT_ASSERT_MESSAGE
3448 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
3449 aStrBuf.getStr()== expVal &&
3450 aStrBuf.getLength() == expVal.getLength()
3455 void append_013()
3457 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
3458 OString expVal( aStrBuf.getStr() );
3459 sal_Int32 input = 0;
3460 sal_Int16 radix = 16;
3462 expVal += OString( "0" );
3463 aStrBuf.append( input, radix );
3465 CPPUNIT_ASSERT_MESSAGE
3467 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
3468 aStrBuf.getStr()== expVal &&
3469 aStrBuf.getLength() == expVal.getLength()
3474 void append_014()
3476 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
3477 OString expVal( aStrBuf.getStr() );
3478 sal_Int32 input = 4;
3479 sal_Int16 radix = 16;
3481 expVal += OString( "4" );
3482 aStrBuf.append( input, radix );
3484 CPPUNIT_ASSERT_MESSAGE
3486 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
3487 aStrBuf.getStr()== expVal &&
3488 aStrBuf.getLength() == expVal.getLength()
3493 void append_015()
3495 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
3496 OString expVal( aStrBuf.getStr() );
3497 sal_Int32 input = 8;
3498 sal_Int16 radix = 16;
3500 expVal += OString( "8" );
3501 aStrBuf.append( input, radix );
3503 CPPUNIT_ASSERT_MESSAGE
3505 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
3506 aStrBuf.getStr()== expVal &&
3507 aStrBuf.getLength() == expVal.getLength()
3512 void append_016()
3514 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
3515 OString expVal( aStrBuf.getStr() );
3516 sal_Int32 input = 15;
3517 sal_Int16 radix = 16;
3519 expVal += OString( "f" );
3520 aStrBuf.append( input, radix );
3522 CPPUNIT_ASSERT_MESSAGE
3524 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
3525 aStrBuf.getStr()== expVal &&
3526 aStrBuf.getLength() == expVal.getLength()
3531 void append_017()
3533 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
3534 OString expVal( aStrBuf.getStr() );
3535 sal_Int32 input = 0;
3536 sal_Int16 radix = 36;
3538 expVal += OString( "0" );
3539 aStrBuf.append( input, radix );
3541 CPPUNIT_ASSERT_MESSAGE
3543 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
3544 aStrBuf.getStr()== expVal &&
3545 aStrBuf.getLength() == expVal.getLength()
3550 void append_018()
3552 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
3553 OString expVal( aStrBuf.getStr() );
3554 sal_Int32 input = 4;
3555 sal_Int16 radix = 36;
3557 expVal += OString( "4" );
3558 aStrBuf.append( input, radix );
3560 CPPUNIT_ASSERT_MESSAGE
3562 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
3563 aStrBuf.getStr()== expVal &&
3564 aStrBuf.getLength() == expVal.getLength()
3569 void append_019()
3571 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
3572 OString expVal( aStrBuf.getStr() );
3573 sal_Int32 input = 8;
3574 sal_Int16 radix = 36;
3576 expVal += OString( "8" );
3577 aStrBuf.append( input, radix );
3579 CPPUNIT_ASSERT_MESSAGE
3581 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
3582 aStrBuf.getStr()== expVal &&
3583 aStrBuf.getLength() == expVal.getLength()
3588 void append_020()
3590 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
3591 OString expVal( aStrBuf.getStr() );
3592 sal_Int32 input = 35;
3593 sal_Int16 radix = 36;
3595 expVal += OString( "z" );
3596 aStrBuf.append( input, radix );
3598 CPPUNIT_ASSERT_MESSAGE
3600 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
3601 aStrBuf.getStr()== expVal &&
3602 aStrBuf.getLength() == expVal.getLength()
3607 void append_021()
3609 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
3610 OString expVal( aStrBuf.getStr() );
3611 sal_Int32 input = 0;
3612 sal_Int16 radix = 2;
3614 expVal += OString( "0" );
3615 aStrBuf.append( input, radix );
3617 CPPUNIT_ASSERT_MESSAGE
3619 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
3620 aStrBuf.getStr()== expVal &&
3621 aStrBuf.getLength() == expVal.getLength()
3626 void append_022()
3628 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
3629 OString expVal( aStrBuf.getStr() );
3630 sal_Int32 input = 4;
3631 sal_Int16 radix = 2;
3633 expVal += OString( "100" );
3634 aStrBuf.append( input, radix );
3636 CPPUNIT_ASSERT_MESSAGE
3638 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
3639 aStrBuf.getStr()== expVal &&
3640 aStrBuf.getLength() == expVal.getLength()
3645 void append_023()
3647 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
3648 OString expVal( aStrBuf.getStr() );
3649 sal_Int32 input = 8;
3650 sal_Int16 radix = 2;
3652 expVal += OString( "1000" );
3653 aStrBuf.append( input, radix );
3655 CPPUNIT_ASSERT_MESSAGE
3657 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
3658 aStrBuf.getStr()== expVal &&
3659 aStrBuf.getLength() == expVal.getLength()
3664 void append_024()
3666 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
3667 OString expVal( aStrBuf.getStr() );
3668 sal_Int32 input = 15;
3669 sal_Int16 radix = 2;
3671 expVal += OString( "1111" );
3672 aStrBuf.append( input, radix );
3674 CPPUNIT_ASSERT_MESSAGE
3676 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
3677 aStrBuf.getStr()== expVal &&
3678 aStrBuf.getLength() == expVal.getLength()
3683 void append_025()
3685 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
3686 OString expVal( aStrBuf.getStr() );
3687 sal_Int32 input = 0;
3688 sal_Int16 radix = 8;
3690 expVal += OString( "0" );
3691 aStrBuf.append( input, radix );
3693 CPPUNIT_ASSERT_MESSAGE
3695 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
3696 aStrBuf.getStr()== expVal &&
3697 aStrBuf.getLength() == expVal.getLength()
3702 void append_026()
3704 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
3705 OString expVal( aStrBuf.getStr() );
3706 sal_Int32 input = 4;
3707 sal_Int16 radix = 8;
3709 expVal += OString( "4" );
3710 aStrBuf.append( input, radix );
3712 CPPUNIT_ASSERT_MESSAGE
3714 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
3715 aStrBuf.getStr()== expVal &&
3716 aStrBuf.getLength() == expVal.getLength()
3721 void append_027()
3723 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
3724 OString expVal( aStrBuf.getStr() );
3725 sal_Int32 input = 8;
3726 sal_Int16 radix = 8;
3728 expVal += OString( "10" );
3729 aStrBuf.append( input, radix );
3731 CPPUNIT_ASSERT_MESSAGE
3733 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
3734 aStrBuf.getStr()== expVal &&
3735 aStrBuf.getLength() == expVal.getLength()
3740 void append_028()
3742 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
3743 OString expVal( aStrBuf.getStr() );
3744 sal_Int32 input = 15;
3745 sal_Int16 radix = 8;
3747 expVal += OString( "17" );
3748 aStrBuf.append( input, radix );
3750 CPPUNIT_ASSERT_MESSAGE
3752 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
3753 aStrBuf.getStr()== expVal &&
3754 aStrBuf.getLength() == expVal.getLength()
3759 void append_029()
3761 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
3762 OString expVal( aStrBuf.getStr() );
3763 sal_Int32 input = 0;
3764 sal_Int16 radix = 10;
3766 expVal += OString( "0" );
3767 aStrBuf.append( input, radix );
3769 CPPUNIT_ASSERT_MESSAGE
3771 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
3772 aStrBuf.getStr()== expVal &&
3773 aStrBuf.getLength() == expVal.getLength()
3778 void append_030()
3780 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
3781 OString expVal( aStrBuf.getStr() );
3782 sal_Int32 input = 4;
3783 sal_Int16 radix = 10;
3785 expVal += OString( "4" );
3786 aStrBuf.append( input, radix );
3788 CPPUNIT_ASSERT_MESSAGE
3790 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
3791 aStrBuf.getStr()== expVal &&
3792 aStrBuf.getLength() == expVal.getLength()
3797 void append_031()
3799 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
3800 OString expVal( aStrBuf.getStr() );
3801 sal_Int32 input = 8;
3802 sal_Int16 radix = 10;
3804 expVal += OString( "8" );
3805 aStrBuf.append( input, radix );
3807 CPPUNIT_ASSERT_MESSAGE
3809 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
3810 aStrBuf.getStr()== expVal &&
3811 aStrBuf.getLength() == expVal.getLength()
3816 void append_032()
3818 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
3819 OString expVal( aStrBuf.getStr() );
3820 sal_Int32 input = 15;
3821 sal_Int16 radix = 10;
3823 expVal += OString( "15" );
3824 aStrBuf.append( input, radix );
3826 CPPUNIT_ASSERT_MESSAGE
3828 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
3829 aStrBuf.getStr()== expVal &&
3830 aStrBuf.getLength() == expVal.getLength()
3835 void append_033()
3837 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
3838 OString expVal( aStrBuf.getStr() );
3839 sal_Int32 input = 0;
3840 sal_Int16 radix = 16;
3842 expVal += OString( "0" );
3843 aStrBuf.append( input, radix );
3845 CPPUNIT_ASSERT_MESSAGE
3847 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
3848 aStrBuf.getStr()== expVal &&
3849 aStrBuf.getLength() == expVal.getLength()
3854 void append_034()
3856 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
3857 OString expVal( aStrBuf.getStr() );
3858 sal_Int32 input = 4;
3859 sal_Int16 radix = 16;
3861 expVal += OString( "4" );
3862 aStrBuf.append( input, radix );
3864 CPPUNIT_ASSERT_MESSAGE
3866 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
3867 aStrBuf.getStr()== expVal &&
3868 aStrBuf.getLength() == expVal.getLength()
3873 void append_035()
3875 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
3876 OString expVal( aStrBuf.getStr() );
3877 sal_Int32 input = 8;
3878 sal_Int16 radix = 16;
3880 expVal += OString( "8" );
3881 aStrBuf.append( input, radix );
3883 CPPUNIT_ASSERT_MESSAGE
3885 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
3886 aStrBuf.getStr()== expVal &&
3887 aStrBuf.getLength() == expVal.getLength()
3892 void append_036()
3894 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
3895 OString expVal( aStrBuf.getStr() );
3896 sal_Int32 input = 15;
3897 sal_Int16 radix = 16;
3899 expVal += OString( "f" );
3900 aStrBuf.append( input, radix );
3902 CPPUNIT_ASSERT_MESSAGE
3904 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
3905 aStrBuf.getStr()== expVal &&
3906 aStrBuf.getLength() == expVal.getLength()
3911 void append_037()
3913 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
3914 OString expVal( aStrBuf.getStr() );
3915 sal_Int32 input = 0;
3916 sal_Int16 radix = 36;
3918 expVal += OString( "0" );
3919 aStrBuf.append( input, radix );
3921 CPPUNIT_ASSERT_MESSAGE
3923 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
3924 aStrBuf.getStr()== expVal &&
3925 aStrBuf.getLength() == expVal.getLength()
3930 void append_038()
3932 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
3933 OString expVal( aStrBuf.getStr() );
3934 sal_Int32 input = 4;
3935 sal_Int16 radix = 36;
3937 expVal += OString( "4" );
3938 aStrBuf.append( input, radix );
3940 CPPUNIT_ASSERT_MESSAGE
3942 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
3943 aStrBuf.getStr()== expVal &&
3944 aStrBuf.getLength() == expVal.getLength()
3949 void append_039()
3951 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
3952 OString expVal( aStrBuf.getStr() );
3953 sal_Int32 input = 8;
3954 sal_Int16 radix = 36;
3956 expVal += OString( "8" );
3957 aStrBuf.append( input, radix );
3959 CPPUNIT_ASSERT_MESSAGE
3961 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
3962 aStrBuf.getStr()== expVal &&
3963 aStrBuf.getLength() == expVal.getLength()
3968 void append_040()
3970 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
3971 OString expVal( aStrBuf.getStr() );
3972 sal_Int32 input = 35;
3973 sal_Int16 radix = 36;
3975 expVal += OString( "z" );
3976 aStrBuf.append( input, radix );
3978 CPPUNIT_ASSERT_MESSAGE
3980 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
3981 aStrBuf.getStr()== expVal &&
3982 aStrBuf.getLength() == expVal.getLength()
3987 void append_041()
3989 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
3990 OString expVal( aStrBuf.getStr() );
3991 sal_Int32 input = 0;
3992 sal_Int16 radix = 2;
3994 expVal += OString( "0" );
3995 aStrBuf.append( input, radix );
3997 CPPUNIT_ASSERT_MESSAGE
3999 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
4000 aStrBuf.getStr()== expVal &&
4001 aStrBuf.getLength() == expVal.getLength()
4006 void append_042()
4008 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
4009 OString expVal( aStrBuf.getStr() );
4010 sal_Int32 input = 4;
4011 sal_Int16 radix = 2;
4013 expVal += OString( "100" );
4014 aStrBuf.append( input, radix );
4016 CPPUNIT_ASSERT_MESSAGE
4018 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
4019 aStrBuf.getStr()== expVal &&
4020 aStrBuf.getLength() == expVal.getLength()
4025 void append_043()
4027 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
4028 OString expVal( aStrBuf.getStr() );
4029 sal_Int32 input = 8;
4030 sal_Int16 radix = 2;
4032 expVal += OString( "1000" );
4033 aStrBuf.append( input, radix );
4035 CPPUNIT_ASSERT_MESSAGE
4037 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
4038 aStrBuf.getStr()== expVal &&
4039 aStrBuf.getLength() == expVal.getLength()
4044 void append_044()
4046 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
4047 OString expVal( aStrBuf.getStr() );
4048 sal_Int32 input = 15;
4049 sal_Int16 radix = 2;
4051 expVal += OString( "1111" );
4052 aStrBuf.append( input, radix );
4054 CPPUNIT_ASSERT_MESSAGE
4056 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
4057 aStrBuf.getStr()== expVal &&
4058 aStrBuf.getLength() == expVal.getLength()
4063 void append_045()
4065 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
4066 OString expVal( aStrBuf.getStr() );
4067 sal_Int32 input = 0;
4068 sal_Int16 radix = 8;
4070 expVal += OString( "0" );
4071 aStrBuf.append( input, radix );
4073 CPPUNIT_ASSERT_MESSAGE
4075 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
4076 aStrBuf.getStr()== expVal &&
4077 aStrBuf.getLength() == expVal.getLength()
4082 void append_046()
4084 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
4085 OString expVal( aStrBuf.getStr() );
4086 sal_Int32 input = 4;
4087 sal_Int16 radix = 8;
4089 expVal += OString( "4" );
4090 aStrBuf.append( input, radix );
4092 CPPUNIT_ASSERT_MESSAGE
4094 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
4095 aStrBuf.getStr()== expVal &&
4096 aStrBuf.getLength() == expVal.getLength()
4101 void append_047()
4103 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
4104 OString expVal( aStrBuf.getStr() );
4105 sal_Int32 input = 8;
4106 sal_Int16 radix = 8;
4108 expVal += OString( "10" );
4109 aStrBuf.append( input, radix );
4111 CPPUNIT_ASSERT_MESSAGE
4113 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
4114 aStrBuf.getStr()== expVal &&
4115 aStrBuf.getLength() == expVal.getLength()
4120 void append_048()
4122 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
4123 OString expVal( aStrBuf.getStr() );
4124 sal_Int32 input = 15;
4125 sal_Int16 radix = 8;
4127 expVal += OString( "17" );
4128 aStrBuf.append( input, radix );
4130 CPPUNIT_ASSERT_MESSAGE
4132 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
4133 aStrBuf.getStr()== expVal &&
4134 aStrBuf.getLength() == expVal.getLength()
4139 void append_049()
4141 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
4142 OString expVal( aStrBuf.getStr() );
4143 sal_Int32 input = 0;
4144 sal_Int16 radix = 10;
4146 expVal += OString( "0" );
4147 aStrBuf.append( input, radix );
4149 CPPUNIT_ASSERT_MESSAGE
4151 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
4152 aStrBuf.getStr()== expVal &&
4153 aStrBuf.getLength() == expVal.getLength()
4158 void append_050()
4160 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
4161 OString expVal( aStrBuf.getStr() );
4162 sal_Int32 input = 4;
4163 sal_Int16 radix = 10;
4165 expVal += OString( "4" );
4166 aStrBuf.append( input, radix );
4168 CPPUNIT_ASSERT_MESSAGE
4170 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
4171 aStrBuf.getStr()== expVal &&
4172 aStrBuf.getLength() == expVal.getLength()
4177 void append_051()
4179 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
4180 OString expVal( aStrBuf.getStr() );
4181 sal_Int32 input = 8;
4182 sal_Int16 radix = 10;
4184 expVal += OString( "8" );
4185 aStrBuf.append( input, radix );
4187 CPPUNIT_ASSERT_MESSAGE
4189 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
4190 aStrBuf.getStr()== expVal &&
4191 aStrBuf.getLength() == expVal.getLength()
4196 void append_052()
4198 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
4199 OString expVal( aStrBuf.getStr() );
4200 sal_Int32 input = 15;
4201 sal_Int16 radix = 10;
4203 expVal += OString( "15" );
4204 aStrBuf.append( input, radix );
4206 CPPUNIT_ASSERT_MESSAGE
4208 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
4209 aStrBuf.getStr()== expVal &&
4210 aStrBuf.getLength() == expVal.getLength()
4215 void append_053()
4217 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
4218 OString expVal( aStrBuf.getStr() );
4219 sal_Int32 input = 0;
4220 sal_Int16 radix = 16;
4222 expVal += OString( "0" );
4223 aStrBuf.append( input, radix );
4225 CPPUNIT_ASSERT_MESSAGE
4227 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
4228 aStrBuf.getStr()== expVal &&
4229 aStrBuf.getLength() == expVal.getLength()
4234 void append_054()
4236 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
4237 OString expVal( aStrBuf.getStr() );
4238 sal_Int32 input = 4;
4239 sal_Int16 radix = 16;
4241 expVal += OString( "4" );
4242 aStrBuf.append( input, radix );
4244 CPPUNIT_ASSERT_MESSAGE
4246 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
4247 aStrBuf.getStr()== expVal &&
4248 aStrBuf.getLength() == expVal.getLength()
4253 void append_055()
4255 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
4256 OString expVal( aStrBuf.getStr() );
4257 sal_Int32 input = 8;
4258 sal_Int16 radix = 16;
4260 expVal += OString( "8" );
4261 aStrBuf.append( input, radix );
4263 CPPUNIT_ASSERT_MESSAGE
4265 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
4266 aStrBuf.getStr()== expVal &&
4267 aStrBuf.getLength() == expVal.getLength()
4272 void append_056()
4274 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
4275 OString expVal( aStrBuf.getStr() );
4276 sal_Int32 input = 15;
4277 sal_Int16 radix = 16;
4279 expVal += OString( "f" );
4280 aStrBuf.append( input, radix );
4282 CPPUNIT_ASSERT_MESSAGE
4284 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
4285 aStrBuf.getStr()== expVal &&
4286 aStrBuf.getLength() == expVal.getLength()
4291 void append_057()
4293 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
4294 OString expVal( aStrBuf.getStr() );
4295 sal_Int32 input = 0;
4296 sal_Int16 radix = 36;
4298 expVal += OString( "0" );
4299 aStrBuf.append( input, radix );
4301 CPPUNIT_ASSERT_MESSAGE
4303 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
4304 aStrBuf.getStr()== expVal &&
4305 aStrBuf.getLength() == expVal.getLength()
4310 void append_058()
4312 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
4313 OString expVal( aStrBuf.getStr() );
4314 sal_Int32 input = 4;
4315 sal_Int16 radix = 36;
4317 expVal += OString( "4" );
4318 aStrBuf.append( input, radix );
4320 CPPUNIT_ASSERT_MESSAGE
4322 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
4323 aStrBuf.getStr()== expVal &&
4324 aStrBuf.getLength() == expVal.getLength()
4329 void append_059()
4331 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
4332 OString expVal( aStrBuf.getStr() );
4333 sal_Int32 input = 8;
4334 sal_Int16 radix = 36;
4336 expVal += OString( "8" );
4337 aStrBuf.append( input, radix );
4339 CPPUNIT_ASSERT_MESSAGE
4341 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
4342 aStrBuf.getStr()== expVal &&
4343 aStrBuf.getLength() == expVal.getLength()
4348 void append_060()
4350 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
4351 OString expVal( aStrBuf.getStr() );
4352 sal_Int32 input = 35;
4353 sal_Int16 radix = 36;
4355 expVal += OString( "z" );
4356 aStrBuf.append( input, radix );
4358 CPPUNIT_ASSERT_MESSAGE
4360 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
4361 aStrBuf.getStr()== expVal &&
4362 aStrBuf.getLength() == expVal.getLength()
4367 void append_061()
4369 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
4370 OString expVal( aStrBuf.getStr() );
4371 sal_Int32 input = 0;
4372 sal_Int16 radix = 2;
4374 expVal += OString( "0" );
4375 aStrBuf.append( input, radix );
4377 CPPUNIT_ASSERT_MESSAGE
4379 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
4380 aStrBuf.getStr()== expVal &&
4381 aStrBuf.getLength() == expVal.getLength()
4386 void append_062()
4388 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
4389 OString expVal( aStrBuf.getStr() );
4390 sal_Int32 input = 4;
4391 sal_Int16 radix = 2;
4393 expVal += OString( "100" );
4394 aStrBuf.append( input, radix );
4396 CPPUNIT_ASSERT_MESSAGE
4398 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
4399 aStrBuf.getStr()== expVal &&
4400 aStrBuf.getLength() == expVal.getLength()
4405 void append_063()
4407 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
4408 OString expVal( aStrBuf.getStr() );
4409 sal_Int32 input = 8;
4410 sal_Int16 radix = 2;
4412 expVal += OString( "1000" );
4413 aStrBuf.append( input, radix );
4415 CPPUNIT_ASSERT_MESSAGE
4417 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
4418 aStrBuf.getStr()== expVal &&
4419 aStrBuf.getLength() == expVal.getLength()
4424 void append_064()
4426 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
4427 OString expVal( aStrBuf.getStr() );
4428 sal_Int32 input = 15;
4429 sal_Int16 radix = 2;
4431 expVal += OString( "1111" );
4432 aStrBuf.append( input, radix );
4434 CPPUNIT_ASSERT_MESSAGE
4436 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
4437 aStrBuf.getStr()== expVal &&
4438 aStrBuf.getLength() == expVal.getLength()
4443 void append_065()
4445 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
4446 OString expVal( aStrBuf.getStr() );
4447 sal_Int32 input = 0;
4448 sal_Int16 radix = 8;
4450 expVal += OString( "0" );
4451 aStrBuf.append( input, radix );
4453 CPPUNIT_ASSERT_MESSAGE
4455 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
4456 aStrBuf.getStr()== expVal &&
4457 aStrBuf.getLength() == expVal.getLength()
4462 void append_066()
4464 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
4465 OString expVal( aStrBuf.getStr() );
4466 sal_Int32 input = 4;
4467 sal_Int16 radix = 8;
4469 expVal += OString( "4" );
4470 aStrBuf.append( input, radix );
4472 CPPUNIT_ASSERT_MESSAGE
4474 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
4475 aStrBuf.getStr()== expVal &&
4476 aStrBuf.getLength() == expVal.getLength()
4481 void append_067()
4483 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
4484 OString expVal( aStrBuf.getStr() );
4485 sal_Int32 input = 8;
4486 sal_Int16 radix = 8;
4488 expVal += OString( "10" );
4489 aStrBuf.append( input, radix );
4491 CPPUNIT_ASSERT_MESSAGE
4493 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
4494 aStrBuf.getStr()== expVal &&
4495 aStrBuf.getLength() == expVal.getLength()
4500 void append_068()
4502 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
4503 OString expVal( aStrBuf.getStr() );
4504 sal_Int32 input = 15;
4505 sal_Int16 radix = 8;
4507 expVal += OString( "17" );
4508 aStrBuf.append( input, radix );
4510 CPPUNIT_ASSERT_MESSAGE
4512 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
4513 aStrBuf.getStr()== expVal &&
4514 aStrBuf.getLength() == expVal.getLength()
4519 void append_069()
4521 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
4522 OString expVal( aStrBuf.getStr() );
4523 sal_Int32 input = 0;
4524 sal_Int16 radix = 10;
4526 expVal += OString( "0" );
4527 aStrBuf.append( input, radix );
4529 CPPUNIT_ASSERT_MESSAGE
4531 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
4532 aStrBuf.getStr()== expVal &&
4533 aStrBuf.getLength() == expVal.getLength()
4538 void append_070()
4540 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
4541 OString expVal( aStrBuf.getStr() );
4542 sal_Int32 input = 4;
4543 sal_Int16 radix = 10;
4545 expVal += OString( "4" );
4546 aStrBuf.append( input, radix );
4548 CPPUNIT_ASSERT_MESSAGE
4550 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
4551 aStrBuf.getStr()== expVal &&
4552 aStrBuf.getLength() == expVal.getLength()
4557 void append_071()
4559 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
4560 OString expVal( aStrBuf.getStr() );
4561 sal_Int32 input = 8;
4562 sal_Int16 radix = 10;
4564 expVal += OString( "8" );
4565 aStrBuf.append( input, radix );
4567 CPPUNIT_ASSERT_MESSAGE
4569 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
4570 aStrBuf.getStr()== expVal &&
4571 aStrBuf.getLength() == expVal.getLength()
4576 void append_072()
4578 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
4579 OString expVal( aStrBuf.getStr() );
4580 sal_Int32 input = 15;
4581 sal_Int16 radix = 10;
4583 expVal += OString( "15" );
4584 aStrBuf.append( input, radix );
4586 CPPUNIT_ASSERT_MESSAGE
4588 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
4589 aStrBuf.getStr()== expVal &&
4590 aStrBuf.getLength() == expVal.getLength()
4595 void append_073()
4597 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
4598 OString expVal( aStrBuf.getStr() );
4599 sal_Int32 input = 0;
4600 sal_Int16 radix = 16;
4602 expVal += OString( "0" );
4603 aStrBuf.append( input, radix );
4605 CPPUNIT_ASSERT_MESSAGE
4607 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
4608 aStrBuf.getStr()== expVal &&
4609 aStrBuf.getLength() == expVal.getLength()
4614 void append_074()
4616 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
4617 OString expVal( aStrBuf.getStr() );
4618 sal_Int32 input = 4;
4619 sal_Int16 radix = 16;
4621 expVal += OString( "4" );
4622 aStrBuf.append( input, radix );
4624 CPPUNIT_ASSERT_MESSAGE
4626 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
4627 aStrBuf.getStr()== expVal &&
4628 aStrBuf.getLength() == expVal.getLength()
4633 void append_075()
4635 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
4636 OString expVal( aStrBuf.getStr() );
4637 sal_Int32 input = 8;
4638 sal_Int16 radix = 16;
4640 expVal += OString( "8" );
4641 aStrBuf.append( input, radix );
4643 CPPUNIT_ASSERT_MESSAGE
4645 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
4646 aStrBuf.getStr()== expVal &&
4647 aStrBuf.getLength() == expVal.getLength()
4652 void append_076()
4654 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
4655 OString expVal( aStrBuf.getStr() );
4656 sal_Int32 input = 15;
4657 sal_Int16 radix = 16;
4659 expVal += OString( "f" );
4660 aStrBuf.append( input, radix );
4662 CPPUNIT_ASSERT_MESSAGE
4664 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
4665 aStrBuf.getStr()== expVal &&
4666 aStrBuf.getLength() == expVal.getLength()
4671 void append_077()
4673 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
4674 OString expVal( aStrBuf.getStr() );
4675 sal_Int32 input = 0;
4676 sal_Int16 radix = 36;
4678 expVal += OString( "0" );
4679 aStrBuf.append( input, radix );
4681 CPPUNIT_ASSERT_MESSAGE
4683 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
4684 aStrBuf.getStr()== expVal &&
4685 aStrBuf.getLength() == expVal.getLength()
4690 void append_078()
4692 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
4693 OString expVal( aStrBuf.getStr() );
4694 sal_Int32 input = 4;
4695 sal_Int16 radix = 36;
4697 expVal += OString( "4" );
4698 aStrBuf.append( input, radix );
4700 CPPUNIT_ASSERT_MESSAGE
4702 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
4703 aStrBuf.getStr()== expVal &&
4704 aStrBuf.getLength() == expVal.getLength()
4709 void append_079()
4711 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
4712 OString expVal( aStrBuf.getStr() );
4713 sal_Int32 input = 8;
4714 sal_Int16 radix = 36;
4716 expVal += OString( "8" );
4717 aStrBuf.append( input, radix );
4719 CPPUNIT_ASSERT_MESSAGE
4721 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
4722 aStrBuf.getStr()== expVal &&
4723 aStrBuf.getLength() == expVal.getLength()
4728 void append_080()
4730 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
4731 OString expVal( aStrBuf.getStr() );
4732 sal_Int32 input = 35;
4733 sal_Int16 radix = 36;
4735 expVal += OString( "z" );
4736 aStrBuf.append( input, radix );
4738 CPPUNIT_ASSERT_MESSAGE
4740 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
4741 aStrBuf.getStr()== expVal &&
4742 aStrBuf.getLength() == expVal.getLength()
4747 void append_081()
4749 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
4750 OString expVal( aStrBuf.getStr() );
4751 sal_Int32 input = 0;
4752 sal_Int16 radix = 2;
4754 expVal += OString( "0" );
4755 aStrBuf.append( input, radix );
4757 CPPUNIT_ASSERT_MESSAGE
4759 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
4760 aStrBuf.getStr()== expVal &&
4761 aStrBuf.getLength() == expVal.getLength()
4766 void append_082()
4768 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
4769 OString expVal( aStrBuf.getStr() );
4770 sal_Int32 input = 4;
4771 sal_Int16 radix = 2;
4773 expVal += OString( "100" );
4774 aStrBuf.append( input, radix );
4776 CPPUNIT_ASSERT_MESSAGE
4778 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
4779 aStrBuf.getStr()== expVal &&
4780 aStrBuf.getLength() == expVal.getLength()
4785 void append_083()
4787 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
4788 OString expVal( aStrBuf.getStr() );
4789 sal_Int32 input = 8;
4790 sal_Int16 radix = 2;
4792 expVal += OString( "1000" );
4793 aStrBuf.append( input, radix );
4795 CPPUNIT_ASSERT_MESSAGE
4797 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
4798 aStrBuf.getStr()== expVal &&
4799 aStrBuf.getLength() == expVal.getLength()
4804 void append_084()
4806 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
4807 OString expVal( aStrBuf.getStr() );
4808 sal_Int32 input = 15;
4809 sal_Int16 radix = 2;
4811 expVal += OString( "1111" );
4812 aStrBuf.append( input, radix );
4814 CPPUNIT_ASSERT_MESSAGE
4816 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
4817 aStrBuf.getStr()== expVal &&
4818 aStrBuf.getLength() == expVal.getLength()
4823 void append_085()
4825 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
4826 OString expVal( aStrBuf.getStr() );
4827 sal_Int32 input = 0;
4828 sal_Int16 radix = 8;
4830 expVal += OString( "0" );
4831 aStrBuf.append( input, radix );
4833 CPPUNIT_ASSERT_MESSAGE
4835 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
4836 aStrBuf.getStr()== expVal &&
4837 aStrBuf.getLength() == expVal.getLength()
4842 void append_086()
4844 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
4845 OString expVal( aStrBuf.getStr() );
4846 sal_Int32 input = 4;
4847 sal_Int16 radix = 8;
4849 expVal += OString( "4" );
4850 aStrBuf.append( input, radix );
4852 CPPUNIT_ASSERT_MESSAGE
4854 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
4855 aStrBuf.getStr()== expVal &&
4856 aStrBuf.getLength() == expVal.getLength()
4861 void append_087()
4863 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
4864 OString expVal( aStrBuf.getStr() );
4865 sal_Int32 input = 8;
4866 sal_Int16 radix = 8;
4868 expVal += OString( "10" );
4869 aStrBuf.append( input, radix );
4871 CPPUNIT_ASSERT_MESSAGE
4873 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
4874 aStrBuf.getStr()== expVal &&
4875 aStrBuf.getLength() == expVal.getLength()
4880 void append_088()
4882 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
4883 OString expVal( aStrBuf.getStr() );
4884 sal_Int32 input = 15;
4885 sal_Int16 radix = 8;
4887 expVal += OString( "17" );
4888 aStrBuf.append( input, radix );
4890 CPPUNIT_ASSERT_MESSAGE
4892 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
4893 aStrBuf.getStr()== expVal &&
4894 aStrBuf.getLength() == expVal.getLength()
4899 void append_089()
4901 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
4902 OString expVal( aStrBuf.getStr() );
4903 sal_Int32 input = 0;
4904 sal_Int16 radix = 10;
4906 expVal += OString( "0" );
4907 aStrBuf.append( input, radix );
4909 CPPUNIT_ASSERT_MESSAGE
4911 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
4912 aStrBuf.getStr()== expVal &&
4913 aStrBuf.getLength() == expVal.getLength()
4918 void append_090()
4920 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
4921 OString expVal( aStrBuf.getStr() );
4922 sal_Int32 input = 4;
4923 sal_Int16 radix = 10;
4925 expVal += OString( "4" );
4926 aStrBuf.append( input, radix );
4928 CPPUNIT_ASSERT_MESSAGE
4930 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
4931 aStrBuf.getStr()== expVal &&
4932 aStrBuf.getLength() == expVal.getLength()
4937 void append_091()
4939 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
4940 OString expVal( aStrBuf.getStr() );
4941 sal_Int32 input = 8;
4942 sal_Int16 radix = 10;
4944 expVal += OString( "8" );
4945 aStrBuf.append( input, radix );
4947 CPPUNIT_ASSERT_MESSAGE
4949 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
4950 aStrBuf.getStr()== expVal &&
4951 aStrBuf.getLength() == expVal.getLength()
4956 void append_092()
4958 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
4959 OString expVal( aStrBuf.getStr() );
4960 sal_Int32 input = 15;
4961 sal_Int16 radix = 10;
4963 expVal += OString( "15" );
4964 aStrBuf.append( input, radix );
4966 CPPUNIT_ASSERT_MESSAGE
4968 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
4969 aStrBuf.getStr()== expVal &&
4970 aStrBuf.getLength() == expVal.getLength()
4975 void append_093()
4977 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
4978 OString expVal( aStrBuf.getStr() );
4979 sal_Int32 input = 0;
4980 sal_Int16 radix = 16;
4982 expVal += OString( "0" );
4983 aStrBuf.append( input, radix );
4985 CPPUNIT_ASSERT_MESSAGE
4987 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
4988 aStrBuf.getStr()== expVal &&
4989 aStrBuf.getLength() == expVal.getLength()
4994 void append_094()
4996 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
4997 OString expVal( aStrBuf.getStr() );
4998 sal_Int32 input = 4;
4999 sal_Int16 radix = 16;
5001 expVal += OString( "4" );
5002 aStrBuf.append( input, radix );
5004 CPPUNIT_ASSERT_MESSAGE
5006 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
5007 aStrBuf.getStr()== expVal &&
5008 aStrBuf.getLength() == expVal.getLength()
5013 void append_095()
5015 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
5016 OString expVal( aStrBuf.getStr() );
5017 sal_Int32 input = 8;
5018 sal_Int16 radix = 16;
5020 expVal += OString( "8" );
5021 aStrBuf.append( input, radix );
5023 CPPUNIT_ASSERT_MESSAGE
5025 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
5026 aStrBuf.getStr()== expVal &&
5027 aStrBuf.getLength() == expVal.getLength()
5032 void append_096()
5034 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
5035 OString expVal( aStrBuf.getStr() );
5036 sal_Int32 input = 15;
5037 sal_Int16 radix = 16;
5039 expVal += OString( "f" );
5040 aStrBuf.append( input, radix );
5042 CPPUNIT_ASSERT_MESSAGE
5044 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
5045 aStrBuf.getStr()== expVal &&
5046 aStrBuf.getLength() == expVal.getLength()
5051 void append_097()
5053 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
5054 OString expVal( aStrBuf.getStr() );
5055 sal_Int32 input = 0;
5056 sal_Int16 radix = 36;
5058 expVal += OString( "0" );
5059 aStrBuf.append( input, radix );
5061 CPPUNIT_ASSERT_MESSAGE
5063 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
5064 aStrBuf.getStr()== expVal &&
5065 aStrBuf.getLength() == expVal.getLength()
5070 void append_098()
5072 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
5073 OString expVal( aStrBuf.getStr() );
5074 sal_Int32 input = 4;
5075 sal_Int16 radix = 36;
5077 expVal += OString( "4" );
5078 aStrBuf.append( input, radix );
5080 CPPUNIT_ASSERT_MESSAGE
5082 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
5083 aStrBuf.getStr()== expVal &&
5084 aStrBuf.getLength() == expVal.getLength()
5089 void append_099()
5091 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
5092 OString expVal( aStrBuf.getStr() );
5093 sal_Int32 input = 8;
5094 sal_Int16 radix = 36;
5096 expVal += OString( "8" );
5097 aStrBuf.append( input, radix );
5099 CPPUNIT_ASSERT_MESSAGE
5101 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
5102 aStrBuf.getStr()== expVal &&
5103 aStrBuf.getLength() == expVal.getLength()
5108 void append_100()
5110 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
5111 OString expVal( aStrBuf.getStr() );
5112 sal_Int32 input = 35;
5113 sal_Int16 radix = 36;
5115 expVal += OString( "z" );
5116 aStrBuf.append( input, radix );
5118 CPPUNIT_ASSERT_MESSAGE
5120 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
5121 aStrBuf.getStr()== expVal &&
5122 aStrBuf.getLength() == expVal.getLength()
5127 CPPUNIT_TEST_SUITE( append_006_Int32 );
5128 CPPUNIT_TEST( append_001 ); CPPUNIT_TEST( append_002 );
5129 CPPUNIT_TEST( append_003 ); CPPUNIT_TEST( append_004 );
5130 CPPUNIT_TEST( append_005 ); CPPUNIT_TEST( append_006 );
5131 CPPUNIT_TEST( append_007 ); CPPUNIT_TEST( append_008 );
5132 CPPUNIT_TEST( append_009 ); CPPUNIT_TEST( append_010 );
5133 CPPUNIT_TEST( append_011 ); CPPUNIT_TEST( append_012 );
5134 CPPUNIT_TEST( append_013 ); CPPUNIT_TEST( append_014 );
5135 CPPUNIT_TEST( append_015 ); CPPUNIT_TEST( append_016 );
5136 CPPUNIT_TEST( append_017 ); CPPUNIT_TEST( append_018 );
5137 CPPUNIT_TEST( append_019 ); CPPUNIT_TEST( append_020 );
5138 CPPUNIT_TEST( append_021 ); CPPUNIT_TEST( append_022 );
5139 CPPUNIT_TEST( append_023 ); CPPUNIT_TEST( append_024 );
5140 CPPUNIT_TEST( append_025 ); CPPUNIT_TEST( append_026 );
5141 CPPUNIT_TEST( append_027 ); CPPUNIT_TEST( append_028 );
5142 CPPUNIT_TEST( append_029 ); CPPUNIT_TEST( append_030 );
5143 CPPUNIT_TEST( append_031 ); CPPUNIT_TEST( append_032 );
5144 CPPUNIT_TEST( append_033 ); CPPUNIT_TEST( append_034 );
5145 CPPUNIT_TEST( append_035 ); CPPUNIT_TEST( append_036 );
5146 CPPUNIT_TEST( append_037 ); CPPUNIT_TEST( append_038 );
5147 CPPUNIT_TEST( append_039 ); CPPUNIT_TEST( append_040 );
5148 CPPUNIT_TEST( append_041 ); CPPUNIT_TEST( append_042 );
5149 CPPUNIT_TEST( append_043 ); CPPUNIT_TEST( append_044 );
5150 CPPUNIT_TEST( append_045 ); CPPUNIT_TEST( append_046 );
5151 CPPUNIT_TEST( append_047 ); CPPUNIT_TEST( append_048 );
5152 CPPUNIT_TEST( append_049 ); CPPUNIT_TEST( append_050 );
5153 CPPUNIT_TEST( append_051 ); CPPUNIT_TEST( append_052 );
5154 CPPUNIT_TEST( append_053 ); CPPUNIT_TEST( append_054 );
5155 CPPUNIT_TEST( append_055 ); CPPUNIT_TEST( append_056 );
5156 CPPUNIT_TEST( append_057 ); CPPUNIT_TEST( append_058 );
5157 CPPUNIT_TEST( append_059 ); CPPUNIT_TEST( append_060 );
5158 CPPUNIT_TEST( append_061 ); CPPUNIT_TEST( append_062 );
5159 CPPUNIT_TEST( append_063 ); CPPUNIT_TEST( append_064 );
5160 CPPUNIT_TEST( append_065 ); CPPUNIT_TEST( append_066 );
5161 CPPUNIT_TEST( append_067 ); CPPUNIT_TEST( append_068 );
5162 CPPUNIT_TEST( append_069 ); CPPUNIT_TEST( append_070 );
5163 CPPUNIT_TEST( append_071 ); CPPUNIT_TEST( append_072 );
5164 CPPUNIT_TEST( append_073 ); CPPUNIT_TEST( append_074 );
5165 CPPUNIT_TEST( append_075 ); CPPUNIT_TEST( append_076 );
5166 CPPUNIT_TEST( append_077 ); CPPUNIT_TEST( append_078 );
5167 CPPUNIT_TEST( append_079 ); CPPUNIT_TEST( append_080 );
5168 CPPUNIT_TEST( append_081 ); CPPUNIT_TEST( append_082 );
5169 CPPUNIT_TEST( append_083 ); CPPUNIT_TEST( append_084 );
5170 CPPUNIT_TEST( append_085 ); CPPUNIT_TEST( append_086 );
5171 CPPUNIT_TEST( append_087 ); CPPUNIT_TEST( append_088 );
5172 CPPUNIT_TEST( append_089 ); CPPUNIT_TEST( append_090 );
5173 CPPUNIT_TEST( append_091 ); CPPUNIT_TEST( append_092 );
5174 CPPUNIT_TEST( append_093 ); CPPUNIT_TEST( append_094 );
5175 CPPUNIT_TEST( append_095 ); CPPUNIT_TEST( append_096 );
5176 CPPUNIT_TEST( append_097 ); CPPUNIT_TEST( append_098 );
5177 CPPUNIT_TEST( append_099 ); CPPUNIT_TEST( append_100 );
5178 CPPUNIT_TEST_SUITE_END();
5180 //------------------------------------------------------------------------
5181 // testing the method append( sal_Int32 i, sal_Int16 radix=2 )
5182 // where i = large constants
5183 // testing the method append( sal_Int32 i, sal_Int16 radix=8 )
5184 // where i = large constants
5185 // testing the method append( sal_Int32 i, sal_Int16 radix=10 )
5186 // where i = large constants
5187 // testing the method append( sal_Int32 i, sal_Int16 radix=16 )
5188 // where i = large constants
5189 // testing the method append( sal_Int32 i, sal_Int16 radix=36 )
5190 // where i = large constants
5191 //------------------------------------------------------------------------
5192 class append_006_Int32_Bounderies : public CppUnit::TestFixture
5194 OString* arrOUS[5];
5196 public:
5197 void setUp()
5199 arrOUS[0] = new OString( kTestStr7 );
5200 arrOUS[1] = new OString( );
5201 arrOUS[2] = new OString( kTestStr25 );
5202 arrOUS[3] = new OString( "" );
5203 arrOUS[4] = new OString( kTestStr28 );
5207 void tearDown()
5209 delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
5210 delete arrOUS[3]; delete arrOUS[4];
5213 void append_001()
5215 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
5216 OString expVal( aStrBuf.getStr() );
5217 sal_Int32 input = kSInt8Max;
5218 sal_Int16 radix = 2;
5220 expVal += OString( "1111111" );
5221 aStrBuf.append( input, radix );
5223 CPPUNIT_ASSERT_MESSAGE
5225 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
5226 aStrBuf.getStr()== expVal &&
5227 aStrBuf.getLength() == expVal.getLength()
5232 void append_002()
5234 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
5235 OString expVal( aStrBuf.getStr() );
5236 sal_Int32 input = kSInt32Max;
5237 sal_Int16 radix = 2;
5239 expVal += OString( "1111111111111111111111111111111" );
5240 aStrBuf.append( input, radix );
5242 CPPUNIT_ASSERT_MESSAGE
5244 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
5245 aStrBuf.getStr()== expVal &&
5246 aStrBuf.getLength() == expVal.getLength()
5251 void append_003()
5253 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
5254 OString expVal( aStrBuf.getStr() );
5255 sal_Int32 input = kSInt8Max;
5256 sal_Int16 radix = 8;
5258 expVal += OString( "177" );
5259 aStrBuf.append( input, radix );
5261 CPPUNIT_ASSERT_MESSAGE
5263 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
5264 aStrBuf.getStr()== expVal &&
5265 aStrBuf.getLength() == expVal.getLength()
5270 void append_004()
5272 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
5273 OString expVal( aStrBuf.getStr() );
5274 sal_Int32 input = kSInt32Max;
5275 sal_Int16 radix = 8;
5277 expVal += OString( "17777777777" );
5278 aStrBuf.append( input, radix );
5280 CPPUNIT_ASSERT_MESSAGE
5282 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
5283 aStrBuf.getStr()== expVal &&
5284 aStrBuf.getLength() == expVal.getLength()
5289 void append_005()
5291 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
5292 OString expVal( aStrBuf.getStr() );
5293 sal_Int32 input = kSInt8Max;
5294 sal_Int16 radix = 10;
5296 expVal += OString( "127" );
5297 aStrBuf.append( input, radix );
5299 CPPUNIT_ASSERT_MESSAGE
5301 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
5302 aStrBuf.getStr()== expVal &&
5303 aStrBuf.getLength() == expVal.getLength()
5308 void append_006()
5310 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
5311 OString expVal( aStrBuf.getStr() );
5312 sal_Int32 input = kSInt32Max;
5313 sal_Int16 radix = 10;
5315 expVal += OString( "2147483647" );
5316 aStrBuf.append( input, radix );
5318 CPPUNIT_ASSERT_MESSAGE
5320 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
5321 aStrBuf.getStr()== expVal &&
5322 aStrBuf.getLength() == expVal.getLength()
5327 void append_007()
5329 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
5330 OString expVal( aStrBuf.getStr() );
5331 sal_Int32 input = kSInt8Max;
5332 sal_Int16 radix = 16;
5334 expVal += OString( "7f" );
5335 aStrBuf.append( input, radix );
5337 CPPUNIT_ASSERT_MESSAGE
5339 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
5340 aStrBuf.getStr()== expVal &&
5341 aStrBuf.getLength() == expVal.getLength()
5346 void append_008()
5348 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
5349 OString expVal( aStrBuf.getStr() );
5350 sal_Int32 input = kSInt32Max;
5351 sal_Int16 radix = 16;
5353 expVal += OString( "7fffffff" );
5354 aStrBuf.append( input, radix );
5356 CPPUNIT_ASSERT_MESSAGE
5358 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
5359 aStrBuf.getStr()== expVal &&
5360 aStrBuf.getLength() == expVal.getLength()
5365 void append_009()
5367 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
5368 OString expVal( aStrBuf.getStr() );
5369 sal_Int32 input = kSInt8Max;
5370 sal_Int16 radix = 36;
5372 expVal += OString( "3j" );
5373 aStrBuf.append( input, radix );
5375 CPPUNIT_ASSERT_MESSAGE
5377 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
5378 aStrBuf.getStr()== expVal &&
5379 aStrBuf.getLength() == expVal.getLength()
5384 void append_010()
5386 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
5387 OString expVal( aStrBuf.getStr() );
5388 sal_Int32 input = kSInt32Max;
5389 sal_Int16 radix = 36;
5391 expVal += OString( "zik0zj" );
5392 aStrBuf.append( input, radix );
5394 CPPUNIT_ASSERT_MESSAGE
5396 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
5397 aStrBuf.getStr()== expVal &&
5398 aStrBuf.getLength() == expVal.getLength()
5403 void append_011()
5405 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
5406 OString expVal( aStrBuf.getStr() );
5407 sal_Int32 input = kSInt8Max;
5408 sal_Int16 radix = 2;
5410 expVal += OString( "1111111" );
5411 aStrBuf.append( input, radix );
5413 CPPUNIT_ASSERT_MESSAGE
5415 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
5416 aStrBuf.getStr()== expVal &&
5417 aStrBuf.getLength() == expVal.getLength()
5422 void append_012()
5424 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
5425 OString expVal( aStrBuf.getStr() );
5426 sal_Int32 input = kSInt32Max;
5427 sal_Int16 radix = 2;
5429 expVal += OString( "1111111111111111111111111111111" );
5430 aStrBuf.append( input, radix );
5432 CPPUNIT_ASSERT_MESSAGE
5434 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
5435 aStrBuf.getStr()== expVal &&
5436 aStrBuf.getLength() == expVal.getLength()
5441 void append_013()
5443 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
5444 OString expVal( aStrBuf.getStr() );
5445 sal_Int32 input = kSInt8Max;
5446 sal_Int16 radix = 8;
5448 expVal += OString( "177" );
5449 aStrBuf.append( input, radix );
5451 CPPUNIT_ASSERT_MESSAGE
5453 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
5454 aStrBuf.getStr()== expVal &&
5455 aStrBuf.getLength() == expVal.getLength()
5460 void append_014()
5462 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
5463 OString expVal( aStrBuf.getStr() );
5464 sal_Int32 input = kSInt32Max;
5465 sal_Int16 radix = 8;
5467 expVal += OString( "17777777777" );
5468 aStrBuf.append( input, radix );
5470 CPPUNIT_ASSERT_MESSAGE
5472 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
5473 aStrBuf.getStr()== expVal &&
5474 aStrBuf.getLength() == expVal.getLength()
5479 void append_015()
5481 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
5482 OString expVal( aStrBuf.getStr() );
5483 sal_Int32 input = kSInt8Max;
5484 sal_Int16 radix = 10;
5486 expVal += OString( "127" );
5487 aStrBuf.append( input, radix );
5489 CPPUNIT_ASSERT_MESSAGE
5491 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
5492 aStrBuf.getStr()== expVal &&
5493 aStrBuf.getLength() == expVal.getLength()
5498 void append_016()
5500 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
5501 OString expVal( aStrBuf.getStr() );
5502 sal_Int32 input = kSInt32Max;
5503 sal_Int16 radix = 10;
5505 expVal += OString( "2147483647" );
5506 aStrBuf.append( input, radix );
5508 CPPUNIT_ASSERT_MESSAGE
5510 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
5511 aStrBuf.getStr()== expVal &&
5512 aStrBuf.getLength() == expVal.getLength()
5517 void append_017()
5519 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
5520 OString expVal( aStrBuf.getStr() );
5521 sal_Int32 input = kSInt8Max;
5522 sal_Int16 radix = 16;
5524 expVal += OString( "7f" );
5525 aStrBuf.append( input, radix );
5527 CPPUNIT_ASSERT_MESSAGE
5529 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
5530 aStrBuf.getStr()== expVal &&
5531 aStrBuf.getLength() == expVal.getLength()
5536 void append_018()
5538 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
5539 OString expVal( aStrBuf.getStr() );
5540 sal_Int32 input = kSInt32Max;
5541 sal_Int16 radix = 16;
5543 expVal += OString( "7fffffff" );
5544 aStrBuf.append( input, radix );
5546 CPPUNIT_ASSERT_MESSAGE
5548 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
5549 aStrBuf.getStr()== expVal &&
5550 aStrBuf.getLength() == expVal.getLength()
5555 void append_019()
5557 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
5558 OString expVal( aStrBuf.getStr() );
5559 sal_Int32 input = kSInt8Max;
5560 sal_Int16 radix = 36;
5562 expVal += OString( "3j" );
5563 aStrBuf.append( input, radix );
5565 CPPUNIT_ASSERT_MESSAGE
5567 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
5568 aStrBuf.getStr()== expVal &&
5569 aStrBuf.getLength() == expVal.getLength()
5574 void append_020()
5576 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
5577 OString expVal( aStrBuf.getStr() );
5578 sal_Int32 input = kSInt32Max;
5579 sal_Int16 radix = 36;
5581 expVal += OString( "zik0zj" );
5582 aStrBuf.append( input, radix );
5584 CPPUNIT_ASSERT_MESSAGE
5586 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
5587 aStrBuf.getStr()== expVal &&
5588 aStrBuf.getLength() == expVal.getLength()
5593 void append_021()
5595 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
5596 OString expVal( aStrBuf.getStr() );
5597 sal_Int32 input = kSInt8Max;
5598 sal_Int16 radix = 2;
5600 expVal += OString( "1111111" );
5601 aStrBuf.append( input, radix );
5603 CPPUNIT_ASSERT_MESSAGE
5605 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
5606 aStrBuf.getStr()== expVal &&
5607 aStrBuf.getLength() == expVal.getLength()
5612 void append_022()
5614 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
5615 OString expVal( aStrBuf.getStr() );
5616 sal_Int32 input = kSInt32Max;
5617 sal_Int16 radix = 2;
5619 expVal += OString( "1111111111111111111111111111111" );
5620 aStrBuf.append( input, radix );
5622 CPPUNIT_ASSERT_MESSAGE
5624 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
5625 aStrBuf.getStr()== expVal &&
5626 aStrBuf.getLength() == expVal.getLength()
5631 void append_023()
5633 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
5634 OString expVal( aStrBuf.getStr() );
5635 sal_Int32 input = kSInt8Max;
5636 sal_Int16 radix = 8;
5638 expVal += OString( "177" );
5639 aStrBuf.append( input, radix );
5641 CPPUNIT_ASSERT_MESSAGE
5643 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
5644 aStrBuf.getStr()== expVal &&
5645 aStrBuf.getLength() == expVal.getLength()
5650 void append_024()
5652 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
5653 OString expVal( aStrBuf.getStr() );
5654 sal_Int32 input = kSInt32Max;
5655 sal_Int16 radix = 8;
5657 expVal += OString( "17777777777" );
5658 aStrBuf.append( input, radix );
5660 CPPUNIT_ASSERT_MESSAGE
5662 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
5663 aStrBuf.getStr()== expVal &&
5664 aStrBuf.getLength() == expVal.getLength()
5669 void append_025()
5671 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
5672 OString expVal( aStrBuf.getStr() );
5673 sal_Int32 input = kSInt8Max;
5674 sal_Int16 radix = 10;
5676 expVal += OString( "127" );
5677 aStrBuf.append( input, radix );
5679 CPPUNIT_ASSERT_MESSAGE
5681 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
5682 aStrBuf.getStr()== expVal &&
5683 aStrBuf.getLength() == expVal.getLength()
5688 void append_026()
5690 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
5691 OString expVal( aStrBuf.getStr() );
5692 sal_Int32 input = kSInt32Max;
5693 sal_Int16 radix = 10;
5695 expVal += OString( "2147483647" );
5696 aStrBuf.append( input, radix );
5698 CPPUNIT_ASSERT_MESSAGE
5700 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
5701 aStrBuf.getStr()== expVal &&
5702 aStrBuf.getLength() == expVal.getLength()
5707 void append_027()
5709 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
5710 OString expVal( aStrBuf.getStr() );
5711 sal_Int32 input = kSInt8Max;
5712 sal_Int16 radix = 16;
5714 expVal += OString( "7f" );
5715 aStrBuf.append( input, radix );
5717 CPPUNIT_ASSERT_MESSAGE
5719 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
5720 aStrBuf.getStr()== expVal &&
5721 aStrBuf.getLength() == expVal.getLength()
5726 void append_028()
5728 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
5729 OString expVal( aStrBuf.getStr() );
5730 sal_Int32 input = kSInt32Max;
5731 sal_Int16 radix = 16;
5733 expVal += OString( "7fffffff" );
5734 aStrBuf.append( input, radix );
5736 CPPUNIT_ASSERT_MESSAGE
5738 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
5739 aStrBuf.getStr()== expVal &&
5740 aStrBuf.getLength() == expVal.getLength()
5745 void append_029()
5747 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
5748 OString expVal( aStrBuf.getStr() );
5749 sal_Int32 input = kSInt8Max;
5750 sal_Int16 radix = 36;
5752 expVal += OString( "3j" );
5753 aStrBuf.append( input, radix );
5755 CPPUNIT_ASSERT_MESSAGE
5757 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
5758 aStrBuf.getStr()== expVal &&
5759 aStrBuf.getLength() == expVal.getLength()
5764 void append_030()
5766 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
5767 OString expVal( aStrBuf.getStr() );
5768 sal_Int32 input = kSInt32Max;
5769 sal_Int16 radix = 36;
5771 expVal += OString( "zik0zj" );
5772 aStrBuf.append( input, radix );
5774 CPPUNIT_ASSERT_MESSAGE
5776 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
5777 aStrBuf.getStr()== expVal &&
5778 aStrBuf.getLength() == expVal.getLength()
5783 void append_031()
5785 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
5786 OString expVal( aStrBuf.getStr() );
5787 sal_Int32 input = kSInt8Max;
5788 sal_Int16 radix = 2;
5790 expVal += OString( "1111111" );
5791 aStrBuf.append( input, radix );
5793 CPPUNIT_ASSERT_MESSAGE
5795 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
5796 aStrBuf.getStr()== expVal &&
5797 aStrBuf.getLength() == expVal.getLength()
5802 void append_032()
5804 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
5805 OString expVal( aStrBuf.getStr() );
5806 sal_Int32 input = kSInt32Max;
5807 sal_Int16 radix = 2;
5809 expVal += OString( "1111111111111111111111111111111" );
5810 aStrBuf.append( input, radix );
5812 CPPUNIT_ASSERT_MESSAGE
5814 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
5815 aStrBuf.getStr()== expVal &&
5816 aStrBuf.getLength() == expVal.getLength()
5821 void append_033()
5823 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
5824 OString expVal( aStrBuf.getStr() );
5825 sal_Int32 input = kSInt8Max;
5826 sal_Int16 radix = 8;
5828 expVal += OString( "177" );
5829 aStrBuf.append( input, radix );
5831 CPPUNIT_ASSERT_MESSAGE
5833 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
5834 aStrBuf.getStr()== expVal &&
5835 aStrBuf.getLength() == expVal.getLength()
5840 void append_034()
5842 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
5843 OString expVal( aStrBuf.getStr() );
5844 sal_Int32 input = kSInt32Max;
5845 sal_Int16 radix = 8;
5847 expVal += OString( "17777777777" );
5848 aStrBuf.append( input, radix );
5850 CPPUNIT_ASSERT_MESSAGE
5852 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
5853 aStrBuf.getStr()== expVal &&
5854 aStrBuf.getLength() == expVal.getLength()
5859 void append_035()
5861 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
5862 OString expVal( aStrBuf.getStr() );
5863 sal_Int32 input = kSInt8Max;
5864 sal_Int16 radix = 10;
5866 expVal += OString( "127" );
5867 aStrBuf.append( input, radix );
5869 CPPUNIT_ASSERT_MESSAGE
5871 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
5872 aStrBuf.getStr()== expVal &&
5873 aStrBuf.getLength() == expVal.getLength()
5878 void append_036()
5880 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
5881 OString expVal( aStrBuf.getStr() );
5882 sal_Int32 input = kSInt32Max;
5883 sal_Int16 radix = 10;
5885 expVal += OString( "2147483647" );
5886 aStrBuf.append( input, radix );
5888 CPPUNIT_ASSERT_MESSAGE
5890 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
5891 aStrBuf.getStr()== expVal &&
5892 aStrBuf.getLength() == expVal.getLength()
5897 void append_037()
5899 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
5900 OString expVal( aStrBuf.getStr() );
5901 sal_Int32 input = kSInt8Max;
5902 sal_Int16 radix = 16;
5904 expVal += OString( "7f" );
5905 aStrBuf.append( input, radix );
5907 CPPUNIT_ASSERT_MESSAGE
5909 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
5910 aStrBuf.getStr()== expVal &&
5911 aStrBuf.getLength() == expVal.getLength()
5916 void append_038()
5918 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
5919 OString expVal( aStrBuf.getStr() );
5920 sal_Int32 input = kSInt32Max;
5921 sal_Int16 radix = 16;
5923 expVal += OString( "7fffffff" );
5924 aStrBuf.append( input, radix );
5926 CPPUNIT_ASSERT_MESSAGE
5928 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
5929 aStrBuf.getStr()== expVal &&
5930 aStrBuf.getLength() == expVal.getLength()
5935 void append_039()
5937 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
5938 OString expVal( aStrBuf.getStr() );
5939 sal_Int32 input = kSInt8Max;
5940 sal_Int16 radix = 36;
5942 expVal += OString( "3j" );
5943 aStrBuf.append( input, radix );
5945 CPPUNIT_ASSERT_MESSAGE
5947 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
5948 aStrBuf.getStr()== expVal &&
5949 aStrBuf.getLength() == expVal.getLength()
5954 void append_040()
5956 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
5957 OString expVal( aStrBuf.getStr() );
5958 sal_Int32 input = kSInt32Max;
5959 sal_Int16 radix = 36;
5961 expVal += OString( "zik0zj" );
5962 aStrBuf.append( input, radix );
5964 CPPUNIT_ASSERT_MESSAGE
5966 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
5967 aStrBuf.getStr()== expVal &&
5968 aStrBuf.getLength() == expVal.getLength()
5973 void append_041()
5975 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
5976 OString expVal( aStrBuf.getStr() );
5977 sal_Int32 input = kSInt8Max;
5978 sal_Int16 radix = 2;
5980 expVal += OString( "1111111" );
5981 aStrBuf.append( input, radix );
5983 CPPUNIT_ASSERT_MESSAGE
5985 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
5986 aStrBuf.getStr()== expVal &&
5987 aStrBuf.getLength() == expVal.getLength()
5992 void append_042()
5994 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
5995 OString expVal( aStrBuf.getStr() );
5996 sal_Int32 input = kSInt32Max;
5997 sal_Int16 radix = 2;
5999 expVal += OString( "1111111111111111111111111111111" );
6000 aStrBuf.append( input, radix );
6002 CPPUNIT_ASSERT_MESSAGE
6004 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
6005 aStrBuf.getStr()== expVal &&
6006 aStrBuf.getLength() == expVal.getLength()
6011 void append_043()
6013 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
6014 OString expVal( aStrBuf.getStr() );
6015 sal_Int32 input = kSInt8Max;
6016 sal_Int16 radix = 8;
6018 expVal += OString( "177" );
6019 aStrBuf.append( input, radix );
6021 CPPUNIT_ASSERT_MESSAGE
6023 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
6024 aStrBuf.getStr()== expVal &&
6025 aStrBuf.getLength() == expVal.getLength()
6030 void append_044()
6032 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
6033 OString expVal( aStrBuf.getStr() );
6034 sal_Int32 input = kSInt32Max;
6035 sal_Int16 radix = 8;
6037 expVal += OString( "17777777777" );
6038 aStrBuf.append( input, radix );
6040 CPPUNIT_ASSERT_MESSAGE
6042 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
6043 aStrBuf.getStr()== expVal &&
6044 aStrBuf.getLength() == expVal.getLength()
6049 void append_045()
6051 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
6052 OString expVal( aStrBuf.getStr() );
6053 sal_Int32 input = kSInt8Max;
6054 sal_Int16 radix = 10;
6056 expVal += OString( "127" );
6057 aStrBuf.append( input, radix );
6059 CPPUNIT_ASSERT_MESSAGE
6061 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
6062 aStrBuf.getStr()== expVal &&
6063 aStrBuf.getLength() == expVal.getLength()
6068 void append_046()
6070 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
6071 OString expVal( aStrBuf.getStr() );
6072 sal_Int32 input = kSInt32Max;
6073 sal_Int16 radix = 10;
6075 expVal += OString( "2147483647" );
6076 aStrBuf.append( input, radix );
6078 CPPUNIT_ASSERT_MESSAGE
6080 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
6081 aStrBuf.getStr()== expVal &&
6082 aStrBuf.getLength() == expVal.getLength()
6087 void append_047()
6089 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
6090 OString expVal( aStrBuf.getStr() );
6091 sal_Int32 input = kSInt8Max;
6092 sal_Int16 radix = 16;
6094 expVal += OString( "7f" );
6095 aStrBuf.append( input, radix );
6097 CPPUNIT_ASSERT_MESSAGE
6099 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
6100 aStrBuf.getStr()== expVal &&
6101 aStrBuf.getLength() == expVal.getLength()
6106 void append_048()
6108 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
6109 OString expVal( aStrBuf.getStr() );
6110 sal_Int32 input = kSInt32Max;
6111 sal_Int16 radix = 16;
6113 expVal += OString( "7fffffff" );
6114 aStrBuf.append( input, radix );
6116 CPPUNIT_ASSERT_MESSAGE
6118 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
6119 aStrBuf.getStr()== expVal &&
6120 aStrBuf.getLength() == expVal.getLength()
6125 void append_049()
6127 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
6128 OString expVal( aStrBuf.getStr() );
6129 sal_Int32 input = kSInt8Max;
6130 sal_Int16 radix = 36;
6132 expVal += OString( "3j" );
6133 aStrBuf.append( input, radix );
6135 CPPUNIT_ASSERT_MESSAGE
6137 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
6138 aStrBuf.getStr()== expVal &&
6139 aStrBuf.getLength() == expVal.getLength()
6144 void append_050()
6146 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
6147 OString expVal( aStrBuf.getStr() );
6148 sal_Int32 input = kSInt32Max;
6149 sal_Int16 radix = 36;
6151 expVal += OString( "zik0zj" );
6152 aStrBuf.append( input, radix );
6154 CPPUNIT_ASSERT_MESSAGE
6156 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
6157 aStrBuf.getStr()== expVal &&
6158 aStrBuf.getLength() == expVal.getLength()
6163 CPPUNIT_TEST_SUITE( append_006_Int32_Bounderies );
6164 CPPUNIT_TEST( append_001 ); CPPUNIT_TEST( append_002 );
6165 CPPUNIT_TEST( append_003 ); CPPUNIT_TEST( append_004 );
6166 CPPUNIT_TEST( append_005 ); CPPUNIT_TEST( append_006 );
6167 CPPUNIT_TEST( append_007 ); CPPUNIT_TEST( append_008 );
6168 CPPUNIT_TEST( append_009 ); CPPUNIT_TEST( append_010 );
6169 CPPUNIT_TEST( append_011 ); CPPUNIT_TEST( append_012 );
6170 CPPUNIT_TEST( append_013 ); CPPUNIT_TEST( append_014 );
6171 CPPUNIT_TEST( append_015 ); CPPUNIT_TEST( append_016 );
6172 CPPUNIT_TEST( append_017 ); CPPUNIT_TEST( append_018 );
6173 CPPUNIT_TEST( append_019 ); CPPUNIT_TEST( append_020 );
6174 CPPUNIT_TEST( append_021 ); CPPUNIT_TEST( append_022 );
6175 CPPUNIT_TEST( append_023 ); CPPUNIT_TEST( append_024 );
6176 CPPUNIT_TEST( append_025 ); CPPUNIT_TEST( append_026 );
6177 CPPUNIT_TEST( append_027 ); CPPUNIT_TEST( append_028 );
6178 CPPUNIT_TEST( append_029 ); CPPUNIT_TEST( append_030 );
6179 CPPUNIT_TEST( append_031 ); CPPUNIT_TEST( append_032 );
6180 CPPUNIT_TEST( append_033 ); CPPUNIT_TEST( append_034 );
6181 CPPUNIT_TEST( append_035 ); CPPUNIT_TEST( append_036 );
6182 CPPUNIT_TEST( append_037 ); CPPUNIT_TEST( append_038 );
6183 CPPUNIT_TEST( append_039 ); CPPUNIT_TEST( append_040 );
6184 CPPUNIT_TEST( append_041 ); CPPUNIT_TEST( append_042 );
6185 CPPUNIT_TEST( append_043 ); CPPUNIT_TEST( append_044 );
6186 CPPUNIT_TEST( append_045 ); CPPUNIT_TEST( append_046 );
6187 CPPUNIT_TEST( append_047 ); CPPUNIT_TEST( append_048 );
6188 CPPUNIT_TEST( append_049 ); CPPUNIT_TEST( append_050 );
6189 CPPUNIT_TEST_SUITE_END();
6191 //------------------------------------------------------------------------
6192 // testing the method append( sal_Int32 i, sal_Int16 radix=2 )
6193 // for negative value
6194 // testing the method append( sal_Int32 i, sal_Int16 radix=8 )
6195 // for negative value
6196 // testing the method append( sal_Int32 i, sal_Int16 radix=10 )
6197 // for negative value
6198 // testing the method append( sal_Int32 i, sal_Int16 radix=16 )
6199 // for negative value
6200 // testing the method append( sal_Int32 i, sal_Int16 radix=36 )
6201 // for negative value
6202 //------------------------------------------------------------------------
6203 class append_006_Int32_Negative : public CppUnit::TestFixture
6205 OString* arrOUS[5];
6207 public:
6208 void setUp()
6210 arrOUS[0] = new OString( kTestStr7 );
6211 arrOUS[1] = new OString( );
6212 arrOUS[2] = new OString( kTestStr25 );
6213 arrOUS[3] = new OString( "" );
6214 arrOUS[4] = new OString( kTestStr28 );
6218 void tearDown()
6220 delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
6221 delete arrOUS[3]; delete arrOUS[4];
6224 void append_001()
6226 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
6227 OString expVal( aStrBuf.getStr() );
6228 sal_Int32 input = -0;
6229 sal_Int16 radix = 2;
6231 expVal += OString( "0" );
6232 aStrBuf.append( input, radix );
6234 CPPUNIT_ASSERT_MESSAGE
6236 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
6237 aStrBuf.getStr()== expVal &&
6238 aStrBuf.getLength() == expVal.getLength()
6243 void append_002()
6245 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
6246 OString expVal( aStrBuf.getStr() );
6247 sal_Int32 input = -4;
6248 sal_Int16 radix = 2;
6250 expVal += OString( "-" );
6251 expVal += OString( "100" );
6252 aStrBuf.append( input, radix );
6254 CPPUNIT_ASSERT_MESSAGE
6256 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
6257 aStrBuf.getStr()== expVal &&
6258 aStrBuf.getLength() == expVal.getLength()
6263 void append_003()
6265 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
6266 OString expVal( aStrBuf.getStr() );
6267 sal_Int32 input = -8;
6268 sal_Int16 radix = 2;
6270 expVal += OString( "-" );
6271 expVal += OString( "1000" );
6272 aStrBuf.append( input, radix );
6274 CPPUNIT_ASSERT_MESSAGE
6276 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
6277 aStrBuf.getStr()== expVal &&
6278 aStrBuf.getLength() == expVal.getLength()
6283 void append_004()
6285 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
6286 OString expVal( aStrBuf.getStr() );
6287 sal_Int32 input = -15;
6288 sal_Int16 radix = 2;
6290 expVal += OString( "-" );
6291 expVal += OString( "1111" );
6292 aStrBuf.append( input, radix );
6294 CPPUNIT_ASSERT_MESSAGE
6296 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
6297 aStrBuf.getStr()== expVal &&
6298 aStrBuf.getLength() == expVal.getLength()
6303 void append_005()
6305 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
6306 OString expVal( aStrBuf.getStr() );
6307 sal_Int32 input = -0;
6308 sal_Int16 radix = 8;
6310 expVal += OString( "0" );
6311 aStrBuf.append( input, radix );
6313 CPPUNIT_ASSERT_MESSAGE
6315 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
6316 aStrBuf.getStr()== expVal &&
6317 aStrBuf.getLength() == expVal.getLength()
6322 void append_006()
6324 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
6325 OString expVal( aStrBuf.getStr() );
6326 sal_Int32 input = -4;
6327 sal_Int16 radix = 8;
6329 expVal += OString( "-" );
6330 expVal += OString( "4" );
6331 aStrBuf.append( input, radix );
6333 CPPUNIT_ASSERT_MESSAGE
6335 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
6336 aStrBuf.getStr()== expVal &&
6337 aStrBuf.getLength() == expVal.getLength()
6342 void append_007()
6344 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
6345 OString expVal( aStrBuf.getStr() );
6346 sal_Int32 input = -8;
6347 sal_Int16 radix = 8;
6349 expVal += OString( "-" );
6350 expVal += OString( "10" );
6351 aStrBuf.append( input, radix );
6353 CPPUNIT_ASSERT_MESSAGE
6355 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
6356 aStrBuf.getStr()== expVal &&
6357 aStrBuf.getLength() == expVal.getLength()
6362 void append_008()
6364 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
6365 OString expVal( aStrBuf.getStr() );
6366 sal_Int32 input = -15;
6367 sal_Int16 radix = 8;
6369 expVal += OString( "-" );
6370 expVal += OString( "17" );
6371 aStrBuf.append( input, radix );
6373 CPPUNIT_ASSERT_MESSAGE
6375 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
6376 aStrBuf.getStr()== expVal &&
6377 aStrBuf.getLength() == expVal.getLength()
6382 void append_009()
6384 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
6385 OString expVal( aStrBuf.getStr() );
6386 sal_Int32 input = -0;
6387 sal_Int16 radix = 10;
6389 expVal += OString( "0" );
6390 aStrBuf.append( input, radix );
6392 CPPUNIT_ASSERT_MESSAGE
6394 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
6395 aStrBuf.getStr()== expVal &&
6396 aStrBuf.getLength() == expVal.getLength()
6401 void append_010()
6403 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
6404 OString expVal( aStrBuf.getStr() );
6405 sal_Int32 input = -4;
6406 sal_Int16 radix = 10;
6408 expVal += OString( "-" );
6409 expVal += OString( "4" );
6410 aStrBuf.append( input, radix );
6412 CPPUNIT_ASSERT_MESSAGE
6414 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
6415 aStrBuf.getStr()== expVal &&
6416 aStrBuf.getLength() == expVal.getLength()
6421 void append_011()
6423 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
6424 OString expVal( aStrBuf.getStr() );
6425 sal_Int32 input = -8;
6426 sal_Int16 radix = 10;
6428 expVal += OString( "-" );
6429 expVal += OString( "8" );
6430 aStrBuf.append( input, radix );
6432 CPPUNIT_ASSERT_MESSAGE
6434 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
6435 aStrBuf.getStr()== expVal &&
6436 aStrBuf.getLength() == expVal.getLength()
6441 void append_012()
6443 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
6444 OString expVal( aStrBuf.getStr() );
6445 sal_Int32 input = -15;
6446 sal_Int16 radix = 10;
6448 expVal += OString( "-" );
6449 expVal += OString( "15" );
6450 aStrBuf.append( input, radix );
6452 CPPUNIT_ASSERT_MESSAGE
6454 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
6455 aStrBuf.getStr()== expVal &&
6456 aStrBuf.getLength() == expVal.getLength()
6461 void append_013()
6463 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
6464 OString expVal( aStrBuf.getStr() );
6465 sal_Int32 input = -0;
6466 sal_Int16 radix = 16;
6468 expVal += OString( "0" );
6469 aStrBuf.append( input, radix );
6471 CPPUNIT_ASSERT_MESSAGE
6473 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
6474 aStrBuf.getStr()== expVal &&
6475 aStrBuf.getLength() == expVal.getLength()
6480 void append_014()
6482 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
6483 OString expVal( aStrBuf.getStr() );
6484 sal_Int32 input = -4;
6485 sal_Int16 radix = 16;
6487 expVal += OString( "-" );
6488 expVal += OString( "4" );
6489 aStrBuf.append( input, radix );
6491 CPPUNIT_ASSERT_MESSAGE
6493 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
6494 aStrBuf.getStr()== expVal &&
6495 aStrBuf.getLength() == expVal.getLength()
6500 void append_015()
6502 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
6503 OString expVal( aStrBuf.getStr() );
6504 sal_Int32 input = -8;
6505 sal_Int16 radix = 16;
6507 expVal += OString( "-" );
6508 expVal += OString( "8" );
6509 aStrBuf.append( input, radix );
6511 CPPUNIT_ASSERT_MESSAGE
6513 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
6514 aStrBuf.getStr()== expVal &&
6515 aStrBuf.getLength() == expVal.getLength()
6520 void append_016()
6522 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
6523 OString expVal( aStrBuf.getStr() );
6524 sal_Int32 input = -15;
6525 sal_Int16 radix = 16;
6527 expVal += OString( "-" );
6528 expVal += OString( "f" );
6529 aStrBuf.append( input, radix );
6531 CPPUNIT_ASSERT_MESSAGE
6533 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
6534 aStrBuf.getStr()== expVal &&
6535 aStrBuf.getLength() == expVal.getLength()
6540 void append_017()
6542 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
6543 OString expVal( aStrBuf.getStr() );
6544 sal_Int32 input = -0;
6545 sal_Int16 radix = 36;
6547 expVal += OString( "0" );
6548 aStrBuf.append( input, radix );
6550 CPPUNIT_ASSERT_MESSAGE
6552 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
6553 aStrBuf.getStr()== expVal &&
6554 aStrBuf.getLength() == expVal.getLength()
6559 void append_018()
6561 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
6562 OString expVal( aStrBuf.getStr() );
6563 sal_Int32 input = -4;
6564 sal_Int16 radix = 36;
6566 expVal += OString( "-" );
6567 expVal += OString( "4" );
6568 aStrBuf.append( input, radix );
6570 CPPUNIT_ASSERT_MESSAGE
6572 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
6573 aStrBuf.getStr()== expVal &&
6574 aStrBuf.getLength() == expVal.getLength()
6579 void append_019()
6581 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
6582 OString expVal( aStrBuf.getStr() );
6583 sal_Int32 input = -8;
6584 sal_Int16 radix = 36;
6586 expVal += OString( "-" );
6587 expVal += OString( "8" );
6588 aStrBuf.append( input, radix );
6590 CPPUNIT_ASSERT_MESSAGE
6592 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
6593 aStrBuf.getStr()== expVal &&
6594 aStrBuf.getLength() == expVal.getLength()
6599 void append_020()
6601 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
6602 OString expVal( aStrBuf.getStr() );
6603 sal_Int32 input = -35;
6604 sal_Int16 radix = 36;
6606 expVal += OString( "-" );
6607 expVal += OString( "z" );
6608 aStrBuf.append( input, radix );
6610 CPPUNIT_ASSERT_MESSAGE
6612 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
6613 aStrBuf.getStr()== expVal &&
6614 aStrBuf.getLength() == expVal.getLength()
6619 void append_021()
6621 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
6622 OString expVal( aStrBuf.getStr() );
6623 sal_Int32 input = -0;
6624 sal_Int16 radix = 2;
6626 expVal += OString( "0" );
6627 aStrBuf.append( input, radix );
6629 CPPUNIT_ASSERT_MESSAGE
6631 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
6632 aStrBuf.getStr()== expVal &&
6633 aStrBuf.getLength() == expVal.getLength()
6638 void append_022()
6640 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
6641 OString expVal( aStrBuf.getStr() );
6642 sal_Int32 input = -4;
6643 sal_Int16 radix = 2;
6645 expVal += OString( "-" );
6646 expVal += OString( "100" );
6647 aStrBuf.append( input, radix );
6649 CPPUNIT_ASSERT_MESSAGE
6651 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
6652 aStrBuf.getStr()== expVal &&
6653 aStrBuf.getLength() == expVal.getLength()
6658 void append_023()
6660 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
6661 OString expVal( aStrBuf.getStr() );
6662 sal_Int32 input = -8;
6663 sal_Int16 radix = 2;
6665 expVal += OString( "-" );
6666 expVal += OString( "1000" );
6667 aStrBuf.append( input, radix );
6669 CPPUNIT_ASSERT_MESSAGE
6671 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
6672 aStrBuf.getStr()== expVal &&
6673 aStrBuf.getLength() == expVal.getLength()
6678 void append_024()
6680 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
6681 OString expVal( aStrBuf.getStr() );
6682 sal_Int32 input = -15;
6683 sal_Int16 radix = 2;
6685 expVal += OString( "-" );
6686 expVal += OString( "1111" );
6687 aStrBuf.append( input, radix );
6689 CPPUNIT_ASSERT_MESSAGE
6691 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
6692 aStrBuf.getStr()== expVal &&
6693 aStrBuf.getLength() == expVal.getLength()
6698 void append_025()
6700 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
6701 OString expVal( aStrBuf.getStr() );
6702 sal_Int32 input = -0;
6703 sal_Int16 radix = 8;
6705 expVal += OString( "0" );
6706 aStrBuf.append( input, radix );
6708 CPPUNIT_ASSERT_MESSAGE
6710 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
6711 aStrBuf.getStr()== expVal &&
6712 aStrBuf.getLength() == expVal.getLength()
6717 void append_026()
6719 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
6720 OString expVal( aStrBuf.getStr() );
6721 sal_Int32 input = -4;
6722 sal_Int16 radix = 8;
6724 expVal += OString( "-" );
6725 expVal += OString( "4" );
6726 aStrBuf.append( input, radix );
6728 CPPUNIT_ASSERT_MESSAGE
6730 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
6731 aStrBuf.getStr()== expVal &&
6732 aStrBuf.getLength() == expVal.getLength()
6737 void append_027()
6739 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
6740 OString expVal( aStrBuf.getStr() );
6741 sal_Int32 input = -8;
6742 sal_Int16 radix = 8;
6744 expVal += OString( "-" );
6745 expVal += OString( "10" );
6746 aStrBuf.append( input, radix );
6748 CPPUNIT_ASSERT_MESSAGE
6750 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
6751 aStrBuf.getStr()== expVal &&
6752 aStrBuf.getLength() == expVal.getLength()
6757 void append_028()
6759 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
6760 OString expVal( aStrBuf.getStr() );
6761 sal_Int32 input = -15;
6762 sal_Int16 radix = 8;
6764 expVal += OString( "-" );
6765 expVal += OString( "17" );
6766 aStrBuf.append( input, radix );
6768 CPPUNIT_ASSERT_MESSAGE
6770 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
6771 aStrBuf.getStr()== expVal &&
6772 aStrBuf.getLength() == expVal.getLength()
6777 void append_029()
6779 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
6780 OString expVal( aStrBuf.getStr() );
6781 sal_Int32 input = -0;
6782 sal_Int16 radix = 10;
6784 expVal += OString( "0" );
6785 aStrBuf.append( input, radix );
6787 CPPUNIT_ASSERT_MESSAGE
6789 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
6790 aStrBuf.getStr()== expVal &&
6791 aStrBuf.getLength() == expVal.getLength()
6796 void append_030()
6798 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
6799 OString expVal( aStrBuf.getStr() );
6800 sal_Int32 input = -4;
6801 sal_Int16 radix = 10;
6803 expVal += OString( "-" );
6804 expVal += OString( "4" );
6805 aStrBuf.append( input, radix );
6807 CPPUNIT_ASSERT_MESSAGE
6809 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
6810 aStrBuf.getStr()== expVal &&
6811 aStrBuf.getLength() == expVal.getLength()
6816 void append_031()
6818 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
6819 OString expVal( aStrBuf.getStr() );
6820 sal_Int32 input = -8;
6821 sal_Int16 radix = 10;
6823 expVal += OString( "-" );
6824 expVal += OString( "8" );
6825 aStrBuf.append( input, radix );
6827 CPPUNIT_ASSERT_MESSAGE
6829 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
6830 aStrBuf.getStr()== expVal &&
6831 aStrBuf.getLength() == expVal.getLength()
6836 void append_032()
6838 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
6839 OString expVal( aStrBuf.getStr() );
6840 sal_Int32 input = -15;
6841 sal_Int16 radix = 10;
6843 expVal += OString( "-" );
6844 expVal += OString( "15" );
6845 aStrBuf.append( input, radix );
6847 CPPUNIT_ASSERT_MESSAGE
6849 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
6850 aStrBuf.getStr()== expVal &&
6851 aStrBuf.getLength() == expVal.getLength()
6856 void append_033()
6858 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
6859 OString expVal( aStrBuf.getStr() );
6860 sal_Int32 input = -0;
6861 sal_Int16 radix = 16;
6863 expVal += OString( "0" );
6864 aStrBuf.append( input, radix );
6866 CPPUNIT_ASSERT_MESSAGE
6868 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
6869 aStrBuf.getStr()== expVal &&
6870 aStrBuf.getLength() == expVal.getLength()
6875 void append_034()
6877 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
6878 OString expVal( aStrBuf.getStr() );
6879 sal_Int32 input = -4;
6880 sal_Int16 radix = 16;
6882 expVal += OString( "-" );
6883 expVal += OString( "4" );
6884 aStrBuf.append( input, radix );
6886 CPPUNIT_ASSERT_MESSAGE
6888 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
6889 aStrBuf.getStr()== expVal &&
6890 aStrBuf.getLength() == expVal.getLength()
6895 void append_035()
6897 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
6898 OString expVal( aStrBuf.getStr() );
6899 sal_Int32 input = -8;
6900 sal_Int16 radix = 16;
6902 expVal += OString( "-" );
6903 expVal += OString( "8" );
6904 aStrBuf.append( input, radix );
6906 CPPUNIT_ASSERT_MESSAGE
6908 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
6909 aStrBuf.getStr()== expVal &&
6910 aStrBuf.getLength() == expVal.getLength()
6915 void append_036()
6917 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
6918 OString expVal( aStrBuf.getStr() );
6919 sal_Int32 input = -15;
6920 sal_Int16 radix = 16;
6922 expVal += OString( "-" );
6923 expVal += OString( "f" );
6924 aStrBuf.append( input, radix );
6926 CPPUNIT_ASSERT_MESSAGE
6928 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
6929 aStrBuf.getStr()== expVal &&
6930 aStrBuf.getLength() == expVal.getLength()
6935 void append_037()
6937 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
6938 OString expVal( aStrBuf.getStr() );
6939 sal_Int32 input = -0;
6940 sal_Int16 radix = 36;
6942 expVal += OString( "0" );
6943 aStrBuf.append( input, radix );
6945 CPPUNIT_ASSERT_MESSAGE
6947 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
6948 aStrBuf.getStr()== expVal &&
6949 aStrBuf.getLength() == expVal.getLength()
6954 void append_038()
6956 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
6957 OString expVal( aStrBuf.getStr() );
6958 sal_Int32 input = -4;
6959 sal_Int16 radix = 36;
6961 expVal += OString( "-" );
6962 expVal += OString( "4" );
6963 aStrBuf.append( input, radix );
6965 CPPUNIT_ASSERT_MESSAGE
6967 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
6968 aStrBuf.getStr()== expVal &&
6969 aStrBuf.getLength() == expVal.getLength()
6974 void append_039()
6976 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
6977 OString expVal( aStrBuf.getStr() );
6978 sal_Int32 input = -8;
6979 sal_Int16 radix = 36;
6981 expVal += OString( "-" );
6982 expVal += OString( "8" );
6983 aStrBuf.append( input, radix );
6985 CPPUNIT_ASSERT_MESSAGE
6987 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
6988 aStrBuf.getStr()== expVal &&
6989 aStrBuf.getLength() == expVal.getLength()
6994 void append_040()
6996 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
6997 OString expVal( aStrBuf.getStr() );
6998 sal_Int32 input = -35;
6999 sal_Int16 radix = 36;
7001 expVal += OString( "-" );
7002 expVal += OString( "z" );
7003 aStrBuf.append( input, radix );
7005 CPPUNIT_ASSERT_MESSAGE
7007 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
7008 aStrBuf.getStr()== expVal &&
7009 aStrBuf.getLength() == expVal.getLength()
7014 void append_041()
7016 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
7017 OString expVal( aStrBuf.getStr() );
7018 sal_Int32 input = -0;
7019 sal_Int16 radix = 2;
7021 expVal += OString( "0" );
7022 aStrBuf.append( input, radix );
7024 CPPUNIT_ASSERT_MESSAGE
7026 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
7027 aStrBuf.getStr()== expVal &&
7028 aStrBuf.getLength() == expVal.getLength()
7033 void append_042()
7035 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
7036 OString expVal( aStrBuf.getStr() );
7037 sal_Int32 input = -4;
7038 sal_Int16 radix = 2;
7040 expVal += OString( "-" );
7041 expVal += OString( "100" );
7042 aStrBuf.append( input, radix );
7044 CPPUNIT_ASSERT_MESSAGE
7046 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
7047 aStrBuf.getStr()== expVal &&
7048 aStrBuf.getLength() == expVal.getLength()
7053 void append_043()
7055 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
7056 OString expVal( aStrBuf.getStr() );
7057 sal_Int32 input = -8;
7058 sal_Int16 radix = 2;
7060 expVal += OString( "-" );
7061 expVal += OString( "1000" );
7062 aStrBuf.append( input, radix );
7064 CPPUNIT_ASSERT_MESSAGE
7066 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
7067 aStrBuf.getStr()== expVal &&
7068 aStrBuf.getLength() == expVal.getLength()
7073 void append_044()
7075 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
7076 OString expVal( aStrBuf.getStr() );
7077 sal_Int32 input = -15;
7078 sal_Int16 radix = 2;
7080 expVal += OString( "-" );
7081 expVal += OString( "1111" );
7082 aStrBuf.append( input, radix );
7084 CPPUNIT_ASSERT_MESSAGE
7086 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
7087 aStrBuf.getStr()== expVal &&
7088 aStrBuf.getLength() == expVal.getLength()
7093 void append_045()
7095 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
7096 OString expVal( aStrBuf.getStr() );
7097 sal_Int32 input = -0;
7098 sal_Int16 radix = 8;
7100 expVal += OString( "0" );
7101 aStrBuf.append( input, radix );
7103 CPPUNIT_ASSERT_MESSAGE
7105 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
7106 aStrBuf.getStr()== expVal &&
7107 aStrBuf.getLength() == expVal.getLength()
7112 void append_046()
7114 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
7115 OString expVal( aStrBuf.getStr() );
7116 sal_Int32 input = -4;
7117 sal_Int16 radix = 8;
7119 expVal += OString( "-" );
7120 expVal += OString( "4" );
7121 aStrBuf.append( input, radix );
7123 CPPUNIT_ASSERT_MESSAGE
7125 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
7126 aStrBuf.getStr()== expVal &&
7127 aStrBuf.getLength() == expVal.getLength()
7132 void append_047()
7134 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
7135 OString expVal( aStrBuf.getStr() );
7136 sal_Int32 input = -8;
7137 sal_Int16 radix = 8;
7139 expVal += OString( "-" );
7140 expVal += OString( "10" );
7141 aStrBuf.append( input, radix );
7143 CPPUNIT_ASSERT_MESSAGE
7145 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
7146 aStrBuf.getStr()== expVal &&
7147 aStrBuf.getLength() == expVal.getLength()
7152 void append_048()
7154 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
7155 OString expVal( aStrBuf.getStr() );
7156 sal_Int32 input = -15;
7157 sal_Int16 radix = 8;
7159 expVal += OString( "-" );
7160 expVal += OString( "17" );
7161 aStrBuf.append( input, radix );
7163 CPPUNIT_ASSERT_MESSAGE
7165 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
7166 aStrBuf.getStr()== expVal &&
7167 aStrBuf.getLength() == expVal.getLength()
7172 void append_049()
7174 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
7175 OString expVal( aStrBuf.getStr() );
7176 sal_Int32 input = -0;
7177 sal_Int16 radix = 10;
7179 expVal += OString( "0" );
7180 aStrBuf.append( input, radix );
7182 CPPUNIT_ASSERT_MESSAGE
7184 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
7185 aStrBuf.getStr()== expVal &&
7186 aStrBuf.getLength() == expVal.getLength()
7191 void append_050()
7193 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
7194 OString expVal( aStrBuf.getStr() );
7195 sal_Int32 input = -4;
7196 sal_Int16 radix = 10;
7198 expVal += OString( "-" );
7199 expVal += OString( "4" );
7200 aStrBuf.append( input, radix );
7202 CPPUNIT_ASSERT_MESSAGE
7204 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
7205 aStrBuf.getStr()== expVal &&
7206 aStrBuf.getLength() == expVal.getLength()
7211 void append_051()
7213 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
7214 OString expVal( aStrBuf.getStr() );
7215 sal_Int32 input = -8;
7216 sal_Int16 radix = 10;
7218 expVal += OString( "-" );
7219 expVal += OString( "8" );
7220 aStrBuf.append( input, radix );
7222 CPPUNIT_ASSERT_MESSAGE
7224 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
7225 aStrBuf.getStr()== expVal &&
7226 aStrBuf.getLength() == expVal.getLength()
7231 void append_052()
7233 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
7234 OString expVal( aStrBuf.getStr() );
7235 sal_Int32 input = -15;
7236 sal_Int16 radix = 10;
7238 expVal += OString( "-" );
7239 expVal += OString( "15" );
7240 aStrBuf.append( input, radix );
7242 CPPUNIT_ASSERT_MESSAGE
7244 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
7245 aStrBuf.getStr()== expVal &&
7246 aStrBuf.getLength() == expVal.getLength()
7251 void append_053()
7253 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
7254 OString expVal( aStrBuf.getStr() );
7255 sal_Int32 input = -0;
7256 sal_Int16 radix = 16;
7258 expVal += OString( "0" );
7259 aStrBuf.append( input, radix );
7261 CPPUNIT_ASSERT_MESSAGE
7263 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
7264 aStrBuf.getStr()== expVal &&
7265 aStrBuf.getLength() == expVal.getLength()
7270 void append_054()
7272 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
7273 OString expVal( aStrBuf.getStr() );
7274 sal_Int32 input = -4;
7275 sal_Int16 radix = 16;
7277 expVal += OString( "-" );
7278 expVal += OString( "4" );
7279 aStrBuf.append( input, radix );
7281 CPPUNIT_ASSERT_MESSAGE
7283 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
7284 aStrBuf.getStr()== expVal &&
7285 aStrBuf.getLength() == expVal.getLength()
7290 void append_055()
7292 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
7293 OString expVal( aStrBuf.getStr() );
7294 sal_Int32 input = -8;
7295 sal_Int16 radix = 16;
7297 expVal += OString( "-" );
7298 expVal += OString( "8" );
7299 aStrBuf.append( input, radix );
7301 CPPUNIT_ASSERT_MESSAGE
7303 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
7304 aStrBuf.getStr()== expVal &&
7305 aStrBuf.getLength() == expVal.getLength()
7310 void append_056()
7312 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
7313 OString expVal( aStrBuf.getStr() );
7314 sal_Int32 input = -15;
7315 sal_Int16 radix = 16;
7317 expVal += OString( "-" );
7318 expVal += OString( "f" );
7319 aStrBuf.append( input, radix );
7321 CPPUNIT_ASSERT_MESSAGE
7323 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
7324 aStrBuf.getStr()== expVal &&
7325 aStrBuf.getLength() == expVal.getLength()
7330 void append_057()
7332 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
7333 OString expVal( aStrBuf.getStr() );
7334 sal_Int32 input = -0;
7335 sal_Int16 radix = 36;
7337 expVal += OString( "0" );
7338 aStrBuf.append( input, radix );
7340 CPPUNIT_ASSERT_MESSAGE
7342 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
7343 aStrBuf.getStr()== expVal &&
7344 aStrBuf.getLength() == expVal.getLength()
7349 void append_058()
7351 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
7352 OString expVal( aStrBuf.getStr() );
7353 sal_Int32 input = -4;
7354 sal_Int16 radix = 36;
7356 expVal += OString( "-" );
7357 expVal += OString( "4" );
7358 aStrBuf.append( input, radix );
7360 CPPUNIT_ASSERT_MESSAGE
7362 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
7363 aStrBuf.getStr()== expVal &&
7364 aStrBuf.getLength() == expVal.getLength()
7369 void append_059()
7371 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
7372 OString expVal( aStrBuf.getStr() );
7373 sal_Int32 input = -8;
7374 sal_Int16 radix = 36;
7376 expVal += OString( "-" );
7377 expVal += OString( "8" );
7378 aStrBuf.append( input, radix );
7380 CPPUNIT_ASSERT_MESSAGE
7382 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
7383 aStrBuf.getStr()== expVal &&
7384 aStrBuf.getLength() == expVal.getLength()
7389 void append_060()
7391 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
7392 OString expVal( aStrBuf.getStr() );
7393 sal_Int32 input = -35;
7394 sal_Int16 radix = 36;
7396 expVal += OString( "-" );
7397 expVal += OString( "z" );
7398 aStrBuf.append( input, radix );
7400 CPPUNIT_ASSERT_MESSAGE
7402 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
7403 aStrBuf.getStr()== expVal &&
7404 aStrBuf.getLength() == expVal.getLength()
7409 void append_061()
7411 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
7412 OString expVal( aStrBuf.getStr() );
7413 sal_Int32 input = -0;
7414 sal_Int16 radix = 2;
7416 expVal += OString( "0" );
7417 aStrBuf.append( input, radix );
7419 CPPUNIT_ASSERT_MESSAGE
7421 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
7422 aStrBuf.getStr()== expVal &&
7423 aStrBuf.getLength() == expVal.getLength()
7428 void append_062()
7430 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
7431 OString expVal( aStrBuf.getStr() );
7432 sal_Int32 input = -4;
7433 sal_Int16 radix = 2;
7435 expVal += OString( "-" );
7436 expVal += OString( "100" );
7437 aStrBuf.append( input, radix );
7439 CPPUNIT_ASSERT_MESSAGE
7441 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
7442 aStrBuf.getStr()== expVal &&
7443 aStrBuf.getLength() == expVal.getLength()
7448 void append_063()
7450 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
7451 OString expVal( aStrBuf.getStr() );
7452 sal_Int32 input = -8;
7453 sal_Int16 radix = 2;
7455 expVal += OString( "-" );
7456 expVal += OString( "1000" );
7457 aStrBuf.append( input, radix );
7459 CPPUNIT_ASSERT_MESSAGE
7461 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
7462 aStrBuf.getStr()== expVal &&
7463 aStrBuf.getLength() == expVal.getLength()
7468 void append_064()
7470 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
7471 OString expVal( aStrBuf.getStr() );
7472 sal_Int32 input = -15;
7473 sal_Int16 radix = 2;
7475 expVal += OString( "-" );
7476 expVal += OString( "1111" );
7477 aStrBuf.append( input, radix );
7479 CPPUNIT_ASSERT_MESSAGE
7481 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
7482 aStrBuf.getStr()== expVal &&
7483 aStrBuf.getLength() == expVal.getLength()
7488 void append_065()
7490 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
7491 OString expVal( aStrBuf.getStr() );
7492 sal_Int32 input = -0;
7493 sal_Int16 radix = 8;
7495 expVal += OString( "0" );
7496 aStrBuf.append( input, radix );
7498 CPPUNIT_ASSERT_MESSAGE
7500 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
7501 aStrBuf.getStr()== expVal &&
7502 aStrBuf.getLength() == expVal.getLength()
7507 void append_066()
7509 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
7510 OString expVal( aStrBuf.getStr() );
7511 sal_Int32 input = -4;
7512 sal_Int16 radix = 8;
7514 expVal += OString( "-" );
7515 expVal += OString( "4" );
7516 aStrBuf.append( input, radix );
7518 CPPUNIT_ASSERT_MESSAGE
7520 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
7521 aStrBuf.getStr()== expVal &&
7522 aStrBuf.getLength() == expVal.getLength()
7527 void append_067()
7529 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
7530 OString expVal( aStrBuf.getStr() );
7531 sal_Int32 input = -8;
7532 sal_Int16 radix = 8;
7534 expVal += OString( "-" );
7535 expVal += OString( "10" );
7536 aStrBuf.append( input, radix );
7538 CPPUNIT_ASSERT_MESSAGE
7540 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
7541 aStrBuf.getStr()== expVal &&
7542 aStrBuf.getLength() == expVal.getLength()
7547 void append_068()
7549 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
7550 OString expVal( aStrBuf.getStr() );
7551 sal_Int32 input = -15;
7552 sal_Int16 radix = 8;
7554 expVal += OString( "-" );
7555 expVal += OString( "17" );
7556 aStrBuf.append( input, radix );
7558 CPPUNIT_ASSERT_MESSAGE
7560 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
7561 aStrBuf.getStr()== expVal &&
7562 aStrBuf.getLength() == expVal.getLength()
7567 void append_069()
7569 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
7570 OString expVal( aStrBuf.getStr() );
7571 sal_Int32 input = -0;
7572 sal_Int16 radix = 10;
7574 expVal += OString( "0" );
7575 aStrBuf.append( input, radix );
7577 CPPUNIT_ASSERT_MESSAGE
7579 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
7580 aStrBuf.getStr()== expVal &&
7581 aStrBuf.getLength() == expVal.getLength()
7586 void append_070()
7588 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
7589 OString expVal( aStrBuf.getStr() );
7590 sal_Int32 input = -4;
7591 sal_Int16 radix = 10;
7593 expVal += OString( "-" );
7594 expVal += OString( "4" );
7595 aStrBuf.append( input, radix );
7597 CPPUNIT_ASSERT_MESSAGE
7599 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
7600 aStrBuf.getStr()== expVal &&
7601 aStrBuf.getLength() == expVal.getLength()
7606 void append_071()
7608 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
7609 OString expVal( aStrBuf.getStr() );
7610 sal_Int32 input = -8;
7611 sal_Int16 radix = 10;
7613 expVal += OString( "-" );
7614 expVal += OString( "8" );
7615 aStrBuf.append( input, radix );
7617 CPPUNIT_ASSERT_MESSAGE
7619 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
7620 aStrBuf.getStr()== expVal &&
7621 aStrBuf.getLength() == expVal.getLength()
7626 void append_072()
7628 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
7629 OString expVal( aStrBuf.getStr() );
7630 sal_Int32 input = -15;
7631 sal_Int16 radix = 10;
7633 expVal += OString( "-" );
7634 expVal += OString( "15" );
7635 aStrBuf.append( input, radix );
7637 CPPUNIT_ASSERT_MESSAGE
7639 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
7640 aStrBuf.getStr()== expVal &&
7641 aStrBuf.getLength() == expVal.getLength()
7646 void append_073()
7648 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
7649 OString expVal( aStrBuf.getStr() );
7650 sal_Int32 input = -0;
7651 sal_Int16 radix = 16;
7653 expVal += OString( "0" );
7654 aStrBuf.append( input, radix );
7656 CPPUNIT_ASSERT_MESSAGE
7658 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
7659 aStrBuf.getStr()== expVal &&
7660 aStrBuf.getLength() == expVal.getLength()
7665 void append_074()
7667 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
7668 OString expVal( aStrBuf.getStr() );
7669 sal_Int32 input = -4;
7670 sal_Int16 radix = 16;
7672 expVal += OString( "-" );
7673 expVal += OString( "4" );
7674 aStrBuf.append( input, radix );
7676 CPPUNIT_ASSERT_MESSAGE
7678 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
7679 aStrBuf.getStr()== expVal &&
7680 aStrBuf.getLength() == expVal.getLength()
7685 void append_075()
7687 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
7688 OString expVal( aStrBuf.getStr() );
7689 sal_Int32 input = -8;
7690 sal_Int16 radix = 16;
7692 expVal += OString( "-" );
7693 expVal += OString( "8" );
7694 aStrBuf.append( input, radix );
7696 CPPUNIT_ASSERT_MESSAGE
7698 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
7699 aStrBuf.getStr()== expVal &&
7700 aStrBuf.getLength() == expVal.getLength()
7705 void append_076()
7707 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
7708 OString expVal( aStrBuf.getStr() );
7709 sal_Int32 input = -15;
7710 sal_Int16 radix = 16;
7712 expVal += OString( "-" );
7713 expVal += OString( "f" );
7714 aStrBuf.append( input, radix );
7716 CPPUNIT_ASSERT_MESSAGE
7718 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
7719 aStrBuf.getStr()== expVal &&
7720 aStrBuf.getLength() == expVal.getLength()
7725 void append_077()
7727 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
7728 OString expVal( aStrBuf.getStr() );
7729 sal_Int32 input = -0;
7730 sal_Int16 radix = 36;
7732 expVal += OString( "0" );
7733 aStrBuf.append( input, radix );
7735 CPPUNIT_ASSERT_MESSAGE
7737 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
7738 aStrBuf.getStr()== expVal &&
7739 aStrBuf.getLength() == expVal.getLength()
7744 void append_078()
7746 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
7747 OString expVal( aStrBuf.getStr() );
7748 sal_Int32 input = -4;
7749 sal_Int16 radix = 36;
7751 expVal += OString( "-" );
7752 expVal += OString( "4" );
7753 aStrBuf.append( input, radix );
7755 CPPUNIT_ASSERT_MESSAGE
7757 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
7758 aStrBuf.getStr()== expVal &&
7759 aStrBuf.getLength() == expVal.getLength()
7764 void append_079()
7766 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
7767 OString expVal( aStrBuf.getStr() );
7768 sal_Int32 input = -8;
7769 sal_Int16 radix = 36;
7771 expVal += OString( "-" );
7772 expVal += OString( "8" );
7773 aStrBuf.append( input, radix );
7775 CPPUNIT_ASSERT_MESSAGE
7777 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
7778 aStrBuf.getStr()== expVal &&
7779 aStrBuf.getLength() == expVal.getLength()
7784 void append_080()
7786 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
7787 OString expVal( aStrBuf.getStr() );
7788 sal_Int32 input = -35;
7789 sal_Int16 radix = 36;
7791 expVal += OString( "-" );
7792 expVal += OString( "z" );
7793 aStrBuf.append( input, radix );
7795 CPPUNIT_ASSERT_MESSAGE
7797 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
7798 aStrBuf.getStr()== expVal &&
7799 aStrBuf.getLength() == expVal.getLength()
7804 void append_081()
7806 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
7807 OString expVal( aStrBuf.getStr() );
7808 sal_Int32 input = -0;
7809 sal_Int16 radix = 2;
7811 expVal += OString( "0" );
7812 aStrBuf.append( input, radix );
7814 CPPUNIT_ASSERT_MESSAGE
7816 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
7817 aStrBuf.getStr()== expVal &&
7818 aStrBuf.getLength() == expVal.getLength()
7823 void append_082()
7825 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
7826 OString expVal( aStrBuf.getStr() );
7827 sal_Int32 input = -4;
7828 sal_Int16 radix = 2;
7830 expVal += OString( "-" );
7831 expVal += OString( "100" );
7832 aStrBuf.append( input, radix );
7834 CPPUNIT_ASSERT_MESSAGE
7836 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
7837 aStrBuf.getStr()== expVal &&
7838 aStrBuf.getLength() == expVal.getLength()
7843 void append_083()
7845 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
7846 OString expVal( aStrBuf.getStr() );
7847 sal_Int32 input = -8;
7848 sal_Int16 radix = 2;
7850 expVal += OString( "-" );
7851 expVal += OString( "1000" );
7852 aStrBuf.append( input, radix );
7854 CPPUNIT_ASSERT_MESSAGE
7856 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
7857 aStrBuf.getStr()== expVal &&
7858 aStrBuf.getLength() == expVal.getLength()
7863 void append_084()
7865 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
7866 OString expVal( aStrBuf.getStr() );
7867 sal_Int32 input = -15;
7868 sal_Int16 radix = 2;
7870 expVal += OString( "-" );
7871 expVal += OString( "1111" );
7872 aStrBuf.append( input, radix );
7874 CPPUNIT_ASSERT_MESSAGE
7876 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
7877 aStrBuf.getStr()== expVal &&
7878 aStrBuf.getLength() == expVal.getLength()
7883 void append_085()
7885 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
7886 OString expVal( aStrBuf.getStr() );
7887 sal_Int32 input = -0;
7888 sal_Int16 radix = 8;
7890 expVal += OString( "0" );
7891 aStrBuf.append( input, radix );
7893 CPPUNIT_ASSERT_MESSAGE
7895 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
7896 aStrBuf.getStr()== expVal &&
7897 aStrBuf.getLength() == expVal.getLength()
7902 void append_086()
7904 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
7905 OString expVal( aStrBuf.getStr() );
7906 sal_Int32 input = -4;
7907 sal_Int16 radix = 8;
7909 expVal += OString( "-" );
7910 expVal += OString( "4" );
7911 aStrBuf.append( input, radix );
7913 CPPUNIT_ASSERT_MESSAGE
7915 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
7916 aStrBuf.getStr()== expVal &&
7917 aStrBuf.getLength() == expVal.getLength()
7922 void append_087()
7924 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
7925 OString expVal( aStrBuf.getStr() );
7926 sal_Int32 input = -8;
7927 sal_Int16 radix = 8;
7929 expVal += OString( "-" );
7930 expVal += OString( "10" );
7931 aStrBuf.append( input, radix );
7933 CPPUNIT_ASSERT_MESSAGE
7935 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
7936 aStrBuf.getStr()== expVal &&
7937 aStrBuf.getLength() == expVal.getLength()
7942 void append_088()
7944 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
7945 OString expVal( aStrBuf.getStr() );
7946 sal_Int32 input = -15;
7947 sal_Int16 radix = 8;
7949 expVal += OString( "-" );
7950 expVal += OString( "17" );
7951 aStrBuf.append( input, radix );
7953 CPPUNIT_ASSERT_MESSAGE
7955 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
7956 aStrBuf.getStr()== expVal &&
7957 aStrBuf.getLength() == expVal.getLength()
7962 void append_089()
7964 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
7965 OString expVal( aStrBuf.getStr() );
7966 sal_Int32 input = -0;
7967 sal_Int16 radix = 10;
7969 expVal += OString( "0" );
7970 aStrBuf.append( input, radix );
7972 CPPUNIT_ASSERT_MESSAGE
7974 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
7975 aStrBuf.getStr()== expVal &&
7976 aStrBuf.getLength() == expVal.getLength()
7981 void append_090()
7983 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
7984 OString expVal( aStrBuf.getStr() );
7985 sal_Int32 input = -4;
7986 sal_Int16 radix = 10;
7988 expVal += OString( "-" );
7989 expVal += OString( "4" );
7990 aStrBuf.append( input, radix );
7992 CPPUNIT_ASSERT_MESSAGE
7994 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
7995 aStrBuf.getStr()== expVal &&
7996 aStrBuf.getLength() == expVal.getLength()
8001 void append_091()
8003 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
8004 OString expVal( aStrBuf.getStr() );
8005 sal_Int32 input = -8;
8006 sal_Int16 radix = 10;
8008 expVal += OString( "-" );
8009 expVal += OString( "8" );
8010 aStrBuf.append( input, radix );
8012 CPPUNIT_ASSERT_MESSAGE
8014 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
8015 aStrBuf.getStr()== expVal &&
8016 aStrBuf.getLength() == expVal.getLength()
8021 void append_092()
8023 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
8024 OString expVal( aStrBuf.getStr() );
8025 sal_Int32 input = -15;
8026 sal_Int16 radix = 10;
8028 expVal += OString( "-" );
8029 expVal += OString( "15" );
8030 aStrBuf.append( input, radix );
8032 CPPUNIT_ASSERT_MESSAGE
8034 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
8035 aStrBuf.getStr()== expVal &&
8036 aStrBuf.getLength() == expVal.getLength()
8041 void append_093()
8043 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
8044 OString expVal( aStrBuf.getStr() );
8045 sal_Int32 input = -0;
8046 sal_Int16 radix = 16;
8048 expVal += OString( "0" );
8049 aStrBuf.append( input, radix );
8051 CPPUNIT_ASSERT_MESSAGE
8053 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
8054 aStrBuf.getStr()== expVal &&
8055 aStrBuf.getLength() == expVal.getLength()
8060 void append_094()
8062 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
8063 OString expVal( aStrBuf.getStr() );
8064 sal_Int32 input = -4;
8065 sal_Int16 radix = 16;
8067 expVal += OString( "-" );
8068 expVal += OString( "4" );
8069 aStrBuf.append( input, radix );
8071 CPPUNIT_ASSERT_MESSAGE
8073 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
8074 aStrBuf.getStr()== expVal &&
8075 aStrBuf.getLength() == expVal.getLength()
8080 void append_095()
8082 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
8083 OString expVal( aStrBuf.getStr() );
8084 sal_Int32 input = -8;
8085 sal_Int16 radix = 16;
8087 expVal += OString( "-" );
8088 expVal += OString( "8" );
8089 aStrBuf.append( input, radix );
8091 CPPUNIT_ASSERT_MESSAGE
8093 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
8094 aStrBuf.getStr()== expVal &&
8095 aStrBuf.getLength() == expVal.getLength()
8100 void append_096()
8102 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
8103 OString expVal( aStrBuf.getStr() );
8104 sal_Int32 input = -15;
8105 sal_Int16 radix = 16;
8107 expVal += OString( "-" );
8108 expVal += OString( "f" );
8109 aStrBuf.append( input, radix );
8111 CPPUNIT_ASSERT_MESSAGE
8113 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
8114 aStrBuf.getStr()== expVal &&
8115 aStrBuf.getLength() == expVal.getLength()
8120 void append_097()
8122 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
8123 OString expVal( aStrBuf.getStr() );
8124 sal_Int32 input = -0;
8125 sal_Int16 radix = 36;
8127 expVal += OString( "0" );
8128 aStrBuf.append( input, radix );
8130 CPPUNIT_ASSERT_MESSAGE
8132 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
8133 aStrBuf.getStr()== expVal &&
8134 aStrBuf.getLength() == expVal.getLength()
8139 void append_098()
8141 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
8142 OString expVal( aStrBuf.getStr() );
8143 sal_Int32 input = -4;
8144 sal_Int16 radix = 36;
8146 expVal += OString( "-" );
8147 expVal += OString( "4" );
8148 aStrBuf.append( input, radix );
8150 CPPUNIT_ASSERT_MESSAGE
8152 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
8153 aStrBuf.getStr()== expVal &&
8154 aStrBuf.getLength() == expVal.getLength()
8158 void append_099()
8160 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
8161 OString expVal( aStrBuf.getStr() );
8162 sal_Int32 input = -8;
8163 sal_Int16 radix = 36;
8165 expVal += OString( "-" );
8166 expVal += OString( "8" );
8167 aStrBuf.append( input, radix );
8169 CPPUNIT_ASSERT_MESSAGE
8171 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
8172 aStrBuf.getStr()== expVal &&
8173 aStrBuf.getLength() == expVal.getLength()
8177 void append_100()
8179 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
8180 OString expVal( aStrBuf.getStr() );
8181 sal_Int32 input = -35;
8182 sal_Int16 radix = 36;
8184 expVal += OString( "-" );
8185 expVal += OString( "z" );
8186 aStrBuf.append( input, radix );
8188 CPPUNIT_ASSERT_MESSAGE
8190 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
8191 aStrBuf.getStr()== expVal &&
8192 aStrBuf.getLength() == expVal.getLength()
8196 CPPUNIT_TEST_SUITE( append_006_Int32_Negative );
8197 CPPUNIT_TEST( append_001 ); CPPUNIT_TEST( append_002 );
8198 CPPUNIT_TEST( append_003 ); CPPUNIT_TEST( append_004 );
8199 CPPUNIT_TEST( append_005 ); CPPUNIT_TEST( append_006 );
8200 CPPUNIT_TEST( append_007 ); CPPUNIT_TEST( append_008 );
8201 CPPUNIT_TEST( append_009 ); CPPUNIT_TEST( append_010 );
8202 CPPUNIT_TEST( append_011 ); CPPUNIT_TEST( append_012 );
8203 CPPUNIT_TEST( append_013 ); CPPUNIT_TEST( append_014 );
8204 CPPUNIT_TEST( append_015 ); CPPUNIT_TEST( append_016 );
8205 CPPUNIT_TEST( append_017 ); CPPUNIT_TEST( append_018 );
8206 CPPUNIT_TEST( append_019 ); CPPUNIT_TEST( append_020 );
8207 CPPUNIT_TEST( append_021 ); CPPUNIT_TEST( append_022 );
8208 CPPUNIT_TEST( append_023 ); CPPUNIT_TEST( append_024 );
8209 CPPUNIT_TEST( append_025 ); CPPUNIT_TEST( append_026 );
8210 CPPUNIT_TEST( append_027 ); CPPUNIT_TEST( append_028 );
8211 CPPUNIT_TEST( append_029 ); CPPUNIT_TEST( append_030 );
8212 CPPUNIT_TEST( append_031 ); CPPUNIT_TEST( append_032 );
8213 CPPUNIT_TEST( append_033 ); CPPUNIT_TEST( append_034 );
8214 CPPUNIT_TEST( append_035 ); CPPUNIT_TEST( append_036 );
8215 CPPUNIT_TEST( append_037 ); CPPUNIT_TEST( append_038 );
8216 CPPUNIT_TEST( append_039 ); CPPUNIT_TEST( append_040 );
8217 CPPUNIT_TEST( append_041 ); CPPUNIT_TEST( append_042 );
8218 CPPUNIT_TEST( append_043 ); CPPUNIT_TEST( append_044 );
8219 CPPUNIT_TEST( append_045 ); CPPUNIT_TEST( append_046 );
8220 CPPUNIT_TEST( append_047 ); CPPUNIT_TEST( append_048 );
8221 CPPUNIT_TEST( append_049 ); CPPUNIT_TEST( append_050 );
8222 CPPUNIT_TEST( append_051 ); CPPUNIT_TEST( append_052 );
8223 CPPUNIT_TEST( append_053 ); CPPUNIT_TEST( append_054 );
8224 CPPUNIT_TEST( append_055 ); CPPUNIT_TEST( append_056 );
8225 CPPUNIT_TEST( append_057 ); CPPUNIT_TEST( append_058 );
8226 CPPUNIT_TEST( append_059 ); CPPUNIT_TEST( append_060 );
8227 CPPUNIT_TEST( append_061 ); CPPUNIT_TEST( append_062 );
8228 CPPUNIT_TEST( append_063 ); CPPUNIT_TEST( append_064 );
8229 CPPUNIT_TEST( append_065 ); CPPUNIT_TEST( append_066 );
8230 CPPUNIT_TEST( append_067 ); CPPUNIT_TEST( append_068 );
8231 CPPUNIT_TEST( append_069 ); CPPUNIT_TEST( append_070 );
8232 CPPUNIT_TEST( append_071 ); CPPUNIT_TEST( append_072 );
8233 CPPUNIT_TEST( append_073 ); CPPUNIT_TEST( append_074 );
8234 CPPUNIT_TEST( append_075 ); CPPUNIT_TEST( append_076 );
8235 CPPUNIT_TEST( append_077 ); CPPUNIT_TEST( append_078 );
8236 CPPUNIT_TEST( append_079 ); CPPUNIT_TEST( append_080 );
8237 CPPUNIT_TEST( append_081 ); CPPUNIT_TEST( append_082 );
8238 CPPUNIT_TEST( append_083 ); CPPUNIT_TEST( append_084 );
8239 CPPUNIT_TEST( append_085 ); CPPUNIT_TEST( append_086 );
8240 CPPUNIT_TEST( append_087 ); CPPUNIT_TEST( append_088 );
8241 CPPUNIT_TEST( append_089 ); CPPUNIT_TEST( append_090 );
8242 CPPUNIT_TEST( append_091 ); CPPUNIT_TEST( append_092 );
8243 CPPUNIT_TEST( append_093 ); CPPUNIT_TEST( append_094 );
8244 CPPUNIT_TEST( append_095 ); CPPUNIT_TEST( append_096 );
8245 CPPUNIT_TEST( append_097 ); CPPUNIT_TEST( append_098 );
8246 CPPUNIT_TEST( append_099 ); CPPUNIT_TEST( append_100 );
8247 CPPUNIT_TEST_SUITE_END();
8249 //------------------------------------------------------------------------
8250 // testing the method append( sal_Int32 i, sal_Int16 radix ) where radix = -5
8251 //------------------------------------------------------------------------
8252 class append_006_Int32_WrongRadix : public CppUnit::TestFixture
8254 OString* arrOUS[5];
8255 sal_Int32 intVal;
8257 public:
8258 void setUp()
8260 arrOUS[0] = new OString( kTestStr7 );
8261 arrOUS[1] = new OString( );
8262 arrOUS[2] = new OString( kTestStr25 );
8263 arrOUS[3] = new OString( "" );
8264 arrOUS[4] = new OString( kTestStr28 );
8265 intVal = 11;
8269 void tearDown()
8271 delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
8272 delete arrOUS[3]; delete arrOUS[4];
8275 void append_001()
8277 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
8278 OString expVal( kTestStr59 );
8280 aStrBuf.append( intVal, -5 );
8282 CPPUNIT_ASSERT_MESSAGE
8284 "Appends the WrongRadix to the string buffer arrOUS[0]",
8285 aStrBuf.getStr()== expVal &&
8286 aStrBuf.getLength() == expVal.getLength()
8290 void append_002()
8292 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
8293 OString expVal( kTestStr60 );
8295 aStrBuf.append( intVal, -5 );
8297 CPPUNIT_ASSERT_MESSAGE
8299 "Appends the WrongRadix to the string buffer arrOUS[1]",
8300 aStrBuf.getStr()== expVal &&
8301 aStrBuf.getLength() == expVal.getLength()
8305 void append_003()
8307 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
8308 OString expVal( kTestStr60 );
8310 aStrBuf.append( intVal, -5 );
8312 CPPUNIT_ASSERT_MESSAGE
8314 "Appends the WrongRadix to the string buffer arrOUS[2]",
8315 aStrBuf.getStr()== expVal &&
8316 aStrBuf.getLength() == expVal.getLength()
8321 void append_004()
8323 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
8324 OString expVal( kTestStr60 );
8326 aStrBuf.append( intVal, -5 );
8328 CPPUNIT_ASSERT_MESSAGE
8330 "Appends the WrongRadix to the string buffer arrOUS[3]",
8331 aStrBuf.getStr()== expVal &&
8332 aStrBuf.getLength() == expVal.getLength()
8337 void append_005()
8339 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
8340 OString expVal( kTestStr61 );
8342 aStrBuf.append( intVal, -5 );
8344 CPPUNIT_ASSERT_MESSAGE
8346 "Appends the WrongRadix to the string buffer arrOUS[4]",
8347 (aStrBuf.toString() == expVal &&
8348 aStrBuf.getLength() == expVal.getLength())
8351 #ifdef WITH_CORE
8352 void append_006()
8354 ::rtl::OStringBuffer aStrBuf( kSInt32Max );
8355 OString expVal( kTestStr60 );
8357 aStrBuf.append( intVal, -5 );
8359 CPPUNIT_ASSERT_MESSAGE
8361 "Appends the WrongRadix to the string buffer(with INT_MAX)",
8362 aStrBuf.getStr()== expVal &&
8363 aStrBuf.getLength() == expVal.getLength()
8367 #endif
8369 CPPUNIT_TEST_SUITE( append_006_Int32_WrongRadix );
8370 CPPUNIT_TEST( append_001 );
8371 CPPUNIT_TEST( append_002 );
8372 CPPUNIT_TEST( append_003 );
8373 CPPUNIT_TEST( append_004 );
8374 CPPUNIT_TEST( append_005 );
8375 #ifdef WITH_CORE
8376 CPPUNIT_TEST( append_006 );
8377 #endif
8378 CPPUNIT_TEST_SUITE_END();
8380 //------------------------------------------------------------------------
8381 class append_006_Int32_defaultParam : public CppUnit::TestFixture
8383 OString* arrOUS[5];
8385 public:
8386 void setUp()
8388 arrOUS[0] = new OString( kTestStr7 );
8389 arrOUS[1] = new OString( );
8390 arrOUS[2] = new OString( kTestStr25 );
8391 arrOUS[3] = new OString( "" );
8392 arrOUS[4] = new OString( kTestStr28 );
8396 void tearDown()
8398 delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
8399 delete arrOUS[3]; delete arrOUS[4];
8402 void append_001()
8404 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
8405 OString expVal( kTestStr59 );
8406 sal_Int32 input = 11;
8408 aStrBuf.append( input );
8410 CPPUNIT_ASSERT_MESSAGE
8412 "input Int32 11 and return OStringBuffer[0]+11",
8413 (aStrBuf.toString() == expVal &&
8414 aStrBuf.getLength() == expVal.getLength())
8419 void append_002()
8421 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
8422 OString expVal( kTestStr62 );
8423 sal_Int32 input = 0;
8425 aStrBuf.append( input );
8427 CPPUNIT_ASSERT_MESSAGE
8429 "input Int32 0 and return OStringBuffer[0]+0",
8430 (aStrBuf.toString() == expVal &&
8431 aStrBuf.getLength() == expVal.getLength())
8436 void append_003()
8438 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
8439 OString expVal( kTestStr63 );
8440 sal_Int32 input = -11;
8442 aStrBuf.append( input );
8444 CPPUNIT_ASSERT_MESSAGE
8446 "input Int32 -11 and return OStringBuffer[0]+(-11)",
8447 (aStrBuf.toString() == expVal &&
8448 aStrBuf.getLength() == expVal.getLength())
8453 void append_004()
8455 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
8456 OString expVal( kTestStr64 );
8457 sal_Int32 input = 2147483647;
8459 aStrBuf.append( input );
8461 CPPUNIT_ASSERT_MESSAGE
8463 "input Int32 2147483647 and return OStringBuffer[0]+2147483647",
8464 (aStrBuf.toString() == expVal &&
8465 aStrBuf.getLength() == expVal.getLength())
8470 void append_005()
8472 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
8473 OString expVal( kTestStr65 );
8474 sal_Int32 input = kNonSInt32Max;
8476 aStrBuf.append( input );
8478 CPPUNIT_ASSERT_MESSAGE
8480 "input Int32 -2147483648 and return OStringBuffer[0]+(-2147483648)",
8481 (aStrBuf.toString() == expVal &&
8482 aStrBuf.getLength() == expVal.getLength())
8487 void append_006()
8489 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
8490 OString expVal( kTestStr60 );
8491 sal_Int32 input = 11;
8493 aStrBuf.append( input );
8495 CPPUNIT_ASSERT_MESSAGE
8497 "input Int32 11 and return OStringBuffer[1]+11",
8498 (aStrBuf.toString() == expVal &&
8499 aStrBuf.getLength() == expVal.getLength())
8504 void append_007()
8506 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
8507 OString expVal( kTestStr66 );
8508 sal_Int32 input = 0;
8510 aStrBuf.append( input );
8512 CPPUNIT_ASSERT_MESSAGE
8514 "input Int32 0 and return OStringBuffer[1]+0",
8515 (aStrBuf.toString() == expVal &&
8516 aStrBuf.getLength() == expVal.getLength())
8521 void append_008()
8523 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
8524 OString expVal( kTestStr67 );
8525 sal_Int32 input = -11;
8527 aStrBuf.append( input );
8529 CPPUNIT_ASSERT_MESSAGE
8531 "input Int32 -11 and return OStringBuffer[1]+(-11)",
8532 (aStrBuf.toString() == expVal &&
8533 aStrBuf.getLength() == expVal.getLength())
8538 void append_009()
8540 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
8541 OString expVal( kTestStr68 );
8542 sal_Int32 input = 2147483647;
8544 aStrBuf.append( input );
8546 CPPUNIT_ASSERT_MESSAGE
8548 "input Int32 2147483647 and return OStringBuffer[1]+2147483647",
8549 (aStrBuf.toString() == expVal &&
8550 aStrBuf.getLength() == expVal.getLength())
8555 void append_010()
8557 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
8558 OString expVal( kTestStr69 );
8559 sal_Int32 input = SAL_MIN_INT32 /*-2147483648*/;
8561 aStrBuf.append( input );
8563 CPPUNIT_ASSERT_MESSAGE
8565 "input Int32 -2147483648 and return OStringBuffer[1]+(-2147483648)",
8566 (aStrBuf.toString() == expVal &&
8567 aStrBuf.getLength() == expVal.getLength())
8572 void append_011()
8574 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
8575 OString expVal( kTestStr60 );
8576 sal_Int32 input = 11;
8578 aStrBuf.append( input );
8580 CPPUNIT_ASSERT_MESSAGE
8582 "input Int32 11 and return OStringBuffer[2]+11",
8583 (aStrBuf.toString() == expVal &&
8584 aStrBuf.getLength() == expVal.getLength())
8589 void append_012()
8591 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
8592 OString expVal( kTestStr66 );
8593 sal_Int32 input = 0;
8595 aStrBuf.append( input );
8597 CPPUNIT_ASSERT_MESSAGE
8599 "input Int32 0 and return OUStringBuffer[2]+0",
8600 (aStrBuf.toString() == expVal &&
8601 aStrBuf.getLength() == expVal.getLength())
8606 void append_013()
8608 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
8609 OString expVal( kTestStr67 );
8610 sal_Int32 input = -11;
8612 aStrBuf.append( input );
8614 CPPUNIT_ASSERT_MESSAGE
8616 "input Int32 -11 and return OUStringBuffer[2]+(-11)",
8617 (aStrBuf.toString() == expVal &&
8618 aStrBuf.getLength() == expVal.getLength())
8623 void append_014()
8625 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
8626 OString expVal( kTestStr68 );
8627 sal_Int32 input = 2147483647;
8629 aStrBuf.append( input );
8631 CPPUNIT_ASSERT_MESSAGE
8633 "input Int32 2147483647 and return OStringBuffer[2]+2147483647",
8634 (aStrBuf.toString() == expVal &&
8635 aStrBuf.getLength() == expVal.getLength())
8640 void append_015()
8642 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
8643 OString expVal( kTestStr69 );
8644 sal_Int32 input = SAL_MIN_INT32;
8646 aStrBuf.append( input );
8648 CPPUNIT_ASSERT_MESSAGE
8650 "input Int32 -2147483648 and return OStringBuffer[2]+(-2147483648)",
8651 (aStrBuf.toString() == expVal &&
8652 aStrBuf.getLength() == expVal.getLength())
8657 void append_016()
8659 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
8660 OString expVal( kTestStr60 );
8661 sal_Int32 input = 11;
8663 aStrBuf.append( input );
8665 CPPUNIT_ASSERT_MESSAGE
8667 "input Int32 11 and return OStringBuffer[3]+11",
8668 (aStrBuf.toString() == expVal &&
8669 aStrBuf.getLength() == expVal.getLength())
8674 void append_017()
8676 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
8677 OString expVal( kTestStr66 );
8678 sal_Int32 input = 0;
8680 aStrBuf.append( input );
8682 CPPUNIT_ASSERT_MESSAGE
8684 "input Int32 0 and return OStringBuffer[3]+0",
8685 (aStrBuf.toString() == expVal &&
8686 aStrBuf.getLength() == expVal.getLength())
8691 void append_018()
8693 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
8694 OString expVal( kTestStr67 );
8695 sal_Int32 input = -11;
8697 aStrBuf.append( input );
8699 CPPUNIT_ASSERT_MESSAGE
8701 "input Int32 -11 and return OStringBuffer[3]+(-11)",
8702 (aStrBuf.toString() == expVal &&
8703 aStrBuf.getLength() == expVal.getLength())
8708 void append_019()
8710 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
8711 OString expVal( kTestStr68 );
8712 sal_Int32 input = 2147483647;
8714 aStrBuf.append( input );
8716 CPPUNIT_ASSERT_MESSAGE
8718 "input Int32 2147483647 and return OStringBuffer[3]+2147483647",
8719 (aStrBuf.toString() == expVal &&
8720 aStrBuf.getLength() == expVal.getLength())
8725 void append_020()
8727 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
8728 OString expVal( kTestStr69 );
8729 sal_Int32 input = SAL_MIN_INT32;
8731 aStrBuf.append( input );
8733 CPPUNIT_ASSERT_MESSAGE
8735 "input Int32 -2147483648 and return OStringBuffer[3]+(-2147483648)",
8736 (aStrBuf.toString() == expVal &&
8737 aStrBuf.getLength() == expVal.getLength())
8742 void append_021()
8744 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
8745 OString expVal( kTestStr61 );
8746 sal_Int32 input = 11;
8748 aStrBuf.append( input );
8750 CPPUNIT_ASSERT_MESSAGE
8752 "input Int32 11 and return OStringBuffer[4]+11",
8753 (aStrBuf.toString() == expVal &&
8754 aStrBuf.getLength() == expVal.getLength())
8759 void append_022()
8761 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
8762 OString expVal( kTestStr70 );
8763 sal_Int32 input = 0;
8765 aStrBuf.append( input );
8767 CPPUNIT_ASSERT_MESSAGE
8769 "input Int32 0 and return OStringBuffer[4]+0",
8770 (aStrBuf.toString() == expVal &&
8771 aStrBuf.getLength() == expVal.getLength())
8776 void append_023()
8778 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
8779 OString expVal( kTestStr71 );
8780 sal_Int32 input = -11;
8782 aStrBuf.append( input );
8784 CPPUNIT_ASSERT_MESSAGE
8786 "input Int32 -11 and return OStringBuffer[4]+(-11)",
8787 (aStrBuf.toString() == expVal &&
8788 aStrBuf.getLength() == expVal.getLength())
8793 void append_024()
8795 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
8796 OString expVal( kTestStr72 );
8797 sal_Int32 input = 2147483647;
8799 aStrBuf.append( input );
8801 CPPUNIT_ASSERT_MESSAGE
8803 "input Int32 2147483647 and return OStringBuffer[4]+2147483647",
8804 (aStrBuf.toString() == expVal &&
8805 aStrBuf.getLength() == expVal.getLength())
8810 void append_025()
8812 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
8813 OString expVal( kTestStr73 );
8814 sal_Int32 input = SAL_MIN_INT32;
8816 aStrBuf.append( input );
8818 CPPUNIT_ASSERT_MESSAGE
8820 "input Int32 -2147483648 and return OStringBuffer[4]+(-2147483648)",
8821 (aStrBuf.toString() == expVal &&
8822 aStrBuf.getLength() == expVal.getLength())
8826 #ifdef WITH_CORE
8827 void append_026()
8829 ::rtl::OStringBuffer aStrBuf( kSInt32Max );
8830 OString expVal( kTestStr60 );
8831 sal_Int32 input = 11;
8833 aStrBuf.append( input );
8835 CPPUNIT_ASSERT_MESSAGE
8837 "input Int32 11 and return OStringBuffer(kSInt32Max)+11",
8838 (aStrBuf.toString() == expVal &&
8839 aStrBuf.getLength() == expVal.getLength())
8844 void append_027()
8846 ::rtl::OStringBuffer aStrBuf( kSInt32Max );
8847 OString expVal( kTestStr66 );
8848 sal_Int32 input = 0;
8850 aStrBuf.append( input );
8852 CPPUNIT_ASSERT_MESSAGE
8854 "input Int32 0 and return OStringBuffer(kSInt32Max)+0",
8855 (aStrBuf.toString() == expVal &&
8856 aStrBuf.getLength() == expVal.getLength())
8861 void append_028()
8863 ::rtl::OStringBuffer aStrBuf( kSInt32Max );
8864 OString expVal( kTestStr67 );
8865 sal_Int32 input = -11;
8867 aStrBuf.append( input );
8869 CPPUNIT_ASSERT_MESSAGE
8871 "input Int32 -11 and return OStringBuffer(kSInt32Max)+(-11)",
8872 (aStrBuf.toString() == expVal &&
8873 aStrBuf.getLength() == expVal.getLength())
8878 void append_029()
8880 ::rtl::OStringBuffer aStrBuf( kSInt32Max );
8881 OString expVal( kTestStr68 );
8882 sal_Int32 input = 2147483647;
8884 aStrBuf.append( input );
8886 CPPUNIT_ASSERT_MESSAGE
8888 "input Int32 2147483647 and return OStringBuffer(kSInt32Max)+2147483647",
8889 (aStrBuf.toString() == expVal &&
8890 aStrBuf.getLength() == expVal.getLength())
8895 void append_030()
8897 ::rtl::OStringBuffer aStrBuf( kSInt32Max );
8898 OString expVal( kTestStr69 );
8899 sal_Int32 input = SAL_MIN_INT32;
8901 aStrBuf.append( input );
8903 CPPUNIT_ASSERT_MESSAGE
8905 "input Int32 -2147483648 and return OStringBuffer(kSInt32Max)+(-2147483648)",
8906 (aStrBuf.toString() == expVal &&
8907 aStrBuf.getLength() == expVal.getLength())
8911 #endif
8913 CPPUNIT_TEST_SUITE( append_006_Int32_defaultParam );
8914 CPPUNIT_TEST( append_001 );
8915 CPPUNIT_TEST( append_002 );
8916 CPPUNIT_TEST( append_003 );
8917 CPPUNIT_TEST( append_004 );
8918 CPPUNIT_TEST( append_005 );
8919 CPPUNIT_TEST( append_006 );
8920 CPPUNIT_TEST( append_007 );
8921 CPPUNIT_TEST( append_008 );
8922 CPPUNIT_TEST( append_009 );
8923 CPPUNIT_TEST( append_010 );
8924 CPPUNIT_TEST( append_011 );
8925 CPPUNIT_TEST( append_012 );
8926 CPPUNIT_TEST( append_013 );
8927 CPPUNIT_TEST( append_014 );
8928 CPPUNIT_TEST( append_015 );
8929 CPPUNIT_TEST( append_016 );
8930 CPPUNIT_TEST( append_017 );
8931 CPPUNIT_TEST( append_018 );
8932 CPPUNIT_TEST( append_019 );
8933 CPPUNIT_TEST( append_020 );
8934 CPPUNIT_TEST( append_021 );
8935 CPPUNIT_TEST( append_022 );
8936 CPPUNIT_TEST( append_023 );
8937 CPPUNIT_TEST( append_024 );
8938 CPPUNIT_TEST( append_025 );
8939 #ifdef WITH_CORE
8940 CPPUNIT_TEST( append_026 );
8941 CPPUNIT_TEST( append_027 );
8942 CPPUNIT_TEST( append_028 );
8943 CPPUNIT_TEST( append_029 );
8944 CPPUNIT_TEST( append_030 );
8945 #endif
8946 CPPUNIT_TEST_SUITE_END();
8948 //------------------------------------------------------------------------
8949 // testing the method append( sal_Int64 l, sal_Int16 radix=2 )
8950 // testing the method append( sal_Int64 l, sal_Int16 radix=8 )
8951 // testing the method append( sal_Int64 l, sal_Int16 radix=10 )
8952 // testing the method append( sal_Int64 l, sal_Int16 radix=16 )
8953 // testing the method append( sal_Int64 l, sal_Int16 radix=36 )
8954 //------------------------------------------------------------------------
8955 class append_007_Int64 : public CppUnit::TestFixture
8957 OString* arrOUS[5];
8959 public:
8960 void setUp()
8962 arrOUS[0] = new OString( kTestStr7 );
8963 arrOUS[1] = new OString( );
8964 arrOUS[2] = new OString( kTestStr25 );
8965 arrOUS[3] = new OString( "" );
8966 arrOUS[4] = new OString( kTestStr28 );
8970 void tearDown()
8972 delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
8973 delete arrOUS[3]; delete arrOUS[4];
8976 void append_001()
8978 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
8979 OString expVal( aStrBuf.getStr() );
8980 sal_Int64 input = 0;
8981 sal_Int16 radix = 2;
8983 expVal += OString( "0" );
8984 aStrBuf.append( input, radix );
8986 CPPUNIT_ASSERT_MESSAGE
8988 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
8989 aStrBuf.getStr()== expVal &&
8990 aStrBuf.getLength() == expVal.getLength()
8995 void append_002()
8997 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
8998 OString expVal( aStrBuf.getStr() );
8999 sal_Int64 input = 4;
9000 sal_Int16 radix = 2;
9002 expVal += OString( "100" );
9003 aStrBuf.append( input, radix );
9005 CPPUNIT_ASSERT_MESSAGE
9007 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
9008 aStrBuf.getStr()== expVal &&
9009 aStrBuf.getLength() == expVal.getLength()
9014 void append_003()
9016 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
9017 OString expVal( aStrBuf.getStr() );
9018 sal_Int64 input = 8;
9019 sal_Int16 radix = 2;
9021 expVal += OString( "1000" );
9022 aStrBuf.append( input, radix );
9024 CPPUNIT_ASSERT_MESSAGE
9026 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
9027 aStrBuf.getStr()== expVal &&
9028 aStrBuf.getLength() == expVal.getLength()
9033 void append_004()
9035 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
9036 OString expVal( aStrBuf.getStr() );
9037 sal_Int64 input = 15;
9038 sal_Int16 radix = 2;
9040 expVal += OString( "1111" );
9041 aStrBuf.append( input, radix );
9043 CPPUNIT_ASSERT_MESSAGE
9045 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
9046 aStrBuf.getStr()== expVal &&
9047 aStrBuf.getLength() == expVal.getLength()
9052 void append_005()
9054 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
9055 OString expVal( aStrBuf.getStr() );
9056 sal_Int64 input = 0;
9057 sal_Int16 radix = 8;
9059 expVal += OString( "0" );
9060 aStrBuf.append( input, radix );
9062 CPPUNIT_ASSERT_MESSAGE
9064 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
9065 aStrBuf.getStr()== expVal &&
9066 aStrBuf.getLength() == expVal.getLength()
9071 void append_006()
9073 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
9074 OString expVal( aStrBuf.getStr() );
9075 sal_Int64 input = 4;
9076 sal_Int16 radix = 8;
9078 expVal += OString( "4" );
9079 aStrBuf.append( input, radix );
9081 CPPUNIT_ASSERT_MESSAGE
9083 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
9084 aStrBuf.getStr()== expVal &&
9085 aStrBuf.getLength() == expVal.getLength()
9090 void append_007()
9092 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
9093 OString expVal( aStrBuf.getStr() );
9094 sal_Int64 input = 8;
9095 sal_Int16 radix = 8;
9097 expVal += OString( "10" );
9098 aStrBuf.append( input, radix );
9100 CPPUNIT_ASSERT_MESSAGE
9102 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
9103 aStrBuf.getStr()== expVal &&
9104 aStrBuf.getLength() == expVal.getLength()
9109 void append_008()
9111 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
9112 OString expVal( aStrBuf.getStr() );
9113 sal_Int64 input = 15;
9114 sal_Int16 radix = 8;
9116 expVal += OString( "17" );
9117 aStrBuf.append( input, radix );
9119 CPPUNIT_ASSERT_MESSAGE
9121 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
9122 aStrBuf.getStr()== expVal &&
9123 aStrBuf.getLength() == expVal.getLength()
9128 void append_009()
9130 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
9131 OString expVal( aStrBuf.getStr() );
9132 sal_Int64 input = 0;
9133 sal_Int16 radix = 10;
9135 expVal += OString( "0" );
9136 aStrBuf.append( input, radix );
9138 CPPUNIT_ASSERT_MESSAGE
9140 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
9141 aStrBuf.getStr()== expVal &&
9142 aStrBuf.getLength() == expVal.getLength()
9147 void append_010()
9149 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
9150 OString expVal( aStrBuf.getStr() );
9151 sal_Int64 input = 4;
9152 sal_Int16 radix = 10;
9154 expVal += OString( "4" );
9155 aStrBuf.append( input, radix );
9157 CPPUNIT_ASSERT_MESSAGE
9159 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
9160 aStrBuf.getStr()== expVal &&
9161 aStrBuf.getLength() == expVal.getLength()
9166 void append_011()
9168 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
9169 OString expVal( aStrBuf.getStr() );
9170 sal_Int64 input = 8;
9171 sal_Int16 radix = 10;
9173 expVal += OString( "8" );
9174 aStrBuf.append( input, radix );
9176 CPPUNIT_ASSERT_MESSAGE
9178 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
9179 aStrBuf.getStr()== expVal &&
9180 aStrBuf.getLength() == expVal.getLength()
9185 void append_012()
9187 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
9188 OString expVal( aStrBuf.getStr() );
9189 sal_Int64 input = 15;
9190 sal_Int16 radix = 10;
9192 expVal += OString( "15" );
9193 aStrBuf.append( input, radix );
9195 CPPUNIT_ASSERT_MESSAGE
9197 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
9198 aStrBuf.getStr()== expVal &&
9199 aStrBuf.getLength() == expVal.getLength()
9204 void append_013()
9206 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
9207 OString expVal( aStrBuf.getStr() );
9208 sal_Int64 input = 0;
9209 sal_Int16 radix = 16;
9211 expVal += OString( "0" );
9212 aStrBuf.append( input, radix );
9214 CPPUNIT_ASSERT_MESSAGE
9216 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
9217 aStrBuf.getStr()== expVal &&
9218 aStrBuf.getLength() == expVal.getLength()
9223 void append_014()
9225 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
9226 OString expVal( aStrBuf.getStr() );
9227 sal_Int64 input = 4;
9228 sal_Int16 radix = 16;
9230 expVal += OString( "4" );
9231 aStrBuf.append( input, radix );
9233 CPPUNIT_ASSERT_MESSAGE
9235 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
9236 aStrBuf.getStr()== expVal &&
9237 aStrBuf.getLength() == expVal.getLength()
9242 void append_015()
9244 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
9245 OString expVal( aStrBuf.getStr() );
9246 sal_Int64 input = 8;
9247 sal_Int16 radix = 16;
9249 expVal += OString( "8" );
9250 aStrBuf.append( input, radix );
9252 CPPUNIT_ASSERT_MESSAGE
9254 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
9255 aStrBuf.getStr()== expVal &&
9256 aStrBuf.getLength() == expVal.getLength()
9261 void append_016()
9263 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
9264 OString expVal( aStrBuf.getStr() );
9265 sal_Int64 input = 15;
9266 sal_Int16 radix = 16;
9268 expVal += OString( "f" );
9269 aStrBuf.append( input, radix );
9271 CPPUNIT_ASSERT_MESSAGE
9273 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
9274 aStrBuf.getStr()== expVal &&
9275 aStrBuf.getLength() == expVal.getLength()
9280 void append_017()
9282 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
9283 OString expVal( aStrBuf.getStr() );
9284 sal_Int64 input = 0;
9285 sal_Int16 radix = 36;
9287 expVal += OString( "0" );
9288 aStrBuf.append( input, radix );
9290 CPPUNIT_ASSERT_MESSAGE
9292 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
9293 aStrBuf.getStr()== expVal &&
9294 aStrBuf.getLength() == expVal.getLength()
9299 void append_018()
9301 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
9302 OString expVal( aStrBuf.getStr() );
9303 sal_Int64 input = 4;
9304 sal_Int16 radix = 36;
9306 expVal += OString( "4" );
9307 aStrBuf.append( input, radix );
9309 CPPUNIT_ASSERT_MESSAGE
9311 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
9312 aStrBuf.getStr()== expVal &&
9313 aStrBuf.getLength() == expVal.getLength()
9318 void append_019()
9320 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
9321 OString expVal( aStrBuf.getStr() );
9322 sal_Int64 input = 8;
9323 sal_Int16 radix = 36;
9325 expVal += OString( "8" );
9326 aStrBuf.append( input, radix );
9328 CPPUNIT_ASSERT_MESSAGE
9330 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
9331 aStrBuf.getStr()== expVal &&
9332 aStrBuf.getLength() == expVal.getLength()
9337 void append_020()
9339 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
9340 OString expVal( aStrBuf.getStr() );
9341 sal_Int64 input = 35;
9342 sal_Int16 radix = 36;
9344 expVal += OString( "z" );
9345 aStrBuf.append( input, radix );
9347 CPPUNIT_ASSERT_MESSAGE
9349 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
9350 aStrBuf.getStr()== expVal &&
9351 aStrBuf.getLength() == expVal.getLength()
9356 void append_021()
9358 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
9359 OString expVal( aStrBuf.getStr() );
9360 sal_Int64 input = 0;
9361 sal_Int16 radix = 2;
9363 expVal += OString( "0" );
9364 aStrBuf.append( input, radix );
9366 CPPUNIT_ASSERT_MESSAGE
9368 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
9369 aStrBuf.getStr()== expVal &&
9370 aStrBuf.getLength() == expVal.getLength()
9375 void append_022()
9377 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
9378 OString expVal( aStrBuf.getStr() );
9379 sal_Int64 input = 4;
9380 sal_Int16 radix = 2;
9382 expVal += OString( "100" );
9383 aStrBuf.append( input, radix );
9385 CPPUNIT_ASSERT_MESSAGE
9387 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
9388 aStrBuf.getStr()== expVal &&
9389 aStrBuf.getLength() == expVal.getLength()
9394 void append_023()
9396 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
9397 OString expVal( aStrBuf.getStr() );
9398 sal_Int64 input = 8;
9399 sal_Int16 radix = 2;
9401 expVal += OString( "1000" );
9402 aStrBuf.append( input, radix );
9404 CPPUNIT_ASSERT_MESSAGE
9406 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
9407 aStrBuf.getStr()== expVal &&
9408 aStrBuf.getLength() == expVal.getLength()
9413 void append_024()
9415 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
9416 OString expVal( aStrBuf.getStr() );
9417 sal_Int64 input = 15;
9418 sal_Int16 radix = 2;
9420 expVal += OString( "1111" );
9421 aStrBuf.append( input, radix );
9423 CPPUNIT_ASSERT_MESSAGE
9425 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
9426 aStrBuf.getStr()== expVal &&
9427 aStrBuf.getLength() == expVal.getLength()
9432 void append_025()
9434 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
9435 OString expVal( aStrBuf.getStr() );
9436 sal_Int64 input = 0;
9437 sal_Int16 radix = 8;
9439 expVal += OString( "0" );
9440 aStrBuf.append( input, radix );
9442 CPPUNIT_ASSERT_MESSAGE
9444 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
9445 aStrBuf.getStr()== expVal &&
9446 aStrBuf.getLength() == expVal.getLength()
9451 void append_026()
9453 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
9454 OString expVal( aStrBuf.getStr() );
9455 sal_Int64 input = 4;
9456 sal_Int16 radix = 8;
9458 expVal += OString( "4" );
9459 aStrBuf.append( input, radix );
9461 CPPUNIT_ASSERT_MESSAGE
9463 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
9464 aStrBuf.getStr()== expVal &&
9465 aStrBuf.getLength() == expVal.getLength()
9470 void append_027()
9472 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
9473 OString expVal( aStrBuf.getStr() );
9474 sal_Int64 input = 8;
9475 sal_Int16 radix = 8;
9477 expVal += OString( "10" );
9478 aStrBuf.append( input, radix );
9480 CPPUNIT_ASSERT_MESSAGE
9482 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
9483 aStrBuf.getStr()== expVal &&
9484 aStrBuf.getLength() == expVal.getLength()
9489 void append_028()
9491 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
9492 OString expVal( aStrBuf.getStr() );
9493 sal_Int64 input = 15;
9494 sal_Int16 radix = 8;
9496 expVal += OString( "17" );
9497 aStrBuf.append( input, radix );
9499 CPPUNIT_ASSERT_MESSAGE
9501 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
9502 aStrBuf.getStr()== expVal &&
9503 aStrBuf.getLength() == expVal.getLength()
9508 void append_029()
9510 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
9511 OString expVal( aStrBuf.getStr() );
9512 sal_Int64 input = 0;
9513 sal_Int16 radix = 10;
9515 expVal += OString( "0" );
9516 aStrBuf.append( input, radix );
9518 CPPUNIT_ASSERT_MESSAGE
9520 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
9521 aStrBuf.getStr()== expVal &&
9522 aStrBuf.getLength() == expVal.getLength()
9527 void append_030()
9529 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
9530 OString expVal( aStrBuf.getStr() );
9531 sal_Int64 input = 4;
9532 sal_Int16 radix = 10;
9534 expVal += OString( "4" );
9535 aStrBuf.append( input, radix );
9537 CPPUNIT_ASSERT_MESSAGE
9539 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
9540 aStrBuf.getStr()== expVal &&
9541 aStrBuf.getLength() == expVal.getLength()
9546 void append_031()
9548 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
9549 OString expVal( aStrBuf.getStr() );
9550 sal_Int64 input = 8;
9551 sal_Int16 radix = 10;
9553 expVal += OString( "8" );
9554 aStrBuf.append( input, radix );
9556 CPPUNIT_ASSERT_MESSAGE
9558 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
9559 aStrBuf.getStr()== expVal &&
9560 aStrBuf.getLength() == expVal.getLength()
9565 void append_032()
9567 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
9568 OString expVal( aStrBuf.getStr() );
9569 sal_Int64 input = 15;
9570 sal_Int16 radix = 10;
9572 expVal += OString( "15" );
9573 aStrBuf.append( input, radix );
9575 CPPUNIT_ASSERT_MESSAGE
9577 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
9578 aStrBuf.getStr()== expVal &&
9579 aStrBuf.getLength() == expVal.getLength()
9584 void append_033()
9586 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
9587 OString expVal( aStrBuf.getStr() );
9588 sal_Int64 input = 0;
9589 sal_Int16 radix = 16;
9591 expVal += OString( "0" );
9592 aStrBuf.append( input, radix );
9594 CPPUNIT_ASSERT_MESSAGE
9596 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
9597 aStrBuf.getStr()== expVal &&
9598 aStrBuf.getLength() == expVal.getLength()
9603 void append_034()
9605 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
9606 OString expVal( aStrBuf.getStr() );
9607 sal_Int64 input = 4;
9608 sal_Int16 radix = 16;
9610 expVal += OString( "4" );
9611 aStrBuf.append( input, radix );
9613 CPPUNIT_ASSERT_MESSAGE
9615 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
9616 aStrBuf.getStr()== expVal &&
9617 aStrBuf.getLength() == expVal.getLength()
9622 void append_035()
9624 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
9625 OString expVal( aStrBuf.getStr() );
9626 sal_Int64 input = 8;
9627 sal_Int16 radix = 16;
9629 expVal += OString( "8" );
9630 aStrBuf.append( input, radix );
9632 CPPUNIT_ASSERT_MESSAGE
9634 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
9635 aStrBuf.getStr()== expVal &&
9636 aStrBuf.getLength() == expVal.getLength()
9641 void append_036()
9643 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
9644 OString expVal( aStrBuf.getStr() );
9645 sal_Int64 input = 15;
9646 sal_Int16 radix = 16;
9648 expVal += OString( "f" );
9649 aStrBuf.append( input, radix );
9651 CPPUNIT_ASSERT_MESSAGE
9653 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
9654 aStrBuf.getStr()== expVal &&
9655 aStrBuf.getLength() == expVal.getLength()
9660 void append_037()
9662 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
9663 OString expVal( aStrBuf.getStr() );
9664 sal_Int64 input = 0;
9665 sal_Int16 radix = 36;
9667 expVal += OString( "0" );
9668 aStrBuf.append( input, radix );
9670 CPPUNIT_ASSERT_MESSAGE
9672 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
9673 aStrBuf.getStr()== expVal &&
9674 aStrBuf.getLength() == expVal.getLength()
9679 void append_038()
9681 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
9682 OString expVal( aStrBuf.getStr() );
9683 sal_Int64 input = 4;
9684 sal_Int16 radix = 36;
9686 expVal += OString( "4" );
9687 aStrBuf.append( input, radix );
9689 CPPUNIT_ASSERT_MESSAGE
9691 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
9692 aStrBuf.getStr()== expVal &&
9693 aStrBuf.getLength() == expVal.getLength()
9698 void append_039()
9700 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
9701 OString expVal( aStrBuf.getStr() );
9702 sal_Int64 input = 8;
9703 sal_Int16 radix = 36;
9705 expVal += OString( "8" );
9706 aStrBuf.append( input, radix );
9708 CPPUNIT_ASSERT_MESSAGE
9710 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
9711 aStrBuf.getStr()== expVal &&
9712 aStrBuf.getLength() == expVal.getLength()
9717 void append_040()
9719 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
9720 OString expVal( aStrBuf.getStr() );
9721 sal_Int64 input = 35;
9722 sal_Int16 radix = 36;
9724 expVal += OString( "z" );
9725 aStrBuf.append( input, radix );
9727 CPPUNIT_ASSERT_MESSAGE
9729 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
9730 aStrBuf.getStr()== expVal &&
9731 aStrBuf.getLength() == expVal.getLength()
9736 void append_041()
9738 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
9739 OString expVal( aStrBuf.getStr() );
9740 sal_Int64 input = 0;
9741 sal_Int16 radix = 2;
9743 expVal += OString( "0" );
9744 aStrBuf.append( input, radix );
9746 CPPUNIT_ASSERT_MESSAGE
9748 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
9749 aStrBuf.getStr()== expVal &&
9750 aStrBuf.getLength() == expVal.getLength()
9755 void append_042()
9757 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
9758 OString expVal( aStrBuf.getStr() );
9759 sal_Int64 input = 4;
9760 sal_Int16 radix = 2;
9762 expVal += OString( "100" );
9763 aStrBuf.append( input, radix );
9765 CPPUNIT_ASSERT_MESSAGE
9767 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
9768 aStrBuf.getStr()== expVal &&
9769 aStrBuf.getLength() == expVal.getLength()
9774 void append_043()
9776 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
9777 OString expVal( aStrBuf.getStr() );
9778 sal_Int64 input = 8;
9779 sal_Int16 radix = 2;
9781 expVal += OString( "1000" );
9782 aStrBuf.append( input, radix );
9784 CPPUNIT_ASSERT_MESSAGE
9786 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
9787 aStrBuf.getStr()== expVal &&
9788 aStrBuf.getLength() == expVal.getLength()
9793 void append_044()
9795 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
9796 OString expVal( aStrBuf.getStr() );
9797 sal_Int64 input = 15;
9798 sal_Int16 radix = 2;
9800 expVal += OString( "1111" );
9801 aStrBuf.append( input, radix );
9803 CPPUNIT_ASSERT_MESSAGE
9805 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
9806 aStrBuf.getStr()== expVal &&
9807 aStrBuf.getLength() == expVal.getLength()
9812 void append_045()
9814 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
9815 OString expVal( aStrBuf.getStr() );
9816 sal_Int64 input = 0;
9817 sal_Int16 radix = 8;
9819 expVal += OString( "0" );
9820 aStrBuf.append( input, radix );
9822 CPPUNIT_ASSERT_MESSAGE
9824 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
9825 aStrBuf.getStr()== expVal &&
9826 aStrBuf.getLength() == expVal.getLength()
9831 void append_046()
9833 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
9834 OString expVal( aStrBuf.getStr() );
9835 sal_Int64 input = 4;
9836 sal_Int16 radix = 8;
9838 expVal += OString( "4" );
9839 aStrBuf.append( input, radix );
9841 CPPUNIT_ASSERT_MESSAGE
9843 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
9844 aStrBuf.getStr()== expVal &&
9845 aStrBuf.getLength() == expVal.getLength()
9850 void append_047()
9852 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
9853 OString expVal( aStrBuf.getStr() );
9854 sal_Int64 input = 8;
9855 sal_Int16 radix = 8;
9857 expVal += OString( "10" );
9858 aStrBuf.append( input, radix );
9860 CPPUNIT_ASSERT_MESSAGE
9862 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
9863 aStrBuf.getStr()== expVal &&
9864 aStrBuf.getLength() == expVal.getLength()
9869 void append_048()
9871 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
9872 OString expVal( aStrBuf.getStr() );
9873 sal_Int64 input = 15;
9874 sal_Int16 radix = 8;
9876 expVal += OString( "17" );
9877 aStrBuf.append( input, radix );
9879 CPPUNIT_ASSERT_MESSAGE
9881 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
9882 aStrBuf.getStr()== expVal &&
9883 aStrBuf.getLength() == expVal.getLength()
9888 void append_049()
9890 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
9891 OString expVal( aStrBuf.getStr() );
9892 sal_Int64 input = 0;
9893 sal_Int16 radix = 10;
9895 expVal += OString( "0" );
9896 aStrBuf.append( input, radix );
9898 CPPUNIT_ASSERT_MESSAGE
9900 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
9901 aStrBuf.getStr()== expVal &&
9902 aStrBuf.getLength() == expVal.getLength()
9907 void append_050()
9909 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
9910 OString expVal( aStrBuf.getStr() );
9911 sal_Int64 input = 4;
9912 sal_Int16 radix = 10;
9914 expVal += OString( "4" );
9915 aStrBuf.append( input, radix );
9917 CPPUNIT_ASSERT_MESSAGE
9919 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
9920 aStrBuf.getStr()== expVal &&
9921 aStrBuf.getLength() == expVal.getLength()
9926 void append_051()
9928 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
9929 OString expVal( aStrBuf.getStr() );
9930 sal_Int64 input = 8;
9931 sal_Int16 radix = 10;
9933 expVal += OString( "8" );
9934 aStrBuf.append( input, radix );
9936 CPPUNIT_ASSERT_MESSAGE
9938 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
9939 aStrBuf.getStr()== expVal &&
9940 aStrBuf.getLength() == expVal.getLength()
9945 void append_052()
9947 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
9948 OString expVal( aStrBuf.getStr() );
9949 sal_Int64 input = 15;
9950 sal_Int16 radix = 10;
9952 expVal += OString( "15" );
9953 aStrBuf.append( input, radix );
9955 CPPUNIT_ASSERT_MESSAGE
9957 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
9958 aStrBuf.getStr()== expVal &&
9959 aStrBuf.getLength() == expVal.getLength()
9964 void append_053()
9966 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
9967 OString expVal( aStrBuf.getStr() );
9968 sal_Int64 input = 0;
9969 sal_Int16 radix = 16;
9971 expVal += OString( "0" );
9972 aStrBuf.append( input, radix );
9974 CPPUNIT_ASSERT_MESSAGE
9976 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
9977 aStrBuf.getStr()== expVal &&
9978 aStrBuf.getLength() == expVal.getLength()
9983 void append_054()
9985 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
9986 OString expVal( aStrBuf.getStr() );
9987 sal_Int64 input = 4;
9988 sal_Int16 radix = 16;
9990 expVal += OString( "4" );
9991 aStrBuf.append( input, radix );
9993 CPPUNIT_ASSERT_MESSAGE
9995 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
9996 aStrBuf.getStr()== expVal &&
9997 aStrBuf.getLength() == expVal.getLength()
10002 void append_055()
10004 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
10005 OString expVal( aStrBuf.getStr() );
10006 sal_Int64 input = 8;
10007 sal_Int16 radix = 16;
10009 expVal += OString( "8" );
10010 aStrBuf.append( input, radix );
10012 CPPUNIT_ASSERT_MESSAGE
10014 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
10015 aStrBuf.getStr()== expVal &&
10016 aStrBuf.getLength() == expVal.getLength()
10021 void append_056()
10023 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
10024 OString expVal( aStrBuf.getStr() );
10025 sal_Int64 input = 15;
10026 sal_Int16 radix = 16;
10028 expVal += OString( "f" );
10029 aStrBuf.append( input, radix );
10031 CPPUNIT_ASSERT_MESSAGE
10033 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
10034 aStrBuf.getStr()== expVal &&
10035 aStrBuf.getLength() == expVal.getLength()
10040 void append_057()
10042 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
10043 OString expVal( aStrBuf.getStr() );
10044 sal_Int64 input = 0;
10045 sal_Int16 radix = 36;
10047 expVal += OString( "0" );
10048 aStrBuf.append( input, radix );
10050 CPPUNIT_ASSERT_MESSAGE
10052 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
10053 aStrBuf.getStr()== expVal &&
10054 aStrBuf.getLength() == expVal.getLength()
10059 void append_058()
10061 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
10062 OString expVal( aStrBuf.getStr() );
10063 sal_Int64 input = 4;
10064 sal_Int16 radix = 36;
10066 expVal += OString( "4" );
10067 aStrBuf.append( input, radix );
10069 CPPUNIT_ASSERT_MESSAGE
10071 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
10072 aStrBuf.getStr()== expVal &&
10073 aStrBuf.getLength() == expVal.getLength()
10078 void append_059()
10080 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
10081 OString expVal( aStrBuf.getStr() );
10082 sal_Int64 input = 8;
10083 sal_Int16 radix = 36;
10085 expVal += OString( "8" );
10086 aStrBuf.append( input, radix );
10088 CPPUNIT_ASSERT_MESSAGE
10090 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
10091 aStrBuf.getStr()== expVal &&
10092 aStrBuf.getLength() == expVal.getLength()
10097 void append_060()
10099 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
10100 OString expVal( aStrBuf.getStr() );
10101 sal_Int64 input = 35;
10102 sal_Int16 radix = 36;
10104 expVal += OString( "z" );
10105 aStrBuf.append( input, radix );
10107 CPPUNIT_ASSERT_MESSAGE
10109 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
10110 aStrBuf.getStr()== expVal &&
10111 aStrBuf.getLength() == expVal.getLength()
10116 void append_061()
10118 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
10119 OString expVal( aStrBuf.getStr() );
10120 sal_Int64 input = 0;
10121 sal_Int16 radix = 2;
10123 expVal += OString( "0" );
10124 aStrBuf.append( input, radix );
10126 CPPUNIT_ASSERT_MESSAGE
10128 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
10129 aStrBuf.getStr()== expVal &&
10130 aStrBuf.getLength() == expVal.getLength()
10135 void append_062()
10137 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
10138 OString expVal( aStrBuf.getStr() );
10139 sal_Int64 input = 4;
10140 sal_Int16 radix = 2;
10142 expVal += OString( "100" );
10143 aStrBuf.append( input, radix );
10145 CPPUNIT_ASSERT_MESSAGE
10147 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
10148 aStrBuf.getStr()== expVal &&
10149 aStrBuf.getLength() == expVal.getLength()
10154 void append_063()
10156 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
10157 OString expVal( aStrBuf.getStr() );
10158 sal_Int64 input = 8;
10159 sal_Int16 radix = 2;
10161 expVal += OString( "1000" );
10162 aStrBuf.append( input, radix );
10164 CPPUNIT_ASSERT_MESSAGE
10166 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
10167 aStrBuf.getStr()== expVal &&
10168 aStrBuf.getLength() == expVal.getLength()
10173 void append_064()
10175 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
10176 OString expVal( aStrBuf.getStr() );
10177 sal_Int64 input = 15;
10178 sal_Int16 radix = 2;
10180 expVal += OString( "1111" );
10181 aStrBuf.append( input, radix );
10183 CPPUNIT_ASSERT_MESSAGE
10185 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
10186 aStrBuf.getStr()== expVal &&
10187 aStrBuf.getLength() == expVal.getLength()
10192 void append_065()
10194 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
10195 OString expVal( aStrBuf.getStr() );
10196 sal_Int64 input = 0;
10197 sal_Int16 radix = 8;
10199 expVal += OString( "0" );
10200 aStrBuf.append( input, radix );
10202 CPPUNIT_ASSERT_MESSAGE
10204 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
10205 aStrBuf.getStr()== expVal &&
10206 aStrBuf.getLength() == expVal.getLength()
10211 void append_066()
10213 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
10214 OString expVal( aStrBuf.getStr() );
10215 sal_Int64 input = 4;
10216 sal_Int16 radix = 8;
10218 expVal += OString( "4" );
10219 aStrBuf.append( input, radix );
10221 CPPUNIT_ASSERT_MESSAGE
10223 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
10224 aStrBuf.getStr()== expVal &&
10225 aStrBuf.getLength() == expVal.getLength()
10230 void append_067()
10232 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
10233 OString expVal( aStrBuf.getStr() );
10234 sal_Int64 input = 8;
10235 sal_Int16 radix = 8;
10237 expVal += OString( "10" );
10238 aStrBuf.append( input, radix );
10240 CPPUNIT_ASSERT_MESSAGE
10242 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
10243 aStrBuf.getStr()== expVal &&
10244 aStrBuf.getLength() == expVal.getLength()
10249 void append_068()
10251 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
10252 OString expVal( aStrBuf.getStr() );
10253 sal_Int64 input = 15;
10254 sal_Int16 radix = 8;
10256 expVal += OString( "17" );
10257 aStrBuf.append( input, radix );
10259 CPPUNIT_ASSERT_MESSAGE
10261 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
10262 aStrBuf.getStr()== expVal &&
10263 aStrBuf.getLength() == expVal.getLength()
10268 void append_069()
10270 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
10271 OString expVal( aStrBuf.getStr() );
10272 sal_Int64 input = 0;
10273 sal_Int16 radix = 10;
10275 expVal += OString( "0" );
10276 aStrBuf.append( input, radix );
10278 CPPUNIT_ASSERT_MESSAGE
10280 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
10281 aStrBuf.getStr()== expVal &&
10282 aStrBuf.getLength() == expVal.getLength()
10287 void append_070()
10289 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
10290 OString expVal( aStrBuf.getStr() );
10291 sal_Int64 input = 4;
10292 sal_Int16 radix = 10;
10294 expVal += OString( "4" );
10295 aStrBuf.append( input, radix );
10297 CPPUNIT_ASSERT_MESSAGE
10299 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
10300 aStrBuf.getStr()== expVal &&
10301 aStrBuf.getLength() == expVal.getLength()
10306 void append_071()
10308 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
10309 OString expVal( aStrBuf.getStr() );
10310 sal_Int64 input = 8;
10311 sal_Int16 radix = 10;
10313 expVal += OString( "8" );
10314 aStrBuf.append( input, radix );
10316 CPPUNIT_ASSERT_MESSAGE
10318 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
10319 aStrBuf.getStr()== expVal &&
10320 aStrBuf.getLength() == expVal.getLength()
10325 void append_072()
10327 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
10328 OString expVal( aStrBuf.getStr() );
10329 sal_Int64 input = 15;
10330 sal_Int16 radix = 10;
10332 expVal += OString( "15" );
10333 aStrBuf.append( input, radix );
10335 CPPUNIT_ASSERT_MESSAGE
10337 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
10338 aStrBuf.getStr()== expVal &&
10339 aStrBuf.getLength() == expVal.getLength()
10344 void append_073()
10346 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
10347 OString expVal( aStrBuf.getStr() );
10348 sal_Int64 input = 0;
10349 sal_Int16 radix = 16;
10351 expVal += OString( "0" );
10352 aStrBuf.append( input, radix );
10354 CPPUNIT_ASSERT_MESSAGE
10356 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
10357 aStrBuf.getStr()== expVal &&
10358 aStrBuf.getLength() == expVal.getLength()
10363 void append_074()
10365 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
10366 OString expVal( aStrBuf.getStr() );
10367 sal_Int64 input = 4;
10368 sal_Int16 radix = 16;
10370 expVal += OString( "4" );
10371 aStrBuf.append( input, radix );
10373 CPPUNIT_ASSERT_MESSAGE
10375 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
10376 aStrBuf.getStr()== expVal &&
10377 aStrBuf.getLength() == expVal.getLength()
10382 void append_075()
10384 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
10385 OString expVal( aStrBuf.getStr() );
10386 sal_Int64 input = 8;
10387 sal_Int16 radix = 16;
10389 expVal += OString( "8" );
10390 aStrBuf.append( input, radix );
10392 CPPUNIT_ASSERT_MESSAGE
10394 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
10395 aStrBuf.getStr()== expVal &&
10396 aStrBuf.getLength() == expVal.getLength()
10401 void append_076()
10403 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
10404 OString expVal( aStrBuf.getStr() );
10405 sal_Int64 input = 15;
10406 sal_Int16 radix = 16;
10408 expVal += OString( "f" );
10409 aStrBuf.append( input, radix );
10411 CPPUNIT_ASSERT_MESSAGE
10413 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
10414 aStrBuf.getStr()== expVal &&
10415 aStrBuf.getLength() == expVal.getLength()
10420 void append_077()
10422 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
10423 OString expVal( aStrBuf.getStr() );
10424 sal_Int64 input = 0;
10425 sal_Int16 radix = 36;
10427 expVal += OString( "0" );
10428 aStrBuf.append( input, radix );
10430 CPPUNIT_ASSERT_MESSAGE
10432 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
10433 aStrBuf.getStr()== expVal &&
10434 aStrBuf.getLength() == expVal.getLength()
10439 void append_078()
10441 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
10442 OString expVal( aStrBuf.getStr() );
10443 sal_Int64 input = 4;
10444 sal_Int16 radix = 36;
10446 expVal += OString( "4" );
10447 aStrBuf.append( input, radix );
10449 CPPUNIT_ASSERT_MESSAGE
10451 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
10452 aStrBuf.getStr()== expVal &&
10453 aStrBuf.getLength() == expVal.getLength()
10458 void append_079()
10460 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
10461 OString expVal( aStrBuf.getStr() );
10462 sal_Int64 input = 8;
10463 sal_Int16 radix = 36;
10465 expVal += OString( "8" );
10466 aStrBuf.append( input, radix );
10468 CPPUNIT_ASSERT_MESSAGE
10470 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
10471 aStrBuf.getStr()== expVal &&
10472 aStrBuf.getLength() == expVal.getLength()
10477 void append_080()
10479 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
10480 OString expVal( aStrBuf.getStr() );
10481 sal_Int64 input = 35;
10482 sal_Int16 radix = 36;
10484 expVal += OString( "z" );
10485 aStrBuf.append( input, radix );
10487 CPPUNIT_ASSERT_MESSAGE
10489 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
10490 aStrBuf.getStr()== expVal &&
10491 aStrBuf.getLength() == expVal.getLength()
10496 void append_081()
10498 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
10499 OString expVal( aStrBuf.getStr() );
10500 sal_Int64 input = 0;
10501 sal_Int16 radix = 2;
10503 expVal += OString( "0" );
10504 aStrBuf.append( input, radix );
10506 CPPUNIT_ASSERT_MESSAGE
10508 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
10509 aStrBuf.getStr()== expVal &&
10510 aStrBuf.getLength() == expVal.getLength()
10515 void append_082()
10517 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
10518 OString expVal( aStrBuf.getStr() );
10519 sal_Int64 input = 4;
10520 sal_Int16 radix = 2;
10522 expVal += OString( "100" );
10523 aStrBuf.append( input, radix );
10525 CPPUNIT_ASSERT_MESSAGE
10527 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
10528 aStrBuf.getStr()== expVal &&
10529 aStrBuf.getLength() == expVal.getLength()
10534 void append_083()
10536 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
10537 OString expVal( aStrBuf.getStr() );
10538 sal_Int64 input = 8;
10539 sal_Int16 radix = 2;
10541 expVal += OString( "1000" );
10542 aStrBuf.append( input, radix );
10544 CPPUNIT_ASSERT_MESSAGE
10546 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
10547 aStrBuf.getStr()== expVal &&
10548 aStrBuf.getLength() == expVal.getLength()
10553 void append_084()
10555 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
10556 OString expVal( aStrBuf.getStr() );
10557 sal_Int64 input = 15;
10558 sal_Int16 radix = 2;
10560 expVal += OString( "1111" );
10561 aStrBuf.append( input, radix );
10563 CPPUNIT_ASSERT_MESSAGE
10565 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
10566 aStrBuf.getStr()== expVal &&
10567 aStrBuf.getLength() == expVal.getLength()
10572 void append_085()
10574 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
10575 OString expVal( aStrBuf.getStr() );
10576 sal_Int64 input = 0;
10577 sal_Int16 radix = 8;
10579 expVal += OString( "0" );
10580 aStrBuf.append( input, radix );
10582 CPPUNIT_ASSERT_MESSAGE
10584 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
10585 aStrBuf.getStr()== expVal &&
10586 aStrBuf.getLength() == expVal.getLength()
10591 void append_086()
10593 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
10594 OString expVal( aStrBuf.getStr() );
10595 sal_Int64 input = 4;
10596 sal_Int16 radix = 8;
10598 expVal += OString( "4" );
10599 aStrBuf.append( input, radix );
10601 CPPUNIT_ASSERT_MESSAGE
10603 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
10604 aStrBuf.getStr()== expVal &&
10605 aStrBuf.getLength() == expVal.getLength()
10610 void append_087()
10612 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
10613 OString expVal( aStrBuf.getStr() );
10614 sal_Int64 input = 8;
10615 sal_Int16 radix = 8;
10617 expVal += OString( "10" );
10618 aStrBuf.append( input, radix );
10620 CPPUNIT_ASSERT_MESSAGE
10622 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
10623 aStrBuf.getStr()== expVal &&
10624 aStrBuf.getLength() == expVal.getLength()
10629 void append_088()
10631 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
10632 OString expVal( aStrBuf.getStr() );
10633 sal_Int64 input = 15;
10634 sal_Int16 radix = 8;
10636 expVal += OString( "17" );
10637 aStrBuf.append( input, radix );
10639 CPPUNIT_ASSERT_MESSAGE
10641 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
10642 aStrBuf.getStr()== expVal &&
10643 aStrBuf.getLength() == expVal.getLength()
10648 void append_089()
10650 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
10651 OString expVal( aStrBuf.getStr() );
10652 sal_Int64 input = 0;
10653 sal_Int16 radix = 10;
10655 expVal += OString( "0" );
10656 aStrBuf.append( input, radix );
10658 CPPUNIT_ASSERT_MESSAGE
10660 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
10661 aStrBuf.getStr()== expVal &&
10662 aStrBuf.getLength() == expVal.getLength()
10667 void append_090()
10669 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
10670 OString expVal( aStrBuf.getStr() );
10671 sal_Int64 input = 4;
10672 sal_Int16 radix = 10;
10674 expVal += OString( "4" );
10675 aStrBuf.append( input, radix );
10677 CPPUNIT_ASSERT_MESSAGE
10679 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
10680 aStrBuf.getStr()== expVal &&
10681 aStrBuf.getLength() == expVal.getLength()
10686 void append_091()
10688 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
10689 OString expVal( aStrBuf.getStr() );
10690 sal_Int64 input = 8;
10691 sal_Int16 radix = 10;
10693 expVal += OString( "8" );
10694 aStrBuf.append( input, radix );
10696 CPPUNIT_ASSERT_MESSAGE
10698 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
10699 aStrBuf.getStr()== expVal &&
10700 aStrBuf.getLength() == expVal.getLength()
10705 void append_092()
10707 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
10708 OString expVal( aStrBuf.getStr() );
10709 sal_Int64 input = 15;
10710 sal_Int16 radix = 10;
10712 expVal += OString( "15" );
10713 aStrBuf.append( input, radix );
10715 CPPUNIT_ASSERT_MESSAGE
10717 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
10718 aStrBuf.getStr()== expVal &&
10719 aStrBuf.getLength() == expVal.getLength()
10724 void append_093()
10726 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
10727 OString expVal( aStrBuf.getStr() );
10728 sal_Int64 input = 0;
10729 sal_Int16 radix = 16;
10731 expVal += OString( "0" );
10732 aStrBuf.append( input, radix );
10734 CPPUNIT_ASSERT_MESSAGE
10736 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
10737 aStrBuf.getStr()== expVal &&
10738 aStrBuf.getLength() == expVal.getLength()
10743 void append_094()
10745 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
10746 OString expVal( aStrBuf.getStr() );
10747 sal_Int64 input = 4;
10748 sal_Int16 radix = 16;
10750 expVal += OString( "4" );
10751 aStrBuf.append( input, radix );
10753 CPPUNIT_ASSERT_MESSAGE
10755 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
10756 aStrBuf.getStr()== expVal &&
10757 aStrBuf.getLength() == expVal.getLength()
10762 void append_095()
10764 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
10765 OString expVal( aStrBuf.getStr() );
10766 sal_Int64 input = 8;
10767 sal_Int16 radix = 16;
10769 expVal += OString( "8" );
10770 aStrBuf.append( input, radix );
10772 CPPUNIT_ASSERT_MESSAGE
10774 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
10775 aStrBuf.getStr()== expVal &&
10776 aStrBuf.getLength() == expVal.getLength()
10781 void append_096()
10783 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
10784 OString expVal( aStrBuf.getStr() );
10785 sal_Int64 input = 15;
10786 sal_Int16 radix = 16;
10788 expVal += OString( "f" );
10789 aStrBuf.append( input, radix );
10791 CPPUNIT_ASSERT_MESSAGE
10793 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
10794 aStrBuf.getStr()== expVal &&
10795 aStrBuf.getLength() == expVal.getLength()
10800 void append_097()
10802 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
10803 OString expVal( aStrBuf.getStr() );
10804 sal_Int64 input = 0;
10805 sal_Int16 radix = 36;
10807 expVal += OString( "0" );
10808 aStrBuf.append( input, radix );
10810 CPPUNIT_ASSERT_MESSAGE
10812 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
10813 aStrBuf.getStr()== expVal &&
10814 aStrBuf.getLength() == expVal.getLength()
10819 void append_098()
10821 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
10822 OString expVal( aStrBuf.getStr() );
10823 sal_Int64 input = 4;
10824 sal_Int16 radix = 36;
10826 expVal += OString( "4" );
10827 aStrBuf.append( input, radix );
10829 CPPUNIT_ASSERT_MESSAGE
10831 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
10832 aStrBuf.getStr()== expVal &&
10833 aStrBuf.getLength() == expVal.getLength()
10838 void append_099()
10840 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
10841 OString expVal( aStrBuf.getStr() );
10842 sal_Int64 input = 8;
10843 sal_Int16 radix = 36;
10845 expVal += OString( "8" );
10846 aStrBuf.append( input, radix );
10848 CPPUNIT_ASSERT_MESSAGE
10850 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
10851 aStrBuf.getStr()== expVal &&
10852 aStrBuf.getLength() == expVal.getLength()
10857 void append_100()
10859 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
10860 OString expVal( aStrBuf.getStr() );
10861 sal_Int64 input = 35;
10862 sal_Int16 radix = 36;
10864 expVal += OString( "z" );
10865 aStrBuf.append( input, radix );
10867 CPPUNIT_ASSERT_MESSAGE
10869 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
10870 aStrBuf.getStr()== expVal &&
10871 aStrBuf.getLength() == expVal.getLength()
10876 CPPUNIT_TEST_SUITE( append_007_Int64 );
10877 CPPUNIT_TEST( append_001 ); CPPUNIT_TEST( append_002 );
10878 CPPUNIT_TEST( append_003 ); CPPUNIT_TEST( append_004 );
10879 CPPUNIT_TEST( append_005 ); CPPUNIT_TEST( append_006 );
10880 CPPUNIT_TEST( append_007 ); CPPUNIT_TEST( append_008 );
10881 CPPUNIT_TEST( append_009 ); CPPUNIT_TEST( append_010 );
10882 CPPUNIT_TEST( append_011 ); CPPUNIT_TEST( append_012 );
10883 CPPUNIT_TEST( append_013 ); CPPUNIT_TEST( append_014 );
10884 CPPUNIT_TEST( append_015 ); CPPUNIT_TEST( append_016 );
10885 CPPUNIT_TEST( append_017 ); CPPUNIT_TEST( append_018 );
10886 CPPUNIT_TEST( append_019 ); CPPUNIT_TEST( append_020 );
10887 CPPUNIT_TEST( append_021 ); CPPUNIT_TEST( append_022 );
10888 CPPUNIT_TEST( append_023 ); CPPUNIT_TEST( append_024 );
10889 CPPUNIT_TEST( append_025 ); CPPUNIT_TEST( append_026 );
10890 CPPUNIT_TEST( append_027 ); CPPUNIT_TEST( append_028 );
10891 CPPUNIT_TEST( append_029 ); CPPUNIT_TEST( append_030 );
10892 CPPUNIT_TEST( append_031 ); CPPUNIT_TEST( append_032 );
10893 CPPUNIT_TEST( append_033 ); CPPUNIT_TEST( append_034 );
10894 CPPUNIT_TEST( append_035 ); CPPUNIT_TEST( append_036 );
10895 CPPUNIT_TEST( append_037 ); CPPUNIT_TEST( append_038 );
10896 CPPUNIT_TEST( append_039 ); CPPUNIT_TEST( append_040 );
10897 CPPUNIT_TEST( append_041 ); CPPUNIT_TEST( append_042 );
10898 CPPUNIT_TEST( append_043 ); CPPUNIT_TEST( append_044 );
10899 CPPUNIT_TEST( append_045 ); CPPUNIT_TEST( append_046 );
10900 CPPUNIT_TEST( append_047 ); CPPUNIT_TEST( append_048 );
10901 CPPUNIT_TEST( append_049 ); CPPUNIT_TEST( append_050 );
10902 CPPUNIT_TEST( append_051 ); CPPUNIT_TEST( append_052 );
10903 CPPUNIT_TEST( append_053 ); CPPUNIT_TEST( append_054 );
10904 CPPUNIT_TEST( append_055 ); CPPUNIT_TEST( append_056 );
10905 CPPUNIT_TEST( append_057 ); CPPUNIT_TEST( append_058 );
10906 CPPUNIT_TEST( append_059 ); CPPUNIT_TEST( append_060 );
10907 CPPUNIT_TEST( append_061 ); CPPUNIT_TEST( append_062 );
10908 CPPUNIT_TEST( append_063 ); CPPUNIT_TEST( append_064 );
10909 CPPUNIT_TEST( append_065 ); CPPUNIT_TEST( append_066 );
10910 CPPUNIT_TEST( append_067 ); CPPUNIT_TEST( append_068 );
10911 CPPUNIT_TEST( append_069 ); CPPUNIT_TEST( append_070 );
10912 CPPUNIT_TEST( append_071 ); CPPUNIT_TEST( append_072 );
10913 CPPUNIT_TEST( append_073 ); CPPUNIT_TEST( append_074 );
10914 CPPUNIT_TEST( append_075 ); CPPUNIT_TEST( append_076 );
10915 CPPUNIT_TEST( append_077 ); CPPUNIT_TEST( append_078 );
10916 CPPUNIT_TEST( append_079 ); CPPUNIT_TEST( append_080 );
10917 CPPUNIT_TEST( append_081 ); CPPUNIT_TEST( append_082 );
10918 CPPUNIT_TEST( append_083 ); CPPUNIT_TEST( append_084 );
10919 CPPUNIT_TEST( append_085 ); CPPUNIT_TEST( append_086 );
10920 CPPUNIT_TEST( append_087 ); CPPUNIT_TEST( append_088 );
10921 CPPUNIT_TEST( append_089 ); CPPUNIT_TEST( append_090 );
10922 CPPUNIT_TEST( append_091 ); CPPUNIT_TEST( append_092 );
10923 CPPUNIT_TEST( append_093 ); CPPUNIT_TEST( append_094 );
10924 CPPUNIT_TEST( append_095 ); CPPUNIT_TEST( append_096 );
10925 CPPUNIT_TEST( append_097 ); CPPUNIT_TEST( append_098 );
10926 CPPUNIT_TEST( append_099 ); CPPUNIT_TEST( append_100 );
10927 CPPUNIT_TEST_SUITE_END();
10929 //------------------------------------------------------------------------
10930 // testing the method append( sal_Int64 i, sal_Int16 radix=2 )
10931 // where i = large constants
10932 // testing the method append( sal_Int64 i, sal_Int16 radix=8 )
10933 // where i = large constants
10934 // testing the method append( sal_Int64 i, sal_Int16 radix=10 )
10935 // where i = large constants
10936 // testing the method append( sal_Int64 i, sal_Int16 radix=16 )
10937 // where i = large constants
10938 // testing the method append( sal_Int64 i, sal_Int16 radix=36 )
10939 // where i = large constants
10940 //------------------------------------------------------------------------
10941 class append_007_Int64_Bounderies : public CppUnit::TestFixture
10943 OString* arrOUS[5];
10945 public:
10946 void setUp()
10948 arrOUS[0] = new OString( kTestStr7 );
10949 arrOUS[1] = new OString( );
10950 arrOUS[2] = new OString( kTestStr25 );
10951 arrOUS[3] = new OString( "" );
10952 arrOUS[4] = new OString( kTestStr28 );
10956 void tearDown()
10958 delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
10959 delete arrOUS[3]; delete arrOUS[4];
10962 void append_001()
10964 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
10965 OString expVal( aStrBuf.getStr() );
10966 sal_Int64 input = kSInt8Max;
10967 sal_Int16 radix = 2;
10969 expVal += OString( "1111111" );
10970 aStrBuf.append( input, radix );
10972 CPPUNIT_ASSERT_MESSAGE
10974 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
10975 aStrBuf.getStr()== expVal &&
10976 aStrBuf.getLength() == expVal.getLength()
10981 void append_002()
10983 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
10984 OString expVal( aStrBuf.getStr() );
10985 sal_Int64 input = kSInt64Max;
10986 sal_Int16 radix = 2;
10988 expVal += OString( "111111111111111111111111111111111111111111111111111111111111111" );
10989 aStrBuf.append( input, radix );
10991 CPPUNIT_ASSERT_MESSAGE
10993 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
10994 aStrBuf.getStr()== expVal &&
10995 aStrBuf.getLength() == expVal.getLength()
11000 void append_003()
11002 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
11003 OString expVal( aStrBuf.getStr() );
11004 sal_Int64 input = kSInt8Max;
11005 sal_Int16 radix = 8;
11007 expVal += OString( "177" );
11008 aStrBuf.append( input, radix );
11010 CPPUNIT_ASSERT_MESSAGE
11012 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
11013 aStrBuf.getStr()== expVal &&
11014 aStrBuf.getLength() == expVal.getLength()
11019 void append_004()
11021 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
11022 OString expVal( aStrBuf.getStr() );
11023 sal_Int64 input = kSInt64Max;
11024 sal_Int16 radix = 8;
11026 expVal += OString( "777777777777777777777" );
11027 aStrBuf.append( input, radix );
11029 CPPUNIT_ASSERT_MESSAGE
11031 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
11032 aStrBuf.getStr()== expVal &&
11033 aStrBuf.getLength() == expVal.getLength()
11038 void append_005()
11040 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
11041 OString expVal( aStrBuf.getStr() );
11042 sal_Int64 input = kSInt8Max;
11043 sal_Int16 radix = 10;
11045 expVal += OString( "127" );
11046 aStrBuf.append( input, radix );
11048 CPPUNIT_ASSERT_MESSAGE
11050 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
11051 aStrBuf.getStr()== expVal &&
11052 aStrBuf.getLength() == expVal.getLength()
11057 void append_006()
11059 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
11060 OString expVal( aStrBuf.getStr() );
11061 sal_Int64 input = kSInt64Max;
11062 sal_Int16 radix = 10;
11064 expVal += OString( "9223372036854775807" );
11065 aStrBuf.append( input, radix );
11067 CPPUNIT_ASSERT_MESSAGE
11069 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
11070 aStrBuf.getStr()== expVal &&
11071 aStrBuf.getLength() == expVal.getLength()
11076 void append_007()
11078 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
11079 OString expVal( aStrBuf.getStr() );
11080 sal_Int64 input = kSInt8Max;
11081 sal_Int16 radix = 16;
11083 expVal += OString( "7f" );
11084 aStrBuf.append( input, radix );
11086 CPPUNIT_ASSERT_MESSAGE
11088 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
11089 aStrBuf.getStr()== expVal &&
11090 aStrBuf.getLength() == expVal.getLength()
11095 void append_008()
11097 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
11098 OString expVal( aStrBuf.getStr() );
11099 sal_Int64 input = kSInt64Max;
11100 sal_Int16 radix = 16;
11102 expVal += OString( "7fffffffffffffff" );
11103 aStrBuf.append( input, radix );
11105 CPPUNIT_ASSERT_MESSAGE
11107 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
11108 aStrBuf.getStr()== expVal &&
11109 aStrBuf.getLength() == expVal.getLength()
11114 void append_009()
11116 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
11117 OString expVal( aStrBuf.getStr() );
11118 sal_Int64 input = kSInt8Max;
11119 sal_Int16 radix = 36;
11121 expVal += OString( "3j" );
11122 aStrBuf.append( input, radix );
11124 CPPUNIT_ASSERT_MESSAGE
11126 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
11127 aStrBuf.getStr()== expVal &&
11128 aStrBuf.getLength() == expVal.getLength()
11133 void append_010()
11135 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
11136 OString expVal( aStrBuf.getStr() );
11137 sal_Int64 input = kSInt64Max;
11138 sal_Int16 radix = 36;
11140 expVal += OString( "1y2p0ij32e8e7" );
11141 aStrBuf.append( input, radix );
11143 CPPUNIT_ASSERT_MESSAGE
11145 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
11146 aStrBuf.getStr()== expVal &&
11147 aStrBuf.getLength() == expVal.getLength()
11152 void append_011()
11154 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
11155 OString expVal( aStrBuf.getStr() );
11156 sal_Int64 input = kSInt8Max;
11157 sal_Int16 radix = 2;
11159 expVal += OString( "1111111" );
11160 aStrBuf.append( input, radix );
11162 CPPUNIT_ASSERT_MESSAGE
11164 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
11165 aStrBuf.getStr()== expVal &&
11166 aStrBuf.getLength() == expVal.getLength()
11171 void append_012()
11173 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
11174 OString expVal( aStrBuf.getStr() );
11175 sal_Int64 input = kSInt64Max;
11176 sal_Int16 radix = 2;
11178 expVal += OString( "111111111111111111111111111111111111111111111111111111111111111" );
11179 aStrBuf.append( input, radix );
11181 CPPUNIT_ASSERT_MESSAGE
11183 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
11184 aStrBuf.getStr()== expVal &&
11185 aStrBuf.getLength() == expVal.getLength()
11190 void append_013()
11192 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
11193 OString expVal( aStrBuf.getStr() );
11194 sal_Int64 input = kSInt8Max;
11195 sal_Int16 radix = 8;
11197 expVal += OString( "177" );
11198 aStrBuf.append( input, radix );
11200 CPPUNIT_ASSERT_MESSAGE
11202 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
11203 aStrBuf.getStr()== expVal &&
11204 aStrBuf.getLength() == expVal.getLength()
11209 void append_014()
11211 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
11212 OString expVal( aStrBuf.getStr() );
11213 sal_Int64 input = kSInt64Max;
11214 sal_Int16 radix = 8;
11216 expVal += OString( "777777777777777777777" );
11217 aStrBuf.append( input, radix );
11219 CPPUNIT_ASSERT_MESSAGE
11221 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
11222 aStrBuf.getStr()== expVal &&
11223 aStrBuf.getLength() == expVal.getLength()
11228 void append_015()
11230 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
11231 OString expVal( aStrBuf.getStr() );
11232 sal_Int64 input = kSInt8Max;
11233 sal_Int16 radix = 10;
11235 expVal += OString( "127" );
11236 aStrBuf.append( input, radix );
11238 CPPUNIT_ASSERT_MESSAGE
11240 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
11241 aStrBuf.getStr()== expVal &&
11242 aStrBuf.getLength() == expVal.getLength()
11247 void append_016()
11249 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
11250 OString expVal( aStrBuf.getStr() );
11251 sal_Int64 input = kSInt64Max;
11252 sal_Int16 radix = 10;
11254 expVal += OString( "9223372036854775807" );
11255 aStrBuf.append( input, radix );
11257 CPPUNIT_ASSERT_MESSAGE
11259 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
11260 aStrBuf.getStr()== expVal &&
11261 aStrBuf.getLength() == expVal.getLength()
11266 void append_017()
11268 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
11269 OString expVal( aStrBuf.getStr() );
11270 sal_Int64 input = kSInt8Max;
11271 sal_Int16 radix = 16;
11273 expVal += OString( "7f" );
11274 aStrBuf.append( input, radix );
11276 CPPUNIT_ASSERT_MESSAGE
11278 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
11279 aStrBuf.getStr()== expVal &&
11280 aStrBuf.getLength() == expVal.getLength()
11285 void append_018()
11287 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
11288 OString expVal( aStrBuf.getStr() );
11289 sal_Int64 input = kSInt64Max;
11290 sal_Int16 radix = 16;
11292 expVal += OString( "7fffffffffffffff" );
11293 aStrBuf.append( input, radix );
11295 CPPUNIT_ASSERT_MESSAGE
11297 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
11298 aStrBuf.getStr()== expVal &&
11299 aStrBuf.getLength() == expVal.getLength()
11304 void append_019()
11306 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
11307 OString expVal( aStrBuf.getStr() );
11308 sal_Int64 input = kSInt8Max;
11309 sal_Int16 radix = 36;
11311 expVal += OString( "3j" );
11312 aStrBuf.append( input, radix );
11314 CPPUNIT_ASSERT_MESSAGE
11316 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
11317 aStrBuf.getStr()== expVal &&
11318 aStrBuf.getLength() == expVal.getLength()
11323 void append_020()
11325 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
11326 OString expVal( aStrBuf.getStr() );
11327 sal_Int64 input = kSInt64Max;
11328 sal_Int16 radix = 36;
11330 expVal += OString( "1y2p0ij32e8e7" );
11331 aStrBuf.append( input, radix );
11333 CPPUNIT_ASSERT_MESSAGE
11335 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
11336 aStrBuf.getStr()== expVal &&
11337 aStrBuf.getLength() == expVal.getLength()
11342 void append_021()
11344 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
11345 OString expVal( aStrBuf.getStr() );
11346 sal_Int64 input = kSInt8Max;
11347 sal_Int16 radix = 2;
11349 expVal += OString( "1111111" );
11350 aStrBuf.append( input, radix );
11352 CPPUNIT_ASSERT_MESSAGE
11354 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
11355 aStrBuf.getStr()== expVal &&
11356 aStrBuf.getLength() == expVal.getLength()
11361 void append_022()
11363 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
11364 OString expVal( aStrBuf.getStr() );
11365 sal_Int64 input = kSInt64Max;
11366 sal_Int16 radix = 2;
11368 expVal += OString( "111111111111111111111111111111111111111111111111111111111111111" );
11369 aStrBuf.append( input, radix );
11371 CPPUNIT_ASSERT_MESSAGE
11373 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
11374 aStrBuf.getStr()== expVal &&
11375 aStrBuf.getLength() == expVal.getLength()
11380 void append_023()
11382 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
11383 OString expVal( aStrBuf.getStr() );
11384 sal_Int64 input = kSInt8Max;
11385 sal_Int16 radix = 8;
11387 expVal += OString( "177" );
11388 aStrBuf.append( input, radix );
11390 CPPUNIT_ASSERT_MESSAGE
11392 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
11393 aStrBuf.getStr()== expVal &&
11394 aStrBuf.getLength() == expVal.getLength()
11399 void append_024()
11401 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
11402 OString expVal( aStrBuf.getStr() );
11403 sal_Int64 input = kSInt64Max;
11404 sal_Int16 radix = 8;
11406 expVal += OString( "777777777777777777777" );
11407 aStrBuf.append( input, radix );
11409 CPPUNIT_ASSERT_MESSAGE
11411 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
11412 aStrBuf.getStr()== expVal &&
11413 aStrBuf.getLength() == expVal.getLength()
11418 void append_025()
11420 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
11421 OString expVal( aStrBuf.getStr() );
11422 sal_Int64 input = kSInt8Max;
11423 sal_Int16 radix = 10;
11425 expVal += OString( "127" );
11426 aStrBuf.append( input, radix );
11428 CPPUNIT_ASSERT_MESSAGE
11430 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
11431 aStrBuf.getStr()== expVal &&
11432 aStrBuf.getLength() == expVal.getLength()
11437 void append_026()
11439 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
11440 OString expVal( aStrBuf.getStr() );
11441 sal_Int64 input = kSInt64Max;
11442 sal_Int16 radix = 10;
11444 expVal += OString( "9223372036854775807" );
11445 aStrBuf.append( input, radix );
11447 CPPUNIT_ASSERT_MESSAGE
11449 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
11450 aStrBuf.getStr()== expVal &&
11451 aStrBuf.getLength() == expVal.getLength()
11456 void append_027()
11458 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
11459 OString expVal( aStrBuf.getStr() );
11460 sal_Int64 input = kSInt8Max;
11461 sal_Int16 radix = 16;
11463 expVal += OString( "7f" );
11464 aStrBuf.append( input, radix );
11466 CPPUNIT_ASSERT_MESSAGE
11468 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
11469 aStrBuf.getStr()== expVal &&
11470 aStrBuf.getLength() == expVal.getLength()
11475 void append_028()
11477 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
11478 OString expVal( aStrBuf.getStr() );
11479 sal_Int64 input = kSInt64Max;
11480 sal_Int16 radix = 16;
11482 expVal += OString( "7fffffffffffffff" );
11483 aStrBuf.append( input, radix );
11485 CPPUNIT_ASSERT_MESSAGE
11487 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
11488 aStrBuf.getStr()== expVal &&
11489 aStrBuf.getLength() == expVal.getLength()
11494 void append_029()
11496 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
11497 OString expVal( aStrBuf.getStr() );
11498 sal_Int64 input = kSInt8Max;
11499 sal_Int16 radix = 36;
11501 expVal += OString( "3j" );
11502 aStrBuf.append( input, radix );
11504 CPPUNIT_ASSERT_MESSAGE
11506 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
11507 aStrBuf.getStr()== expVal &&
11508 aStrBuf.getLength() == expVal.getLength()
11513 void append_030()
11515 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
11516 OString expVal( aStrBuf.getStr() );
11517 sal_Int64 input = kSInt64Max;
11518 sal_Int16 radix = 36;
11520 expVal += OString( "1y2p0ij32e8e7" );
11521 aStrBuf.append( input, radix );
11523 CPPUNIT_ASSERT_MESSAGE
11525 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
11526 aStrBuf.getStr()== expVal &&
11527 aStrBuf.getLength() == expVal.getLength()
11532 void append_031()
11534 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
11535 OString expVal( aStrBuf.getStr() );
11536 sal_Int64 input = kSInt8Max;
11537 sal_Int16 radix = 2;
11539 expVal += OString( "1111111" );
11540 aStrBuf.append( input, radix );
11542 CPPUNIT_ASSERT_MESSAGE
11544 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
11545 aStrBuf.getStr()== expVal &&
11546 aStrBuf.getLength() == expVal.getLength()
11551 void append_032()
11553 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
11554 OString expVal( aStrBuf.getStr() );
11555 sal_Int64 input = kSInt64Max;
11556 sal_Int16 radix = 2;
11558 expVal += OString( "111111111111111111111111111111111111111111111111111111111111111" );
11559 aStrBuf.append( input, radix );
11561 CPPUNIT_ASSERT_MESSAGE
11563 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
11564 aStrBuf.getStr()== expVal &&
11565 aStrBuf.getLength() == expVal.getLength()
11570 void append_033()
11572 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
11573 OString expVal( aStrBuf.getStr() );
11574 sal_Int64 input = kSInt8Max;
11575 sal_Int16 radix = 8;
11577 expVal += OString( "177" );
11578 aStrBuf.append( input, radix );
11580 CPPUNIT_ASSERT_MESSAGE
11582 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
11583 aStrBuf.getStr()== expVal &&
11584 aStrBuf.getLength() == expVal.getLength()
11589 void append_034()
11591 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
11592 OString expVal( aStrBuf.getStr() );
11593 sal_Int64 input = kSInt64Max;
11594 sal_Int16 radix = 8;
11596 expVal += OString( "777777777777777777777" );
11597 aStrBuf.append( input, radix );
11599 CPPUNIT_ASSERT_MESSAGE
11601 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
11602 aStrBuf.getStr()== expVal &&
11603 aStrBuf.getLength() == expVal.getLength()
11608 void append_035()
11610 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
11611 OString expVal( aStrBuf.getStr() );
11612 sal_Int64 input = kSInt8Max;
11613 sal_Int16 radix = 10;
11615 expVal += OString( "127" );
11616 aStrBuf.append( input, radix );
11618 CPPUNIT_ASSERT_MESSAGE
11620 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
11621 aStrBuf.getStr()== expVal &&
11622 aStrBuf.getLength() == expVal.getLength()
11627 void append_036()
11629 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
11630 OString expVal( aStrBuf.getStr() );
11631 sal_Int64 input = kSInt64Max;
11632 sal_Int16 radix = 10;
11634 expVal += OString( "9223372036854775807" );
11635 aStrBuf.append( input, radix );
11637 CPPUNIT_ASSERT_MESSAGE
11639 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
11640 aStrBuf.getStr()== expVal &&
11641 aStrBuf.getLength() == expVal.getLength()
11646 void append_037()
11648 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
11649 OString expVal( aStrBuf.getStr() );
11650 sal_Int64 input = kSInt8Max;
11651 sal_Int16 radix = 16;
11653 expVal += OString( "7f" );
11654 aStrBuf.append( input, radix );
11656 CPPUNIT_ASSERT_MESSAGE
11658 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
11659 aStrBuf.getStr()== expVal &&
11660 aStrBuf.getLength() == expVal.getLength()
11665 void append_038()
11667 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
11668 OString expVal( aStrBuf.getStr() );
11669 sal_Int64 input = kSInt64Max;
11670 sal_Int16 radix = 16;
11672 expVal += OString( "7fffffffffffffff" );
11673 aStrBuf.append( input, radix );
11675 CPPUNIT_ASSERT_MESSAGE
11677 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
11678 aStrBuf.getStr()== expVal &&
11679 aStrBuf.getLength() == expVal.getLength()
11684 void append_039()
11686 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
11687 OString expVal( aStrBuf.getStr() );
11688 sal_Int64 input = kSInt8Max;
11689 sal_Int16 radix = 36;
11691 expVal += OString( "3j" );
11692 aStrBuf.append( input, radix );
11694 CPPUNIT_ASSERT_MESSAGE
11696 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
11697 aStrBuf.getStr()== expVal &&
11698 aStrBuf.getLength() == expVal.getLength()
11703 void append_040()
11705 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
11706 OString expVal( aStrBuf.getStr() );
11707 sal_Int64 input = kSInt64Max;
11708 sal_Int16 radix = 36;
11710 expVal += OString( "1y2p0ij32e8e7" );
11711 aStrBuf.append( input, radix );
11713 CPPUNIT_ASSERT_MESSAGE
11715 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
11716 aStrBuf.getStr()== expVal &&
11717 aStrBuf.getLength() == expVal.getLength()
11722 void append_041()
11724 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
11725 OString expVal( aStrBuf.getStr() );
11726 sal_Int64 input = kSInt8Max;
11727 sal_Int16 radix = 2;
11729 expVal += OString( "1111111" );
11730 aStrBuf.append( input, radix );
11732 CPPUNIT_ASSERT_MESSAGE
11734 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
11735 aStrBuf.getStr()== expVal &&
11736 aStrBuf.getLength() == expVal.getLength()
11741 void append_042()
11743 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
11744 OString expVal( aStrBuf.getStr() );
11745 sal_Int64 input = kSInt64Max;
11746 sal_Int16 radix = 2;
11748 expVal += OString( "111111111111111111111111111111111111111111111111111111111111111" );
11749 aStrBuf.append( input, radix );
11751 CPPUNIT_ASSERT_MESSAGE
11753 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
11754 aStrBuf.getStr()== expVal &&
11755 aStrBuf.getLength() == expVal.getLength()
11760 void append_043()
11762 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
11763 OString expVal( aStrBuf.getStr() );
11764 sal_Int64 input = kSInt8Max;
11765 sal_Int16 radix = 8;
11767 expVal += OString( "177" );
11768 aStrBuf.append( input, radix );
11770 CPPUNIT_ASSERT_MESSAGE
11772 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
11773 aStrBuf.getStr()== expVal &&
11774 aStrBuf.getLength() == expVal.getLength()
11779 void append_044()
11781 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
11782 OString expVal( aStrBuf.getStr() );
11783 sal_Int64 input = kSInt64Max;
11784 sal_Int16 radix = 8;
11786 expVal += OString( "777777777777777777777" );
11787 aStrBuf.append( input, radix );
11789 CPPUNIT_ASSERT_MESSAGE
11791 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
11792 aStrBuf.getStr()== expVal &&
11793 aStrBuf.getLength() == expVal.getLength()
11798 void append_045()
11800 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
11801 OString expVal( aStrBuf.getStr() );
11802 sal_Int64 input = kSInt8Max;
11803 sal_Int16 radix = 10;
11805 expVal += OString( "127" );
11806 aStrBuf.append( input, radix );
11808 CPPUNIT_ASSERT_MESSAGE
11810 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
11811 aStrBuf.getStr()== expVal &&
11812 aStrBuf.getLength() == expVal.getLength()
11817 void append_046()
11819 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
11820 OString expVal( aStrBuf.getStr() );
11821 sal_Int64 input = kSInt64Max;
11822 sal_Int16 radix = 10;
11824 expVal += OString( "9223372036854775807" );
11825 aStrBuf.append( input, radix );
11827 CPPUNIT_ASSERT_MESSAGE
11829 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
11830 aStrBuf.getStr()== expVal &&
11831 aStrBuf.getLength() == expVal.getLength()
11836 void append_047()
11838 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
11839 OString expVal( aStrBuf.getStr() );
11840 sal_Int64 input = kSInt8Max;
11841 sal_Int16 radix = 16;
11843 expVal += OString( "7f" );
11844 aStrBuf.append( input, radix );
11846 CPPUNIT_ASSERT_MESSAGE
11848 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
11849 aStrBuf.getStr()== expVal &&
11850 aStrBuf.getLength() == expVal.getLength()
11855 void append_048()
11857 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
11858 OString expVal( aStrBuf.getStr() );
11859 sal_Int64 input = kSInt64Max;
11860 sal_Int16 radix = 16;
11862 expVal += OString( "7fffffffffffffff" );
11863 aStrBuf.append( input, radix );
11865 CPPUNIT_ASSERT_MESSAGE
11867 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
11868 aStrBuf.getStr()== expVal &&
11869 aStrBuf.getLength() == expVal.getLength()
11874 void append_049()
11876 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
11877 OString expVal( aStrBuf.getStr() );
11878 sal_Int64 input = kSInt8Max;
11879 sal_Int16 radix = 36;
11881 expVal += OString( "3j" );
11882 aStrBuf.append( input, radix );
11884 CPPUNIT_ASSERT_MESSAGE
11886 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
11887 aStrBuf.getStr()== expVal &&
11888 aStrBuf.getLength() == expVal.getLength()
11893 void append_050()
11895 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
11896 OString expVal( aStrBuf.getStr() );
11897 sal_Int64 input = kSInt64Max;
11898 sal_Int16 radix = 36;
11900 expVal += OString( "1y2p0ij32e8e7" );
11901 aStrBuf.append( input, radix );
11903 CPPUNIT_ASSERT_MESSAGE
11905 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
11906 aStrBuf.getStr()== expVal &&
11907 aStrBuf.getLength() == expVal.getLength()
11912 CPPUNIT_TEST_SUITE( append_007_Int64_Bounderies );
11913 CPPUNIT_TEST( append_001 ); CPPUNIT_TEST( append_002 );
11914 CPPUNIT_TEST( append_003 ); CPPUNIT_TEST( append_004 );
11915 CPPUNIT_TEST( append_005 ); CPPUNIT_TEST( append_006 );
11916 CPPUNIT_TEST( append_007 ); CPPUNIT_TEST( append_008 );
11917 CPPUNIT_TEST( append_009 ); CPPUNIT_TEST( append_010 );
11918 CPPUNIT_TEST( append_011 ); CPPUNIT_TEST( append_012 );
11919 CPPUNIT_TEST( append_013 ); CPPUNIT_TEST( append_014 );
11920 CPPUNIT_TEST( append_015 ); CPPUNIT_TEST( append_016 );
11921 CPPUNIT_TEST( append_017 ); CPPUNIT_TEST( append_018 );
11922 CPPUNIT_TEST( append_019 ); CPPUNIT_TEST( append_020 );
11923 CPPUNIT_TEST( append_021 ); CPPUNIT_TEST( append_022 );
11924 CPPUNIT_TEST( append_023 ); CPPUNIT_TEST( append_024 );
11925 CPPUNIT_TEST( append_025 ); CPPUNIT_TEST( append_026 );
11926 CPPUNIT_TEST( append_027 ); CPPUNIT_TEST( append_028 );
11927 CPPUNIT_TEST( append_029 ); CPPUNIT_TEST( append_030 );
11928 CPPUNIT_TEST( append_031 ); CPPUNIT_TEST( append_032 );
11929 CPPUNIT_TEST( append_033 ); CPPUNIT_TEST( append_034 );
11930 CPPUNIT_TEST( append_035 ); CPPUNIT_TEST( append_036 );
11931 CPPUNIT_TEST( append_037 ); CPPUNIT_TEST( append_038 );
11932 CPPUNIT_TEST( append_039 ); CPPUNIT_TEST( append_040 );
11933 CPPUNIT_TEST( append_041 ); CPPUNIT_TEST( append_042 );
11934 CPPUNIT_TEST( append_043 ); CPPUNIT_TEST( append_044 );
11935 CPPUNIT_TEST( append_045 ); CPPUNIT_TEST( append_046 );
11936 CPPUNIT_TEST( append_047 ); CPPUNIT_TEST( append_048 );
11937 CPPUNIT_TEST( append_049 ); CPPUNIT_TEST( append_050 );
11938 CPPUNIT_TEST_SUITE_END();
11940 //------------------------------------------------------------------------
11941 // testing the method append( sal_Int64 i, sal_Int16 radix=2 )
11942 // for negative value
11943 // testing the method append( sal_Int64 i, sal_Int16 radix=8 )
11944 // for negative value
11945 // testing the method append( sal_Int64 i, sal_Int16 radix=10 )
11946 // for negative value
11947 // testing the method append( sal_Int64 i, sal_Int16 radix=16 )
11948 // for negative value
11949 // testing the method append( sal_Int64 i, sal_Int16 radix=36 )
11950 // for negative value
11951 //------------------------------------------------------------------------
11952 class append_007_Int64_Negative : public CppUnit::TestFixture
11954 OString* arrOUS[5];
11956 public:
11957 void setUp()
11959 arrOUS[0] = new OString( kTestStr7 );
11960 arrOUS[1] = new OString( );
11961 arrOUS[2] = new OString( kTestStr25 );
11962 arrOUS[3] = new OString( "" );
11963 arrOUS[4] = new OString( kTestStr28 );
11967 void tearDown()
11969 delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
11970 delete arrOUS[3]; delete arrOUS[4];
11973 void append_001()
11975 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
11976 OString expVal( aStrBuf.getStr() );
11977 sal_Int64 input = -0;
11978 sal_Int16 radix = 2;
11980 expVal += OString( "0" );
11981 aStrBuf.append( input, radix );
11983 CPPUNIT_ASSERT_MESSAGE
11985 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
11986 aStrBuf.getStr()== expVal &&
11987 aStrBuf.getLength() == expVal.getLength()
11992 void append_002()
11994 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
11995 OString expVal( aStrBuf.getStr() );
11996 sal_Int64 input = -4;
11997 sal_Int16 radix = 2;
11999 expVal += OString( "-" );
12000 expVal += OString( "100" );
12001 aStrBuf.append( input, radix );
12003 CPPUNIT_ASSERT_MESSAGE
12005 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
12006 aStrBuf.getStr()== expVal &&
12007 aStrBuf.getLength() == expVal.getLength()
12012 void append_003()
12014 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
12015 OString expVal( aStrBuf.getStr() );
12016 sal_Int64 input = -8;
12017 sal_Int16 radix = 2;
12019 expVal += OString( "-" );
12020 expVal += OString( "1000" );
12021 aStrBuf.append( input, radix );
12023 CPPUNIT_ASSERT_MESSAGE
12025 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
12026 aStrBuf.getStr()== expVal &&
12027 aStrBuf.getLength() == expVal.getLength()
12032 void append_004()
12034 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
12035 OString expVal( aStrBuf.getStr() );
12036 sal_Int64 input = -15;
12037 sal_Int16 radix = 2;
12039 expVal += OString( "-" );
12040 expVal += OString( "1111" );
12041 aStrBuf.append( input, radix );
12043 CPPUNIT_ASSERT_MESSAGE
12045 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
12046 aStrBuf.getStr()== expVal &&
12047 aStrBuf.getLength() == expVal.getLength()
12052 void append_005()
12054 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
12055 OString expVal( aStrBuf.getStr() );
12056 sal_Int64 input = -0;
12057 sal_Int16 radix = 8;
12059 expVal += OString( "0" );
12060 aStrBuf.append( input, radix );
12062 CPPUNIT_ASSERT_MESSAGE
12064 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
12065 aStrBuf.getStr()== expVal &&
12066 aStrBuf.getLength() == expVal.getLength()
12071 void append_006()
12073 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
12074 OString expVal( aStrBuf.getStr() );
12075 sal_Int64 input = -4;
12076 sal_Int16 radix = 8;
12078 expVal += OString( "-" );
12079 expVal += OString( "4" );
12080 aStrBuf.append( input, radix );
12082 CPPUNIT_ASSERT_MESSAGE
12084 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
12085 aStrBuf.getStr()== expVal &&
12086 aStrBuf.getLength() == expVal.getLength()
12091 void append_007()
12093 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
12094 OString expVal( aStrBuf.getStr() );
12095 sal_Int64 input = -8;
12096 sal_Int16 radix = 8;
12098 expVal += OString( "-" );
12099 expVal += OString( "10" );
12100 aStrBuf.append( input, radix );
12102 CPPUNIT_ASSERT_MESSAGE
12104 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
12105 aStrBuf.getStr()== expVal &&
12106 aStrBuf.getLength() == expVal.getLength()
12111 void append_008()
12113 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
12114 OString expVal( aStrBuf.getStr() );
12115 sal_Int64 input = -15;
12116 sal_Int16 radix = 8;
12118 expVal += OString( "-" );
12119 expVal += OString( "17" );
12120 aStrBuf.append( input, radix );
12122 CPPUNIT_ASSERT_MESSAGE
12124 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
12125 aStrBuf.getStr()== expVal &&
12126 aStrBuf.getLength() == expVal.getLength()
12131 void append_009()
12133 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
12134 OString expVal( aStrBuf.getStr() );
12135 sal_Int64 input = -0;
12136 sal_Int16 radix = 10;
12138 expVal += OString( "0" );
12139 aStrBuf.append( input, radix );
12141 CPPUNIT_ASSERT_MESSAGE
12143 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
12144 aStrBuf.getStr()== expVal &&
12145 aStrBuf.getLength() == expVal.getLength()
12150 void append_010()
12152 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
12153 OString expVal( aStrBuf.getStr() );
12154 sal_Int64 input = -4;
12155 sal_Int16 radix = 10;
12157 expVal += OString( "-" );
12158 expVal += OString( "4" );
12159 aStrBuf.append( input, radix );
12161 CPPUNIT_ASSERT_MESSAGE
12163 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
12164 aStrBuf.getStr()== expVal &&
12165 aStrBuf.getLength() == expVal.getLength()
12170 void append_011()
12172 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
12173 OString expVal( aStrBuf.getStr() );
12174 sal_Int64 input = -8;
12175 sal_Int16 radix = 10;
12177 expVal += OString( "-" );
12178 expVal += OString( "8" );
12179 aStrBuf.append( input, radix );
12181 CPPUNIT_ASSERT_MESSAGE
12183 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
12184 aStrBuf.getStr()== expVal &&
12185 aStrBuf.getLength() == expVal.getLength()
12190 void append_012()
12192 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
12193 OString expVal( aStrBuf.getStr() );
12194 sal_Int64 input = -15;
12195 sal_Int16 radix = 10;
12197 expVal += OString( "-" );
12198 expVal += OString( "15" );
12199 aStrBuf.append( input, radix );
12201 CPPUNIT_ASSERT_MESSAGE
12203 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
12204 aStrBuf.getStr()== expVal &&
12205 aStrBuf.getLength() == expVal.getLength()
12210 void append_013()
12212 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
12213 OString expVal( aStrBuf.getStr() );
12214 sal_Int64 input = -0;
12215 sal_Int16 radix = 16;
12217 expVal += OString( "0" );
12218 aStrBuf.append( input, radix );
12220 CPPUNIT_ASSERT_MESSAGE
12222 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
12223 aStrBuf.getStr()== expVal &&
12224 aStrBuf.getLength() == expVal.getLength()
12229 void append_014()
12231 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
12232 OString expVal( aStrBuf.getStr() );
12233 sal_Int64 input = -4;
12234 sal_Int16 radix = 16;
12236 expVal += OString( "-" );
12237 expVal += OString( "4" );
12238 aStrBuf.append( input, radix );
12240 CPPUNIT_ASSERT_MESSAGE
12242 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
12243 aStrBuf.getStr()== expVal &&
12244 aStrBuf.getLength() == expVal.getLength()
12249 void append_015()
12251 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
12252 OString expVal( aStrBuf.getStr() );
12253 sal_Int64 input = -8;
12254 sal_Int16 radix = 16;
12256 expVal += OString( "-" );
12257 expVal += OString( "8" );
12258 aStrBuf.append( input, radix );
12260 CPPUNIT_ASSERT_MESSAGE
12262 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
12263 aStrBuf.getStr()== expVal &&
12264 aStrBuf.getLength() == expVal.getLength()
12269 void append_016()
12271 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
12272 OString expVal( aStrBuf.getStr() );
12273 sal_Int64 input = -15;
12274 sal_Int16 radix = 16;
12276 expVal += OString( "-" );
12277 expVal += OString( "f" );
12278 aStrBuf.append( input, radix );
12280 CPPUNIT_ASSERT_MESSAGE
12282 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
12283 aStrBuf.getStr()== expVal &&
12284 aStrBuf.getLength() == expVal.getLength()
12289 void append_017()
12291 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
12292 OString expVal( aStrBuf.getStr() );
12293 sal_Int64 input = -0;
12294 sal_Int16 radix = 36;
12296 expVal += OString( "0" );
12297 aStrBuf.append( input, radix );
12299 CPPUNIT_ASSERT_MESSAGE
12301 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
12302 aStrBuf.getStr()== expVal &&
12303 aStrBuf.getLength() == expVal.getLength()
12308 void append_018()
12310 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
12311 OString expVal( aStrBuf.getStr() );
12312 sal_Int64 input = -4;
12313 sal_Int16 radix = 36;
12315 expVal += OString( "-" );
12316 expVal += OString( "4" );
12317 aStrBuf.append( input, radix );
12319 CPPUNIT_ASSERT_MESSAGE
12321 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
12322 aStrBuf.getStr()== expVal &&
12323 aStrBuf.getLength() == expVal.getLength()
12328 void append_019()
12330 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
12331 OString expVal( aStrBuf.getStr() );
12332 sal_Int64 input = -8;
12333 sal_Int16 radix = 36;
12335 expVal += OString( "-" );
12336 expVal += OString( "8" );
12337 aStrBuf.append( input, radix );
12339 CPPUNIT_ASSERT_MESSAGE
12341 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
12342 aStrBuf.getStr()== expVal &&
12343 aStrBuf.getLength() == expVal.getLength()
12348 void append_020()
12350 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
12351 OString expVal( aStrBuf.getStr() );
12352 sal_Int64 input = -35;
12353 sal_Int16 radix = 36;
12355 expVal += OString( "-" );
12356 expVal += OString( "z" );
12357 aStrBuf.append( input, radix );
12359 CPPUNIT_ASSERT_MESSAGE
12361 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
12362 aStrBuf.getStr()== expVal &&
12363 aStrBuf.getLength() == expVal.getLength()
12368 void append_021()
12370 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
12371 OString expVal( aStrBuf.getStr() );
12372 sal_Int64 input = -0;
12373 sal_Int16 radix = 2;
12375 expVal += OString( "0" );
12376 aStrBuf.append( input, radix );
12378 CPPUNIT_ASSERT_MESSAGE
12380 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
12381 aStrBuf.getStr()== expVal &&
12382 aStrBuf.getLength() == expVal.getLength()
12387 void append_022()
12389 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
12390 OString expVal( aStrBuf.getStr() );
12391 sal_Int64 input = -4;
12392 sal_Int16 radix = 2;
12394 expVal += OString( "-" );
12395 expVal += OString( "100" );
12396 aStrBuf.append( input, radix );
12398 CPPUNIT_ASSERT_MESSAGE
12400 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
12401 aStrBuf.getStr()== expVal &&
12402 aStrBuf.getLength() == expVal.getLength()
12407 void append_023()
12409 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
12410 OString expVal( aStrBuf.getStr() );
12411 sal_Int64 input = -8;
12412 sal_Int16 radix = 2;
12414 expVal += OString( "-" );
12415 expVal += OString( "1000" );
12416 aStrBuf.append( input, radix );
12418 CPPUNIT_ASSERT_MESSAGE
12420 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
12421 aStrBuf.getStr()== expVal &&
12422 aStrBuf.getLength() == expVal.getLength()
12427 void append_024()
12429 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
12430 OString expVal( aStrBuf.getStr() );
12431 sal_Int64 input = -15;
12432 sal_Int16 radix = 2;
12434 expVal += OString( "-" );
12435 expVal += OString( "1111" );
12436 aStrBuf.append( input, radix );
12438 CPPUNIT_ASSERT_MESSAGE
12440 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
12441 aStrBuf.getStr()== expVal &&
12442 aStrBuf.getLength() == expVal.getLength()
12447 void append_025()
12449 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
12450 OString expVal( aStrBuf.getStr() );
12451 sal_Int64 input = -0;
12452 sal_Int16 radix = 8;
12454 expVal += OString( "0" );
12455 aStrBuf.append( input, radix );
12457 CPPUNIT_ASSERT_MESSAGE
12459 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
12460 aStrBuf.getStr()== expVal &&
12461 aStrBuf.getLength() == expVal.getLength()
12466 void append_026()
12468 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
12469 OString expVal( aStrBuf.getStr() );
12470 sal_Int64 input = -4;
12471 sal_Int16 radix = 8;
12473 expVal += OString( "-" );
12474 expVal += OString( "4" );
12475 aStrBuf.append( input, radix );
12477 CPPUNIT_ASSERT_MESSAGE
12479 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
12480 aStrBuf.getStr()== expVal &&
12481 aStrBuf.getLength() == expVal.getLength()
12486 void append_027()
12488 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
12489 OString expVal( aStrBuf.getStr() );
12490 sal_Int64 input = -8;
12491 sal_Int16 radix = 8;
12493 expVal += OString( "-" );
12494 expVal += OString( "10" );
12495 aStrBuf.append( input, radix );
12497 CPPUNIT_ASSERT_MESSAGE
12499 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
12500 aStrBuf.getStr()== expVal &&
12501 aStrBuf.getLength() == expVal.getLength()
12506 void append_028()
12508 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
12509 OString expVal( aStrBuf.getStr() );
12510 sal_Int64 input = -15;
12511 sal_Int16 radix = 8;
12513 expVal += OString( "-" );
12514 expVal += OString( "17" );
12515 aStrBuf.append( input, radix );
12517 CPPUNIT_ASSERT_MESSAGE
12519 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
12520 aStrBuf.getStr()== expVal &&
12521 aStrBuf.getLength() == expVal.getLength()
12526 void append_029()
12528 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
12529 OString expVal( aStrBuf.getStr() );
12530 sal_Int64 input = -0;
12531 sal_Int16 radix = 10;
12533 expVal += OString( "0" );
12534 aStrBuf.append( input, radix );
12536 CPPUNIT_ASSERT_MESSAGE
12538 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
12539 aStrBuf.getStr()== expVal &&
12540 aStrBuf.getLength() == expVal.getLength()
12545 void append_030()
12547 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
12548 OString expVal( aStrBuf.getStr() );
12549 sal_Int64 input = -4;
12550 sal_Int16 radix = 10;
12552 expVal += OString( "-" );
12553 expVal += OString( "4" );
12554 aStrBuf.append( input, radix );
12556 CPPUNIT_ASSERT_MESSAGE
12558 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
12559 aStrBuf.getStr()== expVal &&
12560 aStrBuf.getLength() == expVal.getLength()
12565 void append_031()
12567 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
12568 OString expVal( aStrBuf.getStr() );
12569 sal_Int64 input = -8;
12570 sal_Int16 radix = 10;
12572 expVal += OString( "-" );
12573 expVal += OString( "8" );
12574 aStrBuf.append( input, radix );
12576 CPPUNIT_ASSERT_MESSAGE
12578 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
12579 aStrBuf.getStr()== expVal &&
12580 aStrBuf.getLength() == expVal.getLength()
12585 void append_032()
12587 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
12588 OString expVal( aStrBuf.getStr() );
12589 sal_Int64 input = -15;
12590 sal_Int16 radix = 10;
12592 expVal += OString( "-" );
12593 expVal += OString( "15" );
12594 aStrBuf.append( input, radix );
12596 CPPUNIT_ASSERT_MESSAGE
12598 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
12599 aStrBuf.getStr()== expVal &&
12600 aStrBuf.getLength() == expVal.getLength()
12605 void append_033()
12607 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
12608 OString expVal( aStrBuf.getStr() );
12609 sal_Int64 input = -0;
12610 sal_Int16 radix = 16;
12612 expVal += OString( "0" );
12613 aStrBuf.append( input, radix );
12615 CPPUNIT_ASSERT_MESSAGE
12617 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
12618 aStrBuf.getStr()== expVal &&
12619 aStrBuf.getLength() == expVal.getLength()
12624 void append_034()
12626 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
12627 OString expVal( aStrBuf.getStr() );
12628 sal_Int64 input = -4;
12629 sal_Int16 radix = 16;
12631 expVal += OString( "-" );
12632 expVal += OString( "4" );
12633 aStrBuf.append( input, radix );
12635 CPPUNIT_ASSERT_MESSAGE
12637 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
12638 aStrBuf.getStr()== expVal &&
12639 aStrBuf.getLength() == expVal.getLength()
12644 void append_035()
12646 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
12647 OString expVal( aStrBuf.getStr() );
12648 sal_Int64 input = -8;
12649 sal_Int16 radix = 16;
12651 expVal += OString( "-" );
12652 expVal += OString( "8" );
12653 aStrBuf.append( input, radix );
12655 CPPUNIT_ASSERT_MESSAGE
12657 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
12658 aStrBuf.getStr()== expVal &&
12659 aStrBuf.getLength() == expVal.getLength()
12664 void append_036()
12666 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
12667 OString expVal( aStrBuf.getStr() );
12668 sal_Int64 input = -15;
12669 sal_Int16 radix = 16;
12671 expVal += OString( "-" );
12672 expVal += OString( "f" );
12673 aStrBuf.append( input, radix );
12675 CPPUNIT_ASSERT_MESSAGE
12677 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
12678 aStrBuf.getStr()== expVal &&
12679 aStrBuf.getLength() == expVal.getLength()
12684 void append_037()
12686 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
12687 OString expVal( aStrBuf.getStr() );
12688 sal_Int64 input = -0;
12689 sal_Int16 radix = 36;
12691 expVal += OString( "0" );
12692 aStrBuf.append( input, radix );
12694 CPPUNIT_ASSERT_MESSAGE
12696 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
12697 aStrBuf.getStr()== expVal &&
12698 aStrBuf.getLength() == expVal.getLength()
12703 void append_038()
12705 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
12706 OString expVal( aStrBuf.getStr() );
12707 sal_Int64 input = -4;
12708 sal_Int16 radix = 36;
12710 expVal += OString( "-" );
12711 expVal += OString( "4" );
12712 aStrBuf.append( input, radix );
12714 CPPUNIT_ASSERT_MESSAGE
12716 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
12717 aStrBuf.getStr()== expVal &&
12718 aStrBuf.getLength() == expVal.getLength()
12723 void append_039()
12725 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
12726 OString expVal( aStrBuf.getStr() );
12727 sal_Int64 input = -8;
12728 sal_Int16 radix = 36;
12730 expVal += OString( "-" );
12731 expVal += OString( "8" );
12732 aStrBuf.append( input, radix );
12734 CPPUNIT_ASSERT_MESSAGE
12736 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
12737 aStrBuf.getStr()== expVal &&
12738 aStrBuf.getLength() == expVal.getLength()
12743 void append_040()
12745 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
12746 OString expVal( aStrBuf.getStr() );
12747 sal_Int64 input = -35;
12748 sal_Int16 radix = 36;
12750 expVal += OString( "-" );
12751 expVal += OString( "z" );
12752 aStrBuf.append( input, radix );
12754 CPPUNIT_ASSERT_MESSAGE
12756 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
12757 aStrBuf.getStr()== expVal &&
12758 aStrBuf.getLength() == expVal.getLength()
12763 void append_041()
12765 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
12766 OString expVal( aStrBuf.getStr() );
12767 sal_Int64 input = -0;
12768 sal_Int16 radix = 2;
12770 expVal += OString( "0" );
12771 aStrBuf.append( input, radix );
12773 CPPUNIT_ASSERT_MESSAGE
12775 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
12776 aStrBuf.getStr()== expVal &&
12777 aStrBuf.getLength() == expVal.getLength()
12782 void append_042()
12784 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
12785 OString expVal( aStrBuf.getStr() );
12786 sal_Int64 input = -4;
12787 sal_Int16 radix = 2;
12789 expVal += OString( "-" );
12790 expVal += OString( "100" );
12791 aStrBuf.append( input, radix );
12793 CPPUNIT_ASSERT_MESSAGE
12795 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
12796 aStrBuf.getStr()== expVal &&
12797 aStrBuf.getLength() == expVal.getLength()
12802 void append_043()
12804 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
12805 OString expVal( aStrBuf.getStr() );
12806 sal_Int64 input = -8;
12807 sal_Int16 radix = 2;
12809 expVal += OString( "-" );
12810 expVal += OString( "1000" );
12811 aStrBuf.append( input, radix );
12813 CPPUNIT_ASSERT_MESSAGE
12815 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
12816 aStrBuf.getStr()== expVal &&
12817 aStrBuf.getLength() == expVal.getLength()
12822 void append_044()
12824 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
12825 OString expVal( aStrBuf.getStr() );
12826 sal_Int64 input = -15;
12827 sal_Int16 radix = 2;
12829 expVal += OString( "-" );
12830 expVal += OString( "1111" );
12831 aStrBuf.append( input, radix );
12833 CPPUNIT_ASSERT_MESSAGE
12835 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
12836 aStrBuf.getStr()== expVal &&
12837 aStrBuf.getLength() == expVal.getLength()
12842 void append_045()
12844 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
12845 OString expVal( aStrBuf.getStr() );
12846 sal_Int64 input = -0;
12847 sal_Int16 radix = 8;
12849 expVal += OString( "0" );
12850 aStrBuf.append( input, radix );
12852 CPPUNIT_ASSERT_MESSAGE
12854 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
12855 aStrBuf.getStr()== expVal &&
12856 aStrBuf.getLength() == expVal.getLength()
12861 void append_046()
12863 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
12864 OString expVal( aStrBuf.getStr() );
12865 sal_Int64 input = -4;
12866 sal_Int16 radix = 8;
12868 expVal += OString( "-" );
12869 expVal += OString( "4" );
12870 aStrBuf.append( input, radix );
12872 CPPUNIT_ASSERT_MESSAGE
12874 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
12875 aStrBuf.getStr()== expVal &&
12876 aStrBuf.getLength() == expVal.getLength()
12881 void append_047()
12883 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
12884 OString expVal( aStrBuf.getStr() );
12885 sal_Int64 input = -8;
12886 sal_Int16 radix = 8;
12888 expVal += OString( "-" );
12889 expVal += OString( "10" );
12890 aStrBuf.append( input, radix );
12892 CPPUNIT_ASSERT_MESSAGE
12894 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
12895 aStrBuf.getStr()== expVal &&
12896 aStrBuf.getLength() == expVal.getLength()
12901 void append_048()
12903 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
12904 OString expVal( aStrBuf.getStr() );
12905 sal_Int64 input = -15;
12906 sal_Int16 radix = 8;
12908 expVal += OString( "-" );
12909 expVal += OString( "17" );
12910 aStrBuf.append( input, radix );
12912 CPPUNIT_ASSERT_MESSAGE
12914 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
12915 aStrBuf.getStr()== expVal &&
12916 aStrBuf.getLength() == expVal.getLength()
12921 void append_049()
12923 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
12924 OString expVal( aStrBuf.getStr() );
12925 sal_Int64 input = -0;
12926 sal_Int16 radix = 10;
12928 expVal += OString( "0" );
12929 aStrBuf.append( input, radix );
12931 CPPUNIT_ASSERT_MESSAGE
12933 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
12934 aStrBuf.getStr()== expVal &&
12935 aStrBuf.getLength() == expVal.getLength()
12940 void append_050()
12942 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
12943 OString expVal( aStrBuf.getStr() );
12944 sal_Int64 input = -4;
12945 sal_Int16 radix = 10;
12947 expVal += OString( "-" );
12948 expVal += OString( "4" );
12949 aStrBuf.append( input, radix );
12951 CPPUNIT_ASSERT_MESSAGE
12953 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
12954 aStrBuf.getStr()== expVal &&
12955 aStrBuf.getLength() == expVal.getLength()
12960 void append_051()
12962 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
12963 OString expVal( aStrBuf.getStr() );
12964 sal_Int64 input = -8;
12965 sal_Int16 radix = 10;
12967 expVal += OString( "-" );
12968 expVal += OString( "8" );
12969 aStrBuf.append( input, radix );
12971 CPPUNIT_ASSERT_MESSAGE
12973 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
12974 aStrBuf.getStr()== expVal &&
12975 aStrBuf.getLength() == expVal.getLength()
12980 void append_052()
12982 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
12983 OString expVal( aStrBuf.getStr() );
12984 sal_Int64 input = -15;
12985 sal_Int16 radix = 10;
12987 expVal += OString( "-" );
12988 expVal += OString( "15" );
12989 aStrBuf.append( input, radix );
12991 CPPUNIT_ASSERT_MESSAGE
12993 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
12994 aStrBuf.getStr()== expVal &&
12995 aStrBuf.getLength() == expVal.getLength()
13000 void append_053()
13002 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
13003 OString expVal( aStrBuf.getStr() );
13004 sal_Int64 input = -0;
13005 sal_Int16 radix = 16;
13007 expVal += OString( "0" );
13008 aStrBuf.append( input, radix );
13010 CPPUNIT_ASSERT_MESSAGE
13012 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
13013 aStrBuf.getStr()== expVal &&
13014 aStrBuf.getLength() == expVal.getLength()
13019 void append_054()
13021 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
13022 OString expVal( aStrBuf.getStr() );
13023 sal_Int64 input = -4;
13024 sal_Int16 radix = 16;
13026 expVal += OString( "-" );
13027 expVal += OString( "4" );
13028 aStrBuf.append( input, radix );
13030 CPPUNIT_ASSERT_MESSAGE
13032 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
13033 aStrBuf.getStr()== expVal &&
13034 aStrBuf.getLength() == expVal.getLength()
13039 void append_055()
13041 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
13042 OString expVal( aStrBuf.getStr() );
13043 sal_Int64 input = -8;
13044 sal_Int16 radix = 16;
13046 expVal += OString( "-" );
13047 expVal += OString( "8" );
13048 aStrBuf.append( input, radix );
13050 CPPUNIT_ASSERT_MESSAGE
13052 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
13053 aStrBuf.getStr()== expVal &&
13054 aStrBuf.getLength() == expVal.getLength()
13059 void append_056()
13061 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
13062 OString expVal( aStrBuf.getStr() );
13063 sal_Int64 input = -15;
13064 sal_Int16 radix = 16;
13066 expVal += OString( "-" );
13067 expVal += OString( "f" );
13068 aStrBuf.append( input, radix );
13070 CPPUNIT_ASSERT_MESSAGE
13072 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
13073 aStrBuf.getStr()== expVal &&
13074 aStrBuf.getLength() == expVal.getLength()
13079 void append_057()
13081 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
13082 OString expVal( aStrBuf.getStr() );
13083 sal_Int64 input = -0;
13084 sal_Int16 radix = 36;
13086 expVal += OString( "0" );
13087 aStrBuf.append( input, radix );
13089 CPPUNIT_ASSERT_MESSAGE
13091 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
13092 aStrBuf.getStr()== expVal &&
13093 aStrBuf.getLength() == expVal.getLength()
13098 void append_058()
13100 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
13101 OString expVal( aStrBuf.getStr() );
13102 sal_Int64 input = -4;
13103 sal_Int16 radix = 36;
13105 expVal += OString( "-" );
13106 expVal += OString( "4" );
13107 aStrBuf.append( input, radix );
13109 CPPUNIT_ASSERT_MESSAGE
13111 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
13112 aStrBuf.getStr()== expVal &&
13113 aStrBuf.getLength() == expVal.getLength()
13118 void append_059()
13120 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
13121 OString expVal( aStrBuf.getStr() );
13122 sal_Int64 input = -8;
13123 sal_Int16 radix = 36;
13125 expVal += OString( "-" );
13126 expVal += OString( "8" );
13127 aStrBuf.append( input, radix );
13129 CPPUNIT_ASSERT_MESSAGE
13131 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
13132 aStrBuf.getStr()== expVal &&
13133 aStrBuf.getLength() == expVal.getLength()
13138 void append_060()
13140 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
13141 OString expVal( aStrBuf.getStr() );
13142 sal_Int64 input = -35;
13143 sal_Int16 radix = 36;
13145 expVal += OString( "-" );
13146 expVal += OString( "z" );
13147 aStrBuf.append( input, radix );
13149 CPPUNIT_ASSERT_MESSAGE
13151 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
13152 aStrBuf.getStr()== expVal &&
13153 aStrBuf.getLength() == expVal.getLength()
13158 void append_061()
13160 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
13161 OString expVal( aStrBuf.getStr() );
13162 sal_Int64 input = -0;
13163 sal_Int16 radix = 2;
13165 expVal += OString( "0" );
13166 aStrBuf.append( input, radix );
13168 CPPUNIT_ASSERT_MESSAGE
13170 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
13171 aStrBuf.getStr()== expVal &&
13172 aStrBuf.getLength() == expVal.getLength()
13177 void append_062()
13179 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
13180 OString expVal( aStrBuf.getStr() );
13181 sal_Int64 input = -4;
13182 sal_Int16 radix = 2;
13184 expVal += OString( "-" );
13185 expVal += OString( "100" );
13186 aStrBuf.append( input, radix );
13188 CPPUNIT_ASSERT_MESSAGE
13190 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
13191 aStrBuf.getStr()== expVal &&
13192 aStrBuf.getLength() == expVal.getLength()
13197 void append_063()
13199 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
13200 OString expVal( aStrBuf.getStr() );
13201 sal_Int64 input = -8;
13202 sal_Int16 radix = 2;
13204 expVal += OString( "-" );
13205 expVal += OString( "1000" );
13206 aStrBuf.append( input, radix );
13208 CPPUNIT_ASSERT_MESSAGE
13210 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
13211 aStrBuf.getStr()== expVal &&
13212 aStrBuf.getLength() == expVal.getLength()
13217 void append_064()
13219 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
13220 OString expVal( aStrBuf.getStr() );
13221 sal_Int64 input = -15;
13222 sal_Int16 radix = 2;
13224 expVal += OString( "-" );
13225 expVal += OString( "1111" );
13226 aStrBuf.append( input, radix );
13228 CPPUNIT_ASSERT_MESSAGE
13230 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
13231 aStrBuf.getStr()== expVal &&
13232 aStrBuf.getLength() == expVal.getLength()
13237 void append_065()
13239 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
13240 OString expVal( aStrBuf.getStr() );
13241 sal_Int64 input = -0;
13242 sal_Int16 radix = 8;
13244 expVal += OString( "0" );
13245 aStrBuf.append( input, radix );
13247 CPPUNIT_ASSERT_MESSAGE
13249 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
13250 aStrBuf.getStr()== expVal &&
13251 aStrBuf.getLength() == expVal.getLength()
13256 void append_066()
13258 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
13259 OString expVal( aStrBuf.getStr() );
13260 sal_Int64 input = -4;
13261 sal_Int16 radix = 8;
13263 expVal += OString( "-" );
13264 expVal += OString( "4" );
13265 aStrBuf.append( input, radix );
13267 CPPUNIT_ASSERT_MESSAGE
13269 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
13270 aStrBuf.getStr()== expVal &&
13271 aStrBuf.getLength() == expVal.getLength()
13276 void append_067()
13278 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
13279 OString expVal( aStrBuf.getStr() );
13280 sal_Int64 input = -8;
13281 sal_Int16 radix = 8;
13283 expVal += OString( "-" );
13284 expVal += OString( "10" );
13285 aStrBuf.append( input, radix );
13287 CPPUNIT_ASSERT_MESSAGE
13289 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
13290 aStrBuf.getStr()== expVal &&
13291 aStrBuf.getLength() == expVal.getLength()
13296 void append_068()
13298 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
13299 OString expVal( aStrBuf.getStr() );
13300 sal_Int64 input = -15;
13301 sal_Int16 radix = 8;
13303 expVal += OString( "-" );
13304 expVal += OString( "17" );
13305 aStrBuf.append( input, radix );
13307 CPPUNIT_ASSERT_MESSAGE
13309 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
13310 aStrBuf.getStr()== expVal &&
13311 aStrBuf.getLength() == expVal.getLength()
13316 void append_069()
13318 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
13319 OString expVal( aStrBuf.getStr() );
13320 sal_Int64 input = -0;
13321 sal_Int16 radix = 10;
13323 expVal += OString( "0" );
13324 aStrBuf.append( input, radix );
13326 CPPUNIT_ASSERT_MESSAGE
13328 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
13329 aStrBuf.getStr()== expVal &&
13330 aStrBuf.getLength() == expVal.getLength()
13335 void append_070()
13337 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
13338 OString expVal( aStrBuf.getStr() );
13339 sal_Int64 input = -4;
13340 sal_Int16 radix = 10;
13342 expVal += OString( "-" );
13343 expVal += OString( "4" );
13344 aStrBuf.append( input, radix );
13346 CPPUNIT_ASSERT_MESSAGE
13348 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
13349 aStrBuf.getStr()== expVal &&
13350 aStrBuf.getLength() == expVal.getLength()
13355 void append_071()
13357 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
13358 OString expVal( aStrBuf.getStr() );
13359 sal_Int64 input = -8;
13360 sal_Int16 radix = 10;
13362 expVal += OString( "-" );
13363 expVal += OString( "8" );
13364 aStrBuf.append( input, radix );
13366 CPPUNIT_ASSERT_MESSAGE
13368 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
13369 aStrBuf.getStr()== expVal &&
13370 aStrBuf.getLength() == expVal.getLength()
13375 void append_072()
13377 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
13378 OString expVal( aStrBuf.getStr() );
13379 sal_Int64 input = -15;
13380 sal_Int16 radix = 10;
13382 expVal += OString( "-" );
13383 expVal += OString( "15" );
13384 aStrBuf.append( input, radix );
13386 CPPUNIT_ASSERT_MESSAGE
13388 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
13389 aStrBuf.getStr()== expVal &&
13390 aStrBuf.getLength() == expVal.getLength()
13395 void append_073()
13397 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
13398 OString expVal( aStrBuf.getStr() );
13399 sal_Int64 input = -0;
13400 sal_Int16 radix = 16;
13402 expVal += OString( "0" );
13403 aStrBuf.append( input, radix );
13405 CPPUNIT_ASSERT_MESSAGE
13407 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
13408 aStrBuf.getStr()== expVal &&
13409 aStrBuf.getLength() == expVal.getLength()
13414 void append_074()
13416 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
13417 OString expVal( aStrBuf.getStr() );
13418 sal_Int64 input = -4;
13419 sal_Int16 radix = 16;
13421 expVal += OString( "-" );
13422 expVal += OString( "4" );
13423 aStrBuf.append( input, radix );
13425 CPPUNIT_ASSERT_MESSAGE
13427 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
13428 aStrBuf.getStr()== expVal &&
13429 aStrBuf.getLength() == expVal.getLength()
13434 void append_075()
13436 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
13437 OString expVal( aStrBuf.getStr() );
13438 sal_Int64 input = -8;
13439 sal_Int16 radix = 16;
13441 expVal += OString( "-" );
13442 expVal += OString( "8" );
13443 aStrBuf.append( input, radix );
13445 CPPUNIT_ASSERT_MESSAGE
13447 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
13448 aStrBuf.getStr()== expVal &&
13449 aStrBuf.getLength() == expVal.getLength()
13454 void append_076()
13456 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
13457 OString expVal( aStrBuf.getStr() );
13458 sal_Int64 input = -15;
13459 sal_Int16 radix = 16;
13461 expVal += OString( "-" );
13462 expVal += OString( "f" );
13463 aStrBuf.append( input, radix );
13465 CPPUNIT_ASSERT_MESSAGE
13467 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
13468 aStrBuf.getStr()== expVal &&
13469 aStrBuf.getLength() == expVal.getLength()
13474 void append_077()
13476 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
13477 OString expVal( aStrBuf.getStr() );
13478 sal_Int64 input = -0;
13479 sal_Int16 radix = 36;
13481 expVal += OString( "0" );
13482 aStrBuf.append( input, radix );
13484 CPPUNIT_ASSERT_MESSAGE
13486 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
13487 aStrBuf.getStr()== expVal &&
13488 aStrBuf.getLength() == expVal.getLength()
13493 void append_078()
13495 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
13496 OString expVal( aStrBuf.getStr() );
13497 sal_Int64 input = -4;
13498 sal_Int16 radix = 36;
13500 expVal += OString( "-" );
13501 expVal += OString( "4" );
13502 aStrBuf.append( input, radix );
13504 CPPUNIT_ASSERT_MESSAGE
13506 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
13507 aStrBuf.getStr()== expVal &&
13508 aStrBuf.getLength() == expVal.getLength()
13513 void append_079()
13515 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
13516 OString expVal( aStrBuf.getStr() );
13517 sal_Int64 input = -8;
13518 sal_Int16 radix = 36;
13520 expVal += OString( "-" );
13521 expVal += OString( "8" );
13522 aStrBuf.append( input, radix );
13524 CPPUNIT_ASSERT_MESSAGE
13526 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
13527 aStrBuf.getStr()== expVal &&
13528 aStrBuf.getLength() == expVal.getLength()
13533 void append_080()
13535 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
13536 OString expVal( aStrBuf.getStr() );
13537 sal_Int64 input = -35;
13538 sal_Int16 radix = 36;
13540 expVal += OString( "-" );
13541 expVal += OString( "z" );
13542 aStrBuf.append( input, radix );
13544 CPPUNIT_ASSERT_MESSAGE
13546 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
13547 aStrBuf.getStr()== expVal &&
13548 aStrBuf.getLength() == expVal.getLength()
13553 void append_081()
13555 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
13556 OString expVal( aStrBuf.getStr() );
13557 sal_Int64 input = -0;
13558 sal_Int16 radix = 2;
13560 expVal += OString( "0" );
13561 aStrBuf.append( input, radix );
13563 CPPUNIT_ASSERT_MESSAGE
13565 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
13566 aStrBuf.getStr()== expVal &&
13567 aStrBuf.getLength() == expVal.getLength()
13572 void append_082()
13574 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
13575 OString expVal( aStrBuf.getStr() );
13576 sal_Int64 input = -4;
13577 sal_Int16 radix = 2;
13579 expVal += OString( "-" );
13580 expVal += OString( "100" );
13581 aStrBuf.append( input, radix );
13583 CPPUNIT_ASSERT_MESSAGE
13585 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
13586 aStrBuf.getStr()== expVal &&
13587 aStrBuf.getLength() == expVal.getLength()
13592 void append_083()
13594 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
13595 OString expVal( aStrBuf.getStr() );
13596 sal_Int64 input = -8;
13597 sal_Int16 radix = 2;
13599 expVal += OString( "-" );
13600 expVal += OString( "1000" );
13601 aStrBuf.append( input, radix );
13603 CPPUNIT_ASSERT_MESSAGE
13605 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
13606 aStrBuf.getStr()== expVal &&
13607 aStrBuf.getLength() == expVal.getLength()
13612 void append_084()
13614 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
13615 OString expVal( aStrBuf.getStr() );
13616 sal_Int64 input = -15;
13617 sal_Int16 radix = 2;
13619 expVal += OString( "-" );
13620 expVal += OString( "1111" );
13621 aStrBuf.append( input, radix );
13623 CPPUNIT_ASSERT_MESSAGE
13625 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
13626 aStrBuf.getStr()== expVal &&
13627 aStrBuf.getLength() == expVal.getLength()
13632 void append_085()
13634 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
13635 OString expVal( aStrBuf.getStr() );
13636 sal_Int64 input = -0;
13637 sal_Int16 radix = 8;
13639 expVal += OString( "0" );
13640 aStrBuf.append( input, radix );
13642 CPPUNIT_ASSERT_MESSAGE
13644 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
13645 aStrBuf.getStr()== expVal &&
13646 aStrBuf.getLength() == expVal.getLength()
13651 void append_086()
13653 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
13654 OString expVal( aStrBuf.getStr() );
13655 sal_Int64 input = -4;
13656 sal_Int16 radix = 8;
13658 expVal += OString( "-" );
13659 expVal += OString( "4" );
13660 aStrBuf.append( input, radix );
13662 CPPUNIT_ASSERT_MESSAGE
13664 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
13665 aStrBuf.getStr()== expVal &&
13666 aStrBuf.getLength() == expVal.getLength()
13671 void append_087()
13673 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
13674 OString expVal( aStrBuf.getStr() );
13675 sal_Int64 input = -8;
13676 sal_Int16 radix = 8;
13678 expVal += OString( "-" );
13679 expVal += OString( "10" );
13680 aStrBuf.append( input, radix );
13682 CPPUNIT_ASSERT_MESSAGE
13684 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
13685 aStrBuf.getStr()== expVal &&
13686 aStrBuf.getLength() == expVal.getLength()
13691 void append_088()
13693 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
13694 OString expVal( aStrBuf.getStr() );
13695 sal_Int64 input = -15;
13696 sal_Int16 radix = 8;
13698 expVal += OString( "-" );
13699 expVal += OString( "17" );
13700 aStrBuf.append( input, radix );
13702 CPPUNIT_ASSERT_MESSAGE
13704 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
13705 aStrBuf.getStr()== expVal &&
13706 aStrBuf.getLength() == expVal.getLength()
13711 void append_089()
13713 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
13714 OString expVal( aStrBuf.getStr() );
13715 sal_Int64 input = -0;
13716 sal_Int16 radix = 10;
13718 expVal += OString( "0" );
13719 aStrBuf.append( input, radix );
13721 CPPUNIT_ASSERT_MESSAGE
13723 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
13724 aStrBuf.getStr()== expVal &&
13725 aStrBuf.getLength() == expVal.getLength()
13730 void append_090()
13732 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
13733 OString expVal( aStrBuf.getStr() );
13734 sal_Int64 input = -4;
13735 sal_Int16 radix = 10;
13737 expVal += OString( "-" );
13738 expVal += OString( "4" );
13739 aStrBuf.append( input, radix );
13741 CPPUNIT_ASSERT_MESSAGE
13743 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
13744 aStrBuf.getStr()== expVal &&
13745 aStrBuf.getLength() == expVal.getLength()
13750 void append_091()
13752 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
13753 OString expVal( aStrBuf.getStr() );
13754 sal_Int64 input = -8;
13755 sal_Int16 radix = 10;
13757 expVal += OString( "-" );
13758 expVal += OString( "8" );
13759 aStrBuf.append( input, radix );
13761 CPPUNIT_ASSERT_MESSAGE
13763 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
13764 aStrBuf.getStr()== expVal &&
13765 aStrBuf.getLength() == expVal.getLength()
13770 void append_092()
13772 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
13773 OString expVal( aStrBuf.getStr() );
13774 sal_Int64 input = -15;
13775 sal_Int16 radix = 10;
13777 expVal += OString( "-" );
13778 expVal += OString( "15" );
13779 aStrBuf.append( input, radix );
13781 CPPUNIT_ASSERT_MESSAGE
13783 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
13784 aStrBuf.getStr()== expVal &&
13785 aStrBuf.getLength() == expVal.getLength()
13790 void append_093()
13792 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
13793 OString expVal( aStrBuf.getStr() );
13794 sal_Int64 input = -0;
13795 sal_Int16 radix = 16;
13797 expVal += OString( "0" );
13798 aStrBuf.append( input, radix );
13800 CPPUNIT_ASSERT_MESSAGE
13802 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
13803 aStrBuf.getStr()== expVal &&
13804 aStrBuf.getLength() == expVal.getLength()
13809 void append_094()
13811 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
13812 OString expVal( aStrBuf.getStr() );
13813 sal_Int64 input = -4;
13814 sal_Int16 radix = 16;
13816 expVal += OString( "-" );
13817 expVal += OString( "4" );
13818 aStrBuf.append( input, radix );
13820 CPPUNIT_ASSERT_MESSAGE
13822 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
13823 aStrBuf.getStr()== expVal &&
13824 aStrBuf.getLength() == expVal.getLength()
13829 void append_095()
13831 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
13832 OString expVal( aStrBuf.getStr() );
13833 sal_Int64 input = -8;
13834 sal_Int16 radix = 16;
13836 expVal += OString( "-" );
13837 expVal += OString( "8" );
13838 aStrBuf.append( input, radix );
13840 CPPUNIT_ASSERT_MESSAGE
13842 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
13843 aStrBuf.getStr()== expVal &&
13844 aStrBuf.getLength() == expVal.getLength()
13849 void append_096()
13851 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
13852 OString expVal( aStrBuf.getStr() );
13853 sal_Int64 input = -15;
13854 sal_Int16 radix = 16;
13856 expVal += OString( "-" );
13857 expVal += OString( "f" );
13858 aStrBuf.append( input, radix );
13860 CPPUNIT_ASSERT_MESSAGE
13862 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
13863 aStrBuf.getStr()== expVal &&
13864 aStrBuf.getLength() == expVal.getLength()
13869 void append_097()
13871 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
13872 OString expVal( aStrBuf.getStr() );
13873 sal_Int64 input = -0;
13874 sal_Int16 radix = 36;
13876 expVal += OString( "0" );
13877 aStrBuf.append( input, radix );
13879 CPPUNIT_ASSERT_MESSAGE
13881 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
13882 aStrBuf.getStr()== expVal &&
13883 aStrBuf.getLength() == expVal.getLength()
13888 void append_098()
13890 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
13891 OString expVal( aStrBuf.getStr() );
13892 sal_Int64 input = -4;
13893 sal_Int16 radix = 36;
13895 expVal += OString( "-" );
13896 expVal += OString( "4" );
13897 aStrBuf.append( input, radix );
13899 CPPUNIT_ASSERT_MESSAGE
13901 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
13902 aStrBuf.getStr()== expVal &&
13903 aStrBuf.getLength() == expVal.getLength()
13908 void append_099()
13910 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
13911 OString expVal( aStrBuf.getStr() );
13912 sal_Int64 input = -8;
13913 sal_Int16 radix = 36;
13915 expVal += OString( "-" );
13916 expVal += OString( "8" );
13917 aStrBuf.append( input, radix );
13919 CPPUNIT_ASSERT_MESSAGE
13921 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
13922 aStrBuf.getStr()== expVal &&
13923 aStrBuf.getLength() == expVal.getLength()
13928 void append_100()
13930 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
13931 OString expVal( aStrBuf.getStr() );
13932 sal_Int64 input = -35;
13933 sal_Int16 radix = 36;
13935 expVal += OString( "-" );
13936 expVal += OString( "z" );
13937 aStrBuf.append( input, radix );
13939 CPPUNIT_ASSERT_MESSAGE
13941 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
13942 aStrBuf.getStr()== expVal &&
13943 aStrBuf.getLength() == expVal.getLength()
13948 CPPUNIT_TEST_SUITE( append_007_Int64_Negative );
13949 CPPUNIT_TEST( append_001 ); CPPUNIT_TEST( append_002 );
13950 CPPUNIT_TEST( append_003 ); CPPUNIT_TEST( append_004 );
13951 CPPUNIT_TEST( append_005 ); CPPUNIT_TEST( append_006 );
13952 CPPUNIT_TEST( append_007 ); CPPUNIT_TEST( append_008 );
13953 CPPUNIT_TEST( append_009 ); CPPUNIT_TEST( append_010 );
13954 CPPUNIT_TEST( append_011 ); CPPUNIT_TEST( append_012 );
13955 CPPUNIT_TEST( append_013 ); CPPUNIT_TEST( append_014 );
13956 CPPUNIT_TEST( append_015 ); CPPUNIT_TEST( append_016 );
13957 CPPUNIT_TEST( append_017 ); CPPUNIT_TEST( append_018 );
13958 CPPUNIT_TEST( append_019 ); CPPUNIT_TEST( append_020 );
13959 CPPUNIT_TEST( append_021 ); CPPUNIT_TEST( append_022 );
13960 CPPUNIT_TEST( append_023 ); CPPUNIT_TEST( append_024 );
13961 CPPUNIT_TEST( append_025 ); CPPUNIT_TEST( append_026 );
13962 CPPUNIT_TEST( append_027 ); CPPUNIT_TEST( append_028 );
13963 CPPUNIT_TEST( append_029 ); CPPUNIT_TEST( append_030 );
13964 CPPUNIT_TEST( append_031 ); CPPUNIT_TEST( append_032 );
13965 CPPUNIT_TEST( append_033 ); CPPUNIT_TEST( append_034 );
13966 CPPUNIT_TEST( append_035 ); CPPUNIT_TEST( append_036 );
13967 CPPUNIT_TEST( append_037 ); CPPUNIT_TEST( append_038 );
13968 CPPUNIT_TEST( append_039 ); CPPUNIT_TEST( append_040 );
13969 CPPUNIT_TEST( append_041 ); CPPUNIT_TEST( append_042 );
13970 CPPUNIT_TEST( append_043 ); CPPUNIT_TEST( append_044 );
13971 CPPUNIT_TEST( append_045 ); CPPUNIT_TEST( append_046 );
13972 CPPUNIT_TEST( append_047 ); CPPUNIT_TEST( append_048 );
13973 CPPUNIT_TEST( append_049 ); CPPUNIT_TEST( append_050 );
13974 CPPUNIT_TEST( append_051 ); CPPUNIT_TEST( append_052 );
13975 CPPUNIT_TEST( append_053 ); CPPUNIT_TEST( append_054 );
13976 CPPUNIT_TEST( append_055 ); CPPUNIT_TEST( append_056 );
13977 CPPUNIT_TEST( append_057 ); CPPUNIT_TEST( append_058 );
13978 CPPUNIT_TEST( append_059 ); CPPUNIT_TEST( append_060 );
13979 CPPUNIT_TEST( append_061 ); CPPUNIT_TEST( append_062 );
13980 CPPUNIT_TEST( append_063 ); CPPUNIT_TEST( append_064 );
13981 CPPUNIT_TEST( append_065 ); CPPUNIT_TEST( append_066 );
13982 CPPUNIT_TEST( append_067 ); CPPUNIT_TEST( append_068 );
13983 CPPUNIT_TEST( append_069 ); CPPUNIT_TEST( append_070 );
13984 CPPUNIT_TEST( append_071 ); CPPUNIT_TEST( append_072 );
13985 CPPUNIT_TEST( append_073 ); CPPUNIT_TEST( append_074 );
13986 CPPUNIT_TEST( append_075 ); CPPUNIT_TEST( append_076 );
13987 CPPUNIT_TEST( append_077 ); CPPUNIT_TEST( append_078 );
13988 CPPUNIT_TEST( append_079 ); CPPUNIT_TEST( append_080 );
13989 CPPUNIT_TEST( append_081 ); CPPUNIT_TEST( append_082 );
13990 CPPUNIT_TEST( append_083 ); CPPUNIT_TEST( append_084 );
13991 CPPUNIT_TEST( append_085 ); CPPUNIT_TEST( append_086 );
13992 CPPUNIT_TEST( append_087 ); CPPUNIT_TEST( append_088 );
13993 CPPUNIT_TEST( append_089 ); CPPUNIT_TEST( append_090 );
13994 CPPUNIT_TEST( append_091 ); CPPUNIT_TEST( append_092 );
13995 CPPUNIT_TEST( append_093 ); CPPUNIT_TEST( append_094 );
13996 CPPUNIT_TEST( append_095 ); CPPUNIT_TEST( append_096 );
13997 CPPUNIT_TEST( append_097 ); CPPUNIT_TEST( append_098 );
13998 CPPUNIT_TEST( append_099 ); CPPUNIT_TEST( append_100 );
13999 CPPUNIT_TEST_SUITE_END();
14001 //------------------------------------------------------------------------
14002 // testing the method append( sal_Int64 i, sal_Int16 radix ) where radix = -5
14003 //------------------------------------------------------------------------
14004 class append_007_Int64_WrongRadix : public CppUnit::TestFixture
14006 OString* arrOUS[5];
14007 sal_Int64 intVal;
14009 public:
14010 void setUp()
14012 arrOUS[0] = new OString( kTestStr7 );
14013 arrOUS[1] = new OString( );
14014 arrOUS[2] = new OString( kTestStr25 );
14015 arrOUS[3] = new OString( "" );
14016 arrOUS[4] = new OString( kTestStr28 );
14017 intVal = 11;
14021 void tearDown()
14023 delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
14024 delete arrOUS[3]; delete arrOUS[4];
14027 void append_001()
14029 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
14030 OString expVal( kTestStr59 );
14032 aStrBuf.append( intVal, -5 );
14035 CPPUNIT_ASSERT_MESSAGE
14037 "Appends the WrongRadix to the string buffer arrOUS[0]",
14038 (aStrBuf.toString() == expVal &&
14039 aStrBuf.getLength() == expVal.getLength())
14043 void append_002()
14045 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
14046 OString expVal( kTestStr60 );
14048 aStrBuf.append( intVal, -5 );
14050 CPPUNIT_ASSERT_MESSAGE
14052 "Appends the WrongRadix to the string buffer arrOUS[1]",
14053 (aStrBuf.toString() == expVal &&
14054 aStrBuf.getLength() == expVal.getLength())
14058 void append_003()
14060 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
14061 OString expVal( kTestStr60 );
14063 aStrBuf.append( intVal, -5 );
14065 CPPUNIT_ASSERT_MESSAGE
14067 "Appends the WrongRadix to the string buffer arrOUS[2]",
14068 (aStrBuf.toString() == expVal &&
14069 aStrBuf.getLength() == expVal.getLength())
14073 void append_004()
14075 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
14076 OString expVal( kTestStr60 );
14078 aStrBuf.append( intVal, -5 );
14080 CPPUNIT_ASSERT_MESSAGE
14082 "Appends the WrongRadix to the string buffer arrOUS[3]",
14083 (aStrBuf.toString() == expVal &&
14084 aStrBuf.getLength() == expVal.getLength())
14088 void append_005()
14090 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
14091 OString expVal( kTestStr61 );
14093 aStrBuf.append( intVal, -5 );
14095 CPPUNIT_ASSERT_MESSAGE
14097 "Appends the WrongRadix to the string buffer arrOUS[4]",
14098 (aStrBuf.toString() == expVal &&
14099 aStrBuf.getLength() == expVal.getLength())
14102 #ifdef WITH_CORE
14103 void append_006()
14105 ::rtl::OStringBuffer aStrBuf( kSInt64Max );
14106 OString expVal( kTestStr60 );
14108 aStrBuf.append( intVal, -5 );
14110 CPPUNIT_ASSERT_MESSAGE
14112 "Appends the WrongRadix to the string buffer(with INT_MAX)",
14113 (aStrBuf.toString() == expVal &&
14114 aStrBuf.getLength() == expVal.getLength())
14117 #endif
14119 CPPUNIT_TEST_SUITE( append_007_Int64_WrongRadix );
14120 CPPUNIT_TEST( append_001 );
14121 CPPUNIT_TEST( append_002 );
14122 CPPUNIT_TEST( append_003 );
14123 CPPUNIT_TEST( append_004 );
14124 CPPUNIT_TEST( append_005 );
14125 #ifdef WITH_CORE
14126 CPPUNIT_TEST( append_006 );
14127 #endif
14128 CPPUNIT_TEST_SUITE_END();
14130 //------------------------------------------------------------------------
14131 class append_007_Int64_defaultParam : public CppUnit::TestFixture
14133 OString* arrOUS[5];
14135 public:
14136 void setUp()
14138 arrOUS[0] = new OString( kTestStr7 );
14139 arrOUS[1] = new OString( );
14140 arrOUS[2] = new OString( kTestStr25 );
14141 arrOUS[3] = new OString( "" );
14142 arrOUS[4] = new OString( kTestStr28 );
14146 void tearDown()
14148 delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
14149 delete arrOUS[3]; delete arrOUS[4];
14152 void append_001()
14154 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
14155 OString expVal( kTestStr59 );
14156 sal_Int64 input = 11;
14158 aStrBuf.append( input );
14160 CPPUNIT_ASSERT_MESSAGE
14162 "input Int64 11 and return OStringBuffer[0]+11",
14163 (aStrBuf.toString() == expVal &&
14164 aStrBuf.getLength() == expVal.getLength())
14169 void append_002()
14171 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
14172 OString expVal( kTestStr62 );
14173 sal_Int64 input = 0;
14175 aStrBuf.append( input );
14177 CPPUNIT_ASSERT_MESSAGE
14179 "input Int64 0 and return OStringBuffer[0]+0",
14180 (aStrBuf.toString() == expVal &&
14181 aStrBuf.getLength() == expVal.getLength())
14186 void append_003()
14188 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
14189 OString expVal( kTestStr63 );
14190 sal_Int64 input = -11;
14192 aStrBuf.append( input );
14194 CPPUNIT_ASSERT_MESSAGE
14196 "input Int64 -11 and return OStringBuffer[0]+(-11)",
14197 (aStrBuf.toString() == expVal &&
14198 aStrBuf.getLength() == expVal.getLength())
14203 void append_004()
14205 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
14206 OString expVal( kTestStr116 );
14207 sal_Int64 input = SAL_CONST_INT64(9223372036854775807);
14208 aStrBuf.append( input );
14210 CPPUNIT_ASSERT_MESSAGE
14212 "input Int64 9223372036854775807 and return OStringBuffer[0]+9223372036854775807",
14213 (aStrBuf.toString() == expVal &&
14214 aStrBuf.getLength() == expVal.getLength())
14219 void append_005()
14221 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
14222 OString expVal( kTestStr117 );
14223 sal_Int64 input = SAL_MIN_INT64/*-9223372036854775808*/; // LLA: this is not the same :-( kNonSInt64Max;
14225 aStrBuf.append( input );
14227 sal_Bool bRes = expVal.equals( aStrBuf.getStr() );
14228 CPPUNIT_ASSERT_MESSAGE
14230 "input Int64 -9223372036854775808 and return OStringBuffer[0]+(-9223372036854775808)",
14231 bRes && aStrBuf.getLength() == expVal.getLength()
14236 void append_006()
14238 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
14239 OString expVal( kTestStr60 );
14240 sal_Int64 input = 11;
14242 aStrBuf.append( input );
14244 CPPUNIT_ASSERT_MESSAGE
14246 "input Int64 11 and return OStringBuffer[1]+11",
14247 (aStrBuf.toString() == expVal &&
14248 aStrBuf.getLength() == expVal.getLength())
14253 void append_007()
14255 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
14256 OString expVal( kTestStr66 );
14257 sal_Int64 input = 0;
14259 aStrBuf.append( input );
14261 CPPUNIT_ASSERT_MESSAGE
14263 "input Int64 0 and return OStringBuffer[1]+0",
14264 (aStrBuf.toString() == expVal &&
14265 aStrBuf.getLength() == expVal.getLength())
14270 void append_008()
14272 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
14273 OString expVal( kTestStr67 );
14274 sal_Int64 input = -11;
14276 aStrBuf.append( input );
14278 CPPUNIT_ASSERT_MESSAGE
14280 "input Int64 -11 and return OStringBuffer[1]+(-11)",
14281 (aStrBuf.toString() == expVal &&
14282 aStrBuf.getLength() == expVal.getLength())
14287 void append_009()
14289 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
14290 OString expVal( kTestStr118 );
14291 sal_Int64 input = SAL_CONST_INT64(9223372036854775807);
14292 aStrBuf.append( input );
14294 CPPUNIT_ASSERT_MESSAGE
14296 "input Int64 9223372036854775807 and return OStringBuffer[1]+9223372036854775807",
14297 (aStrBuf.toString() == expVal &&
14298 aStrBuf.getLength() == expVal.getLength())
14303 void append_010()
14305 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
14306 OString expVal( kTestStr119 );
14307 sal_Int64 input = SAL_MIN_INT64; // LLA: this is not the same :-( kNonSInt64Max;
14309 aStrBuf.append( input );
14311 CPPUNIT_ASSERT_MESSAGE
14313 "input Int64 -9223372036854775808 and return OStringBuffer[1]+(-9223372036854775808)",
14314 (aStrBuf.toString() == expVal &&
14315 aStrBuf.getLength() == expVal.getLength())
14320 void append_011()
14322 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
14323 OString expVal( kTestStr60 );
14324 sal_Int64 input = 11;
14326 aStrBuf.append( input );
14328 CPPUNIT_ASSERT_MESSAGE
14330 "input Int64 11 and return OStringBuffer[2]+11",
14331 (aStrBuf.toString() == expVal &&
14332 aStrBuf.getLength() == expVal.getLength())
14337 void append_012()
14339 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
14340 OString expVal( kTestStr66 );
14341 sal_Int64 input = 0;
14343 aStrBuf.append( input );
14345 CPPUNIT_ASSERT_MESSAGE
14347 "input Int64 0 and return OUStringBuffer[2]+0",
14348 (aStrBuf.toString() == expVal &&
14349 aStrBuf.getLength() == expVal.getLength())
14354 void append_013()
14356 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
14357 OString expVal( kTestStr67 );
14358 sal_Int64 input = -11;
14360 aStrBuf.append( input );
14362 CPPUNIT_ASSERT_MESSAGE
14364 "input Int64 -11 and return OUStringBuffer[2]+(-11)",
14365 (aStrBuf.toString() == expVal &&
14366 aStrBuf.getLength() == expVal.getLength())
14371 void append_014()
14373 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
14374 OString expVal( kTestStr118 );
14375 sal_Int64 input = SAL_CONST_INT64(9223372036854775807);
14376 aStrBuf.append( input );
14378 CPPUNIT_ASSERT_MESSAGE
14380 "input Int64 9223372036854775807 and return OStringBuffer[2]+9223372036854775807",
14381 (aStrBuf.toString() == expVal &&
14382 aStrBuf.getLength() == expVal.getLength())
14387 void append_015()
14389 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
14390 OString expVal( kTestStr119 );
14391 sal_Int64 input = SAL_MIN_INT64; // LLA: this is not the same :-( kNonSInt64Max;
14393 aStrBuf.append( input );
14395 CPPUNIT_ASSERT_MESSAGE
14397 "input Int64 -9223372036854775808 and return OStringBuffer[2]+(-9223372036854775808)",
14398 (aStrBuf.toString() == expVal &&
14399 aStrBuf.getLength() == expVal.getLength())
14404 void append_016()
14406 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
14407 OString expVal( kTestStr60 );
14408 sal_Int64 input = 11;
14410 aStrBuf.append( input );
14412 CPPUNIT_ASSERT_MESSAGE
14414 "input Int64 11 and return OStringBuffer[3]+11",
14415 (aStrBuf.toString() == expVal &&
14416 aStrBuf.getLength() == expVal.getLength())
14421 void append_017()
14423 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
14424 OString expVal( kTestStr66 );
14425 sal_Int64 input = 0;
14427 aStrBuf.append( input );
14429 CPPUNIT_ASSERT_MESSAGE
14431 "input Int64 0 and return OStringBuffer[3]+0",
14432 (aStrBuf.toString() == expVal &&
14433 aStrBuf.getLength() == expVal.getLength())
14438 void append_018()
14440 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
14441 OString expVal( kTestStr67 );
14442 sal_Int64 input = -11;
14444 aStrBuf.append( input );
14446 CPPUNIT_ASSERT_MESSAGE
14448 "input Int64 -11 and return OStringBuffer[3]+(-11)",
14449 (aStrBuf.toString() == expVal &&
14450 aStrBuf.getLength() == expVal.getLength())
14455 void append_019()
14457 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
14458 OString expVal( kTestStr118 );
14459 sal_Int64 input = SAL_CONST_INT64(9223372036854775807);
14460 aStrBuf.append( input );
14462 CPPUNIT_ASSERT_MESSAGE
14464 "input Int64 9223372036854775807 and return OStringBuffer[3]+9223372036854775807",
14465 (aStrBuf.toString() == expVal &&
14466 aStrBuf.getLength() == expVal.getLength())
14471 void append_020()
14473 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
14474 OString expVal( kTestStr119 );
14475 sal_Int64 input = SAL_MIN_INT64; // LLA: this is not the same :-( kNonSInt64Max;
14477 aStrBuf.append( input );
14479 CPPUNIT_ASSERT_MESSAGE
14481 "input Int64 -9223372036854775808 and return OStringBuffer[3]+(-9223372036854775808)",
14482 (aStrBuf.toString() == expVal &&
14483 aStrBuf.getLength() == expVal.getLength())
14488 void append_021()
14490 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
14491 OString expVal( kTestStr61 );
14492 sal_Int64 input = 11;
14494 aStrBuf.append( input );
14496 CPPUNIT_ASSERT_MESSAGE
14498 "input Int64 11 and return OStringBuffer[4]+11",
14499 (aStrBuf.toString() == expVal &&
14500 aStrBuf.getLength() == expVal.getLength())
14505 void append_022()
14507 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
14508 OString expVal( kTestStr70 );
14509 sal_Int64 input = 0;
14511 aStrBuf.append( input );
14513 CPPUNIT_ASSERT_MESSAGE
14515 "input Int64 0 and return OStringBuffer[4]+0",
14516 (aStrBuf.toString() == expVal &&
14517 aStrBuf.getLength() == expVal.getLength())
14522 void append_023()
14524 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
14525 OString expVal( kTestStr71 );
14526 sal_Int64 input = -11;
14528 aStrBuf.append( input );
14530 CPPUNIT_ASSERT_MESSAGE
14532 "input Int64 -11 and return OStringBuffer[4]+(-11)",
14533 (aStrBuf.toString() == expVal &&
14534 aStrBuf.getLength() == expVal.getLength())
14539 void append_024()
14541 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
14542 OString expVal( kTestStr120 );
14543 sal_Int64 input = SAL_CONST_INT64(9223372036854775807);
14544 aStrBuf.append( input );
14546 CPPUNIT_ASSERT_MESSAGE
14548 "input Int64 9223372036854775807 and return OStringBuffer[4]+9223372036854775807",
14549 (aStrBuf.toString() == expVal &&
14550 aStrBuf.getLength() == expVal.getLength())
14555 void append_025()
14557 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
14558 OString expVal( kTestStr121 );
14559 sal_Int64 input = SAL_MIN_INT64; // LLA: this is not the same :-( kNonSInt64Max;
14561 aStrBuf.append( input );
14563 CPPUNIT_ASSERT_MESSAGE
14565 "input Int64 -9223372036854775808 and return OStringBuffer[4]+(-9223372036854775808)",
14566 (aStrBuf.toString() == expVal &&
14567 aStrBuf.getLength() == expVal.getLength())
14571 #ifdef WITH_CORE
14572 void append_026()
14574 ::rtl::OStringBuffer aStrBuf( kSInt64Max );
14575 OString expVal( kTestStr60 );
14576 sal_Int64 input = 11;
14578 aStrBuf.append( input );
14580 CPPUNIT_ASSERT_MESSAGE
14582 "input Int64 11 and return OStringBuffer(kSInt64Max)+11",
14583 (aStrBuf.toString() == expVal &&
14584 aStrBuf.getLength() == expVal.getLength())
14589 void append_027()
14591 ::rtl::OStringBuffer aStrBuf( kSInt64Max );
14592 OString expVal( kTestStr66 );
14593 sal_Int64 input = 0;
14595 aStrBuf.append( input );
14597 CPPUNIT_ASSERT_MESSAGE
14599 "input Int64 0 and return OStringBuffer(kSInt64Max)+0",
14600 (aStrBuf.toString() == expVal &&
14601 aStrBuf.getLength() == expVal.getLength())
14606 void append_028()
14608 ::rtl::OStringBuffer aStrBuf( kSInt64Max );
14609 OString expVal( kTestStr67 );
14610 sal_Int64 input = -11;
14612 aStrBuf.append( input );
14614 CPPUNIT_ASSERT_MESSAGE
14616 "input Int64 -11 and return OStringBuffer(kSInt64Max)+(-11)",
14617 (aStrBuf.toString() == expVal &&
14618 aStrBuf.getLength() == expVal.getLength())
14623 void append_029()
14625 ::rtl::OStringBuffer aStrBuf( kSInt64Max );
14626 OString expVal( kTestStr118 );
14627 sal_Int64 input = 9223372036854775807;
14629 aStrBuf.append( input );
14631 CPPUNIT_ASSERT_MESSAGE
14633 "input Int64 9223372036854775807 and return OStringBuffer(kSInt64Max)+9223372036854775807",
14634 (aStrBuf.toString() == expVal &&
14635 aStrBuf.getLength() == expVal.getLength())
14640 void append_030()
14642 ::rtl::OStringBuffer aStrBuf( kSInt64Max );
14643 OString expVal( kTestStr119 );
14644 sal_Int64 input = SAL_MIN_INT64; // LLA: this is not the same :-( kNonSInt64Max;
14646 aStrBuf.append( input );
14648 CPPUNIT_ASSERT_MESSAGE
14650 "input Int64 -9223372036854775808 and return OStringBuffer(kSInt64Max)+(-9223372036854775808)",
14651 (aStrBuf.toString() == expVal &&
14652 aStrBuf.getLength() == expVal.getLength())
14656 #endif
14658 CPPUNIT_TEST_SUITE( append_007_Int64_defaultParam );
14659 CPPUNIT_TEST( append_001 );
14660 CPPUNIT_TEST( append_002 );
14661 CPPUNIT_TEST( append_003 );
14662 CPPUNIT_TEST( append_004 );
14663 CPPUNIT_TEST( append_005 );
14664 CPPUNIT_TEST( append_006 );
14665 CPPUNIT_TEST( append_007 );
14666 CPPUNIT_TEST( append_008 );
14667 CPPUNIT_TEST( append_009 );
14668 CPPUNIT_TEST( append_010 );
14669 CPPUNIT_TEST( append_011 );
14670 CPPUNIT_TEST( append_012 );
14671 CPPUNIT_TEST( append_013 );
14672 CPPUNIT_TEST( append_014 );
14673 CPPUNIT_TEST( append_015 );
14674 CPPUNIT_TEST( append_016 );
14675 CPPUNIT_TEST( append_017 );
14676 CPPUNIT_TEST( append_018 );
14677 CPPUNIT_TEST( append_019 );
14678 CPPUNIT_TEST( append_020 );
14679 CPPUNIT_TEST( append_021 );
14680 CPPUNIT_TEST( append_022 );
14681 CPPUNIT_TEST( append_023 );
14682 CPPUNIT_TEST( append_024 );
14683 CPPUNIT_TEST( append_025 );
14684 #ifdef WITH_CORE
14685 CPPUNIT_TEST( append_026 );
14686 CPPUNIT_TEST( append_027 );
14687 CPPUNIT_TEST( append_028 );
14688 CPPUNIT_TEST( append_029 );
14689 CPPUNIT_TEST( append_030 );
14690 #endif
14691 CPPUNIT_TEST_SUITE_END();
14693 //------------------------------------------------------------------------
14694 // testing the method append( float f )
14695 //------------------------------------------------------------------------
14696 class checkfloat : public CppUnit::TestFixture
14698 public:
14699 bool checkIfStrBufContainAtPosTheFloat(rtl::OStringBuffer const& _sStrBuf, sal_Int32 _nLen, float _nFloat)
14701 OString sFloatValue;
14702 sFloatValue = OString::number(_nFloat);
14704 OString sBufferString(_sStrBuf.getStr());
14705 sal_Int32 nPos = sBufferString.indexOf(sFloatValue);
14706 if ( nPos >= 0 && nPos == _nLen)
14708 return true;
14710 return false;
14713 // -----------------------------------------------------------------------------
14714 class append_008_float : public checkfloat
14716 OString* arrOUS[5];
14718 public:
14719 void setUp()
14721 arrOUS[0] = new OString( kTestStr7 );
14722 arrOUS[1] = new OString( );
14723 arrOUS[2] = new OString( kTestStr25 );
14724 arrOUS[3] = new OString( "" );
14725 arrOUS[4] = new OString( kTestStr28 );
14729 void tearDown()
14731 delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
14732 delete arrOUS[3]; delete arrOUS[4];
14735 void append_001()
14737 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
14738 float input = (float)atof("3.0");
14740 // LLA:
14741 // the complex problem is here, that a float value is not really what we write.
14742 // So a 3.0 could also be 3 or 3.0 or 3.0000001 or 2.9999999
14743 // this has to be checked.
14744 sal_Int32 nLen = aStrBuf.getLength();
14745 aStrBuf.append( input );
14747 CPPUNIT_ASSERT_MESSAGE
14749 "arrOUS[0] append 3.0",
14750 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
14755 void append_002()
14757 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
14758 float input = (float)atof("3.5");
14760 sal_Int32 nLen = aStrBuf.getLength();
14761 aStrBuf.append( input );
14763 CPPUNIT_ASSERT_MESSAGE
14765 "arrOUS[0] append 3.5",
14766 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
14771 void append_003()
14773 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
14774 float input = (float)atof("3.0625");
14776 sal_Int32 nLen = aStrBuf.getLength();
14777 aStrBuf.append( input );
14779 CPPUNIT_ASSERT_MESSAGE
14781 "arrOUS[0] append 3.0625",
14782 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
14787 void append_004()
14789 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
14790 float input = (float)atof("3.502525");
14792 sal_Int32 nLen = aStrBuf.getLength();
14793 aStrBuf.append( input );
14795 CPPUNIT_ASSERT_MESSAGE
14797 "arrOUS[0] append 3.502525",
14798 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
14803 void append_005()
14805 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
14806 float input = (float)atof("3.141592");
14808 sal_Int32 nLen = aStrBuf.getLength();
14809 aStrBuf.append( input );
14811 CPPUNIT_ASSERT_MESSAGE
14813 "arrOUS[0] append 3.141592",
14814 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
14819 void append_006()
14821 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
14822 float input = (float)atof("3.5025255");
14824 sal_Int32 nLen = aStrBuf.getLength();
14825 aStrBuf.append( input );
14827 CPPUNIT_ASSERT_MESSAGE
14829 "arrOUS[0] append 3.5025255",
14830 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
14835 void append_007()
14837 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
14838 float input = (float)atof("3.00390625");
14840 sal_Int32 nLen = aStrBuf.getLength();
14841 aStrBuf.append( input );
14843 CPPUNIT_ASSERT_MESSAGE
14845 "arrOUS[0] append 3.0039062",
14846 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
14851 void append_008()
14853 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
14854 float input = (float)atof("3.0");
14856 sal_Int32 nLen = aStrBuf.getLength();
14857 aStrBuf.append( input );
14859 CPPUNIT_ASSERT_MESSAGE
14861 "arrOUS[1] append 3.0",
14862 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
14867 void append_009()
14869 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
14870 float input = (float)atof("3.5");
14872 sal_Int32 nLen = aStrBuf.getLength();
14873 aStrBuf.append( input );
14875 CPPUNIT_ASSERT_MESSAGE
14877 "arrOUS[1] append 3.5",
14878 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
14883 void append_010()
14885 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
14886 float input = (float)atof("3.0625");
14888 sal_Int32 nLen = aStrBuf.getLength();
14889 aStrBuf.append( input );
14891 CPPUNIT_ASSERT_MESSAGE
14893 "arrOUS[1] append 3.0625",
14894 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
14899 void append_011()
14901 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
14902 float input = (float)atof("3.502525");
14904 sal_Int32 nLen = aStrBuf.getLength();
14905 aStrBuf.append( input );
14907 CPPUNIT_ASSERT_MESSAGE
14909 "arrOUS[1] append 3.502525",
14910 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
14915 void append_012()
14917 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
14918 float input = (float)atof("3.141592");
14920 sal_Int32 nLen = aStrBuf.getLength();
14921 aStrBuf.append( input );
14923 CPPUNIT_ASSERT_MESSAGE
14925 "arrOUS[1] append 3.141592",
14926 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
14931 void append_013()
14933 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
14934 float input = (float)atof("3.5025255");
14936 sal_Int32 nLen = aStrBuf.getLength();
14937 aStrBuf.append( input );
14939 CPPUNIT_ASSERT_MESSAGE
14941 "arrOUS[1] append 3.5025255",
14942 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
14947 void append_014()
14949 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
14950 float input = (float)atof("3.00390625");
14952 sal_Int32 nLen = aStrBuf.getLength();
14953 aStrBuf.append( input );
14955 CPPUNIT_ASSERT_MESSAGE
14957 "arrOUS[1] append 3.0039062",
14958 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
14963 void append_015()
14965 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
14966 float input = (float)atof("3.0");
14968 sal_Int32 nLen = aStrBuf.getLength();
14969 aStrBuf.append( input );
14971 CPPUNIT_ASSERT_MESSAGE
14973 "arrOUS[2] append 3.0",
14974 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
14979 void append_016()
14981 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
14982 float input = (float)atof("3.5");
14984 sal_Int32 nLen = aStrBuf.getLength();
14985 aStrBuf.append( input );
14987 CPPUNIT_ASSERT_MESSAGE
14989 "arrOUS[2] append 3.5",
14990 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
14995 void append_017()
14997 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
14998 float input = (float)atof("3.0625");
15000 sal_Int32 nLen = aStrBuf.getLength();
15001 aStrBuf.append( input );
15003 CPPUNIT_ASSERT_MESSAGE
15005 "arrOUS[2] append 3.0625",
15006 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15011 void append_018()
15013 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
15014 float input = (float)atof("3.502525");
15016 sal_Int32 nLen = aStrBuf.getLength();
15017 aStrBuf.append( input );
15019 CPPUNIT_ASSERT_MESSAGE
15021 "arrOUS[2] append 3.502525",
15022 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15027 void append_019()
15029 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
15030 float input = (float)atof("3.141592");
15032 sal_Int32 nLen = aStrBuf.getLength();
15033 aStrBuf.append( input );
15035 CPPUNIT_ASSERT_MESSAGE
15037 "arrOUS[2] append 3.141592",
15038 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15043 void append_020()
15045 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
15046 float input = (float)atof("3.5025255");
15048 sal_Int32 nLen = aStrBuf.getLength();
15049 aStrBuf.append( input );
15051 CPPUNIT_ASSERT_MESSAGE
15053 "arrOUS[2] append 3.5025255",
15054 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15059 void append_021()
15061 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
15062 float input = (float)atof("3.00390625");
15064 sal_Int32 nLen = aStrBuf.getLength();
15065 aStrBuf.append( input );
15067 CPPUNIT_ASSERT_MESSAGE
15069 "arrOUS[2] append 3.0039062",
15070 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15075 void append_022()
15077 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
15078 float input = (float)atof("3.0");
15080 sal_Int32 nLen = aStrBuf.getLength();
15081 aStrBuf.append( input );
15083 CPPUNIT_ASSERT_MESSAGE
15085 "arrOUS[3] append 3.0",
15086 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15091 void append_023()
15093 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
15094 float input = (float)atof("3.5");
15096 sal_Int32 nLen = aStrBuf.getLength();
15097 aStrBuf.append( input );
15099 CPPUNIT_ASSERT_MESSAGE
15101 "arrOUS[3] append 3.5",
15102 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15107 void append_024()
15109 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
15110 float input = (float)atof("3.0625");
15112 sal_Int32 nLen = aStrBuf.getLength();
15113 aStrBuf.append( input );
15115 CPPUNIT_ASSERT_MESSAGE
15117 "arrOUS[3] append 3.0625",
15118 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15123 void append_025()
15125 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
15126 float input = (float)atof("3.502525");
15128 sal_Int32 nLen = aStrBuf.getLength();
15129 aStrBuf.append( input );
15131 CPPUNIT_ASSERT_MESSAGE
15133 "arrOUS[3] append 3.502525",
15134 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15139 void append_026()
15141 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
15142 float input = (float)atof("3.141592");
15144 sal_Int32 nLen = aStrBuf.getLength();
15145 aStrBuf.append( input );
15147 CPPUNIT_ASSERT_MESSAGE
15149 "arrOUS[3] append 3.141592",
15150 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15155 void append_027()
15157 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
15158 float input = (float)atof("3.5025255");
15160 sal_Int32 nLen = aStrBuf.getLength();
15161 aStrBuf.append( input );
15163 CPPUNIT_ASSERT_MESSAGE
15165 "arrOUS[3] append 3.5025255",
15166 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15171 void append_028()
15173 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
15174 float input = (float)atof("3.00390625");
15176 sal_Int32 nLen = aStrBuf.getLength();
15177 aStrBuf.append( input );
15179 CPPUNIT_ASSERT_MESSAGE
15181 "arrOUS[3] append 3.0039062",
15182 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15187 void append_029()
15189 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
15190 float input = (float)atof("3.0");
15192 sal_Int32 nLen = aStrBuf.getLength();
15193 aStrBuf.append( input );
15195 CPPUNIT_ASSERT_MESSAGE
15197 "arrOUS[4] append 3.0",
15198 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15203 void append_030()
15205 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
15206 float input = (float)atof("3.5");
15208 sal_Int32 nLen = aStrBuf.getLength();
15209 aStrBuf.append( input );
15211 CPPUNIT_ASSERT_MESSAGE
15213 "arrOUS[4] append 3.5",
15214 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15219 void append_031()
15221 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
15222 float input = (float)atof("3.0625");
15224 sal_Int32 nLen = aStrBuf.getLength();
15225 aStrBuf.append( input );
15227 CPPUNIT_ASSERT_MESSAGE
15229 "arrOUS[4] append 3.0625",
15230 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15235 void append_032()
15237 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
15238 float input = (float)atof("3.502525");
15240 sal_Int32 nLen = aStrBuf.getLength();
15241 aStrBuf.append( input );
15243 CPPUNIT_ASSERT_MESSAGE
15245 "arrOUS[4] append 3.502525",
15246 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15251 void append_033()
15253 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
15254 float input = (float)atof("3.141592");
15256 sal_Int32 nLen = aStrBuf.getLength();
15257 aStrBuf.append( input );
15259 CPPUNIT_ASSERT_MESSAGE
15261 "arrOUS[4] append 3.141592",
15262 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15267 void append_034()
15269 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
15270 float input = (float)atof("3.5025255");
15272 sal_Int32 nLen = aStrBuf.getLength();
15273 aStrBuf.append( input );
15275 CPPUNIT_ASSERT_MESSAGE
15277 "arrOUS[4] append 3.5025255",
15278 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15283 void append_035()
15285 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
15286 float input = (float)atof("3.00390625");
15288 sal_Int32 nLen = aStrBuf.getLength();
15289 aStrBuf.append( input );
15291 CPPUNIT_ASSERT_MESSAGE
15293 "arrOUS[4] append 3.0039062",
15294 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15298 #ifdef WITH_CORE
15299 void append_036()
15301 ::rtl::OStringBuffer aStrBuf( kSInt32Max );
15302 float input = (float)atof("3.0");
15304 sal_Int32 nLen = aStrBuf.getLength();
15305 aStrBuf.append( input );
15307 CPPUNIT_ASSERT_MESSAGE
15309 "OStringBuffer( kSInt32Max ) append 3.0",
15310 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15315 void append_037()
15317 ::rtl::OStringBuffer aStrBuf( kSInt32Max );
15318 float input = (float)atof("3.5");
15320 sal_Int32 nLen = aStrBuf.getLength();
15321 aStrBuf.append( input );
15323 CPPUNIT_ASSERT_MESSAGE
15325 "OStringBuffer( kSInt32Max ) append 3.5",
15326 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15331 void append_038()
15333 ::rtl::OStringBuffer aStrBuf( kSInt32Max );
15334 float input = (float)atof("3.0625");
15336 sal_Int32 nLen = aStrBuf.getLength();
15337 aStrBuf.append( input );
15339 CPPUNIT_ASSERT_MESSAGE
15341 "OStringBuffer( kSInt32Max ) append 3.0625",
15342 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15347 void append_039()
15349 ::rtl::OStringBuffer aStrBuf( kSInt32Max );
15350 float input = (float)atof("3.502525");
15352 sal_Int32 nLen = aStrBuf.getLength();
15353 aStrBuf.append( input );
15355 CPPUNIT_ASSERT_MESSAGE
15357 "OStringBuffer( kSInt32Max ) append 3.502525",
15358 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15363 void append_040()
15365 ::rtl::OStringBuffer aStrBuf( kSInt32Max );
15366 float input = (float)atof("3.141592");
15368 sal_Int32 nLen = aStrBuf.getLength();
15369 aStrBuf.append( input );
15371 CPPUNIT_ASSERT_MESSAGE
15373 "OStringBuffer( kSInt32Max ) append 3.141592",
15374 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15379 void append_041()
15381 ::rtl::OStringBuffer aStrBuf( kSInt32Max );
15382 float input = (float)atof("3.5025255");
15384 sal_Int32 nLen = aStrBuf.getLength();
15385 aStrBuf.append( input );
15387 CPPUNIT_ASSERT_MESSAGE
15389 "OStringBuffer( kSInt32Max ) append 3.5025255",
15390 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15395 void append_042()
15397 ::rtl::OStringBuffer aStrBuf( kSInt32Max );
15398 float input = (float)atof("3.00390625");
15400 sal_Int32 nLen = aStrBuf.getLength();
15401 aStrBuf.append( input );
15403 CPPUNIT_ASSERT_MESSAGE
15405 "OStringBuffer( kSInt32Max ) append 3.0039062",
15406 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15410 #endif
15412 CPPUNIT_TEST_SUITE( append_008_float );
15413 CPPUNIT_TEST( append_001 );
15414 CPPUNIT_TEST( append_002 );
15415 CPPUNIT_TEST( append_003 );
15416 CPPUNIT_TEST( append_004 );
15417 CPPUNIT_TEST( append_005 );
15418 CPPUNIT_TEST( append_006 );
15419 CPPUNIT_TEST( append_007 );
15420 CPPUNIT_TEST( append_008 );
15421 CPPUNIT_TEST( append_009 );
15422 CPPUNIT_TEST( append_010 );
15423 CPPUNIT_TEST( append_011 );
15424 CPPUNIT_TEST( append_012 );
15425 CPPUNIT_TEST( append_013 );
15426 CPPUNIT_TEST( append_014 );
15427 CPPUNIT_TEST( append_015 );
15428 CPPUNIT_TEST( append_016 );
15429 CPPUNIT_TEST( append_017 );
15430 CPPUNIT_TEST( append_018 );
15431 CPPUNIT_TEST( append_019 );
15432 CPPUNIT_TEST( append_020 );
15433 CPPUNIT_TEST( append_021 );
15434 CPPUNIT_TEST( append_022 );
15435 CPPUNIT_TEST( append_023 );
15436 CPPUNIT_TEST( append_024 );
15437 CPPUNIT_TEST( append_025 );
15438 #ifdef WITH_CORE
15439 CPPUNIT_TEST( append_026 );
15440 CPPUNIT_TEST( append_027 );
15441 CPPUNIT_TEST( append_028 );
15442 CPPUNIT_TEST( append_029 );
15443 CPPUNIT_TEST( append_030 );
15444 #endif
15445 CPPUNIT_TEST_SUITE_END();
15447 //------------------------------------------------------------------------
15448 // testing the method append( float f ) for negative value
15449 //------------------------------------------------------------------------
15450 class append_008_Float_Negative : public checkfloat
15452 OString* arrOUS[5];
15454 public:
15455 void setUp()
15457 arrOUS[0] = new OString( kTestStr7 );
15458 arrOUS[1] = new OString( );
15459 arrOUS[2] = new OString( kTestStr25 );
15460 arrOUS[3] = new OString( "" );
15461 arrOUS[4] = new OString( kTestStr28 );
15465 void tearDown()
15467 delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
15468 delete arrOUS[3]; delete arrOUS[4];
15471 void append_001()
15473 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
15474 float input = (float)atof("-3.0");
15476 sal_Int32 nLen = aStrBuf.getLength();
15477 aStrBuf.append( input );
15479 CPPUNIT_ASSERT_MESSAGE
15481 "arrOUS[0] append -3.0",
15482 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15487 void append_002()
15489 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
15490 float input = (float)atof("-3.5");
15492 sal_Int32 nLen = aStrBuf.getLength();
15493 aStrBuf.append( input );
15495 CPPUNIT_ASSERT_MESSAGE
15497 "arrOUS[0] append -3.5",
15498 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15503 void append_003()
15505 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
15506 float input = (float)atof("-3.0625");
15508 sal_Int32 nLen = aStrBuf.getLength();
15509 aStrBuf.append( input );
15511 CPPUNIT_ASSERT_MESSAGE
15513 "arrOUS[0] append -3.0625",
15514 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15519 void append_004()
15521 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
15522 float input = (float)atof("-3.502525");
15524 sal_Int32 nLen = aStrBuf.getLength();
15525 aStrBuf.append( input );
15527 CPPUNIT_ASSERT_MESSAGE
15529 "arrOUS[0] append -3.502525",
15530 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15535 void append_005()
15537 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
15538 float input = (float)atof("-3.141592");
15540 sal_Int32 nLen = aStrBuf.getLength();
15541 aStrBuf.append( input );
15543 CPPUNIT_ASSERT_MESSAGE
15545 "arrOUS[0] append -3.141592",
15546 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15551 void append_006()
15553 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
15554 float input = (float)atof("-3.5025255");
15556 sal_Int32 nLen = aStrBuf.getLength();
15557 aStrBuf.append( input );
15559 CPPUNIT_ASSERT_MESSAGE
15561 "arrOUS[0] append -3.5025255",
15562 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15567 void append_007()
15569 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
15570 float input = (float)atof("-3.00390625");
15572 sal_Int32 nLen = aStrBuf.getLength();
15573 aStrBuf.append( input );
15575 CPPUNIT_ASSERT_MESSAGE
15577 "arrOUS[0] append -3.0039062",
15578 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15583 void append_008()
15585 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
15586 float input = (float)atof("-3.0");
15588 sal_Int32 nLen = aStrBuf.getLength();
15589 aStrBuf.append( input );
15591 CPPUNIT_ASSERT_MESSAGE
15593 "arrOUS[1] append -3.0",
15594 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15599 void append_009()
15601 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
15602 float input = (float)atof("-3.5");
15604 sal_Int32 nLen = aStrBuf.getLength();
15605 aStrBuf.append( input );
15607 CPPUNIT_ASSERT_MESSAGE
15609 "arrOUS[1] append -3.5",
15610 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15615 void append_010()
15617 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
15618 float input = (float)atof("-3.0625");
15620 sal_Int32 nLen = aStrBuf.getLength();
15621 aStrBuf.append( input );
15623 CPPUNIT_ASSERT_MESSAGE
15625 "arrOUS[1] append -3.0625",
15626 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15631 void append_011()
15633 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
15634 float input = (float)atof("-3.502525");
15636 sal_Int32 nLen = aStrBuf.getLength();
15637 aStrBuf.append( input );
15639 CPPUNIT_ASSERT_MESSAGE
15641 "arrOUS[1] append -3.502525",
15642 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15647 void append_012()
15649 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
15650 float input = (float)atof("-3.141592");
15652 sal_Int32 nLen = aStrBuf.getLength();
15653 aStrBuf.append( input );
15655 CPPUNIT_ASSERT_MESSAGE
15657 "arrOUS[1] append -3.141592",
15658 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15663 void append_013()
15665 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
15666 float input = (float)atof("-3.5025255");
15668 sal_Int32 nLen = aStrBuf.getLength();
15669 aStrBuf.append( input );
15671 CPPUNIT_ASSERT_MESSAGE
15673 "arrOUS[1] append -3.5025255",
15674 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15679 void append_014()
15681 ::rtl::OStringBuffer aStrBuf( *arrOUS[1] );
15682 float input = (float)atof("-3.00390625");
15684 sal_Int32 nLen = aStrBuf.getLength();
15685 aStrBuf.append( input );
15687 CPPUNIT_ASSERT_MESSAGE
15689 "arrOUS[1] append -3.0039062",
15690 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15695 void append_015()
15697 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
15698 float input = (float)atof("-3.0");
15700 sal_Int32 nLen = aStrBuf.getLength();
15701 aStrBuf.append( input );
15703 CPPUNIT_ASSERT_MESSAGE
15705 "arrOUS[2] append -3.0",
15706 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15711 void append_016()
15713 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
15714 float input = (float)atof("-3.5");
15716 sal_Int32 nLen = aStrBuf.getLength();
15717 aStrBuf.append( input );
15719 CPPUNIT_ASSERT_MESSAGE
15721 "arrOUS[2] append -3.5",
15722 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15727 void append_017()
15729 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
15730 float input = (float)atof("-3.0625");
15732 sal_Int32 nLen = aStrBuf.getLength();
15733 aStrBuf.append( input );
15735 CPPUNIT_ASSERT_MESSAGE
15737 "arrOUS[2] append -3.0625",
15738 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15743 void append_018()
15745 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
15746 float input = (float)atof("-3.502525");
15748 sal_Int32 nLen = aStrBuf.getLength();
15749 aStrBuf.append( input );
15751 CPPUNIT_ASSERT_MESSAGE
15753 "arrOUS[2] append -3.502525",
15754 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15759 void append_019()
15761 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
15762 float input = (float)atof("-3.141592");
15764 sal_Int32 nLen = aStrBuf.getLength();
15765 aStrBuf.append( input );
15767 CPPUNIT_ASSERT_MESSAGE
15769 "arrOUS[2] append -3.141592",
15770 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15775 void append_020()
15777 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
15778 float input = (float)atof("-3.5025255");
15780 sal_Int32 nLen = aStrBuf.getLength();
15781 aStrBuf.append( input );
15783 CPPUNIT_ASSERT_MESSAGE
15785 "arrOUS[2] append -3.5025255",
15786 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15791 void append_021()
15793 ::rtl::OStringBuffer aStrBuf( *arrOUS[2] );
15794 float input = (float)atof("-3.00390625");
15796 sal_Int32 nLen = aStrBuf.getLength();
15797 aStrBuf.append( input );
15799 CPPUNIT_ASSERT_MESSAGE
15801 "arrOUS[2] append -3.0039062",
15802 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15807 void append_022()
15809 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
15810 float input = (float)atof("-3.0");
15812 sal_Int32 nLen = aStrBuf.getLength();
15813 aStrBuf.append( input );
15815 CPPUNIT_ASSERT_MESSAGE
15817 "arrOUS[3] append -3.0",
15818 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15823 void append_023()
15825 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
15826 float input = (float)atof("-3.5");
15828 sal_Int32 nLen = aStrBuf.getLength();
15829 aStrBuf.append( input );
15831 CPPUNIT_ASSERT_MESSAGE
15833 "arrOUS[3] append -3.5",
15834 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15839 void append_024()
15841 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
15842 float input = (float)atof("-3.0625");
15844 sal_Int32 nLen = aStrBuf.getLength();
15845 aStrBuf.append( input );
15847 CPPUNIT_ASSERT_MESSAGE
15849 "arrOUS[3] append -3.0625",
15850 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15855 void append_025()
15857 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
15858 float input = (float)atof("-3.502525");
15860 sal_Int32 nLen = aStrBuf.getLength();
15861 aStrBuf.append( input );
15863 CPPUNIT_ASSERT_MESSAGE
15865 "arrOUS[3] append -3.502525",
15866 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15871 void append_026()
15873 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
15874 float input = (float)atof("-3.141592");
15876 sal_Int32 nLen = aStrBuf.getLength();
15877 aStrBuf.append( input );
15879 CPPUNIT_ASSERT_MESSAGE
15881 "arrOUS[3] append -3.141592",
15882 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15887 void append_027()
15889 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
15890 float input = (float)atof("-3.5025255");
15892 sal_Int32 nLen = aStrBuf.getLength();
15893 aStrBuf.append( input );
15895 CPPUNIT_ASSERT_MESSAGE
15897 "arrOUS[3] append -3.5025255",
15898 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15903 void append_028()
15905 ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
15906 float input = (float)atof("-3.00390625");
15908 sal_Int32 nLen = aStrBuf.getLength();
15909 aStrBuf.append( input );
15911 CPPUNIT_ASSERT_MESSAGE
15913 "arrOUS[3] append -3.0039062",
15914 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15919 void append_029()
15921 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
15922 float input = (float)atof("-3.0");
15924 sal_Int32 nLen = aStrBuf.getLength();
15925 aStrBuf.append( input );
15927 CPPUNIT_ASSERT_MESSAGE
15929 "arrOUS[4] append -3.0",
15930 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15935 void append_030()
15937 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
15938 float input = (float)atof("-3.5");
15940 sal_Int32 nLen = aStrBuf.getLength();
15941 aStrBuf.append( input );
15943 CPPUNIT_ASSERT_MESSAGE
15945 "arrOUS[4] append -3.5",
15946 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15951 void append_031()
15953 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
15954 float input = (float)atof("-3.0625");
15956 sal_Int32 nLen = aStrBuf.getLength();
15957 aStrBuf.append( input );
15959 CPPUNIT_ASSERT_MESSAGE
15961 "arrOUS[4] append -3.0625",
15962 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15967 void append_032()
15969 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
15970 float input = (float)atof("-3.502525");
15972 sal_Int32 nLen = aStrBuf.getLength();
15973 aStrBuf.append( input );
15975 CPPUNIT_ASSERT_MESSAGE
15977 "arrOUS[4] append -3.502525",
15978 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15983 void append_033()
15985 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
15986 float input = (float)atof("-3.141592");
15988 sal_Int32 nLen = aStrBuf.getLength();
15989 aStrBuf.append( input );
15991 CPPUNIT_ASSERT_MESSAGE
15993 "arrOUS[4] append -3.141592",
15994 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
15999 void append_034()
16001 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
16002 float input = (float)atof("-3.5025255");
16004 sal_Int32 nLen = aStrBuf.getLength();
16005 aStrBuf.append( input );
16007 CPPUNIT_ASSERT_MESSAGE
16009 "arrOUS[4] append -3.5025255",
16010 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16015 void append_035()
16017 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
16018 float input = (float)atof("-3.00390625");
16020 sal_Int32 nLen = aStrBuf.getLength();
16021 aStrBuf.append( input );
16023 CPPUNIT_ASSERT_MESSAGE
16025 "arrOUS[4] append -3.0039062",
16026 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16030 #ifdef WITH_CORE
16031 void append_036()
16033 ::rtl::OStringBuffer aStrBuf( kSInt32Max );
16034 float input = (float)atof("-3.0");
16036 sal_Int32 nLen = aStrBuf.getLength();
16037 aStrBuf.append( input );
16039 CPPUNIT_ASSERT_MESSAGE
16041 "OStringBuffer( kSInt32Max ) append -3.0",
16042 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16047 void append_037()
16049 ::rtl::OStringBuffer aStrBuf( kSInt32Max );
16050 float input = (float)atof("-3.5");
16052 sal_Int32 nLen = aStrBuf.getLength();
16053 aStrBuf.append( input );
16055 CPPUNIT_ASSERT_MESSAGE
16057 "OStringBuffer( kSInt32Max ) append -3.5",
16058 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16063 void append_038()
16065 ::rtl::OStringBuffer aStrBuf( kSInt32Max );
16066 float input = (float)atof("-3.0625");
16068 sal_Int32 nLen = aStrBuf.getLength();
16069 aStrBuf.append( input );
16071 CPPUNIT_ASSERT_MESSAGE
16073 "OStringBuffer( kSInt32Max ) append -3.0625",
16074 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16079 void append_039()
16081 ::rtl::OStringBuffer aStrBuf( kSInt32Max );
16082 float input = (float)atof("-3.502525");
16084 sal_Int32 nLen = aStrBuf.getLength();
16085 aStrBuf.append( input );
16087 CPPUNIT_ASSERT_MESSAGE
16089 "OStringBuffer( kSInt32Max ) append -3.502525",
16090 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16095 void append_040()
16097 ::rtl::OStringBuffer aStrBuf( kSInt32Max );
16098 float input = (float)atof("-3.141592");
16100 sal_Int32 nLen = aStrBuf.getLength();
16101 aStrBuf.append( input );
16103 CPPUNIT_ASSERT_MESSAGE
16105 "OStringBuffer( kSInt32Max ) append -3.141592",
16106 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16111 void append_041()
16113 ::rtl::OStringBuffer aStrBuf( kSInt32Max );
16114 float input = (float)atof("-3.5025255");
16116 sal_Int32 nLen = aStrBuf.getLength();
16117 aStrBuf.append( input );
16119 CPPUNIT_ASSERT_MESSAGE
16121 "OStringBuffer( kSInt32Max ) append -3.5025255",
16122 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16127 void append_042()
16129 ::rtl::OStringBuffer aStrBuf( kSInt32Max );
16130 float input = (float)atof("-3.00390625");
16132 sal_Int32 nLen = aStrBuf.getLength();
16133 aStrBuf.append( input );
16135 CPPUNIT_ASSERT_MESSAGE
16137 "OStringBuffer( kSInt32Max ) append -3.0039062",
16138 checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
16142 #endif
16144 CPPUNIT_TEST_SUITE( append_008_Float_Negative );
16145 CPPUNIT_TEST( append_001 );
16146 CPPUNIT_TEST( append_002 );
16147 CPPUNIT_TEST( append_003 );
16148 CPPUNIT_TEST( append_004 );
16149 CPPUNIT_TEST( append_005 );
16150 CPPUNIT_TEST( append_006 );
16151 CPPUNIT_TEST( append_007 );
16152 CPPUNIT_TEST( append_008 );
16153 CPPUNIT_TEST( append_009 );
16154 CPPUNIT_TEST( append_010 );
16155 CPPUNIT_TEST( append_011 );
16156 CPPUNIT_TEST( append_012 );
16157 CPPUNIT_TEST( append_013 );
16158 CPPUNIT_TEST( append_014 );
16159 CPPUNIT_TEST( append_015 );
16160 CPPUNIT_TEST( append_016 );
16161 CPPUNIT_TEST( append_017 );
16162 CPPUNIT_TEST( append_018 );
16163 CPPUNIT_TEST( append_019 );
16164 CPPUNIT_TEST( append_020 );
16165 CPPUNIT_TEST( append_021 );
16166 CPPUNIT_TEST( append_022 );
16167 CPPUNIT_TEST( append_023 );
16168 CPPUNIT_TEST( append_024 );
16169 CPPUNIT_TEST( append_025 );
16170 #ifdef WITH_CORE
16171 CPPUNIT_TEST( append_026 );
16172 CPPUNIT_TEST( append_027 );
16173 CPPUNIT_TEST( append_028 );
16174 CPPUNIT_TEST( append_029 );
16175 CPPUNIT_TEST( append_030 );
16176 #endif
16177 CPPUNIT_TEST_SUITE_END();
16179 //------------------------------------------------------------------------
16180 // testing the method append( double d )
16181 //------------------------------------------------------------------------
16183 class checkdouble : public CppUnit::TestFixture
16185 public:
16186 bool checkIfStrBufContainAtPosTheDouble(rtl::OStringBuffer const& _sStrBuf, sal_Int32 _nLen, double _nDouble)
16188 OString sDoubleValue;
16189 sDoubleValue = OString::number(_nDouble);
16191 OString sBufferString(_sStrBuf.getStr());
16192 sal_Int32 nPos = sBufferString.indexOf(sDoubleValue);
16193 if ( nPos >= 0 && nPos == _nLen)
16195 return true;
16197 return false;
16201 class append_009_double : public checkdouble
16203 OString* arrOUS[5];
16205 public:
16206 void setUp()
16208 arrOUS[0] = new OString( kTestStr7 );
16209 arrOUS[1] = new OString( );
16210 arrOUS[2] = new OString( kTestStr25 );
16211 arrOUS[3] = new OString( "" );
16212 arrOUS[4] = new OString( kTestStr28 );
16216 void tearDown()
16218 delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
16219 delete arrOUS[3]; delete arrOUS[4];
16222 void append_001()
16224 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
16225 double input = atof("3.0");
16227 sal_Int32 nLen = aStrBuf.getLength();
16228 aStrBuf.append( input );
16230 CPPUNIT_ASSERT_MESSAGE
16232 "arrOUS[0] append 3.0",
16233 checkIfStrBufContainAtPosTheDouble(aStrBuf, nLen, input)
16238 void append_035()
16240 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
16241 double input = atof("3.141592653589793238462643");
16243 sal_Int32 nLen = aStrBuf.getLength();
16244 aStrBuf.append( input );
16246 CPPUNIT_ASSERT_MESSAGE
16248 "arrOUS[4] append 3.141592653589793238462643",
16249 checkIfStrBufContainAtPosTheDouble(aStrBuf, nLen, input)
16254 CPPUNIT_TEST_SUITE( append_009_double );
16255 CPPUNIT_TEST( append_001 );
16256 CPPUNIT_TEST( append_035 );
16257 CPPUNIT_TEST_SUITE_END();
16260 //------------------------------------------------------------------------
16261 // testing the method append( double f ) for negative value
16262 //------------------------------------------------------------------------
16263 class append_009_Double_Negative : public checkdouble
16265 OString* arrOUS[5];
16267 public:
16268 void setUp()
16270 arrOUS[0] = new OString( kTestStr7 );
16271 arrOUS[1] = new OString( );
16272 arrOUS[2] = new OString( kTestStr25 );
16273 arrOUS[3] = new OString( "" );
16274 arrOUS[4] = new OString( kTestStr28 );
16278 void tearDown()
16280 delete arrOUS[0]; delete arrOUS[1]; delete arrOUS[2];
16281 delete arrOUS[3]; delete arrOUS[4];
16284 void append_001()
16286 ::rtl::OStringBuffer aStrBuf( *arrOUS[0] );
16287 double input = atof("-3.0");
16289 sal_Int32 nLen = aStrBuf.getLength();
16290 aStrBuf.append( input );
16292 CPPUNIT_ASSERT_MESSAGE
16294 "arrOUS[0] append -3.0",
16295 checkIfStrBufContainAtPosTheDouble(aStrBuf, nLen, input)
16300 void append_035()
16302 ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
16303 double input = atof("-3.141592653589793238462643");
16305 sal_Int32 nLen = aStrBuf.getLength();
16306 aStrBuf.append( input );
16308 CPPUNIT_ASSERT_MESSAGE
16310 "arrOUS[4] append -3.141592653589793238462643",
16311 checkIfStrBufContainAtPosTheDouble(aStrBuf, nLen, input)
16316 CPPUNIT_TEST_SUITE( append_009_Double_Negative );
16317 CPPUNIT_TEST( append_001 );
16318 CPPUNIT_TEST( append_035 );
16319 CPPUNIT_TEST_SUITE_END();
16321 } // namespace rtl_OStringBuffer
16323 // -----------------------------------------------------------------------------
16324 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::ctors);
16325 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::makeStringAndClear);
16326 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::getLength);
16327 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::getCapacity);
16328 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::ensureCapacity);
16329 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::setLength);
16330 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::csuc);
16331 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::getStr);
16332 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_001);
16333 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_002);
16334 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_003);
16335 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_004);
16336 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_005);
16337 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32);
16338 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32_Bounderies);
16339 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32_Negative);
16340 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32_WrongRadix);
16341 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32_defaultParam);
16342 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64);
16343 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64_Bounderies);
16344 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64_Negative);
16345 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64_WrongRadix);
16346 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64_defaultParam);
16347 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_008_float);
16348 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_008_Float_Negative);
16349 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_009_double);
16350 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_009_Double_Negative);
16351 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::remove);
16353 CPPUNIT_PLUGIN_IMPLEMENT();
16355 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */