1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/strbuf.hxx>
25 #include <cppunit/TestAssert.h>
26 #include <cppunit/TestFixture.h>
27 #include <cppunit/extensions/HelperMacros.h>
28 #include <cppunit/plugin/TestPlugIn.h>
31 // This file contains cppunit tests for the
32 // OString and OStringBuffer classes
34 // testing constructors
35 namespace rtl_OStringBuffer
37 class ctors
: public CppUnit::TestFixture
43 OStringBuffer aStrBuf
;
44 const char* pStr
= aStrBuf
.getStr();
46 CPPUNIT_ASSERT_MESSAGE
48 "New OStringBuffer containing no characters",
51 CPPUNIT_ASSERT_EQUAL_MESSAGE
53 "New OStringBuffer containing no characters",
56 CPPUNIT_ASSERT_EQUAL_MESSAGE
58 "New OStringBuffer containing no characters",
59 sal_Int32(16), aStrBuf
.getCapacity()
65 OString
aStrtmp( kTestStr1
);
66 OStringBuffer
aStrBuftmp( aStrtmp
);
67 OStringBuffer
aStrBuf( aStrBuftmp
);
68 // sal_Bool res = cmpstr(aStrBuftmp.getStr(),aStrBuf.getStr());
70 sal_Int32 nLenStrBuftmp
= aStrBuftmp
.getLength();
72 OString
sStr(aStrBuftmp
.getStr());
73 bool res
= aStrtmp
== sStr
;
75 CPPUNIT_ASSERT_EQUAL_MESSAGE
77 "New OStringBuffer from another OStringBuffer",
78 nLenStrBuftmp
, aStrBuf
.getLength()
80 CPPUNIT_ASSERT_EQUAL_MESSAGE
82 "New OStringBuffer from another OStringBuffer",
83 aStrBuftmp
.getCapacity(), aStrBuf
.getCapacity()
85 CPPUNIT_ASSERT_MESSAGE
87 "New OStringBuffer from another OStringBuffer",
95 OStringBuffer
aStrBuf1(kTestStr2Len
);
96 OStringBuffer
aStrBuf2(0);
98 const char* pStr1
= aStrBuf1
.getStr();
99 const char* pStr2
= aStrBuf2
.getStr();
101 CPPUNIT_ASSERT_MESSAGE
103 "New OStringBuffer containing no characters and contain assigned capacity",
106 CPPUNIT_ASSERT_EQUAL_MESSAGE
108 "New OStringBuffer containing no characters and contain assigned capacity",
111 CPPUNIT_ASSERT_EQUAL_MESSAGE
113 "New OStringBuffer containing no characters and contain assigned capacity",
114 kTestStr2Len
, aStrBuf1
.getCapacity()
116 CPPUNIT_ASSERT_MESSAGE
118 "New OStringBuffer containing no characters and contain assigned capacity",
121 CPPUNIT_ASSERT_EQUAL_MESSAGE
123 "New OStringBuffer containing no characters and contain assigned capacity",
126 CPPUNIT_ASSERT_EQUAL_MESSAGE
128 "New OStringBuffer containing no characters and contain assigned capacity",
129 sal_Int32(0), aStrBuf2
.getCapacity()
136 OString
aStrtmp( kTestStr1
);
137 OStringBuffer
aStrBuf( aStrtmp
);
138 sal_Int32 leg
= aStrBuf
.getLength();
140 CPPUNIT_ASSERT_EQUAL_MESSAGE
142 "New OStringBuffer from OString",
143 aStrtmp
, OString(aStrBuf
.getStr())
145 CPPUNIT_ASSERT_EQUAL_MESSAGE
147 "New OStringBuffer from OString",
148 aStrtmp
.pData
->length
, leg
150 CPPUNIT_ASSERT_EQUAL_MESSAGE
152 "New OStringBuffer from OString",
153 leg
+16, aStrBuf
.getCapacity()
160 auto dummy
= b1
.makeStringAndClear();
162 OStringBuffer
b2(b1
);
168 //pass in a const char*, get a temp
170 OStringBuffer
aStrBuf(kTestStr1
);
171 sal_Int32 leg
= aStrBuf
.getLength();
173 CPPUNIT_ASSERT_EQUAL_MESSAGE
175 "New OStringBuffer from const char*",
176 rtl_str_getLength(kTestStr1
), leg
178 CPPUNIT_ASSERT_EQUAL_MESSAGE
180 "New OStringBuffer from const char*",
181 leg
+16, aStrBuf
.getCapacity()
185 CPPUNIT_TEST_SUITE(ctors
);
186 CPPUNIT_TEST(ctor_001
);
187 CPPUNIT_TEST(ctor_002
);
188 CPPUNIT_TEST(ctor_003
);
189 CPPUNIT_TEST(ctor_004
);
190 CPPUNIT_TEST(ctor_005
);
191 CPPUNIT_TEST(ctor_006
);
192 CPPUNIT_TEST_SUITE_END();
195 class makeStringAndClear
: public CppUnit::TestFixture
200 void setUp() override
202 arrOUS
[0] = OString( kTestStr1
);
203 arrOUS
[1] = OString( kTestStr14
);
204 arrOUS
[2] = OString( kTestStr25
);
205 arrOUS
[3] = OString( kTestStr27
);
206 arrOUS
[4] = OString( kTestStr29
);
207 arrOUS
[5] = OString( "\0", 1 );
211 void makeStringAndClear_001()
213 OStringBuffer aStrBuf1
;
215 bool lastRes
= aStrBuf1
.makeStringAndClear().isEmpty();
217 CPPUNIT_ASSERT_MESSAGE
219 "two empty strings(def. constructor)",
222 CPPUNIT_ASSERT_EQUAL_MESSAGE
224 "two empty strings(def. constructor)",
225 sal_Int32(0), aStrBuf1
.getCapacity()
227 CPPUNIT_ASSERT_EQUAL_MESSAGE
229 "two empty strings(def. constructor)",
230 '\0', *(aStrBuf1
.getStr())
235 void makeStringAndClear_002()
237 OStringBuffer
aStrBuf2(26);
239 bool lastRes
= aStrBuf2
.makeStringAndClear().isEmpty();
241 CPPUNIT_ASSERT_MESSAGE
243 "two empty strings(with an argu)",
246 CPPUNIT_ASSERT_EQUAL_MESSAGE
248 "two empty strings(with an argu)",
249 sal_Int32(0), aStrBuf2
.getCapacity()
251 CPPUNIT_ASSERT_EQUAL_MESSAGE
253 "two empty strings(with an argu)",
254 '\0', *(aStrBuf2
.getStr())
259 void makeStringAndClear_003()
261 OStringBuffer
aStrBuf3(arrOUS
[0]);
262 OString
aStr3(arrOUS
[0]);
264 bool lastRes
= (aStrBuf3
.makeStringAndClear() == aStr3
);
266 CPPUNIT_ASSERT_MESSAGE
271 CPPUNIT_ASSERT_EQUAL_MESSAGE
274 sal_Int32(0), aStrBuf3
.getCapacity()
276 CPPUNIT_ASSERT_EQUAL_MESSAGE
279 '\0', *(aStrBuf3
.getStr())
284 void makeStringAndClear_004()
286 OStringBuffer
aStrBuf4(arrOUS
[1]);
287 OString
aStr4(arrOUS
[1]);
289 bool lastRes
= (aStrBuf4
.makeStringAndClear() == aStr4
);
291 CPPUNIT_ASSERT_MESSAGE
293 "string with space ",
296 CPPUNIT_ASSERT_EQUAL_MESSAGE
298 "string with space ",
299 sal_Int32(0), aStrBuf4
.getCapacity()
301 CPPUNIT_ASSERT_EQUAL_MESSAGE
303 "string with space ",
304 '\0', *(aStrBuf4
.getStr())
308 void makeStringAndClear_005()
310 OStringBuffer
aStrBuf5(arrOUS
[2]);
311 OString
aStr5(arrOUS
[2]);
313 bool lastRes
= (aStrBuf5
.makeStringAndClear() == aStr5
);
315 CPPUNIT_ASSERT_MESSAGE
320 CPPUNIT_ASSERT_EQUAL_MESSAGE
323 sal_Int32(0), aStrBuf5
.getCapacity()
325 CPPUNIT_ASSERT_EQUAL_MESSAGE
328 '\0', *(aStrBuf5
.getStr())
332 void makeStringAndClear_006()
334 OStringBuffer
aStrBuf6(arrOUS
[3]);
335 OString
aStr6(arrOUS
[3]);
337 bool lastRes
= (aStrBuf6
.makeStringAndClear() == aStr6
);
339 CPPUNIT_ASSERT_MESSAGE
341 "string with a character",
344 CPPUNIT_ASSERT_EQUAL_MESSAGE
346 "string with a character",
347 sal_Int32(0), aStrBuf6
.getCapacity()
349 CPPUNIT_ASSERT_EQUAL_MESSAGE
351 "string with a character",
352 '\0', *(aStrBuf6
.getStr())
356 void makeStringAndClear_007()
358 OStringBuffer
aStrBuf7(arrOUS
[4]);
359 OString
aStr7(arrOUS
[4]);
361 bool lastRes
= (aStrBuf7
.makeStringAndClear() == aStr7
);
363 CPPUNIT_ASSERT_MESSAGE
365 "string with special characters",
368 CPPUNIT_ASSERT_EQUAL_MESSAGE
370 "string with special characters",
371 sal_Int32(0), aStrBuf7
.getCapacity()
373 CPPUNIT_ASSERT_EQUAL_MESSAGE
375 "string with special characters",
376 '\0', *(aStrBuf7
.getStr())
380 void makeStringAndClear_008()
382 OStringBuffer
aStrBuf8(arrOUS
[5]);
383 OString
aStr8(arrOUS
[5]);
385 bool lastRes
= (aStrBuf8
.makeStringAndClear() == aStr8
);
387 CPPUNIT_ASSERT_MESSAGE
389 "string only with (\0)",
392 CPPUNIT_ASSERT_EQUAL_MESSAGE
394 "string only with (\0)",
395 sal_Int32(0), aStrBuf8
.getCapacity()
397 CPPUNIT_ASSERT_EQUAL_MESSAGE
399 "string only with (\0)",
400 '\0', *(aStrBuf8
.getStr())
404 CPPUNIT_TEST_SUITE(makeStringAndClear
);
405 CPPUNIT_TEST(makeStringAndClear_001
);
406 CPPUNIT_TEST(makeStringAndClear_002
);
407 CPPUNIT_TEST(makeStringAndClear_003
);
408 CPPUNIT_TEST(makeStringAndClear_004
);
409 CPPUNIT_TEST(makeStringAndClear_005
);
410 CPPUNIT_TEST(makeStringAndClear_006
);
411 CPPUNIT_TEST(makeStringAndClear_007
);
412 CPPUNIT_TEST(makeStringAndClear_008
);
413 CPPUNIT_TEST_SUITE_END();
416 class remove
: public CppUnit::TestFixture
422 RTL_CONSTASCII_STRINGPARAM("Red Hat, Inc."));
425 CPPUNIT_ASSERT(sb
.toString().equalsL(
426 RTL_CONSTASCII_STRINGPARAM("Hat, Inc.")));
429 CPPUNIT_ASSERT(sb
.toString().equalsL(
430 RTL_CONSTASCII_STRINGPARAM("Hat")));
434 CPPUNIT_ASSERT(sb
.toString().isEmpty());
436 sb
.append(RTL_CONSTASCII_STRINGPARAM("Red Hat, Inc."));
440 CPPUNIT_ASSERT(sb
.toString().equalsL(
441 RTL_CONSTASCII_STRINGPARAM("Red")));
443 sb
.remove(0, sb
.getLength());
445 CPPUNIT_ASSERT(sb
.toString().isEmpty());
448 CPPUNIT_TEST_SUITE(remove
);
449 CPPUNIT_TEST(remove_001
);
450 CPPUNIT_TEST_SUITE_END();
453 class getLength
: public CppUnit::TestFixture
458 void setUp() override
460 arrOUS
[0] = OString( kTestStr1
);
461 arrOUS
[1] = OString( "1" );
462 arrOUS
[2] = OString( );
463 arrOUS
[3] = OString( "" );
464 arrOUS
[4] = OString( "\0", 1 );
465 arrOUS
[5] = OString( kTestStr2
);
471 OStringBuffer
aStrBuf( arrOUS
[0] );
472 sal_Int32 expVal
= kTestStr1Len
;
474 CPPUNIT_ASSERT_EQUAL_MESSAGE
476 "length of ascii string",
477 expVal
, aStrBuf
.getLength()
484 OStringBuffer
aStrBuf( arrOUS
[1] );
485 sal_Int32 expVal
= 1;
487 CPPUNIT_ASSERT_EQUAL_MESSAGE
489 "length of ascii string of size 1",
490 expVal
, aStrBuf
.getLength()
496 OStringBuffer
aStrBuf( arrOUS
[2] );
497 sal_Int32 expVal
= 0;
499 CPPUNIT_ASSERT_EQUAL_MESSAGE
501 "length of empty string",
502 expVal
, aStrBuf
.getLength()
508 OStringBuffer
aStrBuf( arrOUS
[3] );
509 sal_Int32 expVal
= 0;
511 CPPUNIT_ASSERT_EQUAL_MESSAGE
513 "length of empty string (empty ascii string arg)",
514 expVal
, aStrBuf
.getLength()
520 OStringBuffer
aStrBuf( arrOUS
[4] );
521 sal_Int32 expVal
= 1;
523 CPPUNIT_ASSERT_EQUAL_MESSAGE
525 "length of string with \\0 embedded",
526 expVal
, aStrBuf
.getLength()
532 OStringBuffer
aStrBuf( arrOUS
[5] );
533 sal_Int32 expVal
= kTestStr2Len
;
535 CPPUNIT_ASSERT_EQUAL_MESSAGE
537 "length(>16) of ascii string",
538 expVal
, aStrBuf
.getLength()
544 OStringBuffer aStrBuf
;
545 sal_Int32 expVal
= 0;
547 CPPUNIT_ASSERT_EQUAL_MESSAGE
549 "length of empty string (default constructor)",
550 expVal
, aStrBuf
.getLength()
556 OStringBuffer
aStrBuf( 26 );
557 sal_Int32 expVal
= 0;
559 CPPUNIT_ASSERT_EQUAL_MESSAGE
561 "length of empty string (with capacity)",
562 expVal
, aStrBuf
.getLength()
566 CPPUNIT_TEST_SUITE( getLength
);
567 CPPUNIT_TEST( getLength_001
);
568 CPPUNIT_TEST( getLength_002
);
569 CPPUNIT_TEST( getLength_003
);
570 CPPUNIT_TEST( getLength_004
);
571 CPPUNIT_TEST( getLength_005
);
572 CPPUNIT_TEST( getLength_006
);
573 CPPUNIT_TEST( getLength_007
);
574 CPPUNIT_TEST( getLength_008
);
575 CPPUNIT_TEST_SUITE_END();
578 class getCapacity
: public CppUnit::TestFixture
583 void setUp() override
585 arrOUS
[0] = OString( kTestStr1
);
586 arrOUS
[1] = OString( "1" );
587 arrOUS
[2] = OString( );
588 arrOUS
[3] = OString( "" );
589 arrOUS
[4] = OString( "\0", 1 );
590 arrOUS
[5] = OString( kTestStr2
);
594 void getCapacity_001()
596 OStringBuffer
aStrBuf( arrOUS
[0] );
597 sal_Int32 expVal
= kTestStr1Len
+16;
599 CPPUNIT_ASSERT_EQUAL_MESSAGE
601 "capacity of ascii string",
602 expVal
, aStrBuf
.getCapacity()
607 void getCapacity_002()
609 OStringBuffer
aStrBuf( arrOUS
[1] );
610 sal_Int32 expVal
= 1+16;
612 CPPUNIT_ASSERT_EQUAL_MESSAGE
614 "capacity of ascii string of size 1",
615 expVal
, aStrBuf
.getCapacity()
619 void getCapacity_003()
621 OStringBuffer
aStrBuf( arrOUS
[2] );
622 sal_Int32 expVal
= 0+16;
624 CPPUNIT_ASSERT_EQUAL_MESSAGE
626 "capacity of empty string",
627 expVal
, aStrBuf
.getCapacity()
631 void getCapacity_004()
633 OStringBuffer
aStrBuf( arrOUS
[3] );
634 sal_Int32 expVal
= 0+16;
636 CPPUNIT_ASSERT_EQUAL_MESSAGE
638 "capacity of empty string (empty ascii string arg)",
639 expVal
, aStrBuf
.getCapacity()
643 void getCapacity_005()
645 OStringBuffer
aStrBuf( arrOUS
[4] );
646 sal_Int32 expVal
= 1+16;
648 CPPUNIT_ASSERT_EQUAL_MESSAGE
650 "capacity of string with \\0 embedded",
651 expVal
, aStrBuf
.getCapacity()
655 void getCapacity_006()
657 OStringBuffer
aStrBuf( arrOUS
[5] );
658 sal_Int32 expVal
= kTestStr2Len
+16;
660 CPPUNIT_ASSERT_EQUAL_MESSAGE
662 "capacity(>16) of ascii string",
663 expVal
, aStrBuf
.getCapacity()
667 void getCapacity_007()
669 OStringBuffer aStrBuf
;
670 sal_Int32 expVal
= 16;
672 CPPUNIT_ASSERT_EQUAL_MESSAGE
674 "capacity of empty string (default constructor)",
675 expVal
, aStrBuf
.getCapacity()
679 void getCapacity_010()
681 OStringBuffer
aStrBuf( 16 );
682 sal_Int32 expVal
= 16;
684 CPPUNIT_ASSERT_EQUAL_MESSAGE
686 "capacity of empty string (with capacity 16)",
687 expVal
, aStrBuf
.getCapacity()
691 void getCapacity_011()
693 OStringBuffer
aStrBuf( 6 );
694 sal_Int32 expVal
= 6;
696 CPPUNIT_ASSERT_EQUAL_MESSAGE
698 "capacity of empty string (with capacity 6)",
699 expVal
, aStrBuf
.getCapacity()
703 void getCapacity_012()
705 OStringBuffer
aStrBuf( 0 );
706 sal_Int32 expVal
= 0;
708 CPPUNIT_ASSERT_EQUAL_MESSAGE
710 "capacity of empty string (with capacity 0)",
711 expVal
, aStrBuf
.getCapacity()
715 CPPUNIT_TEST_SUITE( getCapacity
);
716 CPPUNIT_TEST( getCapacity_001
);
717 CPPUNIT_TEST( getCapacity_002
);
718 CPPUNIT_TEST( getCapacity_003
);
719 CPPUNIT_TEST( getCapacity_004
);
720 CPPUNIT_TEST( getCapacity_005
);
721 CPPUNIT_TEST( getCapacity_006
);
722 CPPUNIT_TEST( getCapacity_007
);
723 CPPUNIT_TEST( getCapacity_010
);
724 CPPUNIT_TEST( getCapacity_011
);
725 CPPUNIT_TEST( getCapacity_012
);
726 CPPUNIT_TEST_SUITE_END();
729 class ensureCapacity
: public CppUnit::TestFixture
731 void ensureCapacity_001()
733 sal_Int32 expVal
= 16;
734 OStringBuffer aStrBuf
;
737 aStrBuf
.ensureCapacity( input
);
739 CPPUNIT_ASSERT_EQUAL_MESSAGE
741 "capacity equal to 16, minimum is 5",
742 expVal
, aStrBuf
.getCapacity()
747 void ensureCapacity_002()
749 sal_Int32 expVal
= 16;
750 OStringBuffer aStrBuf
;
751 sal_Int32 input
= -5;
753 aStrBuf
.ensureCapacity( input
);
755 CPPUNIT_ASSERT_EQUAL_MESSAGE
757 "capacity equal to 16, minimum is -5",
758 expVal
, aStrBuf
.getCapacity()
763 void ensureCapacity_003()
765 sal_Int32 expVal
= 16;
766 OStringBuffer aStrBuf
;
769 aStrBuf
.ensureCapacity( input
);
771 CPPUNIT_ASSERT_EQUAL_MESSAGE
773 "capacity equal to 16, minimum is 0",
774 expVal
, aStrBuf
.getCapacity()
779 void ensureCapacity_004() //the testcase is based on comments
781 sal_Int32 expVal
= 20;
782 OStringBuffer aStrBuf
;
783 sal_Int32 input
= 20;
785 aStrBuf
.ensureCapacity( input
);
787 CPPUNIT_ASSERT_EQUAL_MESSAGE
789 "capacity equal to 16, minimum is 20",
790 expVal
, aStrBuf
.getCapacity()
795 void ensureCapacity_005()
797 sal_Int32 expVal
= 50;
798 OStringBuffer aStrBuf
;
799 sal_Int32 input
= 50;
801 aStrBuf
.ensureCapacity( input
);
803 CPPUNIT_ASSERT_EQUAL_MESSAGE
805 "capacity equal to 16, minimum is 50",
806 expVal
, aStrBuf
.getCapacity()
811 void ensureCapacity_006()
813 sal_Int32 expVal
= 20;
814 OStringBuffer
aStrBuf( 6 );
815 sal_Int32 input
= 20;
817 aStrBuf
.ensureCapacity( input
);
819 CPPUNIT_ASSERT_EQUAL_MESSAGE
821 "capacity equal to 6, minimum is 20",
822 expVal
, aStrBuf
.getCapacity()
827 void ensureCapacity_007()
829 sal_Int32 expVal
= 6;
830 OStringBuffer
aStrBuf( 6 );
833 aStrBuf
.ensureCapacity( input
);
835 CPPUNIT_ASSERT_EQUAL_MESSAGE
837 "capacity equal to 6, minimum is 2",
838 expVal
, aStrBuf
.getCapacity()
843 void ensureCapacity_008()
845 sal_Int32 expVal
= 6;
846 OStringBuffer
aStrBuf( 6 );
847 sal_Int32 input
= -6;
849 aStrBuf
.ensureCapacity( input
);
851 CPPUNIT_ASSERT_EQUAL_MESSAGE
853 "capacity equal to 6, minimum is -6",
854 expVal
, aStrBuf
.getCapacity()
859 void ensureCapacity_009() //the testcase is based on comments
861 sal_Int32 expVal
= 10;
862 OStringBuffer
aStrBuf( 6 );
863 sal_Int32 input
= 10;
865 aStrBuf
.ensureCapacity( input
);
867 CPPUNIT_ASSERT_EQUAL_MESSAGE
869 "capacity equal to 6, minimum is -6",
870 expVal
, aStrBuf
.getCapacity()
875 void ensureCapacity_010()
877 sal_Int32 expVal
= 6;
878 OStringBuffer
aStrBuf( 0 );
881 aStrBuf
.ensureCapacity( input
);
883 CPPUNIT_ASSERT_EQUAL_MESSAGE
885 "capacity equal to 0, minimum is 6",
886 expVal
, aStrBuf
.getCapacity()
891 void ensureCapacity_011() //the testcase is based on comments
893 sal_Int32 expVal
= 2; // capacity is x = (str->length + 1) * 2; minimum < x ? x : minimum
894 OStringBuffer
aStrBuf( 0 );
897 aStrBuf
.ensureCapacity( input
);
899 CPPUNIT_ASSERT_EQUAL_MESSAGE
901 "capacity equal to 0, minimum is 1",
902 expVal
, aStrBuf
.getCapacity()
907 void ensureCapacity_012()
909 sal_Int32 expVal
= 0;
910 OStringBuffer
aStrBuf( 0 );
911 sal_Int32 input
= -1;
913 aStrBuf
.ensureCapacity( input
);
915 CPPUNIT_ASSERT_EQUAL_MESSAGE
917 "capacity equal to 0, minimum is -1",
918 expVal
, aStrBuf
.getCapacity()
923 CPPUNIT_TEST_SUITE( ensureCapacity
);
924 CPPUNIT_TEST( ensureCapacity_001
);
925 CPPUNIT_TEST( ensureCapacity_002
);
926 CPPUNIT_TEST( ensureCapacity_003
);
927 CPPUNIT_TEST( ensureCapacity_004
);
928 CPPUNIT_TEST( ensureCapacity_005
);
929 CPPUNIT_TEST( ensureCapacity_006
);
930 CPPUNIT_TEST( ensureCapacity_007
);
931 CPPUNIT_TEST( ensureCapacity_008
);
932 CPPUNIT_TEST( ensureCapacity_009
);
933 CPPUNIT_TEST( ensureCapacity_010
);
934 CPPUNIT_TEST( ensureCapacity_011
);
935 CPPUNIT_TEST( ensureCapacity_012
);
936 CPPUNIT_TEST_SUITE_END();
939 class setLength
: public CppUnit::TestFixture
944 void setUp() override
946 arrOUS
[0] = OString( kTestStr1
);
947 arrOUS
[1] = OString( "1" );
948 arrOUS
[2] = OString( );
949 arrOUS
[3] = OString( "" );
950 arrOUS
[4] = OString( "\0", 1 );
951 arrOUS
[5] = OString( kTestStr2
);
957 OStringBuffer
aStrBuf( arrOUS
[0] );
958 sal_Int32 expVal1
= 50;
959 OString
expVal2( kTestStr1
);
960 sal_Int32 expVal3
= 50;
961 sal_Int32 input
= 50;
963 aStrBuf
.setLength( input
);
965 CPPUNIT_ASSERT_EQUAL_MESSAGE
967 "newLength more than the capacity of OStringBuffer(kTestStr1)",
968 expVal2
, OString(aStrBuf
.getStr())
970 CPPUNIT_ASSERT_EQUAL_MESSAGE
972 "newLength more than the capacity of OStringBuffer(kTestStr1)",
973 expVal1
, aStrBuf
.getLength()
975 CPPUNIT_ASSERT_EQUAL_MESSAGE
977 "newLength more than the capacity of OStringBuffer(kTestStr1)",
978 expVal3
, aStrBuf
.getCapacity()
985 OStringBuffer
aStrBuf( arrOUS
[0] );
986 sal_Int32 expVal1
= kTestStr13Len
;
987 OString
expVal2( kTestStr1
);
988 sal_Int32 expVal3
= 32;
989 sal_Int32 input
= kTestStr13Len
;
991 aStrBuf
.setLength( input
);
993 CPPUNIT_ASSERT_EQUAL_MESSAGE
995 "newLength more than the length of OStringBuffer(kTestStr1)",
996 expVal2
, OString(aStrBuf
.getStr())
998 CPPUNIT_ASSERT_EQUAL_MESSAGE
1000 "newLength more than the length of OStringBuffer(kTestStr1)",
1001 expVal1
, aStrBuf
.getLength()
1003 CPPUNIT_ASSERT_EQUAL_MESSAGE
1005 "newLength more than the length of OStringBuffer(kTestStr1)",
1006 expVal3
, aStrBuf
.getCapacity()
1011 void setLength_003()
1013 OStringBuffer
aStrBuf( arrOUS
[0] );
1014 sal_Int32 expVal1
= kTestStr1Len
;
1015 OString
expVal2( kTestStr1
);
1016 sal_Int32 expVal3
= 32;
1017 sal_Int32 input
= kTestStr1Len
;
1019 aStrBuf
.setLength( input
);
1021 CPPUNIT_ASSERT_EQUAL_MESSAGE
1023 "newLength equal to the length of OStringBuffer(kTestStr1)",
1024 expVal2
, OString(aStrBuf
.getStr())
1026 CPPUNIT_ASSERT_EQUAL_MESSAGE
1028 "newLength equal to the length of OStringBuffer(kTestStr1)",
1029 expVal1
, aStrBuf
.getLength()
1031 CPPUNIT_ASSERT_EQUAL_MESSAGE
1033 "newLength equal to the length of OStringBuffer(kTestStr1)",
1034 expVal3
, aStrBuf
.getCapacity()
1039 void setLength_004()
1041 OStringBuffer
aStrBuf( arrOUS
[0] );
1042 sal_Int32 expVal1
= kTestStr7Len
;
1043 OString
expVal2( kTestStr7
);
1044 sal_Int32 expVal3
= 32;
1045 sal_Int32 input
= kTestStr7Len
;
1047 aStrBuf
.setLength( input
);
1049 CPPUNIT_ASSERT_EQUAL_MESSAGE
1051 "newLength less than the length of OStringBuffer(kTestStr1)",
1052 expVal2
, OString(aStrBuf
.getStr())
1054 CPPUNIT_ASSERT_EQUAL_MESSAGE
1056 "newLength less than the length of OStringBuffer(kTestStr1)",
1057 expVal1
, aStrBuf
.getLength()
1059 CPPUNIT_ASSERT_EQUAL_MESSAGE
1061 "newLength less than the length of OStringBuffer(kTestStr1)",
1062 expVal3
, aStrBuf
.getCapacity()
1067 void setLength_005()
1069 OStringBuffer
aStrBuf( arrOUS
[0] );
1070 sal_Int32 expVal1
= 0;
1071 sal_Int32 expVal3
= 32;
1072 sal_Int32 input
= 0;
1074 aStrBuf
.setLength( input
);
1076 CPPUNIT_ASSERT_EQUAL_MESSAGE
1078 "newLength equal to 0",
1079 '\0', aStrBuf
.getStr()[0]
1081 CPPUNIT_ASSERT_EQUAL_MESSAGE
1083 "newLength equal to 0",
1084 expVal1
, aStrBuf
.getLength()
1086 CPPUNIT_ASSERT_EQUAL_MESSAGE
1088 "newLength equal to 0",
1089 expVal3
, aStrBuf
.getCapacity()
1094 void setLength_006()
1096 OStringBuffer
aStrBuf( arrOUS
[1] );
1097 sal_Int32 expVal1
= 25;
1098 OString
expVal2( arrOUS
[1] );
1099 sal_Int32 expVal3
= 25;
1100 sal_Int32 input
= 25;
1102 aStrBuf
.setLength( input
);
1104 CPPUNIT_ASSERT_EQUAL_MESSAGE
1106 "newLength more than the capacity of OStringBuffer(1)",
1107 expVal2
, OString(aStrBuf
.getStr())
1109 CPPUNIT_ASSERT_EQUAL_MESSAGE
1111 "newLength more than the capacity of OStringBuffer(1)",
1112 expVal1
, aStrBuf
.getLength()
1114 CPPUNIT_ASSERT_EQUAL_MESSAGE
1116 "newLength more than the capacity of OStringBuffer(1)",
1117 expVal3
, aStrBuf
.getCapacity()
1122 void setLength_007()
1124 OStringBuffer
aStrBuf( arrOUS
[1] );
1125 sal_Int32 expVal1
= kTestStr27Len
;
1126 OString
expVal2( arrOUS
[1] );
1127 sal_Int32 expVal3
= 17;
1128 sal_Int32 input
= kTestStr27Len
;
1130 aStrBuf
.setLength( input
);
1132 CPPUNIT_ASSERT_EQUAL_MESSAGE
1134 "newLength equal to the length of OStringBuffer(1)",
1135 expVal2
, OString(aStrBuf
.getStr())
1137 CPPUNIT_ASSERT_EQUAL_MESSAGE
1139 "newLength equal to the length of OStringBuffer(1)",
1140 expVal1
, aStrBuf
.getLength()
1142 CPPUNIT_ASSERT_EQUAL_MESSAGE
1144 "newLength equal to the length of OStringBuffer(1)",
1145 expVal3
, aStrBuf
.getCapacity()
1150 void setLength_008()
1152 OStringBuffer
aStrBuf( arrOUS
[1] );
1153 sal_Int32 expVal1
= 0;
1154 sal_Int32 expVal3
= 17;
1155 sal_Int32 input
= 0;
1157 aStrBuf
.setLength( input
);
1159 CPPUNIT_ASSERT_EQUAL_MESSAGE
1161 "newLength less than the length of OUStringBuffer(1)",
1162 '\0', aStrBuf
.getStr()[0]
1164 CPPUNIT_ASSERT_EQUAL_MESSAGE
1166 "newLength less than the length of OUStringBuffer(1)",
1167 expVal1
, aStrBuf
.getLength()
1169 CPPUNIT_ASSERT_EQUAL_MESSAGE
1171 "newLength less than the length of OUStringBuffer(1)",
1172 expVal3
, aStrBuf
.getCapacity()
1177 void setLength_009()
1179 OStringBuffer
aStrBuf( arrOUS
[2] );
1180 sal_Int32 expVal1
= 20;
1181 sal_Int32 expVal3
= 20;
1182 sal_Int32 input
= 20;
1184 aStrBuf
.setLength( input
);
1186 CPPUNIT_ASSERT_EQUAL_MESSAGE
1188 "newLength more than the capacity of OStringBuffer()",
1189 '\0', aStrBuf
.getStr()[0]
1191 CPPUNIT_ASSERT_EQUAL_MESSAGE
1193 "newLength more than the capacity of OStringBuffer()",
1194 expVal1
, aStrBuf
.getLength()
1196 CPPUNIT_ASSERT_EQUAL_MESSAGE
1198 "newLength more than the capacity of OStringBuffer()",
1199 expVal3
, aStrBuf
.getCapacity()
1204 void setLength_010()
1206 OStringBuffer
aStrBuf( arrOUS
[2] );
1207 sal_Int32 expVal1
= 3;
1208 sal_Int32 expVal3
= 16;
1209 sal_Int32 input
= 3;
1211 aStrBuf
.setLength( input
);
1213 CPPUNIT_ASSERT_EQUAL_MESSAGE
1215 "newLength more than the length of OStringBuffer()",
1216 '\0', aStrBuf
.getStr()[0]
1218 CPPUNIT_ASSERT_EQUAL_MESSAGE
1220 "newLength more than the length of OStringBuffer()",
1221 expVal1
, aStrBuf
.getLength()
1223 CPPUNIT_ASSERT_EQUAL_MESSAGE
1225 "newLength more than the length of OStringBuffer()",
1226 expVal3
, aStrBuf
.getCapacity()
1231 void setLength_011()
1233 OStringBuffer
aStrBuf( arrOUS
[2] );
1234 sal_Int32 expVal1
= 0;
1235 sal_Int32 expVal3
= 16;
1236 sal_Int32 input
= 0;
1238 aStrBuf
.setLength( input
);
1240 CPPUNIT_ASSERT_EQUAL_MESSAGE
1242 "newLength more than the length of OStringBuffer()",
1243 '\0', aStrBuf
.getStr()[0]
1245 CPPUNIT_ASSERT_EQUAL_MESSAGE
1247 "newLength more than the length of OStringBuffer()",
1248 expVal1
, aStrBuf
.getLength()
1250 CPPUNIT_ASSERT_EQUAL_MESSAGE
1252 "newLength more than the length of OStringBuffer()",
1253 expVal3
, aStrBuf
.getCapacity()
1258 void setLength_012()
1260 OStringBuffer
aStrBuf( arrOUS
[3] );
1261 sal_Int32 expVal1
= 20;
1262 sal_Int32 expVal3
= 20;
1263 sal_Int32 input
= 20;
1265 aStrBuf
.setLength( input
);
1267 CPPUNIT_ASSERT_EQUAL_MESSAGE
1269 "newLength more than the capacity of OStringBuffer("")",
1270 '\0', aStrBuf
.getStr()[0]
1272 CPPUNIT_ASSERT_EQUAL_MESSAGE
1274 "newLength more than the capacity of OStringBuffer("")",
1275 expVal1
, aStrBuf
.getLength()
1277 CPPUNIT_ASSERT_EQUAL_MESSAGE
1279 "newLength more than the capacity of OStringBuffer("")",
1280 expVal3
, aStrBuf
.getCapacity()
1285 void setLength_013()
1287 OStringBuffer
aStrBuf( arrOUS
[3] );
1288 sal_Int32 expVal1
= 5;
1289 sal_Int32 expVal3
= 16;
1290 sal_Int32 input
= 5;
1292 aStrBuf
.setLength( input
);
1294 CPPUNIT_ASSERT_EQUAL_MESSAGE
1296 "newLength more than the length of OStringBuffer("")",
1297 '\0', aStrBuf
.getStr()[0]
1299 CPPUNIT_ASSERT_EQUAL_MESSAGE
1301 "newLength more than the length of OStringBuffer("")",
1302 expVal1
, aStrBuf
.getLength()
1304 CPPUNIT_ASSERT_EQUAL_MESSAGE
1306 "newLength more than the length of OStringBuffer("")",
1307 expVal3
, aStrBuf
.getCapacity()
1312 void setLength_014()
1314 OStringBuffer
aStrBuf( arrOUS
[3] );
1315 sal_Int32 expVal1
= 0;
1316 sal_Int32 expVal3
= 16;
1317 sal_Int32 input
= 0;
1319 aStrBuf
.setLength( input
);
1321 CPPUNIT_ASSERT_EQUAL_MESSAGE
1323 "newLength less than the length of OStringBuffer("")",
1324 '\0', aStrBuf
.getStr()[0]
1326 CPPUNIT_ASSERT_EQUAL_MESSAGE
1328 "newLength less than the length of OStringBuffer("")",
1329 expVal1
, aStrBuf
.getLength()
1331 CPPUNIT_ASSERT_EQUAL_MESSAGE
1333 "newLength less than the length of OStringBuffer("")",
1334 expVal3
, aStrBuf
.getCapacity()
1339 void setLength_015()
1341 OStringBuffer
aStrBuf( arrOUS
[4] );
1342 sal_Int32 expVal1
= 20;
1343 sal_Int32 expVal3
= 20;
1344 sal_Int32 input
= 20;
1346 aStrBuf
.setLength( input
);
1348 CPPUNIT_ASSERT_EQUAL_MESSAGE
1350 "newLength more than the length of OStringBuffer(\0)",
1351 '\0', aStrBuf
.getStr()[0]
1353 CPPUNIT_ASSERT_EQUAL_MESSAGE
1355 "newLength more than the length of OStringBuffer(\0)",
1356 expVal1
, aStrBuf
.getLength()
1358 CPPUNIT_ASSERT_EQUAL_MESSAGE
1360 "newLength more than the length of OStringBuffer(\0)",
1361 expVal3
, aStrBuf
.getCapacity()
1366 void setLength_016()
1368 OStringBuffer
aStrBuf( arrOUS
[4] );
1369 sal_Int32 expVal1
= 5;
1370 sal_Int32 expVal3
= 17;
1371 sal_Int32 input
= 5;
1373 aStrBuf
.setLength( input
);
1375 CPPUNIT_ASSERT_EQUAL_MESSAGE
1377 "newLength more than the length of OStringBuffer(\0)",
1378 '\0', aStrBuf
.getStr()[0]
1380 CPPUNIT_ASSERT_EQUAL_MESSAGE
1382 "newLength more than the length of OStringBuffer(\0)",
1383 expVal1
, aStrBuf
.getLength()
1385 CPPUNIT_ASSERT_EQUAL_MESSAGE
1387 "newLength more than the length of OStringBuffer(\0)",
1388 expVal3
, aStrBuf
.getCapacity()
1393 void setLength_017()
1395 OStringBuffer
aStrBuf( arrOUS
[4] );
1396 sal_Int32 expVal1
= 0;
1397 sal_Int32 expVal3
= 17;
1398 sal_Int32 input
= 0;
1400 aStrBuf
.setLength( input
);
1402 CPPUNIT_ASSERT_EQUAL_MESSAGE
1404 "newLength less than the length of OStringBuffer(\0)",
1405 '\0', aStrBuf
.getStr()[0]
1407 CPPUNIT_ASSERT_EQUAL_MESSAGE
1409 "newLength less than the length of OStringBuffer(\0)",
1410 expVal1
, aStrBuf
.getLength()
1412 CPPUNIT_ASSERT_EQUAL_MESSAGE
1414 "newLength less than the length of OStringBuffer(\0)",
1415 expVal3
, aStrBuf
.getCapacity()
1420 void setLength_018()
1422 OStringBuffer
aStrBuf( arrOUS
[5] );
1423 sal_Int32 expVal1
= 50;
1424 OString
expVal2( kTestStr2
);
1425 sal_Int32 expVal3
= 66;
1426 sal_Int32 input
= 50;
1428 aStrBuf
.setLength( input
);
1430 CPPUNIT_ASSERT_EQUAL_MESSAGE
1432 "newLength more than the capacity of OStringBuffer(kTestStr2)",
1433 expVal2
, OString(aStrBuf
.getStr())
1435 CPPUNIT_ASSERT_EQUAL_MESSAGE
1437 "newLength more than the capacity of OStringBuffer(kTestStr2)",
1438 expVal1
, aStrBuf
.getLength()
1440 CPPUNIT_ASSERT_EQUAL_MESSAGE
1442 "newLength more than the capacity of OStringBuffer(kTestStr2)",
1443 expVal3
, aStrBuf
.getCapacity()
1448 void setLength_019()
1450 OStringBuffer
aStrBuf( arrOUS
[5] );
1451 sal_Int32 expVal1
= 40;
1452 OString
expVal2(kTestStr2
);
1453 sal_Int32 expVal3
= 48;
1454 sal_Int32 input
= 40;
1456 aStrBuf
.setLength( input
);
1458 CPPUNIT_ASSERT_EQUAL_MESSAGE
1460 "newLength more than the length of OStringBuffer(kTestStr2)",
1461 expVal2
, OString(aStrBuf
.getStr())
1463 CPPUNIT_ASSERT_EQUAL_MESSAGE
1465 "newLength more than the length of OStringBuffer(kTestStr2)",
1466 expVal1
, aStrBuf
.getLength()
1468 CPPUNIT_ASSERT_EQUAL_MESSAGE
1470 "newLength more than the length of OStringBuffer(kTestStr2)",
1471 expVal3
, aStrBuf
.getCapacity()
1476 void setLength_020()
1478 OStringBuffer
aStrBuf( arrOUS
[5] );
1479 sal_Int32 expVal1
= kTestStr2Len
;
1480 OString
expVal2(kTestStr2
);
1481 sal_Int32 expVal3
= 48;
1482 sal_Int32 input
= kTestStr2Len
;
1484 aStrBuf
.setLength( input
);
1486 CPPUNIT_ASSERT_EQUAL_MESSAGE
1488 "newLength equal to the length of OUStringBuffer(kTestStr2)",
1489 expVal2
, OString(aStrBuf
.getStr())
1491 CPPUNIT_ASSERT_EQUAL_MESSAGE
1493 "newLength equal to the length of OUStringBuffer(kTestStr2)",
1494 expVal1
, aStrBuf
.getLength()
1496 CPPUNIT_ASSERT_EQUAL_MESSAGE
1498 "newLength equal to the length of OUStringBuffer(kTestStr2)",
1499 expVal3
, aStrBuf
.getCapacity()
1504 void setLength_021()
1506 OStringBuffer
aStrBuf( arrOUS
[5] );
1507 sal_Int32 expVal1
= kTestStr7Len
;
1508 OString
expVal2(kTestStr7
);
1509 sal_Int32 expVal3
= 48;
1510 sal_Int32 input
= kTestStr7Len
;
1512 aStrBuf
.setLength( input
);
1514 CPPUNIT_ASSERT_EQUAL_MESSAGE
1516 "newLength less than the length of OUStringBuffer(TestStr2)",
1517 expVal2
, OString(aStrBuf
.getStr())
1519 CPPUNIT_ASSERT_EQUAL_MESSAGE
1521 "newLength less than the length of OUStringBuffer(TestStr2)",
1522 expVal1
, aStrBuf
.getLength()
1524 CPPUNIT_ASSERT_EQUAL_MESSAGE
1526 "newLength less than the length of OUStringBuffer(TestStr2)",
1527 expVal3
, aStrBuf
.getCapacity()
1532 void setLength_022()
1534 OStringBuffer
aStrBuf( arrOUS
[5] );
1535 sal_Int32 expVal1
= 0;
1536 sal_Int32 expVal3
= 48;
1537 sal_Int32 input
= 0;
1539 aStrBuf
.setLength( input
);
1541 CPPUNIT_ASSERT_EQUAL_MESSAGE
1543 "newLength equal to 0",
1544 '\0', aStrBuf
.getStr()[0]
1546 CPPUNIT_ASSERT_EQUAL_MESSAGE
1548 "newLength equal to 0",
1549 expVal1
, aStrBuf
.getLength()
1551 CPPUNIT_ASSERT_EQUAL_MESSAGE
1553 "newLength equal to 0",
1554 expVal3
, aStrBuf
.getCapacity()
1559 CPPUNIT_TEST_SUITE( setLength
);
1560 CPPUNIT_TEST( setLength_001
);
1561 CPPUNIT_TEST( setLength_002
);
1562 CPPUNIT_TEST( setLength_003
);
1563 CPPUNIT_TEST( setLength_004
);
1564 CPPUNIT_TEST( setLength_005
);
1565 CPPUNIT_TEST( setLength_006
);
1566 CPPUNIT_TEST( setLength_007
);
1567 CPPUNIT_TEST( setLength_008
);
1568 CPPUNIT_TEST( setLength_009
);
1569 CPPUNIT_TEST( setLength_010
);
1570 CPPUNIT_TEST( setLength_011
);
1571 CPPUNIT_TEST( setLength_012
);
1572 CPPUNIT_TEST( setLength_013
);
1573 CPPUNIT_TEST( setLength_014
);
1574 CPPUNIT_TEST( setLength_015
);
1575 CPPUNIT_TEST( setLength_016
);
1576 CPPUNIT_TEST( setLength_017
);
1577 CPPUNIT_TEST( setLength_018
);
1578 CPPUNIT_TEST( setLength_019
);
1579 CPPUNIT_TEST( setLength_020
);
1580 CPPUNIT_TEST( setLength_021
);
1581 CPPUNIT_TEST( setLength_022
);
1582 CPPUNIT_TEST_SUITE_END();
1585 class csuc
: public CppUnit::TestFixture
1589 const char* expVal
= kTestStr1
;
1590 OStringBuffer
aStrBuf( kTestStr1
);
1591 sal_Int32 cmpLen
= kTestStr1Len
;
1593 // LLA: wrong access! const char* pstr = *&aStrBuf;
1594 const char* pstr
= aStrBuf
.getStr();
1595 int nEqual
= strncmp(pstr
, expVal
, cmpLen
);
1597 CPPUNIT_ASSERT_EQUAL_MESSAGE
1599 "test normal string",
1600 /* cmpstr( pstr, expVal, cmpLen ) */
1608 OStringBuffer aStrBuf
;
1610 // LLA: wrong access! const char* pstr = *&aStrBuf;
1611 const char* pstr
= aStrBuf
.getStr();
1612 sal_Int32 nLen
= strlen(pstr
);
1614 CPPUNIT_ASSERT_EQUAL_MESSAGE
1616 "test empty string",
1617 // cmpstr( pstr, &expVal, cmpLen )
1618 static_cast<sal_Int32
>(0), nLen
1623 CPPUNIT_TEST_SUITE( csuc
);
1624 CPPUNIT_TEST( csuc_001
);
1625 CPPUNIT_TEST( csuc_002
);
1626 CPPUNIT_TEST_SUITE_END();
1629 class getStr
: public CppUnit::TestFixture
1633 const char* expVal
= kTestStr1
;
1634 OStringBuffer
aStrBuf( kTestStr1
);
1635 sal_Int32 cmpLen
= kTestStr1Len
;
1637 const char* pstr
= aStrBuf
.getStr();
1638 int nEqual
= strncmp(pstr
, expVal
, cmpLen
);
1640 CPPUNIT_ASSERT_EQUAL_MESSAGE
1642 "test normal string",
1650 OStringBuffer aStrBuf
;
1651 const char* pstr
= aStrBuf
.getStr();
1652 CPPUNIT_ASSERT_MESSAGE
1654 "test empty string",
1657 CPPUNIT_ASSERT_EQUAL_MESSAGE
1659 "test empty string",
1665 CPPUNIT_TEST_SUITE( getStr
);
1666 CPPUNIT_TEST( getStr_001
);
1667 CPPUNIT_TEST( getStr_002
);
1668 CPPUNIT_TEST_SUITE_END();
1671 class append_001
: public CppUnit::TestFixture
1675 OString empty
; // silence loplugin
1678 void setUp() override
1680 arrOUS
[0] = OString( kTestStr7
);
1681 arrOUS
[1] = OString( );
1682 arrOUS
[2] = OString( kTestStr25
);
1683 arrOUS
[3] = OString( "" );
1684 arrOUS
[4] = OString( kTestStr28
);
1688 void append_001_001()
1690 OString
expVal( kTestStr1
);
1691 OStringBuffer
aStrBuf( arrOUS
[0] );
1692 OString
input2( kTestStr8
);
1694 aStrBuf
.append( input2
);
1696 CPPUNIT_ASSERT_EQUAL_MESSAGE
1698 "Appends the string(length less than 16) to the string buffer arrOUS[0]",
1699 expVal
, OString(aStrBuf
.getStr())
1701 CPPUNIT_ASSERT_EQUAL_MESSAGE
1703 "Appends the string(length less than 16) to the string buffer arrOUS[0]",
1704 expVal
.getLength(), aStrBuf
.getLength()
1709 void append_001_002()
1711 OString
expVal( kTestStr2
);
1712 OStringBuffer
aStrBuf( arrOUS
[0] );
1713 OString
input2( kTestStr36
);
1715 aStrBuf
.append( input2
);
1717 CPPUNIT_ASSERT_EQUAL_MESSAGE
1719 "Appends the string(length more than 16) to the string buffer arrOUS[0]",
1720 expVal
, OString(aStrBuf
.getStr())
1722 CPPUNIT_ASSERT_EQUAL_MESSAGE
1724 "Appends the string(length more than 16) to the string buffer arrOUS[0]",
1725 expVal
.getLength(), aStrBuf
.getLength()
1730 void append_001_003()
1732 OString
expVal( kTestStr37
);
1733 OStringBuffer
aStrBuf( arrOUS
[0] );
1734 OString
input2( kTestStr23
);
1736 aStrBuf
.append( input2
);
1738 CPPUNIT_ASSERT_EQUAL_MESSAGE
1740 "Appends the string(length equal to 16) to the string buffer arrOUS[0]",
1741 expVal
, OString(aStrBuf
.getStr())
1743 CPPUNIT_ASSERT_EQUAL_MESSAGE
1745 "Appends the string(length equal to 16) to the string buffer arrOUS[0]",
1746 expVal
.getLength(), aStrBuf
.getLength()
1751 void append_001_004()
1753 OString
expVal( kTestStr7
);
1754 OStringBuffer
aStrBuf( arrOUS
[0] );
1756 aStrBuf
.append( empty
);
1758 CPPUNIT_ASSERT_EQUAL_MESSAGE
1760 "Appends the string(length equal to 0) to the string buffer arrOUS[0]",
1761 expVal
, OString(aStrBuf
.getStr())
1763 CPPUNIT_ASSERT_EQUAL_MESSAGE
1765 "Appends the string(length equal to 0) to the string buffer arrOUS[0]",
1766 expVal
.getLength(), aStrBuf
.getLength()
1771 void append_001_005()
1773 OString
expVal( kTestStr7
);
1774 OStringBuffer
aStrBuf( arrOUS
[1] );
1775 OString
input2( kTestStr7
);
1777 aStrBuf
.append( input2
);
1779 CPPUNIT_ASSERT_EQUAL_MESSAGE
1781 "Appends the string(length less than 16) to the string buffer arrOUS[1]",
1782 expVal
, OString(aStrBuf
.getStr())
1784 CPPUNIT_ASSERT_EQUAL_MESSAGE
1786 "Appends the string(length less than 16) to the string buffer arrOUS[1]",
1787 expVal
.getLength(), aStrBuf
.getLength()
1792 void append_001_006()
1794 OString
expVal( kTestStr2
);
1795 OStringBuffer
aStrBuf( arrOUS
[1] );
1796 OString
input2( kTestStr2
);
1798 aStrBuf
.append( input2
);
1800 CPPUNIT_ASSERT_EQUAL_MESSAGE
1802 "Appends the string(length more than 16) to the string buffer arrOUS[1]",
1803 expVal
, OString(aStrBuf
.getStr())
1805 CPPUNIT_ASSERT_EQUAL_MESSAGE
1807 "Appends the string(length more than 16) to the string buffer arrOUS[1]",
1808 expVal
.getLength(), aStrBuf
.getLength()
1813 void append_001_007()
1815 OString
expVal( kTestStr1
);
1816 OStringBuffer
aStrBuf( arrOUS
[1] );
1817 OString
input2( kTestStr1
);
1819 aStrBuf
.append( input2
);
1821 CPPUNIT_ASSERT_EQUAL_MESSAGE
1823 "Appends the string(length equal to 16) to the string buffer arrOUS[1]",
1824 expVal
, OString(aStrBuf
.getStr())
1826 CPPUNIT_ASSERT_EQUAL_MESSAGE
1828 "Appends the string(length equal to 16) to the string buffer arrOUS[1]",
1829 expVal
.getLength(), aStrBuf
.getLength()
1834 void append_001_008()
1837 OStringBuffer
aStrBuf( arrOUS
[1] );
1839 aStrBuf
.append( empty
);
1841 CPPUNIT_ASSERT_EQUAL_MESSAGE
1843 "Appends the string(length equal to 0) to the string buffer arrOUS[1]",
1844 expVal
, OString(aStrBuf
.getStr())
1846 CPPUNIT_ASSERT_EQUAL_MESSAGE
1848 "Appends the string(length equal to 0) to the string buffer arrOUS[1]",
1849 expVal
.getLength(), aStrBuf
.getLength()
1854 void append_001_009()
1856 OString
expVal( kTestStr7
);
1857 OStringBuffer
aStrBuf( arrOUS
[2] );
1858 OString
input2( kTestStr7
);
1860 aStrBuf
.append( input2
);
1862 CPPUNIT_ASSERT_EQUAL_MESSAGE
1864 "Appends the string(length less than 16) to the string buffer arrOUS[2]",
1865 expVal
, OString(aStrBuf
.getStr())
1867 CPPUNIT_ASSERT_EQUAL_MESSAGE
1869 "Appends the string(length less than 16) to the string buffer arrOUS[2]",
1870 expVal
.getLength(), aStrBuf
.getLength()
1875 void append_001_010()
1877 OString
expVal( kTestStr2
);
1878 OStringBuffer
aStrBuf( arrOUS
[2] );
1879 OString
input2( kTestStr2
);
1881 aStrBuf
.append( input2
);
1883 CPPUNIT_ASSERT_EQUAL_MESSAGE
1885 "Appends the string(length more than 16) to the string buffer arrOUS[2]",
1886 expVal
, OString(aStrBuf
.getStr())
1888 CPPUNIT_ASSERT_EQUAL_MESSAGE
1890 "Appends the string(length more than 16) to the string buffer arrOUS[2]",
1891 expVal
.getLength(), aStrBuf
.getLength()
1896 void append_001_011()
1898 OString
expVal( kTestStr1
);
1899 OStringBuffer
aStrBuf( arrOUS
[2] );
1900 OString
input2( kTestStr1
);
1902 aStrBuf
.append( input2
);
1904 CPPUNIT_ASSERT_EQUAL_MESSAGE
1906 "Appends the string(length equal to 16) to the string buffer arrOUS[2]",
1907 expVal
, OString(aStrBuf
.getStr())
1909 CPPUNIT_ASSERT_EQUAL_MESSAGE
1911 "Appends the string(length equal to 16) to the string buffer arrOUS[2]",
1912 expVal
.getLength(), aStrBuf
.getLength()
1917 void append_001_012()
1920 OStringBuffer
aStrBuf( arrOUS
[2] );
1922 aStrBuf
.append( empty
);
1924 CPPUNIT_ASSERT_EQUAL_MESSAGE
1926 "Appends the string(length equal to 0) to the string buffer arrOUS[2]",
1927 expVal
, OString(aStrBuf
.getStr())
1929 CPPUNIT_ASSERT_EQUAL_MESSAGE
1931 "Appends the string(length equal to 0) to the string buffer arrOUS[2]",
1932 expVal
.getLength(), aStrBuf
.getLength()
1937 void append_001_013()
1939 OString
expVal( kTestStr7
);
1940 OStringBuffer
aStrBuf( arrOUS
[3] );
1941 OString
input2( kTestStr7
);
1943 aStrBuf
.append( input2
);
1945 CPPUNIT_ASSERT_EQUAL_MESSAGE
1947 "Appends the string(length less than 16) to the string buffer arrOUS[3]",
1948 expVal
, OString(aStrBuf
.getStr())
1950 CPPUNIT_ASSERT_EQUAL_MESSAGE
1952 "Appends the string(length less than 16) to the string buffer arrOUS[3]",
1953 expVal
.getLength(), aStrBuf
.getLength()
1958 void append_001_014()
1960 OString
expVal( kTestStr2
);
1961 OStringBuffer
aStrBuf( arrOUS
[3] );
1962 OString
input2( kTestStr2
);
1964 aStrBuf
.append( input2
);
1966 CPPUNIT_ASSERT_EQUAL_MESSAGE
1968 "Appends the string(length more than 16) to the string buffer arrOUS[3]",
1969 expVal
, OString(aStrBuf
.getStr())
1971 CPPUNIT_ASSERT_EQUAL_MESSAGE
1973 "Appends the string(length more than 16) to the string buffer arrOUS[3]",
1974 expVal
.getLength(), aStrBuf
.getLength()
1979 void append_001_015()
1981 OString
expVal( kTestStr1
);
1982 OStringBuffer
aStrBuf( arrOUS
[3] );
1983 OString
input2( kTestStr1
);
1985 aStrBuf
.append( input2
);
1987 CPPUNIT_ASSERT_EQUAL_MESSAGE
1989 "Appends the string(length equal to 16) to the string buffer arrOUS[3]",
1990 expVal
, OString(aStrBuf
.getStr())
1992 CPPUNIT_ASSERT_EQUAL_MESSAGE
1994 "Appends the string(length equal to 16) to the string buffer arrOUS[3]",
1995 expVal
.getLength(), aStrBuf
.getLength()
2000 void append_001_016()
2003 OStringBuffer
aStrBuf( arrOUS
[3] );
2005 aStrBuf
.append( empty
);
2007 CPPUNIT_ASSERT_EQUAL_MESSAGE
2009 "Appends the string(length equal to 0) to the string buffer arrOUS[3]",
2010 expVal
, OString(aStrBuf
.getStr())
2012 CPPUNIT_ASSERT_EQUAL_MESSAGE
2014 "Appends the string(length equal to 0) to the string buffer arrOUS[3]",
2015 expVal
.getLength(), aStrBuf
.getLength()
2020 void append_001_017()
2022 OString
expVal( kTestStr29
);
2023 OStringBuffer
aStrBuf( arrOUS
[4] );
2024 OString
input2( kTestStr38
);
2026 aStrBuf
.append( input2
);
2028 CPPUNIT_ASSERT_EQUAL_MESSAGE
2030 "Appends the string(length less than 16) to the string buffer arrOUS[4]",
2031 expVal
, OString(aStrBuf
.getStr())
2033 CPPUNIT_ASSERT_EQUAL_MESSAGE
2035 "Appends the string(length less than 16) to the string buffer arrOUS[4]",
2036 expVal
.getLength(), aStrBuf
.getLength()
2041 void append_001_018()
2043 OString
expVal( kTestStr39
);
2044 OStringBuffer
aStrBuf( arrOUS
[4] );
2045 OString
input2( kTestStr17
);
2047 aStrBuf
.append( input2
);
2049 CPPUNIT_ASSERT_EQUAL_MESSAGE
2051 "Appends the string(length more than 16) to the string buffer arrOUS[4]",
2052 expVal
, OString(aStrBuf
.getStr())
2054 CPPUNIT_ASSERT_EQUAL_MESSAGE
2056 "Appends the string(length more than 16) to the string buffer arrOUS[4]",
2057 expVal
.getLength(), aStrBuf
.getLength()
2062 void append_001_019()
2064 OString
expVal( kTestStr40
);
2065 OStringBuffer
aStrBuf( arrOUS
[4] );
2066 OString
input2( kTestStr31
);
2068 aStrBuf
.append( input2
);
2070 CPPUNIT_ASSERT_EQUAL_MESSAGE
2072 "Appends the string(length equal to 16) to the string buffer arrOUS[4]",
2073 expVal
, OString(aStrBuf
.getStr())
2075 CPPUNIT_ASSERT_EQUAL_MESSAGE
2077 "Appends the string(length equal to 16) to the string buffer arrOUS[4]",
2078 expVal
.getLength(), aStrBuf
.getLength()
2083 void append_001_020()
2085 OString
expVal( kTestStr28
);
2086 OStringBuffer
aStrBuf( arrOUS
[4] );
2088 aStrBuf
.append( empty
);
2090 CPPUNIT_ASSERT_EQUAL_MESSAGE
2092 "Appends the string(length equal to 0) to the string buffer arrOUS[4]",
2093 expVal
, OString(aStrBuf
.getStr())
2095 CPPUNIT_ASSERT_EQUAL_MESSAGE
2097 "Appends the string(length equal to 0) to the string buffer arrOUS[4]",
2098 expVal
.getLength(), aStrBuf
.getLength()
2105 OStringBuffer
aStrBuf("hello world");
2107 aStrBuf
.append('\0');
2108 aStrBuf
.append('\1');
2109 aStrBuf
.append('\2');
2111 aStrBuf
.append("hello world");
2113 CPPUNIT_ASSERT_EQUAL_MESSAGE
2115 "should be able to append nulls",
2116 sal_Int32(2 * RTL_CONSTASCII_LENGTH("hello world") + 3), aStrBuf
.getLength()
2118 CPPUNIT_ASSERT_EQUAL_MESSAGE
2120 "should be able to append nulls",
2121 '\0', aStrBuf
[RTL_CONSTASCII_LENGTH("hello world")]
2123 CPPUNIT_ASSERT_EQUAL_MESSAGE
2125 "should be able to append nulls",
2126 1, aStrBuf
[RTL_CONSTASCII_LENGTH("hello world")]+1
2128 CPPUNIT_ASSERT_EQUAL_MESSAGE
2130 "should be able to append nulls",
2131 2, aStrBuf
[RTL_CONSTASCII_LENGTH("hello world")]+2
2136 CPPUNIT_TEST_SUITE( append_001
);
2137 CPPUNIT_TEST( append_001_001
);
2138 CPPUNIT_TEST( append_001_002
);
2139 CPPUNIT_TEST( append_001_003
);
2140 CPPUNIT_TEST( append_001_004
);
2141 CPPUNIT_TEST( append_001_005
);
2142 CPPUNIT_TEST( append_001_006
);
2143 CPPUNIT_TEST( append_001_007
);
2144 CPPUNIT_TEST( append_001_008
);
2145 CPPUNIT_TEST( append_001_009
);
2146 CPPUNIT_TEST( append_001_010
);
2147 CPPUNIT_TEST( append_001_011
);
2148 CPPUNIT_TEST( append_001_012
);
2149 CPPUNIT_TEST( append_001_013
);
2150 CPPUNIT_TEST( append_001_014
);
2151 CPPUNIT_TEST( append_001_015
);
2152 CPPUNIT_TEST( append_001_016
);
2153 CPPUNIT_TEST( append_001_017
);
2154 CPPUNIT_TEST( append_001_018
);
2155 CPPUNIT_TEST( append_001_019
);
2156 CPPUNIT_TEST( append_001_020
);
2157 CPPUNIT_TEST( append_null
);
2158 CPPUNIT_TEST_SUITE_END();
2161 class append_002
: public CppUnit::TestFixture
2166 void setUp() override
2168 arrOUS
[0] = OString( kTestStr7
);
2169 arrOUS
[1] = OString( );
2170 arrOUS
[2] = OString( kTestStr25
);
2171 arrOUS
[3] = OString( "" );
2172 arrOUS
[4] = OString( kTestStr28
);
2176 void append_002_001()
2178 OString
expVal( kTestStr1
);
2179 OStringBuffer
aStrBuf( arrOUS
[0] );
2180 const char* input
= kTestStr8
;
2182 aStrBuf
.append( input
);
2184 CPPUNIT_ASSERT_EQUAL_MESSAGE
2186 "Appends the string(length less than 16) to the string buffer arrOUS[0]",
2187 expVal
, OString(aStrBuf
.getStr())
2189 CPPUNIT_ASSERT_EQUAL_MESSAGE
2191 "Appends the string(length less than 16) to the string buffer arrOUS[0]",
2192 expVal
.getLength(), aStrBuf
.getLength()
2197 void append_002_002()
2199 OString
expVal( kTestStr2
);
2200 OStringBuffer
aStrBuf( arrOUS
[0] );
2201 const char* input
= kTestStr36
;
2203 aStrBuf
.append( input
);
2205 CPPUNIT_ASSERT_EQUAL_MESSAGE
2207 "Appends the string(length more than 16) to the string buffer arrOUS[0]",
2208 expVal
, OString(aStrBuf
.getStr())
2210 CPPUNIT_ASSERT_EQUAL_MESSAGE
2212 "Appends the string(length more than 16) to the string buffer arrOUS[0]",
2213 expVal
.getLength(), aStrBuf
.getLength()
2218 void append_002_003()
2220 OString
expVal( kTestStr37
);
2221 OStringBuffer
aStrBuf( arrOUS
[0] );
2222 const char* input
= kTestStr23
;
2224 aStrBuf
.append( input
);
2226 CPPUNIT_ASSERT_EQUAL_MESSAGE
2228 "Appends the string(length equal to 16) to the string buffer arrOUS[0]",
2229 expVal
, OString(aStrBuf
.getStr())
2231 CPPUNIT_ASSERT_EQUAL_MESSAGE
2233 "Appends the string(length equal to 16) to the string buffer arrOUS[0]",
2234 expVal
.getLength(), aStrBuf
.getLength()
2239 void append_002_004()
2241 OString
expVal( kTestStr7
);
2242 OStringBuffer
aStrBuf( arrOUS
[0] );
2243 const char* input
= kTestStr25
;
2245 aStrBuf
.append( input
);
2247 CPPUNIT_ASSERT_EQUAL_MESSAGE
2249 "Appends the string(length equal to 0) to the string buffer arrOUS[0]",
2250 expVal
, OString(aStrBuf
.getStr())
2252 CPPUNIT_ASSERT_EQUAL_MESSAGE
2254 "Appends the string(length equal to 0) to the string buffer arrOUS[0]",
2255 expVal
.getLength(), aStrBuf
.getLength()
2260 void append_002_005()
2262 OString
expVal( kTestStr7
);
2263 OStringBuffer
aStrBuf( arrOUS
[1] );
2264 const char* input
= kTestStr7
;
2266 aStrBuf
.append( input
);
2268 CPPUNIT_ASSERT_EQUAL_MESSAGE
2270 "Appends the string(length less than 16) to the string buffer arrOUS[1]",
2271 expVal
, OString(aStrBuf
.getStr())
2273 CPPUNIT_ASSERT_EQUAL_MESSAGE
2275 "Appends the string(length less than 16) to the string buffer arrOUS[1]",
2276 expVal
.getLength(), aStrBuf
.getLength()
2281 void append_002_006()
2283 OString
expVal( kTestStr2
);
2284 OStringBuffer
aStrBuf( arrOUS
[1] );
2285 const char* input
= kTestStr2
;
2287 aStrBuf
.append( input
);
2289 CPPUNIT_ASSERT_EQUAL_MESSAGE
2291 "Appends the string(length more than 16) to the string buffer arrOUS[1]",
2292 expVal
, OString(aStrBuf
.getStr())
2294 CPPUNIT_ASSERT_EQUAL_MESSAGE
2296 "Appends the string(length more than 16) to the string buffer arrOUS[1]",
2297 expVal
.getLength(), aStrBuf
.getLength()
2302 void append_002_007()
2304 OString
expVal( kTestStr1
);
2305 OStringBuffer
aStrBuf( arrOUS
[1] );
2306 const char* input
= kTestStr1
;
2308 aStrBuf
.append( input
);
2310 CPPUNIT_ASSERT_EQUAL_MESSAGE
2312 "Appends the string(length equal to 16) to the string buffer arrOUS[1]",
2313 expVal
, OString(aStrBuf
.getStr())
2315 CPPUNIT_ASSERT_EQUAL_MESSAGE
2317 "Appends the string(length equal to 16) to the string buffer arrOUS[1]",
2318 expVal
.getLength(), aStrBuf
.getLength()
2323 void append_002_008()
2326 OStringBuffer
aStrBuf( arrOUS
[1] );
2327 const char* input
= kTestStr25
;
2329 aStrBuf
.append( input
);
2331 CPPUNIT_ASSERT_EQUAL_MESSAGE
2333 "Appends the string(length equal to 0) to the string buffer arrOUS[1]",
2334 expVal
, OString(aStrBuf
.getStr())
2336 CPPUNIT_ASSERT_EQUAL_MESSAGE
2338 "Appends the string(length equal to 0) to the string buffer arrOUS[1]",
2339 expVal
.getLength(), aStrBuf
.getLength()
2344 void append_002_009()
2346 OString
expVal( kTestStr7
);
2347 OStringBuffer
aStrBuf( arrOUS
[2] );
2348 const char* input
= kTestStr7
;
2350 aStrBuf
.append( input
);
2352 CPPUNIT_ASSERT_EQUAL_MESSAGE
2354 "Appends the string(length less than 16) to the string buffer arrOUS[2]",
2355 expVal
, OString(aStrBuf
.getStr())
2357 CPPUNIT_ASSERT_EQUAL_MESSAGE
2359 "Appends the string(length less than 16) to the string buffer arrOUS[2]",
2360 expVal
.getLength(), aStrBuf
.getLength()
2365 void append_002_010()
2367 OString
expVal( kTestStr2
);
2368 OStringBuffer
aStrBuf( arrOUS
[2] );
2369 const char* input
= kTestStr2
;
2371 aStrBuf
.append( input
);
2373 CPPUNIT_ASSERT_EQUAL_MESSAGE
2375 "Appends the string(length more than 16) to the string buffer arrOUS[2]",
2376 expVal
, OString(aStrBuf
.getStr())
2378 CPPUNIT_ASSERT_EQUAL_MESSAGE
2380 "Appends the string(length more than 16) to the string buffer arrOUS[2]",
2381 expVal
.getLength(), aStrBuf
.getLength()
2386 void append_002_011()
2388 OString
expVal( kTestStr1
);
2389 OStringBuffer
aStrBuf( arrOUS
[2] );
2390 const char* input
= kTestStr1
;
2392 aStrBuf
.append( input
);
2394 CPPUNIT_ASSERT_EQUAL_MESSAGE
2396 "Appends the string(length equal to 16) to the string buffer arrOUS[2]",
2397 expVal
, OString(aStrBuf
.getStr())
2399 CPPUNIT_ASSERT_EQUAL_MESSAGE
2401 "Appends the string(length equal to 16) to the string buffer arrOUS[2]",
2402 expVal
.getLength(), aStrBuf
.getLength()
2407 void append_002_012()
2410 OStringBuffer
aStrBuf( arrOUS
[2] );
2411 const char* input
= kTestStr25
;
2413 aStrBuf
.append( input
);
2415 CPPUNIT_ASSERT_EQUAL_MESSAGE
2417 "Appends the string(length equal to 0) to the string buffer arrOUS[2]",
2418 expVal
, OString(aStrBuf
.getStr())
2420 CPPUNIT_ASSERT_EQUAL_MESSAGE
2422 "Appends the string(length equal to 0) to the string buffer arrOUS[2]",
2423 expVal
.getLength(), aStrBuf
.getLength()
2428 void append_002_013()
2430 OString
expVal( kTestStr7
);
2431 OStringBuffer
aStrBuf( arrOUS
[3] );
2432 const char* input
= kTestStr7
;
2434 aStrBuf
.append( input
);
2436 CPPUNIT_ASSERT_EQUAL_MESSAGE
2438 "Appends the string(length less than 16) to the string buffer arrOUS[3]",
2439 expVal
, OString(aStrBuf
.getStr())
2441 CPPUNIT_ASSERT_EQUAL_MESSAGE
2443 "Appends the string(length less than 16) to the string buffer arrOUS[3]",
2444 expVal
.getLength(), aStrBuf
.getLength()
2449 void append_002_014()
2451 OString
expVal( kTestStr2
);
2452 OStringBuffer
aStrBuf( arrOUS
[3] );
2453 const char* input
= kTestStr2
;
2455 aStrBuf
.append( input
);
2457 CPPUNIT_ASSERT_EQUAL_MESSAGE
2459 "Appends the string(length more than 16) to the string buffer arrOUS[3]",
2460 expVal
, OString(aStrBuf
.getStr())
2462 CPPUNIT_ASSERT_EQUAL_MESSAGE
2464 "Appends the string(length more than 16) to the string buffer arrOUS[3]",
2465 expVal
.getLength(), aStrBuf
.getLength()
2470 void append_002_015()
2472 OString
expVal( kTestStr1
);
2473 OStringBuffer
aStrBuf( arrOUS
[3] );
2474 const char* input
= kTestStr1
;
2476 aStrBuf
.append( input
);
2478 CPPUNIT_ASSERT_EQUAL_MESSAGE
2480 "Appends the string(length equal to 16) to the string buffer arrOUS[3]",
2481 expVal
, OString(aStrBuf
.getStr())
2483 CPPUNIT_ASSERT_EQUAL_MESSAGE
2485 "Appends the string(length equal to 16) to the string buffer arrOUS[3]",
2486 expVal
.getLength(), aStrBuf
.getLength()
2491 void append_002_016()
2494 OStringBuffer
aStrBuf( arrOUS
[3] );
2495 const char* input
= kTestStr25
;
2497 aStrBuf
.append( input
);
2499 CPPUNIT_ASSERT_EQUAL_MESSAGE
2501 "Appends the string(length equal to 0) to the string buffer arrOUS[3]",
2502 expVal
, OString(aStrBuf
.getStr())
2504 CPPUNIT_ASSERT_EQUAL_MESSAGE
2506 "Appends the string(length equal to 0) to the string buffer arrOUS[3]",
2507 expVal
.getLength(), aStrBuf
.getLength()
2512 void append_002_017()
2514 OString
expVal( kTestStr29
);
2515 OStringBuffer
aStrBuf( arrOUS
[4] );
2516 const char* input
= kTestStr38
;
2518 aStrBuf
.append( input
);
2520 CPPUNIT_ASSERT_EQUAL_MESSAGE
2522 "Appends the string(length less than 16) to the string buffer arrOUS[4]",
2523 expVal
, OString(aStrBuf
.getStr())
2525 CPPUNIT_ASSERT_EQUAL_MESSAGE
2527 "Appends the string(length less than 16) to the string buffer arrOUS[4]",
2528 expVal
.getLength(), aStrBuf
.getLength()
2533 void append_002_018()
2535 OString
expVal( kTestStr39
);
2536 OStringBuffer
aStrBuf( arrOUS
[4] );
2537 const char* input
= kTestStr17
;
2539 aStrBuf
.append( input
);
2541 CPPUNIT_ASSERT_EQUAL_MESSAGE
2543 "Appends the string(length more than 16) to the string buffer arrOUS[4]",
2544 expVal
, OString(aStrBuf
.getStr())
2546 CPPUNIT_ASSERT_EQUAL_MESSAGE
2548 "Appends the string(length more than 16) to the string buffer arrOUS[4]",
2549 expVal
.getLength(), aStrBuf
.getLength()
2554 void append_002_019()
2556 OString
expVal( kTestStr40
);
2557 OStringBuffer
aStrBuf( arrOUS
[4] );
2558 const char* input
= kTestStr31
;
2560 aStrBuf
.append( input
);
2562 CPPUNIT_ASSERT_EQUAL_MESSAGE
2564 "Appends the string(length equal to 16) to the string buffer arrOUS[4]",
2565 expVal
, OString(aStrBuf
.getStr())
2567 CPPUNIT_ASSERT_EQUAL_MESSAGE
2569 "Appends the string(length equal to 16) to the string buffer arrOUS[4]",
2570 expVal
.getLength(), aStrBuf
.getLength()
2575 void append_002_020()
2577 OString
expVal( kTestStr28
);
2578 OStringBuffer
aStrBuf( arrOUS
[4] );
2579 const char* input
= kTestStr25
;
2581 aStrBuf
.append( input
);
2583 CPPUNIT_ASSERT_EQUAL_MESSAGE
2585 "Appends the string(length equal to 0) to the string buffer arrOUS[4]",
2586 expVal
, OString(aStrBuf
.getStr())
2588 CPPUNIT_ASSERT_EQUAL_MESSAGE
2590 "Appends the string(length equal to 0) to the string buffer arrOUS[4]",
2591 expVal
.getLength(), aStrBuf
.getLength()
2597 void append_002_021()
2600 OStringBuffer
aStrBuf( kSInt32Max
);
2601 const char* input
= kTestStr25
;
2603 aStrBuf
.append( input
);
2605 CPPUNIT_ASSERT_MESSAGE
2607 "Appends the string(length equal to 0) to the string buffer(with INT_MAX)",
2608 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2614 CPPUNIT_TEST_SUITE( append_002
);
2615 CPPUNIT_TEST( append_002_001
);
2616 CPPUNIT_TEST( append_002_002
);
2617 CPPUNIT_TEST( append_002_003
);
2618 CPPUNIT_TEST( append_002_004
);
2619 CPPUNIT_TEST( append_002_005
);
2620 CPPUNIT_TEST( append_002_006
);
2621 CPPUNIT_TEST( append_002_007
);
2622 CPPUNIT_TEST( append_002_008
);
2623 CPPUNIT_TEST( append_002_009
);
2624 CPPUNIT_TEST( append_002_010
);
2625 CPPUNIT_TEST( append_002_011
);
2626 CPPUNIT_TEST( append_002_012
);
2627 CPPUNIT_TEST( append_002_013
);
2628 CPPUNIT_TEST( append_002_014
);
2629 CPPUNIT_TEST( append_002_015
);
2630 CPPUNIT_TEST( append_002_016
);
2631 CPPUNIT_TEST( append_002_017
);
2632 CPPUNIT_TEST( append_002_018
);
2633 CPPUNIT_TEST( append_002_019
);
2634 CPPUNIT_TEST( append_002_020
);
2636 CPPUNIT_TEST( append_002_021
);
2638 CPPUNIT_TEST_SUITE_END();
2641 class append_003
: public CppUnit::TestFixture
2646 void setUp() override
2648 arrOUS
[0] = OString( kTestStr7
);
2649 arrOUS
[1] = OString( );
2650 arrOUS
[2] = OString( kTestStr25
);
2651 arrOUS
[3] = OString( "" );
2652 arrOUS
[4] = OString( kTestStr28
);
2656 void append_003_001()
2658 OString
expVal( kTestStr1
);
2659 OStringBuffer
aStrBuf( arrOUS
[0] );
2660 const char* input1
= kTestStr36
;
2661 sal_Int32 input2
= 12;
2663 aStrBuf
.append( input1
, input2
);
2665 CPPUNIT_ASSERT_EQUAL_MESSAGE
2667 "Appends the string(length less than 16) to the string buffer arrOUS[0]",
2668 expVal
, OString(aStrBuf
.getStr())
2670 CPPUNIT_ASSERT_EQUAL_MESSAGE
2672 "Appends the string(length less than 16) to the string buffer arrOUS[0]",
2673 expVal
.getLength(), aStrBuf
.getLength()
2678 void append_003_002()
2680 OString
expVal( kTestStr2
);
2681 OStringBuffer
aStrBuf( arrOUS
[0] );
2682 const char* input1
= kTestStr36
;
2683 sal_Int32 input2
= 28;
2685 aStrBuf
.append( input1
, input2
);
2687 CPPUNIT_ASSERT_EQUAL_MESSAGE
2689 "Appends the string(length more than 16) to the string buffer arrOUS[0]",
2690 expVal
, OString(aStrBuf
.getStr())
2692 CPPUNIT_ASSERT_EQUAL_MESSAGE
2694 "Appends the string(length more than 16) to the string buffer arrOUS[0]",
2695 expVal
.getLength(), aStrBuf
.getLength()
2700 void append_003_003()
2702 OString
expVal( kTestStr37
);
2703 OStringBuffer
aStrBuf( arrOUS
[0] );
2704 const char* input1
= kTestStr23
;
2705 sal_Int32 input2
= 16;
2707 aStrBuf
.append( input1
, input2
);
2709 CPPUNIT_ASSERT_EQUAL_MESSAGE
2711 "Appends the string(length equal to 16) to the string buffer arrOUS[0]",
2712 expVal
, OString(aStrBuf
.getStr())
2714 CPPUNIT_ASSERT_EQUAL_MESSAGE
2716 "Appends the string(length equal to 16) to the string buffer arrOUS[0]",
2717 expVal
.getLength(), aStrBuf
.getLength()
2722 void append_003_004()
2724 OString
expVal( kTestStr7
);
2725 OStringBuffer
aStrBuf( arrOUS
[0] );
2726 const char* input1
= kTestStr2
;
2727 sal_Int32 input2
= 0;
2729 aStrBuf
.append( input1
, input2
);
2731 CPPUNIT_ASSERT_EQUAL_MESSAGE
2733 "Appends the string(length equal to 0) to the string buffer arrOUS[0]",
2734 expVal
, OString(aStrBuf
.getStr())
2736 CPPUNIT_ASSERT_EQUAL_MESSAGE
2738 "Appends the string(length equal to 0) to the string buffer arrOUS[0]",
2739 expVal
.getLength(), aStrBuf
.getLength()
2744 void append_003_006()
2746 OString
expVal( kTestStr7
);
2747 OStringBuffer
aStrBuf( arrOUS
[1] );
2748 const char* input1
= kTestStr2
;
2749 sal_Int32 input2
= 4;
2751 aStrBuf
.append( input1
, input2
);
2753 CPPUNIT_ASSERT_EQUAL_MESSAGE
2755 "Appends the string(length less than 16) to the string buffer arrOUS[1]",
2756 expVal
, OString(aStrBuf
.getStr())
2758 CPPUNIT_ASSERT_EQUAL_MESSAGE
2760 "Appends the string(length less than 16) to the string buffer arrOUS[1]",
2761 expVal
.getLength(), aStrBuf
.getLength()
2766 void append_003_007()
2768 OString
expVal( kTestStr2
);
2769 OStringBuffer
aStrBuf( arrOUS
[1] );
2770 const char* input1
= kTestStr2
;
2771 sal_Int32 input2
= 32;
2773 aStrBuf
.append( input1
, input2
);
2775 CPPUNIT_ASSERT_EQUAL_MESSAGE
2777 "Appends the string(length more than 16) to the string buffer arrOUS[1]",
2778 expVal
, OString(aStrBuf
.getStr())
2780 CPPUNIT_ASSERT_EQUAL_MESSAGE
2782 "Appends the string(length more than 16) to the string buffer arrOUS[1]",
2783 expVal
.getLength(), aStrBuf
.getLength()
2788 void append_003_008()
2790 OString
expVal( kTestStr1
);
2791 OStringBuffer
aStrBuf( arrOUS
[1] );
2792 const char* input1
= kTestStr2
;
2793 sal_Int32 input2
= 16;
2795 aStrBuf
.append( input1
, input2
);
2797 CPPUNIT_ASSERT_EQUAL_MESSAGE
2799 "Appends the string(length equal to 16) to the string buffer arrOUS[1]",
2800 expVal
, OString(aStrBuf
.getStr())
2802 CPPUNIT_ASSERT_EQUAL_MESSAGE
2804 "Appends the string(length equal to 16) to the string buffer arrOUS[1]",
2805 expVal
.getLength(), aStrBuf
.getLength()
2810 void append_003_009()
2813 OStringBuffer
aStrBuf( arrOUS
[1] );
2814 const char* input1
= kTestStr2
;
2815 sal_Int32 input2
= 0;
2817 aStrBuf
.append( input1
, input2
);
2819 CPPUNIT_ASSERT_EQUAL_MESSAGE
2821 "Appends the string(length equal to 0) to the string buffer arrOUS[1]",
2822 expVal
, OString(aStrBuf
.getStr())
2824 CPPUNIT_ASSERT_EQUAL_MESSAGE
2826 "Appends the string(length equal to 0) to the string buffer arrOUS[1]",
2827 expVal
.getLength(), aStrBuf
.getLength()
2832 void append_003_011()
2834 OString
expVal( kTestStr7
);
2835 OStringBuffer
aStrBuf( arrOUS
[2] );
2836 const char* input1
= kTestStr2
;
2837 sal_Int32 input2
= 4;
2839 aStrBuf
.append( input1
, input2
);
2841 CPPUNIT_ASSERT_EQUAL_MESSAGE
2843 "Appends the string(length less than 16) to the string buffer arrOUS[2]",
2844 expVal
, OString(aStrBuf
.getStr())
2846 CPPUNIT_ASSERT_EQUAL_MESSAGE
2848 "Appends the string(length less than 16) to the string buffer arrOUS[2]",
2849 expVal
.getLength(), aStrBuf
.getLength()
2854 void append_003_012()
2856 OString
expVal( kTestStr2
);
2857 OStringBuffer
aStrBuf( arrOUS
[2] );
2858 const char* input1
= kTestStr2
;
2859 sal_Int32 input2
= 32;
2861 aStrBuf
.append( input1
, input2
);
2863 CPPUNIT_ASSERT_EQUAL_MESSAGE
2865 "Appends the string(length more than 16) to the string buffer arrOUS[2]",
2866 expVal
, OString(aStrBuf
.getStr())
2868 CPPUNIT_ASSERT_EQUAL_MESSAGE
2870 "Appends the string(length more than 16) to the string buffer arrOUS[2]",
2871 expVal
.getLength(), aStrBuf
.getLength()
2876 void append_003_013()
2878 OString
expVal( kTestStr1
);
2879 OStringBuffer
aStrBuf( arrOUS
[2] );
2880 const char* input1
= kTestStr2
;
2881 sal_Int32 input2
= 16;
2883 aStrBuf
.append( input1
, input2
);
2885 CPPUNIT_ASSERT_EQUAL_MESSAGE
2887 "Appends the string(length equal to 16) to the string buffer arrOUS[2]",
2888 expVal
, OString(aStrBuf
.getStr())
2890 CPPUNIT_ASSERT_EQUAL_MESSAGE
2892 "Appends the string(length equal to 16) to the string buffer arrOUS[2]",
2893 expVal
.getLength(), aStrBuf
.getLength()
2898 void append_003_014()
2901 OStringBuffer
aStrBuf( arrOUS
[2] );
2902 const char* input1
= kTestStr2
;
2903 sal_Int32 input2
= 0;
2905 aStrBuf
.append( input1
, input2
);
2907 CPPUNIT_ASSERT_EQUAL_MESSAGE
2909 "Appends the string(length equal to 0) to the string buffer arrOUS[2]",
2910 expVal
, OString(aStrBuf
.getStr())
2912 CPPUNIT_ASSERT_EQUAL_MESSAGE
2914 "Appends the string(length equal to 0) to the string buffer arrOUS[2]",
2915 expVal
.getLength(), aStrBuf
.getLength()
2920 void append_003_016()
2922 OString
expVal( kTestStr7
);
2923 OStringBuffer
aStrBuf( arrOUS
[3] );
2924 const char* input1
= kTestStr2
;
2925 sal_Int32 input2
= 4;
2927 aStrBuf
.append( input1
, input2
);
2929 CPPUNIT_ASSERT_EQUAL_MESSAGE
2931 "Appends the string(length less than 16) to the string buffer arrOUS[3]",
2932 expVal
, OString(aStrBuf
.getStr())
2934 CPPUNIT_ASSERT_EQUAL_MESSAGE
2936 "Appends the string(length less than 16) to the string buffer arrOUS[3]",
2937 expVal
.getLength(), aStrBuf
.getLength()
2942 void append_003_017()
2944 OString
expVal( kTestStr2
);
2945 OStringBuffer
aStrBuf( arrOUS
[3] );
2946 const char* input1
= kTestStr2
;
2947 sal_Int32 input2
= 32;
2949 aStrBuf
.append( input1
, input2
);
2951 CPPUNIT_ASSERT_EQUAL_MESSAGE
2953 "Appends the string(length more than 16) to the string buffer arrOUS[3]",
2954 expVal
, OString(aStrBuf
.getStr())
2956 CPPUNIT_ASSERT_EQUAL_MESSAGE
2958 "Appends the string(length more than 16) to the string buffer arrOUS[3]",
2959 expVal
.getLength(), aStrBuf
.getLength()
2964 void append_003_018()
2966 OString
expVal( kTestStr1
);
2967 OStringBuffer
aStrBuf( arrOUS
[3] );
2968 const char* input1
= kTestStr2
;
2969 sal_Int32 input2
= 16;
2971 aStrBuf
.append( input1
, input2
);
2973 CPPUNIT_ASSERT_EQUAL_MESSAGE
2975 "Appends the string(length equal to 16) to the string buffer arrOUS[3]",
2976 expVal
, OString(aStrBuf
.getStr())
2978 CPPUNIT_ASSERT_EQUAL_MESSAGE
2980 "Appends the string(length equal to 16) to the string buffer arrOUS[3]",
2981 expVal
.getLength(), aStrBuf
.getLength()
2986 void append_003_019()
2989 OStringBuffer
aStrBuf( arrOUS
[3] );
2990 const char* input1
= kTestStr2
;
2991 sal_Int32 input2
= 0;
2993 aStrBuf
.append( input1
, input2
);
2995 CPPUNIT_ASSERT_EQUAL_MESSAGE
2997 "Appends the string(length equal to 0) to the string buffer arrOUS[3]",
2998 expVal
, OString(aStrBuf
.getStr())
3000 CPPUNIT_ASSERT_EQUAL_MESSAGE
3002 "Appends the string(length equal to 0) to the string buffer arrOUS[3]",
3003 expVal
.getLength(), aStrBuf
.getLength()
3008 void append_003_021()
3010 OString
expVal( kTestStr29
);
3011 OStringBuffer
aStrBuf( arrOUS
[4] );
3012 const char* input1
= kTestStr38
;
3013 sal_Int32 input2
= 7;
3015 aStrBuf
.append( input1
, input2
);
3017 CPPUNIT_ASSERT_EQUAL_MESSAGE
3019 "Appends the string(length less than 16) to the string buffer arrOUS[4]",
3020 expVal
, OString(aStrBuf
.getStr())
3022 CPPUNIT_ASSERT_EQUAL_MESSAGE
3024 "Appends the string(length less than 16) to the string buffer arrOUS[4]",
3025 expVal
.getLength(), aStrBuf
.getLength()
3030 void append_003_022()
3032 OString
expVal( kTestStr39
);
3033 OStringBuffer
aStrBuf( arrOUS
[4] );
3034 const char* input1
= kTestStr17
;
3035 sal_Int32 input2
= 22;
3037 aStrBuf
.append( input1
, input2
);
3039 CPPUNIT_ASSERT_EQUAL_MESSAGE
3041 "Appends the string(length more than 16) to the string buffer arrOUS[4]",
3042 expVal
, OString(aStrBuf
.getStr())
3044 CPPUNIT_ASSERT_EQUAL_MESSAGE
3046 "Appends the string(length more than 16) to the string buffer arrOUS[4]",
3047 expVal
.getLength(), aStrBuf
.getLength()
3052 void append_003_023()
3054 OString
expVal( kTestStr40
);
3055 OStringBuffer
aStrBuf( arrOUS
[4] );
3056 const char* input1
= kTestStr31
;
3057 sal_Int32 input2
= 16;
3059 aStrBuf
.append( input1
, input2
);
3061 CPPUNIT_ASSERT_EQUAL_MESSAGE
3063 "Appends the string(length equal to 16) to the string buffer arrOUS[4]",
3064 expVal
, OString(aStrBuf
.getStr())
3066 CPPUNIT_ASSERT_EQUAL_MESSAGE
3068 "Appends the string(length equal to 16) to the string buffer arrOUS[4]",
3069 expVal
.getLength(), aStrBuf
.getLength()
3074 void append_003_024()
3076 OString
expVal( kTestStr28
);
3077 OStringBuffer
aStrBuf( arrOUS
[4] );
3078 const char* input1
= kTestStr2
;
3079 sal_Int32 input2
= 0;
3081 aStrBuf
.append( input1
, input2
);
3083 CPPUNIT_ASSERT_EQUAL_MESSAGE
3085 "Appends the string(length equal to 0) to the string buffer arrOUS[4]",
3086 expVal
, OString(aStrBuf
.getStr())
3088 CPPUNIT_ASSERT_EQUAL_MESSAGE
3090 "Appends the string(length equal to 0) to the string buffer arrOUS[4]",
3091 expVal
.getLength(), aStrBuf
.getLength()
3096 CPPUNIT_TEST_SUITE( append_003
);
3097 CPPUNIT_TEST( append_003_001
);
3098 CPPUNIT_TEST( append_003_002
);
3099 CPPUNIT_TEST( append_003_003
);
3100 CPPUNIT_TEST( append_003_004
);
3101 CPPUNIT_TEST( append_003_006
);
3102 CPPUNIT_TEST( append_003_007
);
3103 CPPUNIT_TEST( append_003_008
);
3104 CPPUNIT_TEST( append_003_009
);
3105 CPPUNIT_TEST( append_003_011
);
3106 CPPUNIT_TEST( append_003_012
);
3107 CPPUNIT_TEST( append_003_013
);
3108 CPPUNIT_TEST( append_003_014
);
3109 CPPUNIT_TEST( append_003_016
);
3110 CPPUNIT_TEST( append_003_017
);
3111 CPPUNIT_TEST( append_003_018
);
3112 CPPUNIT_TEST( append_003_019
);
3113 CPPUNIT_TEST( append_003_021
);
3114 CPPUNIT_TEST( append_003_022
);
3115 CPPUNIT_TEST( append_003_023
);
3116 CPPUNIT_TEST( append_003_024
);
3117 CPPUNIT_TEST_SUITE_END();
3120 class append_004
: public CppUnit::TestFixture
3125 void setUp() override
3127 arrOUS
[0] = OString( kTestStr7
);
3128 arrOUS
[1] = OString( );
3129 arrOUS
[2] = OString( kTestStr25
);
3130 arrOUS
[3] = OString( "" );
3131 arrOUS
[4] = OString( kTestStr28
);
3135 void append_004_001()
3137 OString
expVal( kTestStr45
);
3138 OStringBuffer
aStrBuf( arrOUS
[0] );
3141 aStrBuf
.append( input
);
3143 CPPUNIT_ASSERT_EQUAL_MESSAGE
3145 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[0]",
3146 expVal
, OString(aStrBuf
.getStr())
3148 CPPUNIT_ASSERT_EQUAL_MESSAGE
3150 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[0]",
3151 expVal
.getLength(), aStrBuf
.getLength()
3156 void append_004_002()
3158 OString
expVal( kTestStr46
);
3159 OStringBuffer
aStrBuf( arrOUS
[0] );
3162 aStrBuf
.append( input
);
3164 CPPUNIT_ASSERT_EQUAL_MESSAGE
3166 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[0]",
3167 expVal
, OString(aStrBuf
.getStr())
3169 CPPUNIT_ASSERT_EQUAL_MESSAGE
3171 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[0]",
3172 expVal
.getLength(), aStrBuf
.getLength()
3177 void append_004_003()
3179 OString
expVal( kTestStr47
);
3180 OStringBuffer
aStrBuf( arrOUS
[1] );
3183 aStrBuf
.append( input
);
3185 CPPUNIT_ASSERT_EQUAL_MESSAGE
3187 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[1]",
3188 expVal
, OString(aStrBuf
.getStr())
3190 CPPUNIT_ASSERT_EQUAL_MESSAGE
3192 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[1]",
3193 expVal
.getLength(), aStrBuf
.getLength()
3198 void append_004_004()
3200 OString
expVal( kTestStr48
);
3201 OStringBuffer
aStrBuf( arrOUS
[1] );
3204 aStrBuf
.append( input
);
3206 CPPUNIT_ASSERT_EQUAL_MESSAGE
3208 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[1]",
3209 expVal
, OString(aStrBuf
.getStr())
3211 CPPUNIT_ASSERT_EQUAL_MESSAGE
3213 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[1]",
3214 expVal
.getLength(), aStrBuf
.getLength()
3219 void append_004_005()
3221 OString
expVal( kTestStr47
);
3222 OStringBuffer
aStrBuf( arrOUS
[2] );
3225 aStrBuf
.append( input
);
3227 CPPUNIT_ASSERT_EQUAL_MESSAGE
3229 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[2]",
3230 expVal
, OString(aStrBuf
.getStr())
3232 CPPUNIT_ASSERT_EQUAL_MESSAGE
3234 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[2]",
3235 expVal
.getLength(), aStrBuf
.getLength()
3240 void append_004_006()
3242 OString
expVal( kTestStr48
);
3243 OStringBuffer
aStrBuf( arrOUS
[2] );
3246 aStrBuf
.append( input
);
3248 CPPUNIT_ASSERT_EQUAL_MESSAGE
3250 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[2]",
3251 expVal
, OString(aStrBuf
.getStr())
3253 CPPUNIT_ASSERT_EQUAL_MESSAGE
3255 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[2]",
3256 expVal
.getLength(), aStrBuf
.getLength()
3261 void append_004_007()
3263 OString
expVal( kTestStr47
);
3264 OStringBuffer
aStrBuf( arrOUS
[3] );
3267 aStrBuf
.append( input
);
3269 CPPUNIT_ASSERT_EQUAL_MESSAGE
3271 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[3]",
3272 expVal
, OString(aStrBuf
.getStr())
3274 CPPUNIT_ASSERT_EQUAL_MESSAGE
3276 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[3]",
3277 expVal
.getLength(), aStrBuf
.getLength()
3282 void append_004_008()
3284 OString
expVal( kTestStr48
);
3285 OStringBuffer
aStrBuf( arrOUS
[3] );
3288 aStrBuf
.append( input
);
3290 CPPUNIT_ASSERT_EQUAL_MESSAGE
3292 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[3]",
3293 expVal
, OString(aStrBuf
.getStr())
3295 CPPUNIT_ASSERT_EQUAL_MESSAGE
3297 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[3]",
3298 expVal
.getLength(), aStrBuf
.getLength()
3303 void append_004_009()
3305 OString
expVal( kTestStr49
);
3306 OStringBuffer
aStrBuf( arrOUS
[4] );
3309 aStrBuf
.append( input
);
3311 CPPUNIT_ASSERT_EQUAL_MESSAGE
3313 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[4]",
3314 expVal
, OString(aStrBuf
.getStr())
3316 CPPUNIT_ASSERT_EQUAL_MESSAGE
3318 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[4]",
3319 expVal
.getLength(), aStrBuf
.getLength()
3324 void append_004_010()
3326 OString
expVal( kTestStr50
);
3327 OStringBuffer
aStrBuf( arrOUS
[4] );
3330 aStrBuf
.append( input
);
3332 CPPUNIT_ASSERT_EQUAL_MESSAGE
3334 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[4]",
3335 expVal
, OString(aStrBuf
.getStr())
3337 CPPUNIT_ASSERT_EQUAL_MESSAGE
3339 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[4]",
3340 expVal
.getLength(), aStrBuf
.getLength()
3346 void append_004_011()
3348 OString
expVal( kTestStr47
);
3349 OStringBuffer
aStrBuf( kSInt32Max
);
3350 sal_Bool input
= sal_True
;
3352 aStrBuf
.append( input
);
3354 CPPUNIT_ASSERT_MESSAGE
3356 "Appends the sal_Bool(sal_True) to the string buffer(with INT_MAX)",
3357 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
3362 void append_004_012()
3364 OString
expVal( kTestStr48
);
3365 OStringBuffer
aStrBuf( kSInt32Max
);
3366 sal_Bool input
= sal_False
;
3368 aStrBuf
.append( input
);
3370 CPPUNIT_ASSERT_MESSAGE
3372 "Appends the sal_Bool(sal_False) to the string buffer(with INT_MAX)",
3373 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
3379 CPPUNIT_TEST_SUITE( append_004
);
3380 CPPUNIT_TEST( append_004_001
);
3381 CPPUNIT_TEST( append_004_002
);
3382 CPPUNIT_TEST( append_004_003
);
3383 CPPUNIT_TEST( append_004_004
);
3384 CPPUNIT_TEST( append_004_005
);
3385 CPPUNIT_TEST( append_004_006
);
3386 CPPUNIT_TEST( append_004_007
);
3387 CPPUNIT_TEST( append_004_008
);
3388 CPPUNIT_TEST( append_004_009
);
3389 CPPUNIT_TEST( append_004_010
);
3391 CPPUNIT_TEST( append_004_011
);
3392 CPPUNIT_TEST( append_004_012
);
3394 CPPUNIT_TEST_SUITE_END();
3397 // testing the method append(char c)
3399 class append_005
: public CppUnit::TestFixture
3404 void setUp() override
3406 arrOUS
[0] = OString( kTestStr7
);
3407 arrOUS
[1] = OString( );
3408 arrOUS
[2] = OString( kTestStr25
);
3409 arrOUS
[3] = OString( "" );
3410 arrOUS
[4] = OString( kTestStr28
);
3416 OString
expVal( kTestStr51
);
3417 OStringBuffer
aStrBuf( arrOUS
[0] );
3420 aStrBuf
.append( input
);
3422 CPPUNIT_ASSERT_EQUAL_MESSAGE
3424 "Appends the char(M) to the string buffer arrOUS[0]",
3425 expVal
, OString(aStrBuf
.getStr())
3427 CPPUNIT_ASSERT_EQUAL_MESSAGE
3429 "Appends the char(M) to the string buffer arrOUS[0]",
3430 expVal
.getLength(), aStrBuf
.getLength()
3437 OString
expVal( kTestStr143
);
3438 OStringBuffer
aStrBuf( arrOUS
[0] );
3439 char input
= static_cast<char>(SAL_MAX_UINT8
);
3441 aStrBuf
.append( input
);
3443 CPPUNIT_ASSERT_EQUAL_MESSAGE
3445 "Appends the sal_Unicode(kSInt8Max) to the string buffer arrOUS[0]",
3446 expVal
, OString(aStrBuf
.getStr())
3448 CPPUNIT_ASSERT_EQUAL_MESSAGE
3450 "Appends the sal_Unicode(kSInt8Max) to the string buffer arrOUS[0]",
3451 expVal
.getLength(), aStrBuf
.getLength()
3458 OString
expVal( kTestStr27
);
3459 OStringBuffer
aStrBuf( arrOUS
[1] );
3462 aStrBuf
.append( input
);
3464 CPPUNIT_ASSERT_EQUAL_MESSAGE
3466 "Appends the char(s) to the string buffer arrOUS[1]",
3467 expVal
, OString(aStrBuf
.getStr())
3469 CPPUNIT_ASSERT_EQUAL_MESSAGE
3471 "Appends the char(s) to the string buffer arrOUS[1]",
3472 expVal
.getLength(), aStrBuf
.getLength()
3479 OString
expVal( kTestStr144
);
3480 OStringBuffer
aStrBuf( arrOUS
[1] );
3481 char input
= static_cast<char>(SAL_MAX_UINT8
);
3483 aStrBuf
.append( input
);
3485 CPPUNIT_ASSERT_EQUAL_MESSAGE
3487 "Appends the char(kSInt8Max) to the string buffer arrOUS[1]",
3488 expVal
, OString(aStrBuf
.getStr())
3490 CPPUNIT_ASSERT_EQUAL_MESSAGE
3492 "Appends the char(kSInt8Max) to the string buffer arrOUS[1]",
3493 expVal
.getLength(), aStrBuf
.getLength()
3498 void append_005_005()
3500 OString
expVal( kTestStr27
);
3501 OStringBuffer
aStrBuf( arrOUS
[2] );
3504 aStrBuf
.append( input
);
3506 CPPUNIT_ASSERT_EQUAL_MESSAGE
3508 "Appends the char(s) to the string buffer arrOUS[2]",
3509 expVal
, OString(aStrBuf
.getStr())
3511 CPPUNIT_ASSERT_EQUAL_MESSAGE
3513 "Appends the char(s) to the string buffer arrOUS[2]",
3514 expVal
.getLength(), aStrBuf
.getLength()
3521 OString
expVal( kTestStr144
);
3522 OStringBuffer
aStrBuf( arrOUS
[2] );
3523 char input
= static_cast<char>(SAL_MAX_UINT8
);
3525 aStrBuf
.append( input
);
3527 CPPUNIT_ASSERT_EQUAL_MESSAGE
3529 "Appends the char(kSInt8Max) to the string buffer arrOUS[2]",
3530 expVal
, OString(aStrBuf
.getStr())
3532 CPPUNIT_ASSERT_EQUAL_MESSAGE
3534 "Appends the char(kSInt8Max) to the string buffer arrOUS[2]",
3535 expVal
.getLength(), aStrBuf
.getLength()
3542 OString
expVal( kTestStr27
);
3543 OStringBuffer
aStrBuf( arrOUS
[3] );
3546 aStrBuf
.append( input
);
3548 CPPUNIT_ASSERT_EQUAL_MESSAGE
3550 "Appends the char(s) to the string buffer arrOUS[3]",
3551 expVal
, OString(aStrBuf
.getStr())
3553 CPPUNIT_ASSERT_EQUAL_MESSAGE
3555 "Appends the char(s) to the string buffer arrOUS[3]",
3556 expVal
.getLength(), aStrBuf
.getLength()
3563 OString
expVal( kTestStr144
);
3564 OStringBuffer
aStrBuf( arrOUS
[3] );
3565 char input
= static_cast<char>(SAL_MAX_UINT8
);
3567 aStrBuf
.append( input
);
3569 CPPUNIT_ASSERT_EQUAL_MESSAGE
3571 "Appends the char(kSInt8Max) to the string buffer arrOUS[3]",
3572 expVal
, OString(aStrBuf
.getStr())
3574 CPPUNIT_ASSERT_EQUAL_MESSAGE
3576 "Appends the char(kSInt8Max) to the string buffer arrOUS[3]",
3577 expVal
.getLength(), aStrBuf
.getLength()
3584 OString
expVal( kTestStr56
);
3585 OStringBuffer
aStrBuf( arrOUS
[4] );
3588 aStrBuf
.append( input
);
3590 CPPUNIT_ASSERT_EQUAL_MESSAGE
3592 "Appends the char(s) to the string buffer arrOUS[4]",
3593 expVal
, OString(aStrBuf
.getStr())
3595 CPPUNIT_ASSERT_EQUAL_MESSAGE
3597 "Appends the char(s) to the string buffer arrOUS[4]",
3598 expVal
.getLength(), aStrBuf
.getLength()
3605 OString
expVal( kTestStr145
);
3606 OStringBuffer
aStrBuf( arrOUS
[4] );
3607 char input
= static_cast<char>(SAL_MAX_UINT8
);
3609 aStrBuf
.append( input
);
3611 CPPUNIT_ASSERT_EQUAL_MESSAGE
3613 "Appends the char(kSInt8Max) to the string buffer arrOUS[4]",
3614 expVal
, OString(aStrBuf
.getStr())
3616 CPPUNIT_ASSERT_EQUAL_MESSAGE
3618 "Appends the char(kSInt8Max) to the string buffer arrOUS[4]",
3619 expVal
.getLength(), aStrBuf
.getLength()
3627 OString
expVal( kTestStr27
);
3628 OStringBuffer
aStrBuf( kSInt32Max
);
3631 aStrBuf
.append( input
);
3633 CPPUNIT_ASSERT_MESSAGE
3635 "Appends the char(s) to the string buffer(with INT_MAX)",
3636 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
3643 OString
expVal( kTestStr144
);
3644 OStringBuffer
aStrBuf( kSInt32Max
);
3645 char input
= static_cast<char>(SAL_MAX_UINT8
);
3647 aStrBuf
.append( input
);
3649 CPPUNIT_ASSERT_MESSAGE
3651 "Appends the char(kSInt8Max) to the string buffer with INT_MAX)",
3652 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
3658 CPPUNIT_TEST_SUITE( append_005
);
3659 CPPUNIT_TEST( append_001
);
3660 CPPUNIT_TEST( append_002
);
3661 CPPUNIT_TEST( append_003
);
3662 CPPUNIT_TEST( append_004
);
3663 CPPUNIT_TEST( append_005_005
);
3664 CPPUNIT_TEST( append_006
);
3665 CPPUNIT_TEST( append_007
);
3666 CPPUNIT_TEST( append_008
);
3667 CPPUNIT_TEST( append_009
);
3668 CPPUNIT_TEST( append_010
);
3670 CPPUNIT_TEST( append_011
);
3671 CPPUNIT_TEST( append_012
);
3673 CPPUNIT_TEST_SUITE_END();
3676 class append_006_Int32
: public CppUnit::TestFixture
3681 void setUp() override
3683 arrOUS
[0] = OString( kTestStr7
);
3684 arrOUS
[1] = OString( );
3685 arrOUS
[2] = OString( kTestStr25
);
3686 arrOUS
[3] = OString( "" );
3687 arrOUS
[4] = OString( kTestStr28
);
3693 OStringBuffer
aStrBuf( arrOUS
[0] );
3694 OString
expVal( aStrBuf
.getStr() );
3695 sal_Int32 input
= 0;
3696 sal_Int16 radix
= 2;
3698 expVal
+= OString( "0" );
3699 aStrBuf
.append( input
, radix
);
3701 CPPUNIT_ASSERT_EQUAL_MESSAGE
3703 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
3704 expVal
, OString(aStrBuf
.getStr())
3706 CPPUNIT_ASSERT_EQUAL_MESSAGE
3708 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
3709 expVal
.getLength(), aStrBuf
.getLength()
3716 OStringBuffer
aStrBuf( arrOUS
[0] );
3717 OString
expVal( aStrBuf
.getStr() );
3718 sal_Int32 input
= 4;
3719 sal_Int16 radix
= 2;
3721 expVal
+= OString( "100" );
3722 aStrBuf
.append( input
, radix
);
3724 CPPUNIT_ASSERT_EQUAL_MESSAGE
3726 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
3727 expVal
, OString(aStrBuf
.getStr())
3729 CPPUNIT_ASSERT_EQUAL_MESSAGE
3731 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
3732 expVal
.getLength(), aStrBuf
.getLength()
3739 OStringBuffer
aStrBuf( arrOUS
[0] );
3740 OString
expVal( aStrBuf
.getStr() );
3741 sal_Int32 input
= 8;
3742 sal_Int16 radix
= 2;
3744 expVal
+= OString( "1000" );
3745 aStrBuf
.append( input
, radix
);
3747 CPPUNIT_ASSERT_EQUAL_MESSAGE
3749 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
3750 expVal
, OString(aStrBuf
.getStr())
3752 CPPUNIT_ASSERT_EQUAL_MESSAGE
3754 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
3755 expVal
.getLength(), aStrBuf
.getLength()
3762 OStringBuffer
aStrBuf( arrOUS
[0] );
3763 OString
expVal( aStrBuf
.getStr() );
3764 sal_Int32 input
= 15;
3765 sal_Int16 radix
= 2;
3767 expVal
+= OString( "1111" );
3768 aStrBuf
.append( input
, radix
);
3770 CPPUNIT_ASSERT_EQUAL_MESSAGE
3772 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
3773 expVal
, OString(aStrBuf
.getStr())
3775 CPPUNIT_ASSERT_EQUAL_MESSAGE
3777 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
3778 expVal
.getLength(), aStrBuf
.getLength()
3785 OStringBuffer
aStrBuf( arrOUS
[0] );
3786 OString
expVal( aStrBuf
.getStr() );
3787 sal_Int32 input
= 0;
3788 sal_Int16 radix
= 8;
3790 expVal
+= OString( "0" );
3791 aStrBuf
.append( input
, radix
);
3793 CPPUNIT_ASSERT_EQUAL_MESSAGE
3795 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
3796 expVal
, OString(aStrBuf
.getStr())
3798 CPPUNIT_ASSERT_EQUAL_MESSAGE
3800 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
3801 expVal
.getLength(), aStrBuf
.getLength()
3808 OStringBuffer
aStrBuf( arrOUS
[0] );
3809 OString
expVal( aStrBuf
.getStr() );
3810 sal_Int32 input
= 4;
3811 sal_Int16 radix
= 8;
3813 expVal
+= OString( "4" );
3814 aStrBuf
.append( input
, radix
);
3816 CPPUNIT_ASSERT_EQUAL_MESSAGE
3818 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
3819 expVal
, OString(aStrBuf
.getStr())
3821 CPPUNIT_ASSERT_EQUAL_MESSAGE
3823 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
3824 expVal
.getLength(), aStrBuf
.getLength()
3831 OStringBuffer
aStrBuf( arrOUS
[0] );
3832 OString
expVal( aStrBuf
.getStr() );
3833 sal_Int32 input
= 8;
3834 sal_Int16 radix
= 8;
3836 expVal
+= OString( "10" );
3837 aStrBuf
.append( input
, radix
);
3839 CPPUNIT_ASSERT_EQUAL_MESSAGE
3841 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
3842 expVal
, OString(aStrBuf
.getStr())
3844 CPPUNIT_ASSERT_EQUAL_MESSAGE
3846 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
3847 expVal
.getLength(), aStrBuf
.getLength()
3854 OStringBuffer
aStrBuf( arrOUS
[0] );
3855 OString
expVal( aStrBuf
.getStr() );
3856 sal_Int32 input
= 15;
3857 sal_Int16 radix
= 8;
3859 expVal
+= OString( "17" );
3860 aStrBuf
.append( input
, radix
);
3862 CPPUNIT_ASSERT_EQUAL_MESSAGE
3864 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
3865 expVal
, OString(aStrBuf
.getStr())
3867 CPPUNIT_ASSERT_EQUAL_MESSAGE
3869 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
3870 expVal
.getLength(), aStrBuf
.getLength()
3877 OStringBuffer
aStrBuf( arrOUS
[0] );
3878 OString
expVal( aStrBuf
.getStr() );
3879 sal_Int32 input
= 0;
3880 sal_Int16 radix
= 10;
3882 expVal
+= OString( "0" );
3883 aStrBuf
.append( input
, radix
);
3885 CPPUNIT_ASSERT_EQUAL_MESSAGE
3887 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
3888 expVal
, OString(aStrBuf
.getStr())
3890 CPPUNIT_ASSERT_EQUAL_MESSAGE
3892 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
3893 expVal
.getLength(), aStrBuf
.getLength()
3900 OStringBuffer
aStrBuf( arrOUS
[0] );
3901 OString
expVal( aStrBuf
.getStr() );
3902 sal_Int32 input
= 4;
3903 sal_Int16 radix
= 10;
3905 expVal
+= OString( "4" );
3906 aStrBuf
.append( input
, radix
);
3908 CPPUNIT_ASSERT_EQUAL_MESSAGE
3910 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
3911 expVal
, OString(aStrBuf
.getStr())
3913 CPPUNIT_ASSERT_EQUAL_MESSAGE
3915 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
3916 expVal
.getLength(), aStrBuf
.getLength()
3923 OStringBuffer
aStrBuf( arrOUS
[0] );
3924 OString
expVal( aStrBuf
.getStr() );
3925 sal_Int32 input
= 8;
3926 sal_Int16 radix
= 10;
3928 expVal
+= OString( "8" );
3929 aStrBuf
.append( input
, radix
);
3931 CPPUNIT_ASSERT_EQUAL_MESSAGE
3933 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
3934 expVal
, OString(aStrBuf
.getStr())
3936 CPPUNIT_ASSERT_EQUAL_MESSAGE
3938 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
3939 expVal
.getLength(), aStrBuf
.getLength()
3946 OStringBuffer
aStrBuf( arrOUS
[0] );
3947 OString
expVal( aStrBuf
.getStr() );
3948 sal_Int32 input
= 15;
3949 sal_Int16 radix
= 10;
3951 expVal
+= OString( "15" );
3952 aStrBuf
.append( input
, radix
);
3954 CPPUNIT_ASSERT_EQUAL_MESSAGE
3956 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
3957 expVal
, OString(aStrBuf
.getStr())
3959 CPPUNIT_ASSERT_EQUAL_MESSAGE
3961 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
3962 expVal
.getLength(), aStrBuf
.getLength()
3969 OStringBuffer
aStrBuf( arrOUS
[0] );
3970 OString
expVal( aStrBuf
.getStr() );
3971 sal_Int32 input
= 0;
3972 sal_Int16 radix
= 16;
3974 expVal
+= OString( "0" );
3975 aStrBuf
.append( input
, radix
);
3977 CPPUNIT_ASSERT_EQUAL_MESSAGE
3979 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
3980 expVal
, OString(aStrBuf
.getStr())
3982 CPPUNIT_ASSERT_EQUAL_MESSAGE
3984 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
3985 expVal
.getLength(), aStrBuf
.getLength()
3992 OStringBuffer
aStrBuf( arrOUS
[0] );
3993 OString
expVal( aStrBuf
.getStr() );
3994 sal_Int32 input
= 4;
3995 sal_Int16 radix
= 16;
3997 expVal
+= OString( "4" );
3998 aStrBuf
.append( input
, radix
);
4000 CPPUNIT_ASSERT_EQUAL_MESSAGE
4002 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
4003 expVal
, OString(aStrBuf
.getStr())
4005 CPPUNIT_ASSERT_EQUAL_MESSAGE
4007 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
4008 expVal
.getLength(), aStrBuf
.getLength()
4015 OStringBuffer
aStrBuf( arrOUS
[0] );
4016 OString
expVal( aStrBuf
.getStr() );
4017 sal_Int32 input
= 8;
4018 sal_Int16 radix
= 16;
4020 expVal
+= OString( "8" );
4021 aStrBuf
.append( input
, radix
);
4023 CPPUNIT_ASSERT_EQUAL_MESSAGE
4025 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
4026 expVal
, OString(aStrBuf
.getStr())
4028 CPPUNIT_ASSERT_EQUAL_MESSAGE
4030 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
4031 expVal
.getLength(), aStrBuf
.getLength()
4038 OStringBuffer
aStrBuf( arrOUS
[0] );
4039 OString
expVal( aStrBuf
.getStr() );
4040 sal_Int32 input
= 15;
4041 sal_Int16 radix
= 16;
4043 expVal
+= OString( "f" );
4044 aStrBuf
.append( input
, radix
);
4046 CPPUNIT_ASSERT_EQUAL_MESSAGE
4048 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
4049 expVal
, OString(aStrBuf
.getStr())
4051 CPPUNIT_ASSERT_EQUAL_MESSAGE
4053 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
4054 expVal
.getLength(), aStrBuf
.getLength()
4061 OStringBuffer
aStrBuf( arrOUS
[0] );
4062 OString
expVal( aStrBuf
.getStr() );
4063 sal_Int32 input
= 0;
4064 sal_Int16 radix
= 36;
4066 expVal
+= OString( "0" );
4067 aStrBuf
.append( input
, radix
);
4069 CPPUNIT_ASSERT_EQUAL_MESSAGE
4071 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
4072 expVal
, OString(aStrBuf
.getStr())
4074 CPPUNIT_ASSERT_EQUAL_MESSAGE
4076 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
4077 expVal
.getLength(), aStrBuf
.getLength()
4084 OStringBuffer
aStrBuf( arrOUS
[0] );
4085 OString
expVal( aStrBuf
.getStr() );
4086 sal_Int32 input
= 4;
4087 sal_Int16 radix
= 36;
4089 expVal
+= OString( "4" );
4090 aStrBuf
.append( input
, radix
);
4092 CPPUNIT_ASSERT_EQUAL_MESSAGE
4094 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
4095 expVal
, OString(aStrBuf
.getStr())
4097 CPPUNIT_ASSERT_EQUAL_MESSAGE
4099 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
4100 expVal
.getLength(), aStrBuf
.getLength()
4107 OStringBuffer
aStrBuf( arrOUS
[0] );
4108 OString
expVal( aStrBuf
.getStr() );
4109 sal_Int32 input
= 8;
4110 sal_Int16 radix
= 36;
4112 expVal
+= OString( "8" );
4113 aStrBuf
.append( input
, radix
);
4115 CPPUNIT_ASSERT_EQUAL_MESSAGE
4117 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
4118 expVal
, OString(aStrBuf
.getStr())
4120 CPPUNIT_ASSERT_EQUAL_MESSAGE
4122 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
4123 expVal
.getLength(), aStrBuf
.getLength()
4130 OStringBuffer
aStrBuf( arrOUS
[0] );
4131 OString
expVal( aStrBuf
.getStr() );
4132 sal_Int32 input
= 35;
4133 sal_Int16 radix
= 36;
4135 expVal
+= OString( "z" );
4136 aStrBuf
.append( input
, radix
);
4138 CPPUNIT_ASSERT_EQUAL_MESSAGE
4140 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
4141 expVal
, OString(aStrBuf
.getStr())
4143 CPPUNIT_ASSERT_EQUAL_MESSAGE
4145 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
4146 expVal
.getLength(), aStrBuf
.getLength()
4153 OStringBuffer
aStrBuf( arrOUS
[1] );
4154 OString
expVal( aStrBuf
.getStr() );
4155 sal_Int32 input
= 0;
4156 sal_Int16 radix
= 2;
4158 expVal
+= OString( "0" );
4159 aStrBuf
.append( input
, radix
);
4161 CPPUNIT_ASSERT_EQUAL_MESSAGE
4163 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
4164 expVal
, OString(aStrBuf
.getStr())
4166 CPPUNIT_ASSERT_EQUAL_MESSAGE
4168 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
4169 expVal
.getLength(), aStrBuf
.getLength()
4176 OStringBuffer
aStrBuf( arrOUS
[1] );
4177 OString
expVal( aStrBuf
.getStr() );
4178 sal_Int32 input
= 4;
4179 sal_Int16 radix
= 2;
4181 expVal
+= OString( "100" );
4182 aStrBuf
.append( input
, radix
);
4184 CPPUNIT_ASSERT_EQUAL_MESSAGE
4186 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
4187 expVal
, OString(aStrBuf
.getStr())
4189 CPPUNIT_ASSERT_EQUAL_MESSAGE
4191 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
4192 expVal
.getLength(), aStrBuf
.getLength()
4199 OStringBuffer
aStrBuf( arrOUS
[1] );
4200 OString
expVal( aStrBuf
.getStr() );
4201 sal_Int32 input
= 8;
4202 sal_Int16 radix
= 2;
4204 expVal
+= OString( "1000" );
4205 aStrBuf
.append( input
, radix
);
4207 CPPUNIT_ASSERT_EQUAL_MESSAGE
4209 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
4210 expVal
, OString(aStrBuf
.getStr())
4212 CPPUNIT_ASSERT_EQUAL_MESSAGE
4214 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
4215 expVal
.getLength(), aStrBuf
.getLength()
4222 OStringBuffer
aStrBuf( arrOUS
[1] );
4223 OString
expVal( aStrBuf
.getStr() );
4224 sal_Int32 input
= 15;
4225 sal_Int16 radix
= 2;
4227 expVal
+= OString( "1111" );
4228 aStrBuf
.append( input
, radix
);
4230 CPPUNIT_ASSERT_EQUAL_MESSAGE
4232 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
4233 expVal
, OString(aStrBuf
.getStr())
4235 CPPUNIT_ASSERT_EQUAL_MESSAGE
4237 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
4238 expVal
.getLength(), aStrBuf
.getLength()
4245 OStringBuffer
aStrBuf( arrOUS
[1] );
4246 OString
expVal( aStrBuf
.getStr() );
4247 sal_Int32 input
= 0;
4248 sal_Int16 radix
= 8;
4250 expVal
+= OString( "0" );
4251 aStrBuf
.append( input
, radix
);
4253 CPPUNIT_ASSERT_EQUAL_MESSAGE
4255 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
4256 expVal
, OString(aStrBuf
.getStr())
4258 CPPUNIT_ASSERT_EQUAL_MESSAGE
4260 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
4261 expVal
.getLength(), aStrBuf
.getLength()
4268 OStringBuffer
aStrBuf( arrOUS
[1] );
4269 OString
expVal( aStrBuf
.getStr() );
4270 sal_Int32 input
= 4;
4271 sal_Int16 radix
= 8;
4273 expVal
+= OString( "4" );
4274 aStrBuf
.append( input
, radix
);
4276 CPPUNIT_ASSERT_EQUAL_MESSAGE
4278 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
4279 expVal
, OString(aStrBuf
.getStr())
4281 CPPUNIT_ASSERT_EQUAL_MESSAGE
4283 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
4284 expVal
.getLength(), aStrBuf
.getLength()
4291 OStringBuffer
aStrBuf( arrOUS
[1] );
4292 OString
expVal( aStrBuf
.getStr() );
4293 sal_Int32 input
= 8;
4294 sal_Int16 radix
= 8;
4296 expVal
+= OString( "10" );
4297 aStrBuf
.append( input
, radix
);
4299 CPPUNIT_ASSERT_EQUAL_MESSAGE
4301 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
4302 expVal
, OString(aStrBuf
.getStr())
4304 CPPUNIT_ASSERT_EQUAL_MESSAGE
4306 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
4307 expVal
.getLength(), aStrBuf
.getLength()
4314 OStringBuffer
aStrBuf( arrOUS
[1] );
4315 OString
expVal( aStrBuf
.getStr() );
4316 sal_Int32 input
= 15;
4317 sal_Int16 radix
= 8;
4319 expVal
+= OString( "17" );
4320 aStrBuf
.append( input
, radix
);
4322 CPPUNIT_ASSERT_EQUAL_MESSAGE
4324 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
4325 expVal
, OString(aStrBuf
.getStr())
4327 CPPUNIT_ASSERT_EQUAL_MESSAGE
4329 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
4330 expVal
.getLength(), aStrBuf
.getLength()
4337 OStringBuffer
aStrBuf( arrOUS
[1] );
4338 OString
expVal( aStrBuf
.getStr() );
4339 sal_Int32 input
= 0;
4340 sal_Int16 radix
= 10;
4342 expVal
+= OString( "0" );
4343 aStrBuf
.append( input
, radix
);
4345 CPPUNIT_ASSERT_EQUAL_MESSAGE
4347 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
4348 expVal
, OString(aStrBuf
.getStr())
4350 CPPUNIT_ASSERT_EQUAL_MESSAGE
4352 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
4353 expVal
.getLength(), aStrBuf
.getLength()
4360 OStringBuffer
aStrBuf( arrOUS
[1] );
4361 OString
expVal( aStrBuf
.getStr() );
4362 sal_Int32 input
= 4;
4363 sal_Int16 radix
= 10;
4365 expVal
+= OString( "4" );
4366 aStrBuf
.append( input
, radix
);
4368 CPPUNIT_ASSERT_EQUAL_MESSAGE
4370 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
4371 expVal
, OString(aStrBuf
.getStr())
4373 CPPUNIT_ASSERT_EQUAL_MESSAGE
4375 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
4376 expVal
.getLength(), aStrBuf
.getLength()
4383 OStringBuffer
aStrBuf( arrOUS
[1] );
4384 OString
expVal( aStrBuf
.getStr() );
4385 sal_Int32 input
= 8;
4386 sal_Int16 radix
= 10;
4388 expVal
+= OString( "8" );
4389 aStrBuf
.append( input
, radix
);
4391 CPPUNIT_ASSERT_EQUAL_MESSAGE
4393 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
4394 expVal
, OString(aStrBuf
.getStr())
4396 CPPUNIT_ASSERT_EQUAL_MESSAGE
4398 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
4399 expVal
.getLength(), aStrBuf
.getLength()
4406 OStringBuffer
aStrBuf( arrOUS
[1] );
4407 OString
expVal( aStrBuf
.getStr() );
4408 sal_Int32 input
= 15;
4409 sal_Int16 radix
= 10;
4411 expVal
+= OString( "15" );
4412 aStrBuf
.append( input
, radix
);
4414 CPPUNIT_ASSERT_EQUAL_MESSAGE
4416 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
4417 expVal
, OString(aStrBuf
.getStr())
4419 CPPUNIT_ASSERT_EQUAL_MESSAGE
4421 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
4422 expVal
.getLength(), aStrBuf
.getLength()
4429 OStringBuffer
aStrBuf( arrOUS
[1] );
4430 OString
expVal( aStrBuf
.getStr() );
4431 sal_Int32 input
= 0;
4432 sal_Int16 radix
= 16;
4434 expVal
+= OString( "0" );
4435 aStrBuf
.append( input
, radix
);
4437 CPPUNIT_ASSERT_EQUAL_MESSAGE
4439 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
4440 expVal
, OString(aStrBuf
.getStr())
4442 CPPUNIT_ASSERT_EQUAL_MESSAGE
4444 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
4445 expVal
.getLength(), aStrBuf
.getLength()
4452 OStringBuffer
aStrBuf( arrOUS
[1] );
4453 OString
expVal( aStrBuf
.getStr() );
4454 sal_Int32 input
= 4;
4455 sal_Int16 radix
= 16;
4457 expVal
+= OString( "4" );
4458 aStrBuf
.append( input
, radix
);
4460 CPPUNIT_ASSERT_EQUAL_MESSAGE
4462 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
4463 expVal
, OString(aStrBuf
.getStr())
4465 CPPUNIT_ASSERT_EQUAL_MESSAGE
4467 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
4468 expVal
.getLength(), aStrBuf
.getLength()
4475 OStringBuffer
aStrBuf( arrOUS
[1] );
4476 OString
expVal( aStrBuf
.getStr() );
4477 sal_Int32 input
= 8;
4478 sal_Int16 radix
= 16;
4480 expVal
+= OString( "8" );
4481 aStrBuf
.append( input
, radix
);
4483 CPPUNIT_ASSERT_EQUAL_MESSAGE
4485 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
4486 expVal
, OString(aStrBuf
.getStr())
4488 CPPUNIT_ASSERT_EQUAL_MESSAGE
4490 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
4491 expVal
.getLength(), aStrBuf
.getLength()
4498 OStringBuffer
aStrBuf( arrOUS
[1] );
4499 OString
expVal( aStrBuf
.getStr() );
4500 sal_Int32 input
= 15;
4501 sal_Int16 radix
= 16;
4503 expVal
+= OString( "f" );
4504 aStrBuf
.append( input
, radix
);
4506 CPPUNIT_ASSERT_EQUAL_MESSAGE
4508 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
4509 expVal
, OString(aStrBuf
.getStr())
4511 CPPUNIT_ASSERT_EQUAL_MESSAGE
4513 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
4514 expVal
.getLength(), aStrBuf
.getLength()
4521 OStringBuffer
aStrBuf( arrOUS
[1] );
4522 OString
expVal( aStrBuf
.getStr() );
4523 sal_Int32 input
= 0;
4524 sal_Int16 radix
= 36;
4526 expVal
+= OString( "0" );
4527 aStrBuf
.append( input
, radix
);
4529 CPPUNIT_ASSERT_EQUAL_MESSAGE
4531 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
4532 expVal
, OString(aStrBuf
.getStr())
4534 CPPUNIT_ASSERT_EQUAL_MESSAGE
4536 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
4537 expVal
.getLength(), aStrBuf
.getLength()
4544 OStringBuffer
aStrBuf( arrOUS
[1] );
4545 OString
expVal( aStrBuf
.getStr() );
4546 sal_Int32 input
= 4;
4547 sal_Int16 radix
= 36;
4549 expVal
+= OString( "4" );
4550 aStrBuf
.append( input
, radix
);
4552 CPPUNIT_ASSERT_EQUAL_MESSAGE
4554 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
4555 expVal
, OString(aStrBuf
.getStr())
4557 CPPUNIT_ASSERT_EQUAL_MESSAGE
4559 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
4560 expVal
.getLength(), aStrBuf
.getLength()
4567 OStringBuffer
aStrBuf( arrOUS
[1] );
4568 OString
expVal( aStrBuf
.getStr() );
4569 sal_Int32 input
= 8;
4570 sal_Int16 radix
= 36;
4572 expVal
+= OString( "8" );
4573 aStrBuf
.append( input
, radix
);
4575 CPPUNIT_ASSERT_EQUAL_MESSAGE
4577 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
4578 expVal
, OString(aStrBuf
.getStr())
4580 CPPUNIT_ASSERT_EQUAL_MESSAGE
4582 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
4583 expVal
.getLength(), aStrBuf
.getLength()
4590 OStringBuffer
aStrBuf( arrOUS
[1] );
4591 OString
expVal( aStrBuf
.getStr() );
4592 sal_Int32 input
= 35;
4593 sal_Int16 radix
= 36;
4595 expVal
+= OString( "z" );
4596 aStrBuf
.append( input
, radix
);
4598 CPPUNIT_ASSERT_EQUAL_MESSAGE
4600 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
4601 expVal
, OString(aStrBuf
.getStr())
4603 CPPUNIT_ASSERT_EQUAL_MESSAGE
4605 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
4606 expVal
.getLength(), aStrBuf
.getLength()
4613 OStringBuffer
aStrBuf( arrOUS
[2] );
4614 OString
expVal( aStrBuf
.getStr() );
4615 sal_Int32 input
= 0;
4616 sal_Int16 radix
= 2;
4618 expVal
+= OString( "0" );
4619 aStrBuf
.append( input
, radix
);
4621 CPPUNIT_ASSERT_EQUAL_MESSAGE
4623 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
4624 expVal
, OString(aStrBuf
.getStr())
4626 CPPUNIT_ASSERT_EQUAL_MESSAGE
4628 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
4629 expVal
.getLength(), aStrBuf
.getLength()
4636 OStringBuffer
aStrBuf( arrOUS
[2] );
4637 OString
expVal( aStrBuf
.getStr() );
4638 sal_Int32 input
= 4;
4639 sal_Int16 radix
= 2;
4641 expVal
+= OString( "100" );
4642 aStrBuf
.append( input
, radix
);
4644 CPPUNIT_ASSERT_EQUAL_MESSAGE
4646 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
4647 expVal
, OString(aStrBuf
.getStr())
4649 CPPUNIT_ASSERT_EQUAL_MESSAGE
4651 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
4652 expVal
.getLength(), aStrBuf
.getLength()
4659 OStringBuffer
aStrBuf( arrOUS
[2] );
4660 OString
expVal( aStrBuf
.getStr() );
4661 sal_Int32 input
= 8;
4662 sal_Int16 radix
= 2;
4664 expVal
+= OString( "1000" );
4665 aStrBuf
.append( input
, radix
);
4667 CPPUNIT_ASSERT_EQUAL_MESSAGE
4669 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
4670 expVal
, OString(aStrBuf
.getStr())
4672 CPPUNIT_ASSERT_EQUAL_MESSAGE
4674 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
4675 expVal
.getLength(), aStrBuf
.getLength()
4682 OStringBuffer
aStrBuf( arrOUS
[2] );
4683 OString
expVal( aStrBuf
.getStr() );
4684 sal_Int32 input
= 15;
4685 sal_Int16 radix
= 2;
4687 expVal
+= OString( "1111" );
4688 aStrBuf
.append( input
, radix
);
4690 CPPUNIT_ASSERT_EQUAL_MESSAGE
4692 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
4693 expVal
, OString(aStrBuf
.getStr())
4695 CPPUNIT_ASSERT_EQUAL_MESSAGE
4697 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
4698 expVal
.getLength(), aStrBuf
.getLength()
4705 OStringBuffer
aStrBuf( arrOUS
[2] );
4706 OString
expVal( aStrBuf
.getStr() );
4707 sal_Int32 input
= 0;
4708 sal_Int16 radix
= 8;
4710 expVal
+= OString( "0" );
4711 aStrBuf
.append( input
, radix
);
4713 CPPUNIT_ASSERT_EQUAL_MESSAGE
4715 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
4716 expVal
, OString(aStrBuf
.getStr())
4718 CPPUNIT_ASSERT_EQUAL_MESSAGE
4720 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
4721 expVal
.getLength(), aStrBuf
.getLength()
4728 OStringBuffer
aStrBuf( arrOUS
[2] );
4729 OString
expVal( aStrBuf
.getStr() );
4730 sal_Int32 input
= 4;
4731 sal_Int16 radix
= 8;
4733 expVal
+= OString( "4" );
4734 aStrBuf
.append( input
, radix
);
4736 CPPUNIT_ASSERT_EQUAL_MESSAGE
4738 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
4739 expVal
, OString(aStrBuf
.getStr())
4741 CPPUNIT_ASSERT_EQUAL_MESSAGE
4743 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
4744 expVal
.getLength(), aStrBuf
.getLength()
4751 OStringBuffer
aStrBuf( arrOUS
[2] );
4752 OString
expVal( aStrBuf
.getStr() );
4753 sal_Int32 input
= 8;
4754 sal_Int16 radix
= 8;
4756 expVal
+= OString( "10" );
4757 aStrBuf
.append( input
, radix
);
4759 CPPUNIT_ASSERT_EQUAL_MESSAGE
4761 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
4762 expVal
, OString(aStrBuf
.getStr())
4764 CPPUNIT_ASSERT_EQUAL_MESSAGE
4766 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
4767 expVal
.getLength(), aStrBuf
.getLength()
4774 OStringBuffer
aStrBuf( arrOUS
[2] );
4775 OString
expVal( aStrBuf
.getStr() );
4776 sal_Int32 input
= 15;
4777 sal_Int16 radix
= 8;
4779 expVal
+= OString( "17" );
4780 aStrBuf
.append( input
, radix
);
4782 CPPUNIT_ASSERT_EQUAL_MESSAGE
4784 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
4785 expVal
, OString(aStrBuf
.getStr())
4787 CPPUNIT_ASSERT_EQUAL_MESSAGE
4789 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
4790 expVal
.getLength(), aStrBuf
.getLength()
4797 OStringBuffer
aStrBuf( arrOUS
[2] );
4798 OString
expVal( aStrBuf
.getStr() );
4799 sal_Int32 input
= 0;
4800 sal_Int16 radix
= 10;
4802 expVal
+= OString( "0" );
4803 aStrBuf
.append( input
, radix
);
4805 CPPUNIT_ASSERT_EQUAL_MESSAGE
4807 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
4808 expVal
, OString(aStrBuf
.getStr())
4810 CPPUNIT_ASSERT_EQUAL_MESSAGE
4812 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
4813 expVal
.getLength(), aStrBuf
.getLength()
4820 OStringBuffer
aStrBuf( arrOUS
[2] );
4821 OString
expVal( aStrBuf
.getStr() );
4822 sal_Int32 input
= 4;
4823 sal_Int16 radix
= 10;
4825 expVal
+= OString( "4" );
4826 aStrBuf
.append( input
, radix
);
4828 CPPUNIT_ASSERT_EQUAL_MESSAGE
4830 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
4831 expVal
, OString(aStrBuf
.getStr())
4833 CPPUNIT_ASSERT_EQUAL_MESSAGE
4835 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
4836 expVal
.getLength(), aStrBuf
.getLength()
4843 OStringBuffer
aStrBuf( arrOUS
[2] );
4844 OString
expVal( aStrBuf
.getStr() );
4845 sal_Int32 input
= 8;
4846 sal_Int16 radix
= 10;
4848 expVal
+= OString( "8" );
4849 aStrBuf
.append( input
, radix
);
4851 CPPUNIT_ASSERT_EQUAL_MESSAGE
4853 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
4854 expVal
, OString(aStrBuf
.getStr())
4856 CPPUNIT_ASSERT_EQUAL_MESSAGE
4858 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
4859 expVal
.getLength(), aStrBuf
.getLength()
4866 OStringBuffer
aStrBuf( arrOUS
[2] );
4867 OString
expVal( aStrBuf
.getStr() );
4868 sal_Int32 input
= 15;
4869 sal_Int16 radix
= 10;
4871 expVal
+= OString( "15" );
4872 aStrBuf
.append( input
, radix
);
4874 CPPUNIT_ASSERT_EQUAL_MESSAGE
4876 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
4877 expVal
, OString(aStrBuf
.getStr())
4879 CPPUNIT_ASSERT_EQUAL_MESSAGE
4881 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
4882 expVal
.getLength(), aStrBuf
.getLength()
4889 OStringBuffer
aStrBuf( arrOUS
[2] );
4890 OString
expVal( aStrBuf
.getStr() );
4891 sal_Int32 input
= 0;
4892 sal_Int16 radix
= 16;
4894 expVal
+= OString( "0" );
4895 aStrBuf
.append( input
, radix
);
4897 CPPUNIT_ASSERT_EQUAL_MESSAGE
4899 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
4900 expVal
, OString(aStrBuf
.getStr())
4902 CPPUNIT_ASSERT_EQUAL_MESSAGE
4904 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
4905 expVal
.getLength(), aStrBuf
.getLength()
4912 OStringBuffer
aStrBuf( arrOUS
[2] );
4913 OString
expVal( aStrBuf
.getStr() );
4914 sal_Int32 input
= 4;
4915 sal_Int16 radix
= 16;
4917 expVal
+= OString( "4" );
4918 aStrBuf
.append( input
, radix
);
4920 CPPUNIT_ASSERT_EQUAL_MESSAGE
4922 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
4923 expVal
, OString(aStrBuf
.getStr())
4925 CPPUNIT_ASSERT_EQUAL_MESSAGE
4927 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
4928 expVal
.getLength(), aStrBuf
.getLength()
4935 OStringBuffer
aStrBuf( arrOUS
[2] );
4936 OString
expVal( aStrBuf
.getStr() );
4937 sal_Int32 input
= 8;
4938 sal_Int16 radix
= 16;
4940 expVal
+= OString( "8" );
4941 aStrBuf
.append( input
, radix
);
4943 CPPUNIT_ASSERT_EQUAL_MESSAGE
4945 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
4946 expVal
, OString(aStrBuf
.getStr())
4948 CPPUNIT_ASSERT_EQUAL_MESSAGE
4950 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
4951 expVal
.getLength(), aStrBuf
.getLength()
4958 OStringBuffer
aStrBuf( arrOUS
[2] );
4959 OString
expVal( aStrBuf
.getStr() );
4960 sal_Int32 input
= 15;
4961 sal_Int16 radix
= 16;
4963 expVal
+= OString( "f" );
4964 aStrBuf
.append( input
, radix
);
4966 CPPUNIT_ASSERT_EQUAL_MESSAGE
4968 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
4969 expVal
, OString(aStrBuf
.getStr())
4971 CPPUNIT_ASSERT_EQUAL_MESSAGE
4973 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
4974 expVal
.getLength(), aStrBuf
.getLength()
4981 OStringBuffer
aStrBuf( arrOUS
[2] );
4982 OString
expVal( aStrBuf
.getStr() );
4983 sal_Int32 input
= 0;
4984 sal_Int16 radix
= 36;
4986 expVal
+= OString( "0" );
4987 aStrBuf
.append( input
, radix
);
4989 CPPUNIT_ASSERT_EQUAL_MESSAGE
4991 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
4992 expVal
, OString(aStrBuf
.getStr())
4994 CPPUNIT_ASSERT_EQUAL_MESSAGE
4996 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
4997 expVal
.getLength(), aStrBuf
.getLength()
5004 OStringBuffer
aStrBuf( arrOUS
[2] );
5005 OString
expVal( aStrBuf
.getStr() );
5006 sal_Int32 input
= 4;
5007 sal_Int16 radix
= 36;
5009 expVal
+= OString( "4" );
5010 aStrBuf
.append( input
, radix
);
5012 CPPUNIT_ASSERT_EQUAL_MESSAGE
5014 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
5015 expVal
, OString(aStrBuf
.getStr())
5017 CPPUNIT_ASSERT_EQUAL_MESSAGE
5019 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
5020 expVal
.getLength(), aStrBuf
.getLength()
5027 OStringBuffer
aStrBuf( arrOUS
[2] );
5028 OString
expVal( aStrBuf
.getStr() );
5029 sal_Int32 input
= 8;
5030 sal_Int16 radix
= 36;
5032 expVal
+= OString( "8" );
5033 aStrBuf
.append( input
, radix
);
5035 CPPUNIT_ASSERT_EQUAL_MESSAGE
5037 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
5038 expVal
, OString(aStrBuf
.getStr())
5040 CPPUNIT_ASSERT_EQUAL_MESSAGE
5042 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
5043 expVal
.getLength(), aStrBuf
.getLength()
5050 OStringBuffer
aStrBuf( arrOUS
[2] );
5051 OString
expVal( aStrBuf
.getStr() );
5052 sal_Int32 input
= 35;
5053 sal_Int16 radix
= 36;
5055 expVal
+= OString( "z" );
5056 aStrBuf
.append( input
, radix
);
5058 CPPUNIT_ASSERT_EQUAL_MESSAGE
5060 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
5061 expVal
, OString(aStrBuf
.getStr())
5063 CPPUNIT_ASSERT_EQUAL_MESSAGE
5065 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
5066 expVal
.getLength(), aStrBuf
.getLength()
5073 OStringBuffer
aStrBuf( arrOUS
[3] );
5074 OString
expVal( aStrBuf
.getStr() );
5075 sal_Int32 input
= 0;
5076 sal_Int16 radix
= 2;
5078 expVal
+= OString( "0" );
5079 aStrBuf
.append( input
, radix
);
5081 CPPUNIT_ASSERT_EQUAL_MESSAGE
5083 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
5084 expVal
, OString(aStrBuf
.getStr())
5086 CPPUNIT_ASSERT_EQUAL_MESSAGE
5088 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
5089 expVal
.getLength(), aStrBuf
.getLength()
5096 OStringBuffer
aStrBuf( arrOUS
[3] );
5097 OString
expVal( aStrBuf
.getStr() );
5098 sal_Int32 input
= 4;
5099 sal_Int16 radix
= 2;
5101 expVal
+= OString( "100" );
5102 aStrBuf
.append( input
, radix
);
5104 CPPUNIT_ASSERT_EQUAL_MESSAGE
5106 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
5107 expVal
, OString(aStrBuf
.getStr())
5109 CPPUNIT_ASSERT_EQUAL_MESSAGE
5111 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
5112 expVal
.getLength(), aStrBuf
.getLength()
5119 OStringBuffer
aStrBuf( arrOUS
[3] );
5120 OString
expVal( aStrBuf
.getStr() );
5121 sal_Int32 input
= 8;
5122 sal_Int16 radix
= 2;
5124 expVal
+= OString( "1000" );
5125 aStrBuf
.append( input
, radix
);
5127 CPPUNIT_ASSERT_EQUAL_MESSAGE
5129 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
5130 expVal
, OString(aStrBuf
.getStr())
5132 CPPUNIT_ASSERT_EQUAL_MESSAGE
5134 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
5135 expVal
.getLength(), aStrBuf
.getLength()
5142 OStringBuffer
aStrBuf( arrOUS
[3] );
5143 OString
expVal( aStrBuf
.getStr() );
5144 sal_Int32 input
= 15;
5145 sal_Int16 radix
= 2;
5147 expVal
+= OString( "1111" );
5148 aStrBuf
.append( input
, radix
);
5150 CPPUNIT_ASSERT_EQUAL_MESSAGE
5152 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
5153 expVal
, OString(aStrBuf
.getStr())
5155 CPPUNIT_ASSERT_EQUAL_MESSAGE
5157 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
5158 expVal
.getLength(), aStrBuf
.getLength()
5165 OStringBuffer
aStrBuf( arrOUS
[3] );
5166 OString
expVal( aStrBuf
.getStr() );
5167 sal_Int32 input
= 0;
5168 sal_Int16 radix
= 8;
5170 expVal
+= OString( "0" );
5171 aStrBuf
.append( input
, radix
);
5173 CPPUNIT_ASSERT_EQUAL_MESSAGE
5175 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
5176 expVal
, OString(aStrBuf
.getStr())
5178 CPPUNIT_ASSERT_EQUAL_MESSAGE
5180 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
5181 expVal
.getLength(), aStrBuf
.getLength()
5188 OStringBuffer
aStrBuf( arrOUS
[3] );
5189 OString
expVal( aStrBuf
.getStr() );
5190 sal_Int32 input
= 4;
5191 sal_Int16 radix
= 8;
5193 expVal
+= OString( "4" );
5194 aStrBuf
.append( input
, radix
);
5196 CPPUNIT_ASSERT_EQUAL_MESSAGE
5198 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
5199 expVal
, OString(aStrBuf
.getStr())
5201 CPPUNIT_ASSERT_EQUAL_MESSAGE
5203 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
5204 expVal
.getLength(), aStrBuf
.getLength()
5211 OStringBuffer
aStrBuf( arrOUS
[3] );
5212 OString
expVal( aStrBuf
.getStr() );
5213 sal_Int32 input
= 8;
5214 sal_Int16 radix
= 8;
5216 expVal
+= OString( "10" );
5217 aStrBuf
.append( input
, radix
);
5219 CPPUNIT_ASSERT_EQUAL_MESSAGE
5221 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
5222 expVal
, OString(aStrBuf
.getStr())
5224 CPPUNIT_ASSERT_EQUAL_MESSAGE
5226 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
5227 expVal
.getLength(), aStrBuf
.getLength()
5234 OStringBuffer
aStrBuf( arrOUS
[3] );
5235 OString
expVal( aStrBuf
.getStr() );
5236 sal_Int32 input
= 15;
5237 sal_Int16 radix
= 8;
5239 expVal
+= OString( "17" );
5240 aStrBuf
.append( input
, radix
);
5242 CPPUNIT_ASSERT_EQUAL_MESSAGE
5244 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
5245 expVal
, OString(aStrBuf
.getStr())
5247 CPPUNIT_ASSERT_EQUAL_MESSAGE
5249 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
5250 expVal
.getLength(), aStrBuf
.getLength()
5257 OStringBuffer
aStrBuf( arrOUS
[3] );
5258 OString
expVal( aStrBuf
.getStr() );
5259 sal_Int32 input
= 0;
5260 sal_Int16 radix
= 10;
5262 expVal
+= OString( "0" );
5263 aStrBuf
.append( input
, radix
);
5265 CPPUNIT_ASSERT_EQUAL_MESSAGE
5267 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
5268 expVal
, OString(aStrBuf
.getStr())
5270 CPPUNIT_ASSERT_EQUAL_MESSAGE
5272 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
5273 expVal
.getLength(), aStrBuf
.getLength()
5280 OStringBuffer
aStrBuf( arrOUS
[3] );
5281 OString
expVal( aStrBuf
.getStr() );
5282 sal_Int32 input
= 4;
5283 sal_Int16 radix
= 10;
5285 expVal
+= OString( "4" );
5286 aStrBuf
.append( input
, radix
);
5288 CPPUNIT_ASSERT_EQUAL_MESSAGE
5290 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
5291 expVal
, OString(aStrBuf
.getStr())
5293 CPPUNIT_ASSERT_EQUAL_MESSAGE
5295 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
5296 expVal
.getLength(), aStrBuf
.getLength()
5303 OStringBuffer
aStrBuf( arrOUS
[3] );
5304 OString
expVal( aStrBuf
.getStr() );
5305 sal_Int32 input
= 8;
5306 sal_Int16 radix
= 10;
5308 expVal
+= OString( "8" );
5309 aStrBuf
.append( input
, radix
);
5311 CPPUNIT_ASSERT_EQUAL_MESSAGE
5313 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
5314 expVal
, OString(aStrBuf
.getStr())
5316 CPPUNIT_ASSERT_EQUAL_MESSAGE
5318 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
5319 expVal
.getLength(), aStrBuf
.getLength()
5326 OStringBuffer
aStrBuf( arrOUS
[3] );
5327 OString
expVal( aStrBuf
.getStr() );
5328 sal_Int32 input
= 15;
5329 sal_Int16 radix
= 10;
5331 expVal
+= OString( "15" );
5332 aStrBuf
.append( input
, radix
);
5334 CPPUNIT_ASSERT_EQUAL_MESSAGE
5336 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
5337 expVal
, OString(aStrBuf
.getStr())
5339 CPPUNIT_ASSERT_EQUAL_MESSAGE
5341 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
5342 expVal
.getLength(), aStrBuf
.getLength()
5349 OStringBuffer
aStrBuf( arrOUS
[3] );
5350 OString
expVal( aStrBuf
.getStr() );
5351 sal_Int32 input
= 0;
5352 sal_Int16 radix
= 16;
5354 expVal
+= OString( "0" );
5355 aStrBuf
.append( input
, radix
);
5357 CPPUNIT_ASSERT_EQUAL_MESSAGE
5359 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
5360 expVal
, OString(aStrBuf
.getStr())
5362 CPPUNIT_ASSERT_EQUAL_MESSAGE
5364 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
5365 expVal
.getLength(), aStrBuf
.getLength()
5372 OStringBuffer
aStrBuf( arrOUS
[3] );
5373 OString
expVal( aStrBuf
.getStr() );
5374 sal_Int32 input
= 4;
5375 sal_Int16 radix
= 16;
5377 expVal
+= OString( "4" );
5378 aStrBuf
.append( input
, radix
);
5380 CPPUNIT_ASSERT_EQUAL_MESSAGE
5382 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
5383 expVal
, OString(aStrBuf
.getStr())
5385 CPPUNIT_ASSERT_EQUAL_MESSAGE
5387 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
5388 expVal
.getLength(), aStrBuf
.getLength()
5395 OStringBuffer
aStrBuf( arrOUS
[3] );
5396 OString
expVal( aStrBuf
.getStr() );
5397 sal_Int32 input
= 8;
5398 sal_Int16 radix
= 16;
5400 expVal
+= OString( "8" );
5401 aStrBuf
.append( input
, radix
);
5403 CPPUNIT_ASSERT_EQUAL_MESSAGE
5405 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
5406 expVal
, OString(aStrBuf
.getStr())
5408 CPPUNIT_ASSERT_EQUAL_MESSAGE
5410 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
5411 expVal
.getLength(), aStrBuf
.getLength()
5418 OStringBuffer
aStrBuf( arrOUS
[3] );
5419 OString
expVal( aStrBuf
.getStr() );
5420 sal_Int32 input
= 15;
5421 sal_Int16 radix
= 16;
5423 expVal
+= OString( "f" );
5424 aStrBuf
.append( input
, radix
);
5426 CPPUNIT_ASSERT_EQUAL_MESSAGE
5428 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
5429 expVal
, OString(aStrBuf
.getStr())
5431 CPPUNIT_ASSERT_EQUAL_MESSAGE
5433 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
5434 expVal
.getLength(), aStrBuf
.getLength()
5441 OStringBuffer
aStrBuf( arrOUS
[3] );
5442 OString
expVal( aStrBuf
.getStr() );
5443 sal_Int32 input
= 0;
5444 sal_Int16 radix
= 36;
5446 expVal
+= OString( "0" );
5447 aStrBuf
.append( input
, radix
);
5449 CPPUNIT_ASSERT_EQUAL_MESSAGE
5451 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
5452 expVal
, OString(aStrBuf
.getStr())
5454 CPPUNIT_ASSERT_EQUAL_MESSAGE
5456 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
5457 expVal
.getLength(), aStrBuf
.getLength()
5464 OStringBuffer
aStrBuf( arrOUS
[3] );
5465 OString
expVal( aStrBuf
.getStr() );
5466 sal_Int32 input
= 4;
5467 sal_Int16 radix
= 36;
5469 expVal
+= OString( "4" );
5470 aStrBuf
.append( input
, radix
);
5472 CPPUNIT_ASSERT_EQUAL_MESSAGE
5474 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
5475 expVal
, OString(aStrBuf
.getStr())
5477 CPPUNIT_ASSERT_EQUAL_MESSAGE
5479 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
5480 expVal
.getLength(), aStrBuf
.getLength()
5487 OStringBuffer
aStrBuf( arrOUS
[3] );
5488 OString
expVal( aStrBuf
.getStr() );
5489 sal_Int32 input
= 8;
5490 sal_Int16 radix
= 36;
5492 expVal
+= OString( "8" );
5493 aStrBuf
.append( input
, radix
);
5495 CPPUNIT_ASSERT_EQUAL_MESSAGE
5497 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
5498 expVal
, OString(aStrBuf
.getStr())
5500 CPPUNIT_ASSERT_EQUAL_MESSAGE
5502 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
5503 expVal
.getLength(), aStrBuf
.getLength()
5510 OStringBuffer
aStrBuf( arrOUS
[3] );
5511 OString
expVal( aStrBuf
.getStr() );
5512 sal_Int32 input
= 35;
5513 sal_Int16 radix
= 36;
5515 expVal
+= OString( "z" );
5516 aStrBuf
.append( input
, radix
);
5518 CPPUNIT_ASSERT_EQUAL_MESSAGE
5520 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
5521 expVal
, OString(aStrBuf
.getStr())
5523 CPPUNIT_ASSERT_EQUAL_MESSAGE
5525 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
5526 expVal
.getLength(), aStrBuf
.getLength()
5533 OStringBuffer
aStrBuf( arrOUS
[4] );
5534 OString
expVal( aStrBuf
.getStr() );
5535 sal_Int32 input
= 0;
5536 sal_Int16 radix
= 2;
5538 expVal
+= OString( "0" );
5539 aStrBuf
.append( input
, radix
);
5541 CPPUNIT_ASSERT_EQUAL_MESSAGE
5543 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
5544 expVal
, OString(aStrBuf
.getStr())
5546 CPPUNIT_ASSERT_EQUAL_MESSAGE
5548 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
5549 expVal
.getLength(), aStrBuf
.getLength()
5556 OStringBuffer
aStrBuf( arrOUS
[4] );
5557 OString
expVal( aStrBuf
.getStr() );
5558 sal_Int32 input
= 4;
5559 sal_Int16 radix
= 2;
5561 expVal
+= OString( "100" );
5562 aStrBuf
.append( input
, radix
);
5564 CPPUNIT_ASSERT_EQUAL_MESSAGE
5566 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
5567 expVal
, OString(aStrBuf
.getStr())
5569 CPPUNIT_ASSERT_EQUAL_MESSAGE
5571 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
5572 expVal
.getLength(), aStrBuf
.getLength()
5579 OStringBuffer
aStrBuf( arrOUS
[4] );
5580 OString
expVal( aStrBuf
.getStr() );
5581 sal_Int32 input
= 8;
5582 sal_Int16 radix
= 2;
5584 expVal
+= OString( "1000" );
5585 aStrBuf
.append( input
, radix
);
5587 CPPUNIT_ASSERT_EQUAL_MESSAGE
5589 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
5590 expVal
, OString(aStrBuf
.getStr())
5592 CPPUNIT_ASSERT_EQUAL_MESSAGE
5594 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
5595 expVal
.getLength(), aStrBuf
.getLength()
5602 OStringBuffer
aStrBuf( arrOUS
[4] );
5603 OString
expVal( aStrBuf
.getStr() );
5604 sal_Int32 input
= 15;
5605 sal_Int16 radix
= 2;
5607 expVal
+= OString( "1111" );
5608 aStrBuf
.append( input
, radix
);
5610 CPPUNIT_ASSERT_EQUAL_MESSAGE
5612 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
5613 expVal
, OString(aStrBuf
.getStr())
5615 CPPUNIT_ASSERT_EQUAL_MESSAGE
5617 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
5618 expVal
.getLength(), aStrBuf
.getLength()
5625 OStringBuffer
aStrBuf( arrOUS
[4] );
5626 OString
expVal( aStrBuf
.getStr() );
5627 sal_Int32 input
= 0;
5628 sal_Int16 radix
= 8;
5630 expVal
+= OString( "0" );
5631 aStrBuf
.append( input
, radix
);
5633 CPPUNIT_ASSERT_EQUAL_MESSAGE
5635 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
5636 expVal
, OString(aStrBuf
.getStr())
5638 CPPUNIT_ASSERT_EQUAL_MESSAGE
5640 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
5641 expVal
.getLength(), aStrBuf
.getLength()
5648 OStringBuffer
aStrBuf( arrOUS
[4] );
5649 OString
expVal( aStrBuf
.getStr() );
5650 sal_Int32 input
= 4;
5651 sal_Int16 radix
= 8;
5653 expVal
+= OString( "4" );
5654 aStrBuf
.append( input
, radix
);
5656 CPPUNIT_ASSERT_EQUAL_MESSAGE
5658 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
5659 expVal
, OString(aStrBuf
.getStr())
5661 CPPUNIT_ASSERT_EQUAL_MESSAGE
5663 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
5664 expVal
.getLength(), aStrBuf
.getLength()
5671 OStringBuffer
aStrBuf( arrOUS
[4] );
5672 OString
expVal( aStrBuf
.getStr() );
5673 sal_Int32 input
= 8;
5674 sal_Int16 radix
= 8;
5676 expVal
+= OString( "10" );
5677 aStrBuf
.append( input
, radix
);
5679 CPPUNIT_ASSERT_EQUAL_MESSAGE
5681 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
5682 expVal
, OString(aStrBuf
.getStr())
5684 CPPUNIT_ASSERT_EQUAL_MESSAGE
5686 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
5687 expVal
.getLength(), aStrBuf
.getLength()
5694 OStringBuffer
aStrBuf( arrOUS
[4] );
5695 OString
expVal( aStrBuf
.getStr() );
5696 sal_Int32 input
= 15;
5697 sal_Int16 radix
= 8;
5699 expVal
+= OString( "17" );
5700 aStrBuf
.append( input
, radix
);
5702 CPPUNIT_ASSERT_EQUAL_MESSAGE
5704 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
5705 expVal
, OString(aStrBuf
.getStr())
5707 CPPUNIT_ASSERT_EQUAL_MESSAGE
5709 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
5710 expVal
.getLength(), aStrBuf
.getLength()
5717 OStringBuffer
aStrBuf( arrOUS
[4] );
5718 OString
expVal( aStrBuf
.getStr() );
5719 sal_Int32 input
= 0;
5720 sal_Int16 radix
= 10;
5722 expVal
+= OString( "0" );
5723 aStrBuf
.append( input
, radix
);
5725 CPPUNIT_ASSERT_EQUAL_MESSAGE
5727 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
5728 expVal
, OString(aStrBuf
.getStr())
5730 CPPUNIT_ASSERT_EQUAL_MESSAGE
5732 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
5733 expVal
.getLength(), aStrBuf
.getLength()
5740 OStringBuffer
aStrBuf( arrOUS
[4] );
5741 OString
expVal( aStrBuf
.getStr() );
5742 sal_Int32 input
= 4;
5743 sal_Int16 radix
= 10;
5745 expVal
+= OString( "4" );
5746 aStrBuf
.append( input
, radix
);
5748 CPPUNIT_ASSERT_EQUAL_MESSAGE
5750 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
5751 expVal
, OString(aStrBuf
.getStr())
5753 CPPUNIT_ASSERT_EQUAL_MESSAGE
5755 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
5756 expVal
.getLength(), aStrBuf
.getLength()
5763 OStringBuffer
aStrBuf( arrOUS
[4] );
5764 OString
expVal( aStrBuf
.getStr() );
5765 sal_Int32 input
= 8;
5766 sal_Int16 radix
= 10;
5768 expVal
+= OString( "8" );
5769 aStrBuf
.append( input
, radix
);
5771 CPPUNIT_ASSERT_EQUAL_MESSAGE
5773 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
5774 expVal
, OString(aStrBuf
.getStr())
5776 CPPUNIT_ASSERT_EQUAL_MESSAGE
5778 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
5779 expVal
.getLength(), aStrBuf
.getLength()
5786 OStringBuffer
aStrBuf( arrOUS
[4] );
5787 OString
expVal( aStrBuf
.getStr() );
5788 sal_Int32 input
= 15;
5789 sal_Int16 radix
= 10;
5791 expVal
+= OString( "15" );
5792 aStrBuf
.append( input
, radix
);
5794 CPPUNIT_ASSERT_EQUAL_MESSAGE
5796 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
5797 expVal
, OString(aStrBuf
.getStr())
5799 CPPUNIT_ASSERT_EQUAL_MESSAGE
5801 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
5802 expVal
.getLength(), aStrBuf
.getLength()
5809 OStringBuffer
aStrBuf( arrOUS
[4] );
5810 OString
expVal( aStrBuf
.getStr() );
5811 sal_Int32 input
= 0;
5812 sal_Int16 radix
= 16;
5814 expVal
+= OString( "0" );
5815 aStrBuf
.append( input
, radix
);
5817 CPPUNIT_ASSERT_EQUAL_MESSAGE
5819 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
5820 expVal
, OString(aStrBuf
.getStr())
5822 CPPUNIT_ASSERT_EQUAL_MESSAGE
5824 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
5825 expVal
.getLength(), aStrBuf
.getLength()
5832 OStringBuffer
aStrBuf( arrOUS
[4] );
5833 OString
expVal( aStrBuf
.getStr() );
5834 sal_Int32 input
= 4;
5835 sal_Int16 radix
= 16;
5837 expVal
+= OString( "4" );
5838 aStrBuf
.append( input
, radix
);
5840 CPPUNIT_ASSERT_EQUAL_MESSAGE
5842 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
5843 expVal
, OString(aStrBuf
.getStr())
5845 CPPUNIT_ASSERT_EQUAL_MESSAGE
5847 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
5848 expVal
.getLength(), aStrBuf
.getLength()
5855 OStringBuffer
aStrBuf( arrOUS
[4] );
5856 OString
expVal( aStrBuf
.getStr() );
5857 sal_Int32 input
= 8;
5858 sal_Int16 radix
= 16;
5860 expVal
+= OString( "8" );
5861 aStrBuf
.append( input
, radix
);
5863 CPPUNIT_ASSERT_EQUAL_MESSAGE
5865 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
5866 expVal
, OString(aStrBuf
.getStr())
5868 CPPUNIT_ASSERT_EQUAL_MESSAGE
5870 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
5871 expVal
.getLength(), aStrBuf
.getLength()
5878 OStringBuffer
aStrBuf( arrOUS
[4] );
5879 OString
expVal( aStrBuf
.getStr() );
5880 sal_Int32 input
= 15;
5881 sal_Int16 radix
= 16;
5883 expVal
+= OString( "f" );
5884 aStrBuf
.append( input
, radix
);
5886 CPPUNIT_ASSERT_EQUAL_MESSAGE
5888 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
5889 expVal
, OString(aStrBuf
.getStr())
5891 CPPUNIT_ASSERT_EQUAL_MESSAGE
5893 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
5894 expVal
.getLength(), aStrBuf
.getLength()
5901 OStringBuffer
aStrBuf( arrOUS
[4] );
5902 OString
expVal( aStrBuf
.getStr() );
5903 sal_Int32 input
= 0;
5904 sal_Int16 radix
= 36;
5906 expVal
+= OString( "0" );
5907 aStrBuf
.append( input
, radix
);
5909 CPPUNIT_ASSERT_EQUAL_MESSAGE
5911 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
5912 expVal
, OString(aStrBuf
.getStr())
5914 CPPUNIT_ASSERT_EQUAL_MESSAGE
5916 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
5917 expVal
.getLength(), aStrBuf
.getLength()
5924 OStringBuffer
aStrBuf( arrOUS
[4] );
5925 OString
expVal( aStrBuf
.getStr() );
5926 sal_Int32 input
= 4;
5927 sal_Int16 radix
= 36;
5929 expVal
+= OString( "4" );
5930 aStrBuf
.append( input
, radix
);
5932 CPPUNIT_ASSERT_EQUAL_MESSAGE
5934 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
5935 expVal
, OString(aStrBuf
.getStr())
5937 CPPUNIT_ASSERT_EQUAL_MESSAGE
5939 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
5940 expVal
.getLength(), aStrBuf
.getLength()
5947 OStringBuffer
aStrBuf( arrOUS
[4] );
5948 OString
expVal( aStrBuf
.getStr() );
5949 sal_Int32 input
= 8;
5950 sal_Int16 radix
= 36;
5952 expVal
+= OString( "8" );
5953 aStrBuf
.append( input
, radix
);
5955 CPPUNIT_ASSERT_EQUAL_MESSAGE
5957 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
5958 expVal
, OString(aStrBuf
.getStr())
5960 CPPUNIT_ASSERT_EQUAL_MESSAGE
5962 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
5963 expVal
.getLength(), aStrBuf
.getLength()
5970 OStringBuffer
aStrBuf( arrOUS
[4] );
5971 OString
expVal( aStrBuf
.getStr() );
5972 sal_Int32 input
= 35;
5973 sal_Int16 radix
= 36;
5975 expVal
+= OString( "z" );
5976 aStrBuf
.append( input
, radix
);
5978 CPPUNIT_ASSERT_EQUAL_MESSAGE
5980 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
5981 expVal
, OString(aStrBuf
.getStr())
5983 CPPUNIT_ASSERT_EQUAL_MESSAGE
5985 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
5986 expVal
.getLength(), aStrBuf
.getLength()
5991 CPPUNIT_TEST_SUITE( append_006_Int32
);
5992 CPPUNIT_TEST( append_001
); CPPUNIT_TEST( append_002
);
5993 CPPUNIT_TEST( append_003
); CPPUNIT_TEST( append_004
);
5994 CPPUNIT_TEST( append_005
); CPPUNIT_TEST( append_006
);
5995 CPPUNIT_TEST( append_007
); CPPUNIT_TEST( append_008
);
5996 CPPUNIT_TEST( append_009
); CPPUNIT_TEST( append_010
);
5997 CPPUNIT_TEST( append_011
); CPPUNIT_TEST( append_012
);
5998 CPPUNIT_TEST( append_013
); CPPUNIT_TEST( append_014
);
5999 CPPUNIT_TEST( append_015
); CPPUNIT_TEST( append_016
);
6000 CPPUNIT_TEST( append_017
); CPPUNIT_TEST( append_018
);
6001 CPPUNIT_TEST( append_019
); CPPUNIT_TEST( append_020
);
6002 CPPUNIT_TEST( append_021
); CPPUNIT_TEST( append_022
);
6003 CPPUNIT_TEST( append_023
); CPPUNIT_TEST( append_024
);
6004 CPPUNIT_TEST( append_025
); CPPUNIT_TEST( append_026
);
6005 CPPUNIT_TEST( append_027
); CPPUNIT_TEST( append_028
);
6006 CPPUNIT_TEST( append_029
); CPPUNIT_TEST( append_030
);
6007 CPPUNIT_TEST( append_031
); CPPUNIT_TEST( append_032
);
6008 CPPUNIT_TEST( append_033
); CPPUNIT_TEST( append_034
);
6009 CPPUNIT_TEST( append_035
); CPPUNIT_TEST( append_036
);
6010 CPPUNIT_TEST( append_037
); CPPUNIT_TEST( append_038
);
6011 CPPUNIT_TEST( append_039
); CPPUNIT_TEST( append_040
);
6012 CPPUNIT_TEST( append_041
); CPPUNIT_TEST( append_042
);
6013 CPPUNIT_TEST( append_043
); CPPUNIT_TEST( append_044
);
6014 CPPUNIT_TEST( append_045
); CPPUNIT_TEST( append_046
);
6015 CPPUNIT_TEST( append_047
); CPPUNIT_TEST( append_048
);
6016 CPPUNIT_TEST( append_049
); CPPUNIT_TEST( append_050
);
6017 CPPUNIT_TEST( append_051
); CPPUNIT_TEST( append_052
);
6018 CPPUNIT_TEST( append_053
); CPPUNIT_TEST( append_054
);
6019 CPPUNIT_TEST( append_055
); CPPUNIT_TEST( append_056
);
6020 CPPUNIT_TEST( append_057
); CPPUNIT_TEST( append_058
);
6021 CPPUNIT_TEST( append_059
); CPPUNIT_TEST( append_060
);
6022 CPPUNIT_TEST( append_061
); CPPUNIT_TEST( append_062
);
6023 CPPUNIT_TEST( append_063
); CPPUNIT_TEST( append_064
);
6024 CPPUNIT_TEST( append_065
); CPPUNIT_TEST( append_066
);
6025 CPPUNIT_TEST( append_067
); CPPUNIT_TEST( append_068
);
6026 CPPUNIT_TEST( append_069
); CPPUNIT_TEST( append_070
);
6027 CPPUNIT_TEST( append_071
); CPPUNIT_TEST( append_072
);
6028 CPPUNIT_TEST( append_073
); CPPUNIT_TEST( append_074
);
6029 CPPUNIT_TEST( append_075
); CPPUNIT_TEST( append_076
);
6030 CPPUNIT_TEST( append_077
); CPPUNIT_TEST( append_078
);
6031 CPPUNIT_TEST( append_079
); CPPUNIT_TEST( append_080
);
6032 CPPUNIT_TEST( append_081
); CPPUNIT_TEST( append_082
);
6033 CPPUNIT_TEST( append_083
); CPPUNIT_TEST( append_084
);
6034 CPPUNIT_TEST( append_085
); CPPUNIT_TEST( append_086
);
6035 CPPUNIT_TEST( append_087
); CPPUNIT_TEST( append_088
);
6036 CPPUNIT_TEST( append_089
); CPPUNIT_TEST( append_090
);
6037 CPPUNIT_TEST( append_091
); CPPUNIT_TEST( append_092
);
6038 CPPUNIT_TEST( append_093
); CPPUNIT_TEST( append_094
);
6039 CPPUNIT_TEST( append_095
); CPPUNIT_TEST( append_096
);
6040 CPPUNIT_TEST( append_097
); CPPUNIT_TEST( append_098
);
6041 CPPUNIT_TEST( append_099
); CPPUNIT_TEST( append_100
);
6042 CPPUNIT_TEST_SUITE_END();
6045 // testing the method append( sal_Int32 i, sal_Int16 radix=2 )
6046 // where i = large constants
6047 // testing the method append( sal_Int32 i, sal_Int16 radix=8 )
6048 // where i = large constants
6049 // testing the method append( sal_Int32 i, sal_Int16 radix=10 )
6050 // where i = large constants
6051 // testing the method append( sal_Int32 i, sal_Int16 radix=16 )
6052 // where i = large constants
6053 // testing the method append( sal_Int32 i, sal_Int16 radix=36 )
6054 // where i = large constants
6056 class append_006_Int32_Bounderies
: public CppUnit::TestFixture
6061 void setUp() override
6063 arrOUS
[0] = OString( kTestStr7
);
6064 arrOUS
[1] = OString( );
6065 arrOUS
[2] = OString( kTestStr25
);
6066 arrOUS
[3] = OString( "" );
6067 arrOUS
[4] = OString( kTestStr28
);
6072 OStringBuffer
aStrBuf( arrOUS
[0] );
6073 OString
expVal( aStrBuf
.getStr() );
6074 sal_Int32 input
= kSInt8Max
;
6075 sal_Int16 radix
= 2;
6077 expVal
+= OString( "1111111" );
6078 aStrBuf
.append( input
, radix
);
6080 CPPUNIT_ASSERT_EQUAL_MESSAGE
6082 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
6083 expVal
, OString(aStrBuf
.getStr())
6085 CPPUNIT_ASSERT_EQUAL_MESSAGE
6087 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
6088 expVal
.getLength(), aStrBuf
.getLength()
6095 OStringBuffer
aStrBuf( arrOUS
[0] );
6096 OString
expVal( aStrBuf
.getStr() );
6097 sal_Int32 input
= kSInt32Max
;
6098 sal_Int16 radix
= 2;
6100 expVal
+= OString( "1111111111111111111111111111111" );
6101 aStrBuf
.append( input
, radix
);
6103 CPPUNIT_ASSERT_EQUAL_MESSAGE
6105 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
6106 expVal
, OString(aStrBuf
.getStr())
6108 CPPUNIT_ASSERT_EQUAL_MESSAGE
6110 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
6111 expVal
.getLength(), aStrBuf
.getLength()
6118 OStringBuffer
aStrBuf( arrOUS
[0] );
6119 OString
expVal( aStrBuf
.getStr() );
6120 sal_Int32 input
= kSInt8Max
;
6121 sal_Int16 radix
= 8;
6123 expVal
+= OString( "177" );
6124 aStrBuf
.append( input
, radix
);
6126 CPPUNIT_ASSERT_EQUAL_MESSAGE
6128 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
6129 expVal
, OString(aStrBuf
.getStr())
6131 CPPUNIT_ASSERT_EQUAL_MESSAGE
6133 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
6134 expVal
.getLength(), aStrBuf
.getLength()
6141 OStringBuffer
aStrBuf( arrOUS
[0] );
6142 OString
expVal( aStrBuf
.getStr() );
6143 sal_Int32 input
= kSInt32Max
;
6144 sal_Int16 radix
= 8;
6146 expVal
+= OString( "17777777777" );
6147 aStrBuf
.append( input
, radix
);
6149 CPPUNIT_ASSERT_EQUAL_MESSAGE
6151 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
6152 expVal
, OString(aStrBuf
.getStr())
6154 CPPUNIT_ASSERT_EQUAL_MESSAGE
6156 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
6157 expVal
.getLength(), aStrBuf
.getLength()
6164 OStringBuffer
aStrBuf( arrOUS
[0] );
6165 OString
expVal( aStrBuf
.getStr() );
6166 sal_Int32 input
= kSInt8Max
;
6167 sal_Int16 radix
= 10;
6169 expVal
+= OString( "127" );
6170 aStrBuf
.append( input
, radix
);
6172 CPPUNIT_ASSERT_EQUAL_MESSAGE
6174 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
6175 expVal
, OString(aStrBuf
.getStr())
6177 CPPUNIT_ASSERT_EQUAL_MESSAGE
6179 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
6180 expVal
.getLength(), aStrBuf
.getLength()
6187 OStringBuffer
aStrBuf( arrOUS
[0] );
6188 OString
expVal( aStrBuf
.getStr() );
6189 sal_Int32 input
= kSInt32Max
;
6190 sal_Int16 radix
= 10;
6192 expVal
+= OString( "2147483647" );
6193 aStrBuf
.append( input
, radix
);
6195 CPPUNIT_ASSERT_EQUAL_MESSAGE
6197 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
6198 expVal
, OString(aStrBuf
.getStr())
6200 CPPUNIT_ASSERT_EQUAL_MESSAGE
6202 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
6203 expVal
.getLength(), aStrBuf
.getLength()
6210 OStringBuffer
aStrBuf( arrOUS
[0] );
6211 OString
expVal( aStrBuf
.getStr() );
6212 sal_Int32 input
= kSInt8Max
;
6213 sal_Int16 radix
= 16;
6215 expVal
+= OString( "7f" );
6216 aStrBuf
.append( input
, radix
);
6218 CPPUNIT_ASSERT_EQUAL_MESSAGE
6220 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
6221 expVal
, OString(aStrBuf
.getStr())
6223 CPPUNIT_ASSERT_EQUAL_MESSAGE
6225 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
6226 expVal
.getLength(), aStrBuf
.getLength()
6233 OStringBuffer
aStrBuf( arrOUS
[0] );
6234 OString
expVal( aStrBuf
.getStr() );
6235 sal_Int32 input
= kSInt32Max
;
6236 sal_Int16 radix
= 16;
6238 expVal
+= OString( "7fffffff" );
6239 aStrBuf
.append( input
, radix
);
6241 CPPUNIT_ASSERT_EQUAL_MESSAGE
6243 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
6244 expVal
, OString(aStrBuf
.getStr())
6246 CPPUNIT_ASSERT_EQUAL_MESSAGE
6248 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
6249 expVal
.getLength(), aStrBuf
.getLength()
6256 OStringBuffer
aStrBuf( arrOUS
[0] );
6257 OString
expVal( aStrBuf
.getStr() );
6258 sal_Int32 input
= kSInt8Max
;
6259 sal_Int16 radix
= 36;
6261 expVal
+= OString( "3j" );
6262 aStrBuf
.append( input
, radix
);
6264 CPPUNIT_ASSERT_EQUAL_MESSAGE
6266 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
6267 expVal
, OString(aStrBuf
.getStr())
6269 CPPUNIT_ASSERT_EQUAL_MESSAGE
6271 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
6272 expVal
.getLength(), aStrBuf
.getLength()
6279 OStringBuffer
aStrBuf( arrOUS
[0] );
6280 OString
expVal( aStrBuf
.getStr() );
6281 sal_Int32 input
= kSInt32Max
;
6282 sal_Int16 radix
= 36;
6284 expVal
+= OString( "zik0zj" );
6285 aStrBuf
.append( input
, radix
);
6287 CPPUNIT_ASSERT_EQUAL_MESSAGE
6289 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
6290 expVal
, OString(aStrBuf
.getStr())
6292 CPPUNIT_ASSERT_EQUAL_MESSAGE
6294 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
6295 expVal
.getLength(), aStrBuf
.getLength()
6302 OStringBuffer
aStrBuf( arrOUS
[1] );
6303 OString
expVal( aStrBuf
.getStr() );
6304 sal_Int32 input
= kSInt8Max
;
6305 sal_Int16 radix
= 2;
6307 expVal
+= OString( "1111111" );
6308 aStrBuf
.append( input
, radix
);
6310 CPPUNIT_ASSERT_EQUAL_MESSAGE
6312 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
6313 expVal
, OString(aStrBuf
.getStr())
6315 CPPUNIT_ASSERT_EQUAL_MESSAGE
6317 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
6318 expVal
.getLength(), aStrBuf
.getLength()
6325 OStringBuffer
aStrBuf( arrOUS
[1] );
6326 OString
expVal( aStrBuf
.getStr() );
6327 sal_Int32 input
= kSInt32Max
;
6328 sal_Int16 radix
= 2;
6330 expVal
+= OString( "1111111111111111111111111111111" );
6331 aStrBuf
.append( input
, radix
);
6333 CPPUNIT_ASSERT_EQUAL_MESSAGE
6335 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
6336 expVal
, OString(aStrBuf
.getStr())
6338 CPPUNIT_ASSERT_EQUAL_MESSAGE
6340 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
6341 expVal
.getLength(), aStrBuf
.getLength()
6348 OStringBuffer
aStrBuf( arrOUS
[1] );
6349 OString
expVal( aStrBuf
.getStr() );
6350 sal_Int32 input
= kSInt8Max
;
6351 sal_Int16 radix
= 8;
6353 expVal
+= OString( "177" );
6354 aStrBuf
.append( input
, radix
);
6356 CPPUNIT_ASSERT_EQUAL_MESSAGE
6358 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
6359 expVal
, OString(aStrBuf
.getStr())
6361 CPPUNIT_ASSERT_EQUAL_MESSAGE
6363 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
6364 expVal
.getLength(), aStrBuf
.getLength()
6371 OStringBuffer
aStrBuf( arrOUS
[1] );
6372 OString
expVal( aStrBuf
.getStr() );
6373 sal_Int32 input
= kSInt32Max
;
6374 sal_Int16 radix
= 8;
6376 expVal
+= OString( "17777777777" );
6377 aStrBuf
.append( input
, radix
);
6379 CPPUNIT_ASSERT_EQUAL_MESSAGE
6381 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
6382 expVal
, OString(aStrBuf
.getStr())
6384 CPPUNIT_ASSERT_EQUAL_MESSAGE
6386 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
6387 expVal
.getLength(), aStrBuf
.getLength()
6394 OStringBuffer
aStrBuf( arrOUS
[1] );
6395 OString
expVal( aStrBuf
.getStr() );
6396 sal_Int32 input
= kSInt8Max
;
6397 sal_Int16 radix
= 10;
6399 expVal
+= OString( "127" );
6400 aStrBuf
.append( input
, radix
);
6402 CPPUNIT_ASSERT_EQUAL_MESSAGE
6404 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
6405 expVal
, OString(aStrBuf
.getStr())
6407 CPPUNIT_ASSERT_EQUAL_MESSAGE
6409 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
6410 expVal
.getLength(), aStrBuf
.getLength()
6417 OStringBuffer
aStrBuf( arrOUS
[1] );
6418 OString
expVal( aStrBuf
.getStr() );
6419 sal_Int32 input
= kSInt32Max
;
6420 sal_Int16 radix
= 10;
6422 expVal
+= OString( "2147483647" );
6423 aStrBuf
.append( input
, radix
);
6425 CPPUNIT_ASSERT_EQUAL_MESSAGE
6427 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
6428 expVal
, OString(aStrBuf
.getStr())
6430 CPPUNIT_ASSERT_EQUAL_MESSAGE
6432 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
6433 expVal
.getLength(), aStrBuf
.getLength()
6440 OStringBuffer
aStrBuf( arrOUS
[1] );
6441 OString
expVal( aStrBuf
.getStr() );
6442 sal_Int32 input
= kSInt8Max
;
6443 sal_Int16 radix
= 16;
6445 expVal
+= OString( "7f" );
6446 aStrBuf
.append( input
, radix
);
6448 CPPUNIT_ASSERT_EQUAL_MESSAGE
6450 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
6451 expVal
, OString(aStrBuf
.getStr())
6453 CPPUNIT_ASSERT_EQUAL_MESSAGE
6455 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
6456 expVal
.getLength(), aStrBuf
.getLength()
6463 OStringBuffer
aStrBuf( arrOUS
[1] );
6464 OString
expVal( aStrBuf
.getStr() );
6465 sal_Int32 input
= kSInt32Max
;
6466 sal_Int16 radix
= 16;
6468 expVal
+= OString( "7fffffff" );
6469 aStrBuf
.append( input
, radix
);
6471 CPPUNIT_ASSERT_EQUAL_MESSAGE
6473 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
6474 expVal
, OString(aStrBuf
.getStr())
6476 CPPUNIT_ASSERT_EQUAL_MESSAGE
6478 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
6479 expVal
.getLength(), aStrBuf
.getLength()
6486 OStringBuffer
aStrBuf( arrOUS
[1] );
6487 OString
expVal( aStrBuf
.getStr() );
6488 sal_Int32 input
= kSInt8Max
;
6489 sal_Int16 radix
= 36;
6491 expVal
+= OString( "3j" );
6492 aStrBuf
.append( input
, radix
);
6494 CPPUNIT_ASSERT_EQUAL_MESSAGE
6496 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
6497 expVal
, OString(aStrBuf
.getStr())
6499 CPPUNIT_ASSERT_EQUAL_MESSAGE
6501 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
6502 expVal
.getLength(), aStrBuf
.getLength()
6509 OStringBuffer
aStrBuf( arrOUS
[1] );
6510 OString
expVal( aStrBuf
.getStr() );
6511 sal_Int32 input
= kSInt32Max
;
6512 sal_Int16 radix
= 36;
6514 expVal
+= OString( "zik0zj" );
6515 aStrBuf
.append( input
, radix
);
6517 CPPUNIT_ASSERT_EQUAL_MESSAGE
6519 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
6520 expVal
, OString(aStrBuf
.getStr())
6522 CPPUNIT_ASSERT_EQUAL_MESSAGE
6524 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
6525 expVal
.getLength(), aStrBuf
.getLength()
6532 OStringBuffer
aStrBuf( arrOUS
[2] );
6533 OString
expVal( aStrBuf
.getStr() );
6534 sal_Int32 input
= kSInt8Max
;
6535 sal_Int16 radix
= 2;
6537 expVal
+= OString( "1111111" );
6538 aStrBuf
.append( input
, radix
);
6540 CPPUNIT_ASSERT_EQUAL_MESSAGE
6542 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
6543 expVal
, OString(aStrBuf
.getStr())
6545 CPPUNIT_ASSERT_EQUAL_MESSAGE
6547 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
6548 expVal
.getLength(), aStrBuf
.getLength()
6555 OStringBuffer
aStrBuf( arrOUS
[2] );
6556 OString
expVal( aStrBuf
.getStr() );
6557 sal_Int32 input
= kSInt32Max
;
6558 sal_Int16 radix
= 2;
6560 expVal
+= OString( "1111111111111111111111111111111" );
6561 aStrBuf
.append( input
, radix
);
6563 CPPUNIT_ASSERT_EQUAL_MESSAGE
6565 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
6566 expVal
, OString(aStrBuf
.getStr())
6568 CPPUNIT_ASSERT_EQUAL_MESSAGE
6570 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
6571 expVal
.getLength(), aStrBuf
.getLength()
6578 OStringBuffer
aStrBuf( arrOUS
[2] );
6579 OString
expVal( aStrBuf
.getStr() );
6580 sal_Int32 input
= kSInt8Max
;
6581 sal_Int16 radix
= 8;
6583 expVal
+= OString( "177" );
6584 aStrBuf
.append( input
, radix
);
6586 CPPUNIT_ASSERT_EQUAL_MESSAGE
6588 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
6589 expVal
, OString(aStrBuf
.getStr())
6591 CPPUNIT_ASSERT_EQUAL_MESSAGE
6593 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
6594 expVal
.getLength(), aStrBuf
.getLength()
6601 OStringBuffer
aStrBuf( arrOUS
[2] );
6602 OString
expVal( aStrBuf
.getStr() );
6603 sal_Int32 input
= kSInt32Max
;
6604 sal_Int16 radix
= 8;
6606 expVal
+= OString( "17777777777" );
6607 aStrBuf
.append( input
, radix
);
6609 CPPUNIT_ASSERT_EQUAL_MESSAGE
6611 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
6612 expVal
, OString(aStrBuf
.getStr())
6614 CPPUNIT_ASSERT_EQUAL_MESSAGE
6616 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
6617 expVal
.getLength(), aStrBuf
.getLength()
6624 OStringBuffer
aStrBuf( arrOUS
[2] );
6625 OString
expVal( aStrBuf
.getStr() );
6626 sal_Int32 input
= kSInt8Max
;
6627 sal_Int16 radix
= 10;
6629 expVal
+= OString( "127" );
6630 aStrBuf
.append( input
, radix
);
6632 CPPUNIT_ASSERT_EQUAL_MESSAGE
6634 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
6635 expVal
, OString(aStrBuf
.getStr())
6637 CPPUNIT_ASSERT_EQUAL_MESSAGE
6639 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
6640 expVal
.getLength(), aStrBuf
.getLength()
6647 OStringBuffer
aStrBuf( arrOUS
[2] );
6648 OString
expVal( aStrBuf
.getStr() );
6649 sal_Int32 input
= kSInt32Max
;
6650 sal_Int16 radix
= 10;
6652 expVal
+= OString( "2147483647" );
6653 aStrBuf
.append( input
, radix
);
6655 CPPUNIT_ASSERT_EQUAL_MESSAGE
6657 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
6658 expVal
, OString(aStrBuf
.getStr())
6660 CPPUNIT_ASSERT_EQUAL_MESSAGE
6662 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
6663 expVal
.getLength(), aStrBuf
.getLength()
6670 OStringBuffer
aStrBuf( arrOUS
[2] );
6671 OString
expVal( aStrBuf
.getStr() );
6672 sal_Int32 input
= kSInt8Max
;
6673 sal_Int16 radix
= 16;
6675 expVal
+= OString( "7f" );
6676 aStrBuf
.append( input
, radix
);
6678 CPPUNIT_ASSERT_EQUAL_MESSAGE
6680 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
6681 expVal
, OString(aStrBuf
.getStr())
6683 CPPUNIT_ASSERT_EQUAL_MESSAGE
6685 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
6686 expVal
.getLength(), aStrBuf
.getLength()
6693 OStringBuffer
aStrBuf( arrOUS
[2] );
6694 OString
expVal( aStrBuf
.getStr() );
6695 sal_Int32 input
= kSInt32Max
;
6696 sal_Int16 radix
= 16;
6698 expVal
+= OString( "7fffffff" );
6699 aStrBuf
.append( input
, radix
);
6701 CPPUNIT_ASSERT_EQUAL_MESSAGE
6703 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
6704 expVal
, OString(aStrBuf
.getStr())
6706 CPPUNIT_ASSERT_EQUAL_MESSAGE
6708 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
6709 expVal
.getLength(), aStrBuf
.getLength()
6716 OStringBuffer
aStrBuf( arrOUS
[2] );
6717 OString
expVal( aStrBuf
.getStr() );
6718 sal_Int32 input
= kSInt8Max
;
6719 sal_Int16 radix
= 36;
6721 expVal
+= OString( "3j" );
6722 aStrBuf
.append( input
, radix
);
6724 CPPUNIT_ASSERT_EQUAL_MESSAGE
6726 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
6727 expVal
, OString(aStrBuf
.getStr())
6729 CPPUNIT_ASSERT_EQUAL_MESSAGE
6731 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
6732 expVal
.getLength(), aStrBuf
.getLength()
6739 OStringBuffer
aStrBuf( arrOUS
[2] );
6740 OString
expVal( aStrBuf
.getStr() );
6741 sal_Int32 input
= kSInt32Max
;
6742 sal_Int16 radix
= 36;
6744 expVal
+= OString( "zik0zj" );
6745 aStrBuf
.append( input
, radix
);
6747 CPPUNIT_ASSERT_EQUAL_MESSAGE
6749 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
6750 expVal
, OString(aStrBuf
.getStr())
6752 CPPUNIT_ASSERT_EQUAL_MESSAGE
6754 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
6755 expVal
.getLength(), aStrBuf
.getLength()
6762 OStringBuffer
aStrBuf( arrOUS
[3] );
6763 OString
expVal( aStrBuf
.getStr() );
6764 sal_Int32 input
= kSInt8Max
;
6765 sal_Int16 radix
= 2;
6767 expVal
+= OString( "1111111" );
6768 aStrBuf
.append( input
, radix
);
6770 CPPUNIT_ASSERT_EQUAL_MESSAGE
6772 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
6773 expVal
, OString(aStrBuf
.getStr())
6775 CPPUNIT_ASSERT_EQUAL_MESSAGE
6777 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
6778 expVal
.getLength(), aStrBuf
.getLength()
6785 OStringBuffer
aStrBuf( arrOUS
[3] );
6786 OString
expVal( aStrBuf
.getStr() );
6787 sal_Int32 input
= kSInt32Max
;
6788 sal_Int16 radix
= 2;
6790 expVal
+= OString( "1111111111111111111111111111111" );
6791 aStrBuf
.append( input
, radix
);
6793 CPPUNIT_ASSERT_EQUAL_MESSAGE
6795 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
6796 expVal
, OString(aStrBuf
.getStr())
6798 CPPUNIT_ASSERT_EQUAL_MESSAGE
6800 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
6801 expVal
.getLength(), aStrBuf
.getLength()
6808 OStringBuffer
aStrBuf( arrOUS
[3] );
6809 OString
expVal( aStrBuf
.getStr() );
6810 sal_Int32 input
= kSInt8Max
;
6811 sal_Int16 radix
= 8;
6813 expVal
+= OString( "177" );
6814 aStrBuf
.append( input
, radix
);
6816 CPPUNIT_ASSERT_EQUAL_MESSAGE
6818 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
6819 expVal
, OString(aStrBuf
.getStr())
6821 CPPUNIT_ASSERT_EQUAL_MESSAGE
6823 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
6824 expVal
.getLength(), aStrBuf
.getLength()
6831 OStringBuffer
aStrBuf( arrOUS
[3] );
6832 OString
expVal( aStrBuf
.getStr() );
6833 sal_Int32 input
= kSInt32Max
;
6834 sal_Int16 radix
= 8;
6836 expVal
+= OString( "17777777777" );
6837 aStrBuf
.append( input
, radix
);
6839 CPPUNIT_ASSERT_EQUAL_MESSAGE
6841 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
6842 expVal
, OString(aStrBuf
.getStr())
6844 CPPUNIT_ASSERT_EQUAL_MESSAGE
6846 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
6847 expVal
.getLength(), aStrBuf
.getLength()
6854 OStringBuffer
aStrBuf( arrOUS
[3] );
6855 OString
expVal( aStrBuf
.getStr() );
6856 sal_Int32 input
= kSInt8Max
;
6857 sal_Int16 radix
= 10;
6859 expVal
+= OString( "127" );
6860 aStrBuf
.append( input
, radix
);
6862 CPPUNIT_ASSERT_EQUAL_MESSAGE
6864 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
6865 expVal
, OString(aStrBuf
.getStr())
6867 CPPUNIT_ASSERT_EQUAL_MESSAGE
6869 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
6870 expVal
.getLength(), aStrBuf
.getLength()
6877 OStringBuffer
aStrBuf( arrOUS
[3] );
6878 OString
expVal( aStrBuf
.getStr() );
6879 sal_Int32 input
= kSInt32Max
;
6880 sal_Int16 radix
= 10;
6882 expVal
+= OString( "2147483647" );
6883 aStrBuf
.append( input
, radix
);
6885 CPPUNIT_ASSERT_EQUAL_MESSAGE
6887 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
6888 expVal
, OString(aStrBuf
.getStr())
6890 CPPUNIT_ASSERT_EQUAL_MESSAGE
6892 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
6893 expVal
.getLength(), aStrBuf
.getLength()
6900 OStringBuffer
aStrBuf( arrOUS
[3] );
6901 OString
expVal( aStrBuf
.getStr() );
6902 sal_Int32 input
= kSInt8Max
;
6903 sal_Int16 radix
= 16;
6905 expVal
+= OString( "7f" );
6906 aStrBuf
.append( input
, radix
);
6908 CPPUNIT_ASSERT_EQUAL_MESSAGE
6910 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
6911 expVal
, OString(aStrBuf
.getStr())
6913 CPPUNIT_ASSERT_EQUAL_MESSAGE
6915 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
6916 expVal
.getLength(), aStrBuf
.getLength()
6923 OStringBuffer
aStrBuf( arrOUS
[3] );
6924 OString
expVal( aStrBuf
.getStr() );
6925 sal_Int32 input
= kSInt32Max
;
6926 sal_Int16 radix
= 16;
6928 expVal
+= OString( "7fffffff" );
6929 aStrBuf
.append( input
, radix
);
6931 CPPUNIT_ASSERT_EQUAL_MESSAGE
6933 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
6934 expVal
, OString(aStrBuf
.getStr())
6936 CPPUNIT_ASSERT_EQUAL_MESSAGE
6938 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
6939 expVal
.getLength(), aStrBuf
.getLength()
6946 OStringBuffer
aStrBuf( arrOUS
[3] );
6947 OString
expVal( aStrBuf
.getStr() );
6948 sal_Int32 input
= kSInt8Max
;
6949 sal_Int16 radix
= 36;
6951 expVal
+= OString( "3j" );
6952 aStrBuf
.append( input
, radix
);
6954 CPPUNIT_ASSERT_EQUAL_MESSAGE
6956 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
6957 expVal
, OString(aStrBuf
.getStr())
6959 CPPUNIT_ASSERT_EQUAL_MESSAGE
6961 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
6962 expVal
.getLength(), aStrBuf
.getLength()
6969 OStringBuffer
aStrBuf( arrOUS
[3] );
6970 OString
expVal( aStrBuf
.getStr() );
6971 sal_Int32 input
= kSInt32Max
;
6972 sal_Int16 radix
= 36;
6974 expVal
+= OString( "zik0zj" );
6975 aStrBuf
.append( input
, radix
);
6977 CPPUNIT_ASSERT_EQUAL_MESSAGE
6979 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
6980 expVal
, OString(aStrBuf
.getStr())
6982 CPPUNIT_ASSERT_EQUAL_MESSAGE
6984 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
6985 expVal
.getLength(), aStrBuf
.getLength()
6992 OStringBuffer
aStrBuf( arrOUS
[4] );
6993 OString
expVal( aStrBuf
.getStr() );
6994 sal_Int32 input
= kSInt8Max
;
6995 sal_Int16 radix
= 2;
6997 expVal
+= OString( "1111111" );
6998 aStrBuf
.append( input
, radix
);
7000 CPPUNIT_ASSERT_EQUAL_MESSAGE
7002 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
7003 expVal
, OString(aStrBuf
.getStr())
7005 CPPUNIT_ASSERT_EQUAL_MESSAGE
7007 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
7008 expVal
.getLength(), aStrBuf
.getLength()
7015 OStringBuffer
aStrBuf( arrOUS
[4] );
7016 OString
expVal( aStrBuf
.getStr() );
7017 sal_Int32 input
= kSInt32Max
;
7018 sal_Int16 radix
= 2;
7020 expVal
+= OString( "1111111111111111111111111111111" );
7021 aStrBuf
.append( input
, radix
);
7023 CPPUNIT_ASSERT_EQUAL_MESSAGE
7025 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
7026 expVal
, OString(aStrBuf
.getStr())
7028 CPPUNIT_ASSERT_EQUAL_MESSAGE
7030 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
7031 expVal
.getLength(), aStrBuf
.getLength()
7038 OStringBuffer
aStrBuf( arrOUS
[4] );
7039 OString
expVal( aStrBuf
.getStr() );
7040 sal_Int32 input
= kSInt8Max
;
7041 sal_Int16 radix
= 8;
7043 expVal
+= OString( "177" );
7044 aStrBuf
.append( input
, radix
);
7046 CPPUNIT_ASSERT_EQUAL_MESSAGE
7048 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
7049 expVal
, OString(aStrBuf
.getStr())
7051 CPPUNIT_ASSERT_EQUAL_MESSAGE
7053 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
7054 expVal
.getLength(), aStrBuf
.getLength()
7061 OStringBuffer
aStrBuf( arrOUS
[4] );
7062 OString
expVal( aStrBuf
.getStr() );
7063 sal_Int32 input
= kSInt32Max
;
7064 sal_Int16 radix
= 8;
7066 expVal
+= OString( "17777777777" );
7067 aStrBuf
.append( input
, radix
);
7069 CPPUNIT_ASSERT_EQUAL_MESSAGE
7071 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
7072 expVal
, OString(aStrBuf
.getStr())
7074 CPPUNIT_ASSERT_EQUAL_MESSAGE
7076 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
7077 expVal
.getLength(), aStrBuf
.getLength()
7084 OStringBuffer
aStrBuf( arrOUS
[4] );
7085 OString
expVal( aStrBuf
.getStr() );
7086 sal_Int32 input
= kSInt8Max
;
7087 sal_Int16 radix
= 10;
7089 expVal
+= OString( "127" );
7090 aStrBuf
.append( input
, radix
);
7092 CPPUNIT_ASSERT_EQUAL_MESSAGE
7094 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
7095 expVal
, OString(aStrBuf
.getStr())
7097 CPPUNIT_ASSERT_EQUAL_MESSAGE
7099 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
7100 expVal
.getLength(), aStrBuf
.getLength()
7107 OStringBuffer
aStrBuf( arrOUS
[4] );
7108 OString
expVal( aStrBuf
.getStr() );
7109 sal_Int32 input
= kSInt32Max
;
7110 sal_Int16 radix
= 10;
7112 expVal
+= OString( "2147483647" );
7113 aStrBuf
.append( input
, radix
);
7115 CPPUNIT_ASSERT_EQUAL_MESSAGE
7117 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
7118 expVal
, OString(aStrBuf
.getStr())
7120 CPPUNIT_ASSERT_EQUAL_MESSAGE
7122 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
7123 expVal
.getLength(), aStrBuf
.getLength()
7130 OStringBuffer
aStrBuf( arrOUS
[4] );
7131 OString
expVal( aStrBuf
.getStr() );
7132 sal_Int32 input
= kSInt8Max
;
7133 sal_Int16 radix
= 16;
7135 expVal
+= OString( "7f" );
7136 aStrBuf
.append( input
, radix
);
7138 CPPUNIT_ASSERT_EQUAL_MESSAGE
7140 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
7141 expVal
, OString(aStrBuf
.getStr())
7143 CPPUNIT_ASSERT_EQUAL_MESSAGE
7145 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
7146 expVal
.getLength(), aStrBuf
.getLength()
7153 OStringBuffer
aStrBuf( arrOUS
[4] );
7154 OString
expVal( aStrBuf
.getStr() );
7155 sal_Int32 input
= kSInt32Max
;
7156 sal_Int16 radix
= 16;
7158 expVal
+= OString( "7fffffff" );
7159 aStrBuf
.append( input
, radix
);
7161 CPPUNIT_ASSERT_EQUAL_MESSAGE
7163 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
7164 expVal
, OString(aStrBuf
.getStr())
7166 CPPUNIT_ASSERT_EQUAL_MESSAGE
7168 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
7169 expVal
.getLength(), aStrBuf
.getLength()
7176 OStringBuffer
aStrBuf( arrOUS
[4] );
7177 OString
expVal( aStrBuf
.getStr() );
7178 sal_Int32 input
= kSInt8Max
;
7179 sal_Int16 radix
= 36;
7181 expVal
+= OString( "3j" );
7182 aStrBuf
.append( input
, radix
);
7184 CPPUNIT_ASSERT_EQUAL_MESSAGE
7186 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
7187 expVal
, OString(aStrBuf
.getStr())
7189 CPPUNIT_ASSERT_EQUAL_MESSAGE
7191 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
7192 expVal
.getLength(), aStrBuf
.getLength()
7199 OStringBuffer
aStrBuf( arrOUS
[4] );
7200 OString
expVal( aStrBuf
.getStr() );
7201 sal_Int32 input
= kSInt32Max
;
7202 sal_Int16 radix
= 36;
7204 expVal
+= OString( "zik0zj" );
7205 aStrBuf
.append( input
, radix
);
7207 CPPUNIT_ASSERT_EQUAL_MESSAGE
7209 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
7210 expVal
, OString(aStrBuf
.getStr())
7212 CPPUNIT_ASSERT_EQUAL_MESSAGE
7214 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
7215 expVal
.getLength(), aStrBuf
.getLength()
7220 CPPUNIT_TEST_SUITE( append_006_Int32_Bounderies
);
7221 CPPUNIT_TEST( append_001
); CPPUNIT_TEST( append_002
);
7222 CPPUNIT_TEST( append_003
); CPPUNIT_TEST( append_004
);
7223 CPPUNIT_TEST( append_005
); CPPUNIT_TEST( append_006
);
7224 CPPUNIT_TEST( append_007
); CPPUNIT_TEST( append_008
);
7225 CPPUNIT_TEST( append_009
); CPPUNIT_TEST( append_010
);
7226 CPPUNIT_TEST( append_011
); CPPUNIT_TEST( append_012
);
7227 CPPUNIT_TEST( append_013
); CPPUNIT_TEST( append_014
);
7228 CPPUNIT_TEST( append_015
); CPPUNIT_TEST( append_016
);
7229 CPPUNIT_TEST( append_017
); CPPUNIT_TEST( append_018
);
7230 CPPUNIT_TEST( append_019
); CPPUNIT_TEST( append_020
);
7231 CPPUNIT_TEST( append_021
); CPPUNIT_TEST( append_022
);
7232 CPPUNIT_TEST( append_023
); CPPUNIT_TEST( append_024
);
7233 CPPUNIT_TEST( append_025
); CPPUNIT_TEST( append_026
);
7234 CPPUNIT_TEST( append_027
); CPPUNIT_TEST( append_028
);
7235 CPPUNIT_TEST( append_029
); CPPUNIT_TEST( append_030
);
7236 CPPUNIT_TEST( append_031
); CPPUNIT_TEST( append_032
);
7237 CPPUNIT_TEST( append_033
); CPPUNIT_TEST( append_034
);
7238 CPPUNIT_TEST( append_035
); CPPUNIT_TEST( append_036
);
7239 CPPUNIT_TEST( append_037
); CPPUNIT_TEST( append_038
);
7240 CPPUNIT_TEST( append_039
); CPPUNIT_TEST( append_040
);
7241 CPPUNIT_TEST( append_041
); CPPUNIT_TEST( append_042
);
7242 CPPUNIT_TEST( append_043
); CPPUNIT_TEST( append_044
);
7243 CPPUNIT_TEST( append_045
); CPPUNIT_TEST( append_046
);
7244 CPPUNIT_TEST( append_047
); CPPUNIT_TEST( append_048
);
7245 CPPUNIT_TEST( append_049
); CPPUNIT_TEST( append_050
);
7246 CPPUNIT_TEST_SUITE_END();
7249 // testing the method append( sal_Int32 i, sal_Int16 radix=2 )
7250 // for negative value
7251 // testing the method append( sal_Int32 i, sal_Int16 radix=8 )
7252 // for negative value
7253 // testing the method append( sal_Int32 i, sal_Int16 radix=10 )
7254 // for negative value
7255 // testing the method append( sal_Int32 i, sal_Int16 radix=16 )
7256 // for negative value
7257 // testing the method append( sal_Int32 i, sal_Int16 radix=36 )
7258 // for negative value
7260 class append_006_Int32_Negative
: public CppUnit::TestFixture
7265 void setUp() override
7267 arrOUS
[0] = OString( kTestStr7
);
7268 arrOUS
[1] = OString( );
7269 arrOUS
[2] = OString( kTestStr25
);
7270 arrOUS
[3] = OString( "" );
7271 arrOUS
[4] = OString( kTestStr28
);
7276 OStringBuffer
aStrBuf( arrOUS
[0] );
7277 OString
expVal( aStrBuf
.getStr() );
7278 sal_Int32 input
= -0;
7279 sal_Int16 radix
= 2;
7281 expVal
+= OString( "0" );
7282 aStrBuf
.append( input
, radix
);
7284 CPPUNIT_ASSERT_EQUAL_MESSAGE
7286 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
7287 expVal
, OString(aStrBuf
.getStr())
7289 CPPUNIT_ASSERT_EQUAL_MESSAGE
7291 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
7292 expVal
.getLength(), aStrBuf
.getLength()
7299 OStringBuffer
aStrBuf( arrOUS
[0] );
7300 OString
expVal( aStrBuf
.getStr() );
7301 sal_Int32 input
= -4;
7302 sal_Int16 radix
= 2;
7304 expVal
+= OString( "-" );
7305 expVal
+= OString( "100" );
7306 aStrBuf
.append( input
, radix
);
7308 CPPUNIT_ASSERT_EQUAL_MESSAGE
7310 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
7311 expVal
, OString(aStrBuf
.getStr())
7313 CPPUNIT_ASSERT_EQUAL_MESSAGE
7315 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
7316 expVal
.getLength(), aStrBuf
.getLength()
7323 OStringBuffer
aStrBuf( arrOUS
[0] );
7324 OString
expVal( aStrBuf
.getStr() );
7325 sal_Int32 input
= -8;
7326 sal_Int16 radix
= 2;
7328 expVal
+= OString( "-" );
7329 expVal
+= OString( "1000" );
7330 aStrBuf
.append( input
, radix
);
7332 CPPUNIT_ASSERT_EQUAL_MESSAGE
7334 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
7335 expVal
, OString(aStrBuf
.getStr())
7337 CPPUNIT_ASSERT_EQUAL_MESSAGE
7339 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
7340 expVal
.getLength(), aStrBuf
.getLength()
7347 OStringBuffer
aStrBuf( arrOUS
[0] );
7348 OString
expVal( aStrBuf
.getStr() );
7349 sal_Int32 input
= -15;
7350 sal_Int16 radix
= 2;
7352 expVal
+= OString( "-" );
7353 expVal
+= OString( "1111" );
7354 aStrBuf
.append( input
, radix
);
7356 CPPUNIT_ASSERT_EQUAL_MESSAGE
7358 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
7359 expVal
, OString(aStrBuf
.getStr())
7361 CPPUNIT_ASSERT_EQUAL_MESSAGE
7363 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
7364 expVal
.getLength(), aStrBuf
.getLength()
7371 OStringBuffer
aStrBuf( arrOUS
[0] );
7372 OString
expVal( aStrBuf
.getStr() );
7373 sal_Int32 input
= -0;
7374 sal_Int16 radix
= 8;
7376 expVal
+= OString( "0" );
7377 aStrBuf
.append( input
, radix
);
7379 CPPUNIT_ASSERT_EQUAL_MESSAGE
7381 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
7382 expVal
, OString(aStrBuf
.getStr())
7384 CPPUNIT_ASSERT_EQUAL_MESSAGE
7386 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
7387 expVal
.getLength(), aStrBuf
.getLength()
7394 OStringBuffer
aStrBuf( arrOUS
[0] );
7395 OString
expVal( aStrBuf
.getStr() );
7396 sal_Int32 input
= -4;
7397 sal_Int16 radix
= 8;
7399 expVal
+= OString( "-" );
7400 expVal
+= OString( "4" );
7401 aStrBuf
.append( input
, radix
);
7403 CPPUNIT_ASSERT_EQUAL_MESSAGE
7405 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
7406 expVal
, OString(aStrBuf
.getStr())
7408 CPPUNIT_ASSERT_EQUAL_MESSAGE
7410 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
7411 expVal
.getLength(), aStrBuf
.getLength()
7418 OStringBuffer
aStrBuf( arrOUS
[0] );
7419 OString
expVal( aStrBuf
.getStr() );
7420 sal_Int32 input
= -8;
7421 sal_Int16 radix
= 8;
7423 expVal
+= OString( "-" );
7424 expVal
+= OString( "10" );
7425 aStrBuf
.append( input
, radix
);
7427 CPPUNIT_ASSERT_EQUAL_MESSAGE
7429 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
7430 expVal
, OString(aStrBuf
.getStr())
7432 CPPUNIT_ASSERT_EQUAL_MESSAGE
7434 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
7435 expVal
.getLength(), aStrBuf
.getLength()
7442 OStringBuffer
aStrBuf( arrOUS
[0] );
7443 OString
expVal( aStrBuf
.getStr() );
7444 sal_Int32 input
= -15;
7445 sal_Int16 radix
= 8;
7447 expVal
+= OString( "-" );
7448 expVal
+= OString( "17" );
7449 aStrBuf
.append( input
, radix
);
7451 CPPUNIT_ASSERT_EQUAL_MESSAGE
7453 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
7454 expVal
, OString(aStrBuf
.getStr())
7456 CPPUNIT_ASSERT_EQUAL_MESSAGE
7458 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
7459 expVal
.getLength(), aStrBuf
.getLength()
7466 OStringBuffer
aStrBuf( arrOUS
[0] );
7467 OString
expVal( aStrBuf
.getStr() );
7468 sal_Int32 input
= -0;
7469 sal_Int16 radix
= 10;
7471 expVal
+= OString( "0" );
7472 aStrBuf
.append( input
, radix
);
7474 CPPUNIT_ASSERT_EQUAL_MESSAGE
7476 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
7477 expVal
, OString(aStrBuf
.getStr())
7479 CPPUNIT_ASSERT_EQUAL_MESSAGE
7481 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
7482 expVal
.getLength(), aStrBuf
.getLength()
7489 OStringBuffer
aStrBuf( arrOUS
[0] );
7490 OString
expVal( aStrBuf
.getStr() );
7491 sal_Int32 input
= -4;
7492 sal_Int16 radix
= 10;
7494 expVal
+= OString( "-" );
7495 expVal
+= OString( "4" );
7496 aStrBuf
.append( input
, radix
);
7498 CPPUNIT_ASSERT_EQUAL_MESSAGE
7500 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
7501 expVal
, OString(aStrBuf
.getStr())
7503 CPPUNIT_ASSERT_EQUAL_MESSAGE
7505 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
7506 expVal
.getLength(), aStrBuf
.getLength()
7513 OStringBuffer
aStrBuf( arrOUS
[0] );
7514 OString
expVal( aStrBuf
.getStr() );
7515 sal_Int32 input
= -8;
7516 sal_Int16 radix
= 10;
7518 expVal
+= OString( "-" );
7519 expVal
+= OString( "8" );
7520 aStrBuf
.append( input
, radix
);
7522 CPPUNIT_ASSERT_EQUAL_MESSAGE
7524 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
7525 expVal
, OString(aStrBuf
.getStr())
7527 CPPUNIT_ASSERT_EQUAL_MESSAGE
7529 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
7530 expVal
.getLength(), aStrBuf
.getLength()
7537 OStringBuffer
aStrBuf( arrOUS
[0] );
7538 OString
expVal( aStrBuf
.getStr() );
7539 sal_Int32 input
= -15;
7540 sal_Int16 radix
= 10;
7542 expVal
+= OString( "-" );
7543 expVal
+= OString( "15" );
7544 aStrBuf
.append( input
, radix
);
7546 CPPUNIT_ASSERT_EQUAL_MESSAGE
7548 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
7549 expVal
, OString(aStrBuf
.getStr())
7551 CPPUNIT_ASSERT_EQUAL_MESSAGE
7553 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
7554 expVal
.getLength(), aStrBuf
.getLength()
7561 OStringBuffer
aStrBuf( arrOUS
[0] );
7562 OString
expVal( aStrBuf
.getStr() );
7563 sal_Int32 input
= -0;
7564 sal_Int16 radix
= 16;
7566 expVal
+= OString( "0" );
7567 aStrBuf
.append( input
, radix
);
7569 CPPUNIT_ASSERT_EQUAL_MESSAGE
7571 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
7572 expVal
, OString(aStrBuf
.getStr())
7574 CPPUNIT_ASSERT_EQUAL_MESSAGE
7576 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
7577 expVal
.getLength(), aStrBuf
.getLength()
7584 OStringBuffer
aStrBuf( arrOUS
[0] );
7585 OString
expVal( aStrBuf
.getStr() );
7586 sal_Int32 input
= -4;
7587 sal_Int16 radix
= 16;
7589 expVal
+= OString( "-" );
7590 expVal
+= OString( "4" );
7591 aStrBuf
.append( input
, radix
);
7593 CPPUNIT_ASSERT_EQUAL_MESSAGE
7595 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
7596 expVal
, OString(aStrBuf
.getStr())
7598 CPPUNIT_ASSERT_EQUAL_MESSAGE
7600 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
7601 expVal
.getLength(), aStrBuf
.getLength()
7608 OStringBuffer
aStrBuf( arrOUS
[0] );
7609 OString
expVal( aStrBuf
.getStr() );
7610 sal_Int32 input
= -8;
7611 sal_Int16 radix
= 16;
7613 expVal
+= OString( "-" );
7614 expVal
+= OString( "8" );
7615 aStrBuf
.append( input
, radix
);
7617 CPPUNIT_ASSERT_EQUAL_MESSAGE
7619 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
7620 expVal
, OString(aStrBuf
.getStr())
7622 CPPUNIT_ASSERT_EQUAL_MESSAGE
7624 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
7625 expVal
.getLength(), aStrBuf
.getLength()
7632 OStringBuffer
aStrBuf( arrOUS
[0] );
7633 OString
expVal( aStrBuf
.getStr() );
7634 sal_Int32 input
= -15;
7635 sal_Int16 radix
= 16;
7637 expVal
+= OString( "-" );
7638 expVal
+= OString( "f" );
7639 aStrBuf
.append( input
, radix
);
7641 CPPUNIT_ASSERT_EQUAL_MESSAGE
7643 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
7644 expVal
, OString(aStrBuf
.getStr())
7646 CPPUNIT_ASSERT_EQUAL_MESSAGE
7648 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
7649 expVal
.getLength(), aStrBuf
.getLength()
7656 OStringBuffer
aStrBuf( arrOUS
[0] );
7657 OString
expVal( aStrBuf
.getStr() );
7658 sal_Int32 input
= -0;
7659 sal_Int16 radix
= 36;
7661 expVal
+= OString( "0" );
7662 aStrBuf
.append( input
, radix
);
7664 CPPUNIT_ASSERT_EQUAL_MESSAGE
7666 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
7667 expVal
, OString(aStrBuf
.getStr())
7669 CPPUNIT_ASSERT_EQUAL_MESSAGE
7671 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
7672 expVal
.getLength(), aStrBuf
.getLength()
7679 OStringBuffer
aStrBuf( arrOUS
[0] );
7680 OString
expVal( aStrBuf
.getStr() );
7681 sal_Int32 input
= -4;
7682 sal_Int16 radix
= 36;
7684 expVal
+= OString( "-" );
7685 expVal
+= OString( "4" );
7686 aStrBuf
.append( input
, radix
);
7688 CPPUNIT_ASSERT_EQUAL_MESSAGE
7690 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
7691 expVal
, OString(aStrBuf
.getStr())
7693 CPPUNIT_ASSERT_EQUAL_MESSAGE
7695 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
7696 expVal
.getLength(), aStrBuf
.getLength()
7703 OStringBuffer
aStrBuf( arrOUS
[0] );
7704 OString
expVal( aStrBuf
.getStr() );
7705 sal_Int32 input
= -8;
7706 sal_Int16 radix
= 36;
7708 expVal
+= OString( "-" );
7709 expVal
+= OString( "8" );
7710 aStrBuf
.append( input
, radix
);
7712 CPPUNIT_ASSERT_EQUAL_MESSAGE
7714 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
7715 expVal
, OString(aStrBuf
.getStr())
7717 CPPUNIT_ASSERT_EQUAL_MESSAGE
7719 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
7720 expVal
.getLength(), aStrBuf
.getLength()
7727 OStringBuffer
aStrBuf( arrOUS
[0] );
7728 OString
expVal( aStrBuf
.getStr() );
7729 sal_Int32 input
= -35;
7730 sal_Int16 radix
= 36;
7732 expVal
+= OString( "-" );
7733 expVal
+= OString( "z" );
7734 aStrBuf
.append( input
, radix
);
7736 CPPUNIT_ASSERT_EQUAL_MESSAGE
7738 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
7739 expVal
, OString(aStrBuf
.getStr())
7741 CPPUNIT_ASSERT_EQUAL_MESSAGE
7743 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
7744 expVal
.getLength(), aStrBuf
.getLength()
7751 OStringBuffer
aStrBuf( arrOUS
[1] );
7752 OString
expVal( aStrBuf
.getStr() );
7753 sal_Int32 input
= -0;
7754 sal_Int16 radix
= 2;
7756 expVal
+= OString( "0" );
7757 aStrBuf
.append( input
, radix
);
7759 CPPUNIT_ASSERT_EQUAL_MESSAGE
7761 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
7762 expVal
, OString(aStrBuf
.getStr())
7764 CPPUNIT_ASSERT_EQUAL_MESSAGE
7766 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
7767 expVal
.getLength(), aStrBuf
.getLength()
7774 OStringBuffer
aStrBuf( arrOUS
[1] );
7775 OString
expVal( aStrBuf
.getStr() );
7776 sal_Int32 input
= -4;
7777 sal_Int16 radix
= 2;
7779 expVal
+= OString( "-" );
7780 expVal
+= OString( "100" );
7781 aStrBuf
.append( input
, radix
);
7783 CPPUNIT_ASSERT_EQUAL_MESSAGE
7785 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
7786 expVal
, OString(aStrBuf
.getStr())
7788 CPPUNIT_ASSERT_EQUAL_MESSAGE
7790 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
7791 expVal
.getLength(), aStrBuf
.getLength()
7798 OStringBuffer
aStrBuf( arrOUS
[1] );
7799 OString
expVal( aStrBuf
.getStr() );
7800 sal_Int32 input
= -8;
7801 sal_Int16 radix
= 2;
7803 expVal
+= OString( "-" );
7804 expVal
+= OString( "1000" );
7805 aStrBuf
.append( input
, radix
);
7807 CPPUNIT_ASSERT_EQUAL_MESSAGE
7809 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
7810 expVal
, OString(aStrBuf
.getStr())
7812 CPPUNIT_ASSERT_EQUAL_MESSAGE
7814 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
7815 expVal
.getLength(), aStrBuf
.getLength()
7822 OStringBuffer
aStrBuf( arrOUS
[1] );
7823 OString
expVal( aStrBuf
.getStr() );
7824 sal_Int32 input
= -15;
7825 sal_Int16 radix
= 2;
7827 expVal
+= OString( "-" );
7828 expVal
+= OString( "1111" );
7829 aStrBuf
.append( input
, radix
);
7831 CPPUNIT_ASSERT_EQUAL_MESSAGE
7833 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
7834 expVal
, OString(aStrBuf
.getStr())
7836 CPPUNIT_ASSERT_EQUAL_MESSAGE
7838 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
7839 expVal
.getLength(), aStrBuf
.getLength()
7846 OStringBuffer
aStrBuf( arrOUS
[1] );
7847 OString
expVal( aStrBuf
.getStr() );
7848 sal_Int32 input
= -0;
7849 sal_Int16 radix
= 8;
7851 expVal
+= OString( "0" );
7852 aStrBuf
.append( input
, radix
);
7854 CPPUNIT_ASSERT_EQUAL_MESSAGE
7856 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
7857 expVal
, OString(aStrBuf
.getStr())
7859 CPPUNIT_ASSERT_EQUAL_MESSAGE
7861 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
7862 expVal
.getLength(), aStrBuf
.getLength()
7869 OStringBuffer
aStrBuf( arrOUS
[1] );
7870 OString
expVal( aStrBuf
.getStr() );
7871 sal_Int32 input
= -4;
7872 sal_Int16 radix
= 8;
7874 expVal
+= OString( "-" );
7875 expVal
+= OString( "4" );
7876 aStrBuf
.append( input
, radix
);
7878 CPPUNIT_ASSERT_EQUAL_MESSAGE
7880 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
7881 expVal
, OString(aStrBuf
.getStr())
7883 CPPUNIT_ASSERT_EQUAL_MESSAGE
7885 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
7886 expVal
.getLength(), aStrBuf
.getLength()
7893 OStringBuffer
aStrBuf( arrOUS
[1] );
7894 OString
expVal( aStrBuf
.getStr() );
7895 sal_Int32 input
= -8;
7896 sal_Int16 radix
= 8;
7898 expVal
+= OString( "-" );
7899 expVal
+= OString( "10" );
7900 aStrBuf
.append( input
, radix
);
7902 CPPUNIT_ASSERT_EQUAL_MESSAGE
7904 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
7905 expVal
, OString(aStrBuf
.getStr())
7907 CPPUNIT_ASSERT_EQUAL_MESSAGE
7909 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
7910 expVal
.getLength(), aStrBuf
.getLength()
7917 OStringBuffer
aStrBuf( arrOUS
[1] );
7918 OString
expVal( aStrBuf
.getStr() );
7919 sal_Int32 input
= -15;
7920 sal_Int16 radix
= 8;
7922 expVal
+= OString( "-" );
7923 expVal
+= OString( "17" );
7924 aStrBuf
.append( input
, radix
);
7926 CPPUNIT_ASSERT_EQUAL_MESSAGE
7928 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
7929 expVal
, OString(aStrBuf
.getStr())
7931 CPPUNIT_ASSERT_EQUAL_MESSAGE
7933 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
7934 expVal
.getLength(), aStrBuf
.getLength()
7941 OStringBuffer
aStrBuf( arrOUS
[1] );
7942 OString
expVal( aStrBuf
.getStr() );
7943 sal_Int32 input
= -0;
7944 sal_Int16 radix
= 10;
7946 expVal
+= OString( "0" );
7947 aStrBuf
.append( input
, radix
);
7949 CPPUNIT_ASSERT_EQUAL_MESSAGE
7951 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
7952 expVal
, OString(aStrBuf
.getStr())
7954 CPPUNIT_ASSERT_EQUAL_MESSAGE
7956 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
7957 expVal
.getLength(), aStrBuf
.getLength()
7964 OStringBuffer
aStrBuf( arrOUS
[1] );
7965 OString
expVal( aStrBuf
.getStr() );
7966 sal_Int32 input
= -4;
7967 sal_Int16 radix
= 10;
7969 expVal
+= OString( "-" );
7970 expVal
+= OString( "4" );
7971 aStrBuf
.append( input
, radix
);
7973 CPPUNIT_ASSERT_EQUAL_MESSAGE
7975 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
7976 expVal
, OString(aStrBuf
.getStr())
7978 CPPUNIT_ASSERT_EQUAL_MESSAGE
7980 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
7981 expVal
.getLength(), aStrBuf
.getLength()
7988 OStringBuffer
aStrBuf( arrOUS
[1] );
7989 OString
expVal( aStrBuf
.getStr() );
7990 sal_Int32 input
= -8;
7991 sal_Int16 radix
= 10;
7993 expVal
+= OString( "-" );
7994 expVal
+= OString( "8" );
7995 aStrBuf
.append( input
, radix
);
7997 CPPUNIT_ASSERT_EQUAL_MESSAGE
7999 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
8000 expVal
, OString(aStrBuf
.getStr())
8002 CPPUNIT_ASSERT_EQUAL_MESSAGE
8004 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
8005 expVal
.getLength(), aStrBuf
.getLength()
8012 OStringBuffer
aStrBuf( arrOUS
[1] );
8013 OString
expVal( aStrBuf
.getStr() );
8014 sal_Int32 input
= -15;
8015 sal_Int16 radix
= 10;
8017 expVal
+= OString( "-" );
8018 expVal
+= OString( "15" );
8019 aStrBuf
.append( input
, radix
);
8021 CPPUNIT_ASSERT_EQUAL_MESSAGE
8023 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
8024 expVal
, OString(aStrBuf
.getStr())
8026 CPPUNIT_ASSERT_EQUAL_MESSAGE
8028 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
8029 expVal
.getLength(), aStrBuf
.getLength()
8036 OStringBuffer
aStrBuf( arrOUS
[1] );
8037 OString
expVal( aStrBuf
.getStr() );
8038 sal_Int32 input
= -0;
8039 sal_Int16 radix
= 16;
8041 expVal
+= OString( "0" );
8042 aStrBuf
.append( input
, radix
);
8044 CPPUNIT_ASSERT_EQUAL_MESSAGE
8046 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
8047 expVal
, OString(aStrBuf
.getStr())
8049 CPPUNIT_ASSERT_EQUAL_MESSAGE
8051 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
8052 expVal
.getLength(), aStrBuf
.getLength()
8059 OStringBuffer
aStrBuf( arrOUS
[1] );
8060 OString
expVal( aStrBuf
.getStr() );
8061 sal_Int32 input
= -4;
8062 sal_Int16 radix
= 16;
8064 expVal
+= OString( "-" );
8065 expVal
+= OString( "4" );
8066 aStrBuf
.append( input
, radix
);
8068 CPPUNIT_ASSERT_EQUAL_MESSAGE
8070 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
8071 expVal
, OString(aStrBuf
.getStr())
8073 CPPUNIT_ASSERT_EQUAL_MESSAGE
8075 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
8076 expVal
.getLength(), aStrBuf
.getLength()
8083 OStringBuffer
aStrBuf( arrOUS
[1] );
8084 OString
expVal( aStrBuf
.getStr() );
8085 sal_Int32 input
= -8;
8086 sal_Int16 radix
= 16;
8088 expVal
+= OString( "-" );
8089 expVal
+= OString( "8" );
8090 aStrBuf
.append( input
, radix
);
8092 CPPUNIT_ASSERT_EQUAL_MESSAGE
8094 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
8095 expVal
, OString(aStrBuf
.getStr())
8097 CPPUNIT_ASSERT_EQUAL_MESSAGE
8099 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
8100 expVal
.getLength(), aStrBuf
.getLength()
8107 OStringBuffer
aStrBuf( arrOUS
[1] );
8108 OString
expVal( aStrBuf
.getStr() );
8109 sal_Int32 input
= -15;
8110 sal_Int16 radix
= 16;
8112 expVal
+= OString( "-" );
8113 expVal
+= OString( "f" );
8114 aStrBuf
.append( input
, radix
);
8116 CPPUNIT_ASSERT_EQUAL_MESSAGE
8118 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
8119 expVal
, OString(aStrBuf
.getStr())
8121 CPPUNIT_ASSERT_EQUAL_MESSAGE
8123 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
8124 expVal
.getLength(), aStrBuf
.getLength()
8131 OStringBuffer
aStrBuf( arrOUS
[1] );
8132 OString
expVal( aStrBuf
.getStr() );
8133 sal_Int32 input
= -0;
8134 sal_Int16 radix
= 36;
8136 expVal
+= OString( "0" );
8137 aStrBuf
.append( input
, radix
);
8139 CPPUNIT_ASSERT_EQUAL_MESSAGE
8141 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
8142 expVal
, OString(aStrBuf
.getStr())
8144 CPPUNIT_ASSERT_EQUAL_MESSAGE
8146 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
8147 expVal
.getLength(), aStrBuf
.getLength()
8154 OStringBuffer
aStrBuf( arrOUS
[1] );
8155 OString
expVal( aStrBuf
.getStr() );
8156 sal_Int32 input
= -4;
8157 sal_Int16 radix
= 36;
8159 expVal
+= OString( "-" );
8160 expVal
+= OString( "4" );
8161 aStrBuf
.append( input
, radix
);
8163 CPPUNIT_ASSERT_EQUAL_MESSAGE
8165 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
8166 expVal
, OString(aStrBuf
.getStr())
8168 CPPUNIT_ASSERT_EQUAL_MESSAGE
8170 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
8171 expVal
.getLength(), aStrBuf
.getLength()
8178 OStringBuffer
aStrBuf( arrOUS
[1] );
8179 OString
expVal( aStrBuf
.getStr() );
8180 sal_Int32 input
= -8;
8181 sal_Int16 radix
= 36;
8183 expVal
+= OString( "-" );
8184 expVal
+= OString( "8" );
8185 aStrBuf
.append( input
, radix
);
8187 CPPUNIT_ASSERT_EQUAL_MESSAGE
8189 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
8190 expVal
, OString(aStrBuf
.getStr())
8192 CPPUNIT_ASSERT_EQUAL_MESSAGE
8194 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
8195 expVal
.getLength(), aStrBuf
.getLength()
8202 OStringBuffer
aStrBuf( arrOUS
[1] );
8203 OString
expVal( aStrBuf
.getStr() );
8204 sal_Int32 input
= -35;
8205 sal_Int16 radix
= 36;
8207 expVal
+= OString( "-" );
8208 expVal
+= OString( "z" );
8209 aStrBuf
.append( input
, radix
);
8211 CPPUNIT_ASSERT_EQUAL_MESSAGE
8213 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
8214 expVal
, OString(aStrBuf
.getStr())
8216 CPPUNIT_ASSERT_EQUAL_MESSAGE
8218 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
8219 expVal
.getLength(), aStrBuf
.getLength()
8226 OStringBuffer
aStrBuf( arrOUS
[2] );
8227 OString
expVal( aStrBuf
.getStr() );
8228 sal_Int32 input
= -0;
8229 sal_Int16 radix
= 2;
8231 expVal
+= OString( "0" );
8232 aStrBuf
.append( input
, radix
);
8234 CPPUNIT_ASSERT_EQUAL_MESSAGE
8236 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
8237 expVal
, OString(aStrBuf
.getStr())
8239 CPPUNIT_ASSERT_EQUAL_MESSAGE
8241 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
8242 expVal
.getLength(), aStrBuf
.getLength()
8249 OStringBuffer
aStrBuf( arrOUS
[2] );
8250 OString
expVal( aStrBuf
.getStr() );
8251 sal_Int32 input
= -4;
8252 sal_Int16 radix
= 2;
8254 expVal
+= OString( "-" );
8255 expVal
+= OString( "100" );
8256 aStrBuf
.append( input
, radix
);
8258 CPPUNIT_ASSERT_EQUAL_MESSAGE
8260 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
8261 expVal
, OString(aStrBuf
.getStr())
8263 CPPUNIT_ASSERT_EQUAL_MESSAGE
8265 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
8266 expVal
.getLength(), aStrBuf
.getLength()
8273 OStringBuffer
aStrBuf( arrOUS
[2] );
8274 OString
expVal( aStrBuf
.getStr() );
8275 sal_Int32 input
= -8;
8276 sal_Int16 radix
= 2;
8278 expVal
+= OString( "-" );
8279 expVal
+= OString( "1000" );
8280 aStrBuf
.append( input
, radix
);
8282 CPPUNIT_ASSERT_EQUAL_MESSAGE
8284 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
8285 expVal
, OString(aStrBuf
.getStr())
8287 CPPUNIT_ASSERT_EQUAL_MESSAGE
8289 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
8290 expVal
.getLength(), aStrBuf
.getLength()
8297 OStringBuffer
aStrBuf( arrOUS
[2] );
8298 OString
expVal( aStrBuf
.getStr() );
8299 sal_Int32 input
= -15;
8300 sal_Int16 radix
= 2;
8302 expVal
+= OString( "-" );
8303 expVal
+= OString( "1111" );
8304 aStrBuf
.append( input
, radix
);
8306 CPPUNIT_ASSERT_EQUAL_MESSAGE
8308 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
8309 expVal
, OString(aStrBuf
.getStr())
8311 CPPUNIT_ASSERT_EQUAL_MESSAGE
8313 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
8314 expVal
.getLength(), aStrBuf
.getLength()
8321 OStringBuffer
aStrBuf( arrOUS
[2] );
8322 OString
expVal( aStrBuf
.getStr() );
8323 sal_Int32 input
= -0;
8324 sal_Int16 radix
= 8;
8326 expVal
+= OString( "0" );
8327 aStrBuf
.append( input
, radix
);
8329 CPPUNIT_ASSERT_EQUAL_MESSAGE
8331 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
8332 expVal
, OString(aStrBuf
.getStr())
8334 CPPUNIT_ASSERT_EQUAL_MESSAGE
8336 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
8337 expVal
.getLength(), aStrBuf
.getLength()
8344 OStringBuffer
aStrBuf( arrOUS
[2] );
8345 OString
expVal( aStrBuf
.getStr() );
8346 sal_Int32 input
= -4;
8347 sal_Int16 radix
= 8;
8349 expVal
+= OString( "-" );
8350 expVal
+= OString( "4" );
8351 aStrBuf
.append( input
, radix
);
8353 CPPUNIT_ASSERT_EQUAL_MESSAGE
8355 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
8356 expVal
, OString(aStrBuf
.getStr())
8358 CPPUNIT_ASSERT_EQUAL_MESSAGE
8360 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
8361 expVal
.getLength(), aStrBuf
.getLength()
8368 OStringBuffer
aStrBuf( arrOUS
[2] );
8369 OString
expVal( aStrBuf
.getStr() );
8370 sal_Int32 input
= -8;
8371 sal_Int16 radix
= 8;
8373 expVal
+= OString( "-" );
8374 expVal
+= OString( "10" );
8375 aStrBuf
.append( input
, radix
);
8377 CPPUNIT_ASSERT_EQUAL_MESSAGE
8379 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
8380 expVal
, OString(aStrBuf
.getStr())
8382 CPPUNIT_ASSERT_EQUAL_MESSAGE
8384 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
8385 expVal
.getLength(), aStrBuf
.getLength()
8392 OStringBuffer
aStrBuf( arrOUS
[2] );
8393 OString
expVal( aStrBuf
.getStr() );
8394 sal_Int32 input
= -15;
8395 sal_Int16 radix
= 8;
8397 expVal
+= OString( "-" );
8398 expVal
+= OString( "17" );
8399 aStrBuf
.append( input
, radix
);
8401 CPPUNIT_ASSERT_EQUAL_MESSAGE
8403 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
8404 expVal
, OString(aStrBuf
.getStr())
8406 CPPUNIT_ASSERT_EQUAL_MESSAGE
8408 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
8409 expVal
.getLength(), aStrBuf
.getLength()
8416 OStringBuffer
aStrBuf( arrOUS
[2] );
8417 OString
expVal( aStrBuf
.getStr() );
8418 sal_Int32 input
= -0;
8419 sal_Int16 radix
= 10;
8421 expVal
+= OString( "0" );
8422 aStrBuf
.append( input
, radix
);
8424 CPPUNIT_ASSERT_EQUAL_MESSAGE
8426 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
8427 expVal
, OString(aStrBuf
.getStr())
8429 CPPUNIT_ASSERT_EQUAL_MESSAGE
8431 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
8432 expVal
.getLength(), aStrBuf
.getLength()
8439 OStringBuffer
aStrBuf( arrOUS
[2] );
8440 OString
expVal( aStrBuf
.getStr() );
8441 sal_Int32 input
= -4;
8442 sal_Int16 radix
= 10;
8444 expVal
+= OString( "-" );
8445 expVal
+= OString( "4" );
8446 aStrBuf
.append( input
, radix
);
8448 CPPUNIT_ASSERT_EQUAL_MESSAGE
8450 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
8451 expVal
, OString(aStrBuf
.getStr())
8453 CPPUNIT_ASSERT_EQUAL_MESSAGE
8455 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
8456 expVal
.getLength(), aStrBuf
.getLength()
8463 OStringBuffer
aStrBuf( arrOUS
[2] );
8464 OString
expVal( aStrBuf
.getStr() );
8465 sal_Int32 input
= -8;
8466 sal_Int16 radix
= 10;
8468 expVal
+= OString( "-" );
8469 expVal
+= OString( "8" );
8470 aStrBuf
.append( input
, radix
);
8472 CPPUNIT_ASSERT_EQUAL_MESSAGE
8474 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
8475 expVal
, OString(aStrBuf
.getStr())
8477 CPPUNIT_ASSERT_EQUAL_MESSAGE
8479 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
8480 expVal
.getLength(), aStrBuf
.getLength()
8487 OStringBuffer
aStrBuf( arrOUS
[2] );
8488 OString
expVal( aStrBuf
.getStr() );
8489 sal_Int32 input
= -15;
8490 sal_Int16 radix
= 10;
8492 expVal
+= OString( "-" );
8493 expVal
+= OString( "15" );
8494 aStrBuf
.append( input
, radix
);
8496 CPPUNIT_ASSERT_EQUAL_MESSAGE
8498 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
8499 expVal
, OString(aStrBuf
.getStr())
8501 CPPUNIT_ASSERT_EQUAL_MESSAGE
8503 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
8504 expVal
.getLength(), aStrBuf
.getLength()
8511 OStringBuffer
aStrBuf( arrOUS
[2] );
8512 OString
expVal( aStrBuf
.getStr() );
8513 sal_Int32 input
= -0;
8514 sal_Int16 radix
= 16;
8516 expVal
+= OString( "0" );
8517 aStrBuf
.append( input
, radix
);
8519 CPPUNIT_ASSERT_EQUAL_MESSAGE
8521 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
8522 expVal
, OString(aStrBuf
.getStr())
8524 CPPUNIT_ASSERT_EQUAL_MESSAGE
8526 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
8527 expVal
.getLength(), aStrBuf
.getLength()
8534 OStringBuffer
aStrBuf( arrOUS
[2] );
8535 OString
expVal( aStrBuf
.getStr() );
8536 sal_Int32 input
= -4;
8537 sal_Int16 radix
= 16;
8539 expVal
+= OString( "-" );
8540 expVal
+= OString( "4" );
8541 aStrBuf
.append( input
, radix
);
8543 CPPUNIT_ASSERT_EQUAL_MESSAGE
8545 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
8546 expVal
, OString(aStrBuf
.getStr())
8548 CPPUNIT_ASSERT_EQUAL_MESSAGE
8550 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
8551 expVal
.getLength(), aStrBuf
.getLength()
8558 OStringBuffer
aStrBuf( arrOUS
[2] );
8559 OString
expVal( aStrBuf
.getStr() );
8560 sal_Int32 input
= -8;
8561 sal_Int16 radix
= 16;
8563 expVal
+= OString( "-" );
8564 expVal
+= OString( "8" );
8565 aStrBuf
.append( input
, radix
);
8567 CPPUNIT_ASSERT_EQUAL_MESSAGE
8569 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
8570 expVal
, OString(aStrBuf
.getStr())
8572 CPPUNIT_ASSERT_EQUAL_MESSAGE
8574 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
8575 expVal
.getLength(), aStrBuf
.getLength()
8582 OStringBuffer
aStrBuf( arrOUS
[2] );
8583 OString
expVal( aStrBuf
.getStr() );
8584 sal_Int32 input
= -15;
8585 sal_Int16 radix
= 16;
8587 expVal
+= OString( "-" );
8588 expVal
+= OString( "f" );
8589 aStrBuf
.append( input
, radix
);
8591 CPPUNIT_ASSERT_EQUAL_MESSAGE
8593 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
8594 expVal
, OString(aStrBuf
.getStr())
8596 CPPUNIT_ASSERT_EQUAL_MESSAGE
8598 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
8599 expVal
.getLength(), aStrBuf
.getLength()
8606 OStringBuffer
aStrBuf( arrOUS
[2] );
8607 OString
expVal( aStrBuf
.getStr() );
8608 sal_Int32 input
= -0;
8609 sal_Int16 radix
= 36;
8611 expVal
+= OString( "0" );
8612 aStrBuf
.append( input
, radix
);
8614 CPPUNIT_ASSERT_EQUAL_MESSAGE
8616 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
8617 expVal
, OString(aStrBuf
.getStr())
8619 CPPUNIT_ASSERT_EQUAL_MESSAGE
8621 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
8622 expVal
.getLength(), aStrBuf
.getLength()
8629 OStringBuffer
aStrBuf( arrOUS
[2] );
8630 OString
expVal( aStrBuf
.getStr() );
8631 sal_Int32 input
= -4;
8632 sal_Int16 radix
= 36;
8634 expVal
+= OString( "-" );
8635 expVal
+= OString( "4" );
8636 aStrBuf
.append( input
, radix
);
8638 CPPUNIT_ASSERT_EQUAL_MESSAGE
8640 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
8641 expVal
, OString(aStrBuf
.getStr())
8643 CPPUNIT_ASSERT_EQUAL_MESSAGE
8645 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
8646 expVal
.getLength(), aStrBuf
.getLength()
8653 OStringBuffer
aStrBuf( arrOUS
[2] );
8654 OString
expVal( aStrBuf
.getStr() );
8655 sal_Int32 input
= -8;
8656 sal_Int16 radix
= 36;
8658 expVal
+= OString( "-" );
8659 expVal
+= OString( "8" );
8660 aStrBuf
.append( input
, radix
);
8662 CPPUNIT_ASSERT_EQUAL_MESSAGE
8664 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
8665 expVal
, OString(aStrBuf
.getStr())
8667 CPPUNIT_ASSERT_EQUAL_MESSAGE
8669 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
8670 expVal
.getLength(), aStrBuf
.getLength()
8677 OStringBuffer
aStrBuf( arrOUS
[2] );
8678 OString
expVal( aStrBuf
.getStr() );
8679 sal_Int32 input
= -35;
8680 sal_Int16 radix
= 36;
8682 expVal
+= OString( "-" );
8683 expVal
+= OString( "z" );
8684 aStrBuf
.append( input
, radix
);
8686 CPPUNIT_ASSERT_EQUAL_MESSAGE
8688 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
8689 expVal
, OString(aStrBuf
.getStr())
8691 CPPUNIT_ASSERT_EQUAL_MESSAGE
8693 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
8694 expVal
.getLength(), aStrBuf
.getLength()
8701 OStringBuffer
aStrBuf( arrOUS
[3] );
8702 OString
expVal( aStrBuf
.getStr() );
8703 sal_Int32 input
= -0;
8704 sal_Int16 radix
= 2;
8706 expVal
+= OString( "0" );
8707 aStrBuf
.append( input
, radix
);
8709 CPPUNIT_ASSERT_EQUAL_MESSAGE
8711 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
8712 expVal
, OString(aStrBuf
.getStr())
8714 CPPUNIT_ASSERT_EQUAL_MESSAGE
8716 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
8717 expVal
.getLength(), aStrBuf
.getLength()
8724 OStringBuffer
aStrBuf( arrOUS
[3] );
8725 OString
expVal( aStrBuf
.getStr() );
8726 sal_Int32 input
= -4;
8727 sal_Int16 radix
= 2;
8729 expVal
+= OString( "-" );
8730 expVal
+= OString( "100" );
8731 aStrBuf
.append( input
, radix
);
8733 CPPUNIT_ASSERT_EQUAL_MESSAGE
8735 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
8736 expVal
, OString(aStrBuf
.getStr())
8738 CPPUNIT_ASSERT_EQUAL_MESSAGE
8740 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
8741 expVal
.getLength(), aStrBuf
.getLength()
8748 OStringBuffer
aStrBuf( arrOUS
[3] );
8749 OString
expVal( aStrBuf
.getStr() );
8750 sal_Int32 input
= -8;
8751 sal_Int16 radix
= 2;
8753 expVal
+= OString( "-" );
8754 expVal
+= OString( "1000" );
8755 aStrBuf
.append( input
, radix
);
8757 CPPUNIT_ASSERT_EQUAL_MESSAGE
8759 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
8760 expVal
, OString(aStrBuf
.getStr())
8762 CPPUNIT_ASSERT_EQUAL_MESSAGE
8764 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
8765 expVal
.getLength(), aStrBuf
.getLength()
8772 OStringBuffer
aStrBuf( arrOUS
[3] );
8773 OString
expVal( aStrBuf
.getStr() );
8774 sal_Int32 input
= -15;
8775 sal_Int16 radix
= 2;
8777 expVal
+= OString( "-" );
8778 expVal
+= OString( "1111" );
8779 aStrBuf
.append( input
, radix
);
8781 CPPUNIT_ASSERT_EQUAL_MESSAGE
8783 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
8784 expVal
, OString(aStrBuf
.getStr())
8786 CPPUNIT_ASSERT_EQUAL_MESSAGE
8788 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
8789 expVal
.getLength(), aStrBuf
.getLength()
8796 OStringBuffer
aStrBuf( arrOUS
[3] );
8797 OString
expVal( aStrBuf
.getStr() );
8798 sal_Int32 input
= -0;
8799 sal_Int16 radix
= 8;
8801 expVal
+= OString( "0" );
8802 aStrBuf
.append( input
, radix
);
8804 CPPUNIT_ASSERT_EQUAL_MESSAGE
8806 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
8807 expVal
, OString(aStrBuf
.getStr())
8809 CPPUNIT_ASSERT_EQUAL_MESSAGE
8811 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
8812 expVal
.getLength(), aStrBuf
.getLength()
8819 OStringBuffer
aStrBuf( arrOUS
[3] );
8820 OString
expVal( aStrBuf
.getStr() );
8821 sal_Int32 input
= -4;
8822 sal_Int16 radix
= 8;
8824 expVal
+= OString( "-" );
8825 expVal
+= OString( "4" );
8826 aStrBuf
.append( input
, radix
);
8828 CPPUNIT_ASSERT_EQUAL_MESSAGE
8830 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
8831 expVal
, OString(aStrBuf
.getStr())
8833 CPPUNIT_ASSERT_EQUAL_MESSAGE
8835 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
8836 expVal
.getLength(), aStrBuf
.getLength()
8843 OStringBuffer
aStrBuf( arrOUS
[3] );
8844 OString
expVal( aStrBuf
.getStr() );
8845 sal_Int32 input
= -8;
8846 sal_Int16 radix
= 8;
8848 expVal
+= OString( "-" );
8849 expVal
+= OString( "10" );
8850 aStrBuf
.append( input
, radix
);
8852 CPPUNIT_ASSERT_EQUAL_MESSAGE
8854 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
8855 expVal
, OString(aStrBuf
.getStr())
8857 CPPUNIT_ASSERT_EQUAL_MESSAGE
8859 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
8860 expVal
.getLength(), aStrBuf
.getLength()
8867 OStringBuffer
aStrBuf( arrOUS
[3] );
8868 OString
expVal( aStrBuf
.getStr() );
8869 sal_Int32 input
= -15;
8870 sal_Int16 radix
= 8;
8872 expVal
+= OString( "-" );
8873 expVal
+= OString( "17" );
8874 aStrBuf
.append( input
, radix
);
8876 CPPUNIT_ASSERT_EQUAL_MESSAGE
8878 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
8879 expVal
, OString(aStrBuf
.getStr())
8881 CPPUNIT_ASSERT_EQUAL_MESSAGE
8883 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
8884 expVal
.getLength(), aStrBuf
.getLength()
8891 OStringBuffer
aStrBuf( arrOUS
[3] );
8892 OString
expVal( aStrBuf
.getStr() );
8893 sal_Int32 input
= -0;
8894 sal_Int16 radix
= 10;
8896 expVal
+= OString( "0" );
8897 aStrBuf
.append( input
, radix
);
8899 CPPUNIT_ASSERT_EQUAL_MESSAGE
8901 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
8902 expVal
, OString(aStrBuf
.getStr())
8904 CPPUNIT_ASSERT_EQUAL_MESSAGE
8906 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
8907 expVal
.getLength(), aStrBuf
.getLength()
8914 OStringBuffer
aStrBuf( arrOUS
[3] );
8915 OString
expVal( aStrBuf
.getStr() );
8916 sal_Int32 input
= -4;
8917 sal_Int16 radix
= 10;
8919 expVal
+= OString( "-" );
8920 expVal
+= OString( "4" );
8921 aStrBuf
.append( input
, radix
);
8923 CPPUNIT_ASSERT_EQUAL_MESSAGE
8925 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
8926 expVal
, OString(aStrBuf
.getStr())
8928 CPPUNIT_ASSERT_EQUAL_MESSAGE
8930 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
8931 expVal
.getLength(), aStrBuf
.getLength()
8938 OStringBuffer
aStrBuf( arrOUS
[3] );
8939 OString
expVal( aStrBuf
.getStr() );
8940 sal_Int32 input
= -8;
8941 sal_Int16 radix
= 10;
8943 expVal
+= OString( "-" );
8944 expVal
+= OString( "8" );
8945 aStrBuf
.append( input
, radix
);
8947 CPPUNIT_ASSERT_EQUAL_MESSAGE
8949 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
8950 expVal
, OString(aStrBuf
.getStr())
8952 CPPUNIT_ASSERT_EQUAL_MESSAGE
8954 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
8955 expVal
.getLength(), aStrBuf
.getLength()
8962 OStringBuffer
aStrBuf( arrOUS
[3] );
8963 OString
expVal( aStrBuf
.getStr() );
8964 sal_Int32 input
= -15;
8965 sal_Int16 radix
= 10;
8967 expVal
+= OString( "-" );
8968 expVal
+= OString( "15" );
8969 aStrBuf
.append( input
, radix
);
8971 CPPUNIT_ASSERT_EQUAL_MESSAGE
8973 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
8974 expVal
, OString(aStrBuf
.getStr())
8976 CPPUNIT_ASSERT_EQUAL_MESSAGE
8978 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
8979 expVal
.getLength(), aStrBuf
.getLength()
8986 OStringBuffer
aStrBuf( arrOUS
[3] );
8987 OString
expVal( aStrBuf
.getStr() );
8988 sal_Int32 input
= -0;
8989 sal_Int16 radix
= 16;
8991 expVal
+= OString( "0" );
8992 aStrBuf
.append( input
, radix
);
8994 CPPUNIT_ASSERT_EQUAL_MESSAGE
8996 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
8997 expVal
, OString(aStrBuf
.getStr())
8999 CPPUNIT_ASSERT_EQUAL_MESSAGE
9001 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
9002 expVal
.getLength(), aStrBuf
.getLength()
9009 OStringBuffer
aStrBuf( arrOUS
[3] );
9010 OString
expVal( aStrBuf
.getStr() );
9011 sal_Int32 input
= -4;
9012 sal_Int16 radix
= 16;
9014 expVal
+= OString( "-" );
9015 expVal
+= OString( "4" );
9016 aStrBuf
.append( input
, radix
);
9018 CPPUNIT_ASSERT_EQUAL_MESSAGE
9020 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
9021 expVal
, OString(aStrBuf
.getStr())
9023 CPPUNIT_ASSERT_EQUAL_MESSAGE
9025 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
9026 expVal
.getLength(), aStrBuf
.getLength()
9033 OStringBuffer
aStrBuf( arrOUS
[3] );
9034 OString
expVal( aStrBuf
.getStr() );
9035 sal_Int32 input
= -8;
9036 sal_Int16 radix
= 16;
9038 expVal
+= OString( "-" );
9039 expVal
+= OString( "8" );
9040 aStrBuf
.append( input
, radix
);
9042 CPPUNIT_ASSERT_EQUAL_MESSAGE
9044 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
9045 expVal
, OString(aStrBuf
.getStr())
9047 CPPUNIT_ASSERT_EQUAL_MESSAGE
9049 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
9050 expVal
.getLength(), aStrBuf
.getLength()
9057 OStringBuffer
aStrBuf( arrOUS
[3] );
9058 OString
expVal( aStrBuf
.getStr() );
9059 sal_Int32 input
= -15;
9060 sal_Int16 radix
= 16;
9062 expVal
+= OString( "-" );
9063 expVal
+= OString( "f" );
9064 aStrBuf
.append( input
, radix
);
9066 CPPUNIT_ASSERT_EQUAL_MESSAGE
9068 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
9069 expVal
, OString(aStrBuf
.getStr())
9071 CPPUNIT_ASSERT_EQUAL_MESSAGE
9073 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
9074 expVal
.getLength(), aStrBuf
.getLength()
9081 OStringBuffer
aStrBuf( arrOUS
[3] );
9082 OString
expVal( aStrBuf
.getStr() );
9083 sal_Int32 input
= -0;
9084 sal_Int16 radix
= 36;
9086 expVal
+= OString( "0" );
9087 aStrBuf
.append( input
, radix
);
9089 CPPUNIT_ASSERT_EQUAL_MESSAGE
9091 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
9092 expVal
, OString(aStrBuf
.getStr())
9094 CPPUNIT_ASSERT_EQUAL_MESSAGE
9096 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
9097 expVal
.getLength(), aStrBuf
.getLength()
9104 OStringBuffer
aStrBuf( arrOUS
[3] );
9105 OString
expVal( aStrBuf
.getStr() );
9106 sal_Int32 input
= -4;
9107 sal_Int16 radix
= 36;
9109 expVal
+= OString( "-" );
9110 expVal
+= OString( "4" );
9111 aStrBuf
.append( input
, radix
);
9113 CPPUNIT_ASSERT_EQUAL_MESSAGE
9115 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
9116 expVal
, OString(aStrBuf
.getStr())
9118 CPPUNIT_ASSERT_EQUAL_MESSAGE
9120 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
9121 expVal
.getLength(), aStrBuf
.getLength()
9128 OStringBuffer
aStrBuf( arrOUS
[3] );
9129 OString
expVal( aStrBuf
.getStr() );
9130 sal_Int32 input
= -8;
9131 sal_Int16 radix
= 36;
9133 expVal
+= OString( "-" );
9134 expVal
+= OString( "8" );
9135 aStrBuf
.append( input
, radix
);
9137 CPPUNIT_ASSERT_EQUAL_MESSAGE
9139 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
9140 expVal
, OString(aStrBuf
.getStr())
9142 CPPUNIT_ASSERT_EQUAL_MESSAGE
9144 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
9145 expVal
.getLength(), aStrBuf
.getLength()
9152 OStringBuffer
aStrBuf( arrOUS
[3] );
9153 OString
expVal( aStrBuf
.getStr() );
9154 sal_Int32 input
= -35;
9155 sal_Int16 radix
= 36;
9157 expVal
+= OString( "-" );
9158 expVal
+= OString( "z" );
9159 aStrBuf
.append( input
, radix
);
9161 CPPUNIT_ASSERT_EQUAL_MESSAGE
9163 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
9164 expVal
, OString(aStrBuf
.getStr())
9166 CPPUNIT_ASSERT_EQUAL_MESSAGE
9168 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
9169 expVal
.getLength(), aStrBuf
.getLength()
9176 OStringBuffer
aStrBuf( arrOUS
[4] );
9177 OString
expVal( aStrBuf
.getStr() );
9178 sal_Int32 input
= -0;
9179 sal_Int16 radix
= 2;
9181 expVal
+= OString( "0" );
9182 aStrBuf
.append( input
, radix
);
9184 CPPUNIT_ASSERT_EQUAL_MESSAGE
9186 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
9187 expVal
, OString(aStrBuf
.getStr())
9189 CPPUNIT_ASSERT_EQUAL_MESSAGE
9191 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
9192 expVal
.getLength(), aStrBuf
.getLength()
9199 OStringBuffer
aStrBuf( arrOUS
[4] );
9200 OString
expVal( aStrBuf
.getStr() );
9201 sal_Int32 input
= -4;
9202 sal_Int16 radix
= 2;
9204 expVal
+= OString( "-" );
9205 expVal
+= OString( "100" );
9206 aStrBuf
.append( input
, radix
);
9208 CPPUNIT_ASSERT_EQUAL_MESSAGE
9210 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
9211 expVal
, OString(aStrBuf
.getStr())
9213 CPPUNIT_ASSERT_EQUAL_MESSAGE
9215 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
9216 expVal
.getLength(), aStrBuf
.getLength()
9223 OStringBuffer
aStrBuf( arrOUS
[4] );
9224 OString
expVal( aStrBuf
.getStr() );
9225 sal_Int32 input
= -8;
9226 sal_Int16 radix
= 2;
9228 expVal
+= OString( "-" );
9229 expVal
+= OString( "1000" );
9230 aStrBuf
.append( input
, radix
);
9232 CPPUNIT_ASSERT_EQUAL_MESSAGE
9234 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
9235 expVal
, OString(aStrBuf
.getStr())
9237 CPPUNIT_ASSERT_EQUAL_MESSAGE
9239 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
9240 expVal
.getLength(), aStrBuf
.getLength()
9247 OStringBuffer
aStrBuf( arrOUS
[4] );
9248 OString
expVal( aStrBuf
.getStr() );
9249 sal_Int32 input
= -15;
9250 sal_Int16 radix
= 2;
9252 expVal
+= OString( "-" );
9253 expVal
+= OString( "1111" );
9254 aStrBuf
.append( input
, radix
);
9256 CPPUNIT_ASSERT_EQUAL_MESSAGE
9258 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
9259 expVal
, OString(aStrBuf
.getStr())
9261 CPPUNIT_ASSERT_EQUAL_MESSAGE
9263 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
9264 expVal
.getLength(), aStrBuf
.getLength()
9271 OStringBuffer
aStrBuf( arrOUS
[4] );
9272 OString
expVal( aStrBuf
.getStr() );
9273 sal_Int32 input
= -0;
9274 sal_Int16 radix
= 8;
9276 expVal
+= OString( "0" );
9277 aStrBuf
.append( input
, radix
);
9279 CPPUNIT_ASSERT_EQUAL_MESSAGE
9281 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
9282 expVal
, OString(aStrBuf
.getStr())
9284 CPPUNIT_ASSERT_EQUAL_MESSAGE
9286 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
9287 expVal
.getLength(), aStrBuf
.getLength()
9294 OStringBuffer
aStrBuf( arrOUS
[4] );
9295 OString
expVal( aStrBuf
.getStr() );
9296 sal_Int32 input
= -4;
9297 sal_Int16 radix
= 8;
9299 expVal
+= OString( "-" );
9300 expVal
+= OString( "4" );
9301 aStrBuf
.append( input
, radix
);
9303 CPPUNIT_ASSERT_EQUAL_MESSAGE
9305 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
9306 expVal
, OString(aStrBuf
.getStr())
9308 CPPUNIT_ASSERT_EQUAL_MESSAGE
9310 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
9311 expVal
.getLength(), aStrBuf
.getLength()
9318 OStringBuffer
aStrBuf( arrOUS
[4] );
9319 OString
expVal( aStrBuf
.getStr() );
9320 sal_Int32 input
= -8;
9321 sal_Int16 radix
= 8;
9323 expVal
+= OString( "-" );
9324 expVal
+= OString( "10" );
9325 aStrBuf
.append( input
, radix
);
9327 CPPUNIT_ASSERT_EQUAL_MESSAGE
9329 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
9330 expVal
, OString(aStrBuf
.getStr())
9332 CPPUNIT_ASSERT_EQUAL_MESSAGE
9334 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
9335 expVal
.getLength(), aStrBuf
.getLength()
9342 OStringBuffer
aStrBuf( arrOUS
[4] );
9343 OString
expVal( aStrBuf
.getStr() );
9344 sal_Int32 input
= -15;
9345 sal_Int16 radix
= 8;
9347 expVal
+= OString( "-" );
9348 expVal
+= OString( "17" );
9349 aStrBuf
.append( input
, radix
);
9351 CPPUNIT_ASSERT_EQUAL_MESSAGE
9353 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
9354 expVal
, OString(aStrBuf
.getStr())
9356 CPPUNIT_ASSERT_EQUAL_MESSAGE
9358 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
9359 expVal
.getLength(), aStrBuf
.getLength()
9366 OStringBuffer
aStrBuf( arrOUS
[4] );
9367 OString
expVal( aStrBuf
.getStr() );
9368 sal_Int32 input
= -0;
9369 sal_Int16 radix
= 10;
9371 expVal
+= OString( "0" );
9372 aStrBuf
.append( input
, radix
);
9374 CPPUNIT_ASSERT_EQUAL_MESSAGE
9376 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
9377 expVal
, OString(aStrBuf
.getStr())
9379 CPPUNIT_ASSERT_EQUAL_MESSAGE
9381 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
9382 expVal
.getLength(), aStrBuf
.getLength()
9389 OStringBuffer
aStrBuf( arrOUS
[4] );
9390 OString
expVal( aStrBuf
.getStr() );
9391 sal_Int32 input
= -4;
9392 sal_Int16 radix
= 10;
9394 expVal
+= OString( "-" );
9395 expVal
+= OString( "4" );
9396 aStrBuf
.append( input
, radix
);
9398 CPPUNIT_ASSERT_EQUAL_MESSAGE
9400 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
9401 expVal
, OString(aStrBuf
.getStr())
9403 CPPUNIT_ASSERT_EQUAL_MESSAGE
9405 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
9406 expVal
.getLength(), aStrBuf
.getLength()
9413 OStringBuffer
aStrBuf( arrOUS
[4] );
9414 OString
expVal( aStrBuf
.getStr() );
9415 sal_Int32 input
= -8;
9416 sal_Int16 radix
= 10;
9418 expVal
+= OString( "-" );
9419 expVal
+= OString( "8" );
9420 aStrBuf
.append( input
, radix
);
9422 CPPUNIT_ASSERT_EQUAL_MESSAGE
9424 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
9425 expVal
, OString(aStrBuf
.getStr())
9427 CPPUNIT_ASSERT_EQUAL_MESSAGE
9429 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
9430 expVal
.getLength(), aStrBuf
.getLength()
9437 OStringBuffer
aStrBuf( arrOUS
[4] );
9438 OString
expVal( aStrBuf
.getStr() );
9439 sal_Int32 input
= -15;
9440 sal_Int16 radix
= 10;
9442 expVal
+= OString( "-" );
9443 expVal
+= OString( "15" );
9444 aStrBuf
.append( input
, radix
);
9446 CPPUNIT_ASSERT_EQUAL_MESSAGE
9448 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
9449 expVal
, OString(aStrBuf
.getStr())
9451 CPPUNIT_ASSERT_EQUAL_MESSAGE
9453 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
9454 expVal
.getLength(), aStrBuf
.getLength()
9461 OStringBuffer
aStrBuf( arrOUS
[4] );
9462 OString
expVal( aStrBuf
.getStr() );
9463 sal_Int32 input
= -0;
9464 sal_Int16 radix
= 16;
9466 expVal
+= OString( "0" );
9467 aStrBuf
.append( input
, radix
);
9469 CPPUNIT_ASSERT_EQUAL_MESSAGE
9471 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
9472 expVal
, OString(aStrBuf
.getStr())
9474 CPPUNIT_ASSERT_EQUAL_MESSAGE
9476 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
9477 expVal
.getLength(), aStrBuf
.getLength()
9484 OStringBuffer
aStrBuf( arrOUS
[4] );
9485 OString
expVal( aStrBuf
.getStr() );
9486 sal_Int32 input
= -4;
9487 sal_Int16 radix
= 16;
9489 expVal
+= OString( "-" );
9490 expVal
+= OString( "4" );
9491 aStrBuf
.append( input
, radix
);
9493 CPPUNIT_ASSERT_EQUAL_MESSAGE
9495 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
9496 expVal
, OString(aStrBuf
.getStr())
9498 CPPUNIT_ASSERT_EQUAL_MESSAGE
9500 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
9501 expVal
.getLength(), aStrBuf
.getLength()
9508 OStringBuffer
aStrBuf( arrOUS
[4] );
9509 OString
expVal( aStrBuf
.getStr() );
9510 sal_Int32 input
= -8;
9511 sal_Int16 radix
= 16;
9513 expVal
+= OString( "-" );
9514 expVal
+= OString( "8" );
9515 aStrBuf
.append( input
, radix
);
9517 CPPUNIT_ASSERT_EQUAL_MESSAGE
9519 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
9520 expVal
, OString(aStrBuf
.getStr())
9522 CPPUNIT_ASSERT_EQUAL_MESSAGE
9524 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
9525 expVal
.getLength(), aStrBuf
.getLength()
9532 OStringBuffer
aStrBuf( arrOUS
[4] );
9533 OString
expVal( aStrBuf
.getStr() );
9534 sal_Int32 input
= -15;
9535 sal_Int16 radix
= 16;
9537 expVal
+= OString( "-" );
9538 expVal
+= OString( "f" );
9539 aStrBuf
.append( input
, radix
);
9541 CPPUNIT_ASSERT_EQUAL_MESSAGE
9543 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
9544 expVal
, OString(aStrBuf
.getStr())
9546 CPPUNIT_ASSERT_EQUAL_MESSAGE
9548 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
9549 expVal
.getLength(), aStrBuf
.getLength()
9556 OStringBuffer
aStrBuf( arrOUS
[4] );
9557 OString
expVal( aStrBuf
.getStr() );
9558 sal_Int32 input
= -0;
9559 sal_Int16 radix
= 36;
9561 expVal
+= OString( "0" );
9562 aStrBuf
.append( input
, radix
);
9564 CPPUNIT_ASSERT_EQUAL_MESSAGE
9566 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
9567 expVal
, OString(aStrBuf
.getStr())
9569 CPPUNIT_ASSERT_EQUAL_MESSAGE
9571 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
9572 expVal
.getLength(), aStrBuf
.getLength()
9579 OStringBuffer
aStrBuf( arrOUS
[4] );
9580 OString
expVal( aStrBuf
.getStr() );
9581 sal_Int32 input
= -4;
9582 sal_Int16 radix
= 36;
9584 expVal
+= OString( "-" );
9585 expVal
+= OString( "4" );
9586 aStrBuf
.append( input
, radix
);
9588 CPPUNIT_ASSERT_EQUAL_MESSAGE
9590 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
9591 expVal
, OString(aStrBuf
.getStr())
9593 CPPUNIT_ASSERT_EQUAL_MESSAGE
9595 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
9596 expVal
.getLength(), aStrBuf
.getLength()
9602 OStringBuffer
aStrBuf( arrOUS
[4] );
9603 OString
expVal( aStrBuf
.getStr() );
9604 sal_Int32 input
= -8;
9605 sal_Int16 radix
= 36;
9607 expVal
+= OString( "-" );
9608 expVal
+= OString( "8" );
9609 aStrBuf
.append( input
, radix
);
9611 CPPUNIT_ASSERT_EQUAL_MESSAGE
9613 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
9614 expVal
, OString(aStrBuf
.getStr())
9616 CPPUNIT_ASSERT_EQUAL_MESSAGE
9618 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
9619 expVal
.getLength(), aStrBuf
.getLength()
9625 OStringBuffer
aStrBuf( arrOUS
[4] );
9626 OString
expVal( aStrBuf
.getStr() );
9627 sal_Int32 input
= -35;
9628 sal_Int16 radix
= 36;
9630 expVal
+= OString( "-" );
9631 expVal
+= OString( "z" );
9632 aStrBuf
.append( input
, radix
);
9634 CPPUNIT_ASSERT_EQUAL_MESSAGE
9636 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
9637 expVal
, OString(aStrBuf
.getStr())
9639 CPPUNIT_ASSERT_EQUAL_MESSAGE
9641 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
9642 expVal
.getLength(), aStrBuf
.getLength()
9646 CPPUNIT_TEST_SUITE( append_006_Int32_Negative
);
9647 CPPUNIT_TEST( append_001
); CPPUNIT_TEST( append_002
);
9648 CPPUNIT_TEST( append_003
); CPPUNIT_TEST( append_004
);
9649 CPPUNIT_TEST( append_005
); CPPUNIT_TEST( append_006
);
9650 CPPUNIT_TEST( append_007
); CPPUNIT_TEST( append_008
);
9651 CPPUNIT_TEST( append_009
); CPPUNIT_TEST( append_010
);
9652 CPPUNIT_TEST( append_011
); CPPUNIT_TEST( append_012
);
9653 CPPUNIT_TEST( append_013
); CPPUNIT_TEST( append_014
);
9654 CPPUNIT_TEST( append_015
); CPPUNIT_TEST( append_016
);
9655 CPPUNIT_TEST( append_017
); CPPUNIT_TEST( append_018
);
9656 CPPUNIT_TEST( append_019
); CPPUNIT_TEST( append_020
);
9657 CPPUNIT_TEST( append_021
); CPPUNIT_TEST( append_022
);
9658 CPPUNIT_TEST( append_023
); CPPUNIT_TEST( append_024
);
9659 CPPUNIT_TEST( append_025
); CPPUNIT_TEST( append_026
);
9660 CPPUNIT_TEST( append_027
); CPPUNIT_TEST( append_028
);
9661 CPPUNIT_TEST( append_029
); CPPUNIT_TEST( append_030
);
9662 CPPUNIT_TEST( append_031
); CPPUNIT_TEST( append_032
);
9663 CPPUNIT_TEST( append_033
); CPPUNIT_TEST( append_034
);
9664 CPPUNIT_TEST( append_035
); CPPUNIT_TEST( append_036
);
9665 CPPUNIT_TEST( append_037
); CPPUNIT_TEST( append_038
);
9666 CPPUNIT_TEST( append_039
); CPPUNIT_TEST( append_040
);
9667 CPPUNIT_TEST( append_041
); CPPUNIT_TEST( append_042
);
9668 CPPUNIT_TEST( append_043
); CPPUNIT_TEST( append_044
);
9669 CPPUNIT_TEST( append_045
); CPPUNIT_TEST( append_046
);
9670 CPPUNIT_TEST( append_047
); CPPUNIT_TEST( append_048
);
9671 CPPUNIT_TEST( append_049
); CPPUNIT_TEST( append_050
);
9672 CPPUNIT_TEST( append_051
); CPPUNIT_TEST( append_052
);
9673 CPPUNIT_TEST( append_053
); CPPUNIT_TEST( append_054
);
9674 CPPUNIT_TEST( append_055
); CPPUNIT_TEST( append_056
);
9675 CPPUNIT_TEST( append_057
); CPPUNIT_TEST( append_058
);
9676 CPPUNIT_TEST( append_059
); CPPUNIT_TEST( append_060
);
9677 CPPUNIT_TEST( append_061
); CPPUNIT_TEST( append_062
);
9678 CPPUNIT_TEST( append_063
); CPPUNIT_TEST( append_064
);
9679 CPPUNIT_TEST( append_065
); CPPUNIT_TEST( append_066
);
9680 CPPUNIT_TEST( append_067
); CPPUNIT_TEST( append_068
);
9681 CPPUNIT_TEST( append_069
); CPPUNIT_TEST( append_070
);
9682 CPPUNIT_TEST( append_071
); CPPUNIT_TEST( append_072
);
9683 CPPUNIT_TEST( append_073
); CPPUNIT_TEST( append_074
);
9684 CPPUNIT_TEST( append_075
); CPPUNIT_TEST( append_076
);
9685 CPPUNIT_TEST( append_077
); CPPUNIT_TEST( append_078
);
9686 CPPUNIT_TEST( append_079
); CPPUNIT_TEST( append_080
);
9687 CPPUNIT_TEST( append_081
); CPPUNIT_TEST( append_082
);
9688 CPPUNIT_TEST( append_083
); CPPUNIT_TEST( append_084
);
9689 CPPUNIT_TEST( append_085
); CPPUNIT_TEST( append_086
);
9690 CPPUNIT_TEST( append_087
); CPPUNIT_TEST( append_088
);
9691 CPPUNIT_TEST( append_089
); CPPUNIT_TEST( append_090
);
9692 CPPUNIT_TEST( append_091
); CPPUNIT_TEST( append_092
);
9693 CPPUNIT_TEST( append_093
); CPPUNIT_TEST( append_094
);
9694 CPPUNIT_TEST( append_095
); CPPUNIT_TEST( append_096
);
9695 CPPUNIT_TEST( append_097
); CPPUNIT_TEST( append_098
);
9696 CPPUNIT_TEST( append_099
); CPPUNIT_TEST( append_100
);
9697 CPPUNIT_TEST_SUITE_END();
9700 class append_006_Int32_defaultParam
: public CppUnit::TestFixture
9705 void setUp() override
9707 arrOUS
[0] = OString( kTestStr7
);
9708 arrOUS
[1] = OString( );
9709 arrOUS
[2] = OString( kTestStr25
);
9710 arrOUS
[3] = OString( "" );
9711 arrOUS
[4] = OString( kTestStr28
);
9716 OStringBuffer
aStrBuf( arrOUS
[0] );
9717 OString
expVal( kTestStr59
);
9718 sal_Int32 input
= 11;
9720 aStrBuf
.append( input
);
9722 CPPUNIT_ASSERT_EQUAL_MESSAGE
9724 "input Int32 11 and return OStringBuffer[0]+11",
9725 expVal
, aStrBuf
.toString()
9727 CPPUNIT_ASSERT_EQUAL_MESSAGE
9729 "input Int32 11 and return OStringBuffer[0]+11",
9730 expVal
.getLength(), aStrBuf
.getLength()
9737 OStringBuffer
aStrBuf( arrOUS
[0] );
9738 OString
expVal( kTestStr62
);
9739 sal_Int32 input
= 0;
9741 aStrBuf
.append( input
);
9743 CPPUNIT_ASSERT_EQUAL_MESSAGE
9745 "input Int32 0 and return OStringBuffer[0]+0",
9746 expVal
, aStrBuf
.toString()
9748 CPPUNIT_ASSERT_EQUAL_MESSAGE
9750 "input Int32 0 and return OStringBuffer[0]+0",
9751 expVal
.getLength(), aStrBuf
.getLength()
9758 OStringBuffer
aStrBuf( arrOUS
[0] );
9759 OString
expVal( kTestStr63
);
9760 sal_Int32 input
= -11;
9762 aStrBuf
.append( input
);
9764 CPPUNIT_ASSERT_EQUAL_MESSAGE
9766 "input Int32 -11 and return OStringBuffer[0]+(-11)",
9767 expVal
, aStrBuf
.toString()
9769 CPPUNIT_ASSERT_EQUAL_MESSAGE
9771 "input Int32 -11 and return OStringBuffer[0]+(-11)",
9772 expVal
.getLength(), aStrBuf
.getLength()
9779 OStringBuffer
aStrBuf( arrOUS
[0] );
9780 OString
expVal( kTestStr64
);
9781 sal_Int32 input
= 2147483647;
9783 aStrBuf
.append( input
);
9785 CPPUNIT_ASSERT_EQUAL_MESSAGE
9787 "input Int32 2147483647 and return OStringBuffer[0]+2147483647",
9788 expVal
, aStrBuf
.toString()
9790 CPPUNIT_ASSERT_EQUAL_MESSAGE
9792 "input Int32 2147483647 and return OStringBuffer[0]+2147483647",
9793 expVal
.getLength(), aStrBuf
.getLength()
9800 OStringBuffer
aStrBuf( arrOUS
[0] );
9801 OString
expVal( kTestStr65
);
9802 sal_Int32 input
= kNonSInt32Max
;
9804 aStrBuf
.append( input
);
9806 CPPUNIT_ASSERT_EQUAL_MESSAGE
9808 "input Int32 -2147483648 and return OStringBuffer[0]+(-2147483648)",
9809 expVal
, aStrBuf
.toString()
9811 CPPUNIT_ASSERT_EQUAL_MESSAGE
9813 "input Int32 -2147483648 and return OStringBuffer[0]+(-2147483648)",
9814 expVal
.getLength(), aStrBuf
.getLength()
9821 OStringBuffer
aStrBuf( arrOUS
[1] );
9822 OString
expVal( kTestStr60
);
9823 sal_Int32 input
= 11;
9825 aStrBuf
.append( input
);
9827 CPPUNIT_ASSERT_EQUAL_MESSAGE
9829 "input Int32 11 and return OStringBuffer[1]+11",
9830 expVal
, aStrBuf
.toString()
9832 CPPUNIT_ASSERT_EQUAL_MESSAGE
9834 "input Int32 11 and return OStringBuffer[1]+11",
9835 expVal
.getLength(), aStrBuf
.getLength()
9842 OStringBuffer
aStrBuf( arrOUS
[1] );
9843 OString
expVal( kTestStr66
);
9844 sal_Int32 input
= 0;
9846 aStrBuf
.append( input
);
9848 CPPUNIT_ASSERT_EQUAL_MESSAGE
9850 "input Int32 0 and return OStringBuffer[1]+0",
9851 expVal
, aStrBuf
.toString()
9853 CPPUNIT_ASSERT_EQUAL_MESSAGE
9855 "input Int32 0 and return OStringBuffer[1]+0",
9856 expVal
.getLength(), aStrBuf
.getLength()
9863 OStringBuffer
aStrBuf( arrOUS
[1] );
9864 OString
expVal( kTestStr67
);
9865 sal_Int32 input
= -11;
9867 aStrBuf
.append( input
);
9869 CPPUNIT_ASSERT_EQUAL_MESSAGE
9871 "input Int32 -11 and return OStringBuffer[1]+(-11)",
9872 expVal
, aStrBuf
.toString()
9874 CPPUNIT_ASSERT_EQUAL_MESSAGE
9876 "input Int32 -11 and return OStringBuffer[1]+(-11)",
9877 expVal
.getLength(), aStrBuf
.getLength()
9884 OStringBuffer
aStrBuf( arrOUS
[1] );
9885 OString
expVal( kTestStr68
);
9886 sal_Int32 input
= 2147483647;
9888 aStrBuf
.append( input
);
9890 CPPUNIT_ASSERT_EQUAL_MESSAGE
9892 "input Int32 2147483647 and return OStringBuffer[1]+2147483647",
9893 expVal
, aStrBuf
.toString()
9895 CPPUNIT_ASSERT_EQUAL_MESSAGE
9897 "input Int32 2147483647 and return OStringBuffer[1]+2147483647",
9898 expVal
.getLength(), aStrBuf
.getLength()
9905 OStringBuffer
aStrBuf( arrOUS
[1] );
9906 OString
expVal( kTestStr69
);
9907 sal_Int32 input
= SAL_MIN_INT32
/*-2147483648*/;
9909 aStrBuf
.append( input
);
9911 CPPUNIT_ASSERT_EQUAL_MESSAGE
9913 "input Int32 -2147483648 and return OStringBuffer[1]+(-2147483648)",
9914 expVal
, aStrBuf
.toString()
9916 CPPUNIT_ASSERT_EQUAL_MESSAGE
9918 "input Int32 -2147483648 and return OStringBuffer[1]+(-2147483648)",
9919 expVal
.getLength(), aStrBuf
.getLength()
9926 OStringBuffer
aStrBuf( arrOUS
[2] );
9927 OString
expVal( kTestStr60
);
9928 sal_Int32 input
= 11;
9930 aStrBuf
.append( input
);
9932 CPPUNIT_ASSERT_EQUAL_MESSAGE
9934 "input Int32 11 and return OStringBuffer[2]+11",
9935 expVal
, aStrBuf
.toString()
9937 CPPUNIT_ASSERT_EQUAL_MESSAGE
9939 "input Int32 11 and return OStringBuffer[2]+11",
9940 expVal
.getLength(), aStrBuf
.getLength()
9947 OStringBuffer
aStrBuf( arrOUS
[2] );
9948 OString
expVal( kTestStr66
);
9949 sal_Int32 input
= 0;
9951 aStrBuf
.append( input
);
9953 CPPUNIT_ASSERT_EQUAL_MESSAGE
9955 "input Int32 0 and return OUStringBuffer[2]+0",
9956 expVal
, aStrBuf
.toString()
9958 CPPUNIT_ASSERT_EQUAL_MESSAGE
9960 "input Int32 0 and return OUStringBuffer[2]+0",
9961 expVal
.getLength(), aStrBuf
.getLength()
9968 OStringBuffer
aStrBuf( arrOUS
[2] );
9969 OString
expVal( kTestStr67
);
9970 sal_Int32 input
= -11;
9972 aStrBuf
.append( input
);
9974 CPPUNIT_ASSERT_EQUAL_MESSAGE
9976 "input Int32 -11 and return OUStringBuffer[2]+(-11)",
9977 expVal
, aStrBuf
.toString()
9979 CPPUNIT_ASSERT_EQUAL_MESSAGE
9981 "input Int32 -11 and return OUStringBuffer[2]+(-11)",
9982 expVal
.getLength(), aStrBuf
.getLength()
9989 OStringBuffer
aStrBuf( arrOUS
[2] );
9990 OString
expVal( kTestStr68
);
9991 sal_Int32 input
= 2147483647;
9993 aStrBuf
.append( input
);
9995 CPPUNIT_ASSERT_EQUAL_MESSAGE
9997 "input Int32 2147483647 and return OStringBuffer[2]+2147483647",
9998 expVal
, aStrBuf
.toString()
10000 CPPUNIT_ASSERT_EQUAL_MESSAGE
10002 "input Int32 2147483647 and return OStringBuffer[2]+2147483647",
10003 expVal
.getLength(), aStrBuf
.getLength()
10010 OStringBuffer
aStrBuf( arrOUS
[2] );
10011 OString
expVal( kTestStr69
);
10012 sal_Int32 input
= SAL_MIN_INT32
;
10014 aStrBuf
.append( input
);
10016 CPPUNIT_ASSERT_EQUAL_MESSAGE
10018 "input Int32 -2147483648 and return OStringBuffer[2]+(-2147483648)",
10019 expVal
, aStrBuf
.toString()
10021 CPPUNIT_ASSERT_EQUAL_MESSAGE
10023 "input Int32 -2147483648 and return OStringBuffer[2]+(-2147483648)",
10024 expVal
.getLength(), aStrBuf
.getLength()
10031 OStringBuffer
aStrBuf( arrOUS
[3] );
10032 OString
expVal( kTestStr60
);
10033 sal_Int32 input
= 11;
10035 aStrBuf
.append( input
);
10037 CPPUNIT_ASSERT_EQUAL_MESSAGE
10039 "input Int32 11 and return OStringBuffer[3]+11",
10040 expVal
, aStrBuf
.toString()
10042 CPPUNIT_ASSERT_EQUAL_MESSAGE
10044 "input Int32 11 and return OStringBuffer[3]+11",
10045 expVal
.getLength(), aStrBuf
.getLength()
10052 OStringBuffer
aStrBuf( arrOUS
[3] );
10053 OString
expVal( kTestStr66
);
10054 sal_Int32 input
= 0;
10056 aStrBuf
.append( input
);
10058 CPPUNIT_ASSERT_EQUAL_MESSAGE
10060 "input Int32 0 and return OStringBuffer[3]+0",
10061 expVal
, aStrBuf
.toString()
10063 CPPUNIT_ASSERT_EQUAL_MESSAGE
10065 "input Int32 0 and return OStringBuffer[3]+0",
10066 expVal
.getLength(), aStrBuf
.getLength()
10073 OStringBuffer
aStrBuf( arrOUS
[3] );
10074 OString
expVal( kTestStr67
);
10075 sal_Int32 input
= -11;
10077 aStrBuf
.append( input
);
10079 CPPUNIT_ASSERT_EQUAL_MESSAGE
10081 "input Int32 -11 and return OStringBuffer[3]+(-11)",
10082 expVal
, aStrBuf
.toString()
10084 CPPUNIT_ASSERT_EQUAL_MESSAGE
10086 "input Int32 -11 and return OStringBuffer[3]+(-11)",
10087 expVal
.getLength(), aStrBuf
.getLength()
10094 OStringBuffer
aStrBuf( arrOUS
[3] );
10095 OString
expVal( kTestStr68
);
10096 sal_Int32 input
= 2147483647;
10098 aStrBuf
.append( input
);
10100 CPPUNIT_ASSERT_EQUAL_MESSAGE
10102 "input Int32 2147483647 and return OStringBuffer[3]+2147483647",
10103 expVal
, aStrBuf
.toString()
10105 CPPUNIT_ASSERT_EQUAL_MESSAGE
10107 "input Int32 2147483647 and return OStringBuffer[3]+2147483647",
10108 expVal
.getLength(), aStrBuf
.getLength()
10115 OStringBuffer
aStrBuf( arrOUS
[3] );
10116 OString
expVal( kTestStr69
);
10117 sal_Int32 input
= SAL_MIN_INT32
;
10119 aStrBuf
.append( input
);
10121 CPPUNIT_ASSERT_EQUAL_MESSAGE
10123 "input Int32 -2147483648 and return OStringBuffer[3]+(-2147483648)",
10124 expVal
, aStrBuf
.toString()
10126 CPPUNIT_ASSERT_EQUAL_MESSAGE
10128 "input Int32 -2147483648 and return OStringBuffer[3]+(-2147483648)",
10129 expVal
.getLength(), aStrBuf
.getLength()
10136 OStringBuffer
aStrBuf( arrOUS
[4] );
10137 OString
expVal( kTestStr61
);
10138 sal_Int32 input
= 11;
10140 aStrBuf
.append( input
);
10142 CPPUNIT_ASSERT_EQUAL_MESSAGE
10144 "input Int32 11 and return OStringBuffer[4]+11",
10145 expVal
, aStrBuf
.toString()
10147 CPPUNIT_ASSERT_EQUAL_MESSAGE
10149 "input Int32 11 and return OStringBuffer[4]+11",
10150 expVal
.getLength(), aStrBuf
.getLength()
10157 OStringBuffer
aStrBuf( arrOUS
[4] );
10158 OString
expVal( kTestStr70
);
10159 sal_Int32 input
= 0;
10161 aStrBuf
.append( input
);
10163 CPPUNIT_ASSERT_EQUAL_MESSAGE
10165 "input Int32 0 and return OStringBuffer[4]+0",
10166 expVal
, aStrBuf
.toString()
10168 CPPUNIT_ASSERT_EQUAL_MESSAGE
10170 "input Int32 0 and return OStringBuffer[4]+0",
10171 expVal
.getLength(), aStrBuf
.getLength()
10178 OStringBuffer
aStrBuf( arrOUS
[4] );
10179 OString
expVal( kTestStr71
);
10180 sal_Int32 input
= -11;
10182 aStrBuf
.append( input
);
10184 CPPUNIT_ASSERT_EQUAL_MESSAGE
10186 "input Int32 -11 and return OStringBuffer[4]+(-11)",
10187 expVal
, aStrBuf
.toString()
10189 CPPUNIT_ASSERT_EQUAL_MESSAGE
10191 "input Int32 -11 and return OStringBuffer[4]+(-11)",
10192 expVal
.getLength(), aStrBuf
.getLength()
10199 OStringBuffer
aStrBuf( arrOUS
[4] );
10200 OString
expVal( kTestStr72
);
10201 sal_Int32 input
= 2147483647;
10203 aStrBuf
.append( input
);
10205 CPPUNIT_ASSERT_EQUAL_MESSAGE
10207 "input Int32 2147483647 and return OStringBuffer[4]+2147483647",
10208 expVal
, aStrBuf
.toString()
10210 CPPUNIT_ASSERT_EQUAL_MESSAGE
10212 "input Int32 2147483647 and return OStringBuffer[4]+2147483647",
10213 expVal
.getLength(), aStrBuf
.getLength()
10220 OStringBuffer
aStrBuf( arrOUS
[4] );
10221 OString
expVal( kTestStr73
);
10222 sal_Int32 input
= SAL_MIN_INT32
;
10224 aStrBuf
.append( input
);
10226 CPPUNIT_ASSERT_EQUAL_MESSAGE
10228 "input Int32 -2147483648 and return OStringBuffer[4]+(-2147483648)",
10229 expVal
, aStrBuf
.toString()
10231 CPPUNIT_ASSERT_EQUAL_MESSAGE
10233 "input Int32 -2147483648 and return OStringBuffer[4]+(-2147483648)",
10234 expVal
.getLength(), aStrBuf
.getLength()
10241 OStringBuffer
aStrBuf( kSInt32Max
);
10242 OString
expVal( kTestStr60
);
10243 sal_Int32 input
= 11;
10245 aStrBuf
.append( input
);
10247 CPPUNIT_ASSERT_MESSAGE
10249 "input Int32 11 and return OStringBuffer(kSInt32Max)+11",
10250 (aStrBuf
.toString() == expVal
&&
10251 aStrBuf
.getLength() == expVal
.getLength())
10258 OStringBuffer
aStrBuf( kSInt32Max
);
10259 OString
expVal( kTestStr66
);
10260 sal_Int32 input
= 0;
10262 aStrBuf
.append( input
);
10264 CPPUNIT_ASSERT_MESSAGE
10266 "input Int32 0 and return OStringBuffer(kSInt32Max)+0",
10267 (aStrBuf
.toString() == expVal
&&
10268 aStrBuf
.getLength() == expVal
.getLength())
10275 OStringBuffer
aStrBuf( kSInt32Max
);
10276 OString
expVal( kTestStr67
);
10277 sal_Int32 input
= -11;
10279 aStrBuf
.append( input
);
10281 CPPUNIT_ASSERT_MESSAGE
10283 "input Int32 -11 and return OStringBuffer(kSInt32Max)+(-11)",
10284 (aStrBuf
.toString() == expVal
&&
10285 aStrBuf
.getLength() == expVal
.getLength())
10292 OStringBuffer
aStrBuf( kSInt32Max
);
10293 OString
expVal( kTestStr68
);
10294 sal_Int32 input
= 2147483647;
10296 aStrBuf
.append( input
);
10298 CPPUNIT_ASSERT_MESSAGE
10300 "input Int32 2147483647 and return OStringBuffer(kSInt32Max)+2147483647",
10301 (aStrBuf
.toString() == expVal
&&
10302 aStrBuf
.getLength() == expVal
.getLength())
10309 OStringBuffer
aStrBuf( kSInt32Max
);
10310 OString
expVal( kTestStr69
);
10311 sal_Int32 input
= SAL_MIN_INT32
;
10313 aStrBuf
.append( input
);
10315 CPPUNIT_ASSERT_MESSAGE
10317 "input Int32 -2147483648 and return OStringBuffer(kSInt32Max)+(-2147483648)",
10318 (aStrBuf
.toString() == expVal
&&
10319 aStrBuf
.getLength() == expVal
.getLength())
10325 CPPUNIT_TEST_SUITE( append_006_Int32_defaultParam
);
10326 CPPUNIT_TEST( append_001
);
10327 CPPUNIT_TEST( append_002
);
10328 CPPUNIT_TEST( append_003
);
10329 CPPUNIT_TEST( append_004
);
10330 CPPUNIT_TEST( append_005
);
10331 CPPUNIT_TEST( append_006
);
10332 CPPUNIT_TEST( append_007
);
10333 CPPUNIT_TEST( append_008
);
10334 CPPUNIT_TEST( append_009
);
10335 CPPUNIT_TEST( append_010
);
10336 CPPUNIT_TEST( append_011
);
10337 CPPUNIT_TEST( append_012
);
10338 CPPUNIT_TEST( append_013
);
10339 CPPUNIT_TEST( append_014
);
10340 CPPUNIT_TEST( append_015
);
10341 CPPUNIT_TEST( append_016
);
10342 CPPUNIT_TEST( append_017
);
10343 CPPUNIT_TEST( append_018
);
10344 CPPUNIT_TEST( append_019
);
10345 CPPUNIT_TEST( append_020
);
10346 CPPUNIT_TEST( append_021
);
10347 CPPUNIT_TEST( append_022
);
10348 CPPUNIT_TEST( append_023
);
10349 CPPUNIT_TEST( append_024
);
10350 CPPUNIT_TEST( append_025
);
10352 CPPUNIT_TEST( append_026
);
10353 CPPUNIT_TEST( append_027
);
10354 CPPUNIT_TEST( append_028
);
10355 CPPUNIT_TEST( append_029
);
10356 CPPUNIT_TEST( append_030
);
10358 CPPUNIT_TEST_SUITE_END();
10361 // testing the method append( sal_Int64 l, sal_Int16 radix=2 )
10362 // testing the method append( sal_Int64 l, sal_Int16 radix=8 )
10363 // testing the method append( sal_Int64 l, sal_Int16 radix=10 )
10364 // testing the method append( sal_Int64 l, sal_Int16 radix=16 )
10365 // testing the method append( sal_Int64 l, sal_Int16 radix=36 )
10367 class append_007_Int64
: public CppUnit::TestFixture
10372 void setUp() override
10374 arrOUS
[0] = OString( kTestStr7
);
10375 arrOUS
[1] = OString( );
10376 arrOUS
[2] = OString( kTestStr25
);
10377 arrOUS
[3] = OString( "" );
10378 arrOUS
[4] = OString( kTestStr28
);
10383 OStringBuffer
aStrBuf( arrOUS
[0] );
10384 OString
expVal( aStrBuf
.getStr() );
10385 sal_Int64 input
= 0;
10386 sal_Int16 radix
= 2;
10388 expVal
+= OString( "0" );
10389 aStrBuf
.append( input
, radix
);
10391 CPPUNIT_ASSERT_EQUAL_MESSAGE
10393 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
10394 expVal
, OString(aStrBuf
.getStr())
10396 CPPUNIT_ASSERT_EQUAL_MESSAGE
10398 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
10399 expVal
.getLength(), aStrBuf
.getLength()
10406 OStringBuffer
aStrBuf( arrOUS
[0] );
10407 OString
expVal( aStrBuf
.getStr() );
10408 sal_Int64 input
= 4;
10409 sal_Int16 radix
= 2;
10411 expVal
+= OString( "100" );
10412 aStrBuf
.append( input
, radix
);
10414 CPPUNIT_ASSERT_EQUAL_MESSAGE
10416 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
10417 expVal
, OString(aStrBuf
.getStr())
10419 CPPUNIT_ASSERT_EQUAL_MESSAGE
10421 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
10422 expVal
.getLength(), aStrBuf
.getLength()
10429 OStringBuffer
aStrBuf( arrOUS
[0] );
10430 OString
expVal( aStrBuf
.getStr() );
10431 sal_Int64 input
= 8;
10432 sal_Int16 radix
= 2;
10434 expVal
+= OString( "1000" );
10435 aStrBuf
.append( input
, radix
);
10437 CPPUNIT_ASSERT_EQUAL_MESSAGE
10439 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
10440 expVal
, OString(aStrBuf
.getStr())
10442 CPPUNIT_ASSERT_EQUAL_MESSAGE
10444 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
10445 expVal
.getLength(), aStrBuf
.getLength()
10452 OStringBuffer
aStrBuf( arrOUS
[0] );
10453 OString
expVal( aStrBuf
.getStr() );
10454 sal_Int64 input
= 15;
10455 sal_Int16 radix
= 2;
10457 expVal
+= OString( "1111" );
10458 aStrBuf
.append( input
, radix
);
10460 CPPUNIT_ASSERT_EQUAL_MESSAGE
10462 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
10463 expVal
, OString(aStrBuf
.getStr())
10465 CPPUNIT_ASSERT_EQUAL_MESSAGE
10467 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
10468 expVal
.getLength(), aStrBuf
.getLength()
10475 OStringBuffer
aStrBuf( arrOUS
[0] );
10476 OString
expVal( aStrBuf
.getStr() );
10477 sal_Int64 input
= 0;
10478 sal_Int16 radix
= 8;
10480 expVal
+= OString( "0" );
10481 aStrBuf
.append( input
, radix
);
10483 CPPUNIT_ASSERT_EQUAL_MESSAGE
10485 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
10486 expVal
, OString(aStrBuf
.getStr())
10488 CPPUNIT_ASSERT_EQUAL_MESSAGE
10490 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
10491 expVal
.getLength(), aStrBuf
.getLength()
10498 OStringBuffer
aStrBuf( arrOUS
[0] );
10499 OString
expVal( aStrBuf
.getStr() );
10500 sal_Int64 input
= 4;
10501 sal_Int16 radix
= 8;
10503 expVal
+= OString( "4" );
10504 aStrBuf
.append( input
, radix
);
10506 CPPUNIT_ASSERT_EQUAL_MESSAGE
10508 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
10509 expVal
, OString(aStrBuf
.getStr())
10511 CPPUNIT_ASSERT_EQUAL_MESSAGE
10513 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
10514 expVal
.getLength(), aStrBuf
.getLength()
10521 OStringBuffer
aStrBuf( arrOUS
[0] );
10522 OString
expVal( aStrBuf
.getStr() );
10523 sal_Int64 input
= 8;
10524 sal_Int16 radix
= 8;
10526 expVal
+= OString( "10" );
10527 aStrBuf
.append( input
, radix
);
10529 CPPUNIT_ASSERT_EQUAL_MESSAGE
10531 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
10532 expVal
, OString(aStrBuf
.getStr())
10534 CPPUNIT_ASSERT_EQUAL_MESSAGE
10536 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
10537 expVal
.getLength(), aStrBuf
.getLength()
10544 OStringBuffer
aStrBuf( arrOUS
[0] );
10545 OString
expVal( aStrBuf
.getStr() );
10546 sal_Int64 input
= 15;
10547 sal_Int16 radix
= 8;
10549 expVal
+= OString( "17" );
10550 aStrBuf
.append( input
, radix
);
10552 CPPUNIT_ASSERT_EQUAL_MESSAGE
10554 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
10555 expVal
, OString(aStrBuf
.getStr())
10557 CPPUNIT_ASSERT_EQUAL_MESSAGE
10559 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
10560 expVal
.getLength(), aStrBuf
.getLength()
10567 OStringBuffer
aStrBuf( arrOUS
[0] );
10568 OString
expVal( aStrBuf
.getStr() );
10569 sal_Int64 input
= 0;
10570 sal_Int16 radix
= 10;
10572 expVal
+= OString( "0" );
10573 aStrBuf
.append( input
, radix
);
10575 CPPUNIT_ASSERT_EQUAL_MESSAGE
10577 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
10578 expVal
, OString(aStrBuf
.getStr())
10580 CPPUNIT_ASSERT_EQUAL_MESSAGE
10582 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
10583 expVal
.getLength(), aStrBuf
.getLength()
10590 OStringBuffer
aStrBuf( arrOUS
[0] );
10591 OString
expVal( aStrBuf
.getStr() );
10592 sal_Int64 input
= 4;
10593 sal_Int16 radix
= 10;
10595 expVal
+= OString( "4" );
10596 aStrBuf
.append( input
, radix
);
10598 CPPUNIT_ASSERT_EQUAL_MESSAGE
10600 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
10601 expVal
, OString(aStrBuf
.getStr())
10603 CPPUNIT_ASSERT_EQUAL_MESSAGE
10605 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
10606 expVal
.getLength(), aStrBuf
.getLength()
10613 OStringBuffer
aStrBuf( arrOUS
[0] );
10614 OString
expVal( aStrBuf
.getStr() );
10615 sal_Int64 input
= 8;
10616 sal_Int16 radix
= 10;
10618 expVal
+= OString( "8" );
10619 aStrBuf
.append( input
, radix
);
10621 CPPUNIT_ASSERT_EQUAL_MESSAGE
10623 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
10624 expVal
, OString(aStrBuf
.getStr())
10626 CPPUNIT_ASSERT_EQUAL_MESSAGE
10628 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
10629 expVal
.getLength(), aStrBuf
.getLength()
10636 OStringBuffer
aStrBuf( arrOUS
[0] );
10637 OString
expVal( aStrBuf
.getStr() );
10638 sal_Int64 input
= 15;
10639 sal_Int16 radix
= 10;
10641 expVal
+= OString( "15" );
10642 aStrBuf
.append( input
, radix
);
10644 CPPUNIT_ASSERT_EQUAL_MESSAGE
10646 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
10647 expVal
, OString(aStrBuf
.getStr())
10649 CPPUNIT_ASSERT_EQUAL_MESSAGE
10651 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
10652 expVal
.getLength(), aStrBuf
.getLength()
10659 OStringBuffer
aStrBuf( arrOUS
[0] );
10660 OString
expVal( aStrBuf
.getStr() );
10661 sal_Int64 input
= 0;
10662 sal_Int16 radix
= 16;
10664 expVal
+= OString( "0" );
10665 aStrBuf
.append( input
, radix
);
10667 CPPUNIT_ASSERT_EQUAL_MESSAGE
10669 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
10670 expVal
, OString(aStrBuf
.getStr())
10672 CPPUNIT_ASSERT_EQUAL_MESSAGE
10674 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
10675 expVal
.getLength(), aStrBuf
.getLength()
10682 OStringBuffer
aStrBuf( arrOUS
[0] );
10683 OString
expVal( aStrBuf
.getStr() );
10684 sal_Int64 input
= 4;
10685 sal_Int16 radix
= 16;
10687 expVal
+= OString( "4" );
10688 aStrBuf
.append( input
, radix
);
10690 CPPUNIT_ASSERT_EQUAL_MESSAGE
10692 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
10693 expVal
, OString(aStrBuf
.getStr())
10695 CPPUNIT_ASSERT_EQUAL_MESSAGE
10697 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
10698 expVal
.getLength(), aStrBuf
.getLength()
10705 OStringBuffer
aStrBuf( arrOUS
[0] );
10706 OString
expVal( aStrBuf
.getStr() );
10707 sal_Int64 input
= 8;
10708 sal_Int16 radix
= 16;
10710 expVal
+= OString( "8" );
10711 aStrBuf
.append( input
, radix
);
10713 CPPUNIT_ASSERT_EQUAL_MESSAGE
10715 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
10716 expVal
, OString(aStrBuf
.getStr())
10718 CPPUNIT_ASSERT_EQUAL_MESSAGE
10720 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
10721 expVal
.getLength(), aStrBuf
.getLength()
10728 OStringBuffer
aStrBuf( arrOUS
[0] );
10729 OString
expVal( aStrBuf
.getStr() );
10730 sal_Int64 input
= 15;
10731 sal_Int16 radix
= 16;
10733 expVal
+= OString( "f" );
10734 aStrBuf
.append( input
, radix
);
10736 CPPUNIT_ASSERT_EQUAL_MESSAGE
10738 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
10739 expVal
, OString(aStrBuf
.getStr())
10741 CPPUNIT_ASSERT_EQUAL_MESSAGE
10743 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
10744 expVal
.getLength(), aStrBuf
.getLength()
10751 OStringBuffer
aStrBuf( arrOUS
[0] );
10752 OString
expVal( aStrBuf
.getStr() );
10753 sal_Int64 input
= 0;
10754 sal_Int16 radix
= 36;
10756 expVal
+= OString( "0" );
10757 aStrBuf
.append( input
, radix
);
10759 CPPUNIT_ASSERT_EQUAL_MESSAGE
10761 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
10762 expVal
, OString(aStrBuf
.getStr())
10764 CPPUNIT_ASSERT_EQUAL_MESSAGE
10766 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
10767 expVal
.getLength(), aStrBuf
.getLength()
10774 OStringBuffer
aStrBuf( arrOUS
[0] );
10775 OString
expVal( aStrBuf
.getStr() );
10776 sal_Int64 input
= 4;
10777 sal_Int16 radix
= 36;
10779 expVal
+= OString( "4" );
10780 aStrBuf
.append( input
, radix
);
10782 CPPUNIT_ASSERT_EQUAL_MESSAGE
10784 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
10785 expVal
, OString(aStrBuf
.getStr())
10787 CPPUNIT_ASSERT_EQUAL_MESSAGE
10789 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
10790 expVal
.getLength(), aStrBuf
.getLength()
10797 OStringBuffer
aStrBuf( arrOUS
[0] );
10798 OString
expVal( aStrBuf
.getStr() );
10799 sal_Int64 input
= 8;
10800 sal_Int16 radix
= 36;
10802 expVal
+= OString( "8" );
10803 aStrBuf
.append( input
, radix
);
10805 CPPUNIT_ASSERT_EQUAL_MESSAGE
10807 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
10808 expVal
, OString(aStrBuf
.getStr())
10810 CPPUNIT_ASSERT_EQUAL_MESSAGE
10812 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
10813 expVal
.getLength(), aStrBuf
.getLength()
10820 OStringBuffer
aStrBuf( arrOUS
[0] );
10821 OString
expVal( aStrBuf
.getStr() );
10822 sal_Int64 input
= 35;
10823 sal_Int16 radix
= 36;
10825 expVal
+= OString( "z" );
10826 aStrBuf
.append( input
, radix
);
10828 CPPUNIT_ASSERT_EQUAL_MESSAGE
10830 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
10831 expVal
, OString(aStrBuf
.getStr())
10833 CPPUNIT_ASSERT_EQUAL_MESSAGE
10835 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
10836 expVal
.getLength(), aStrBuf
.getLength()
10843 OStringBuffer
aStrBuf( arrOUS
[1] );
10844 OString
expVal( aStrBuf
.getStr() );
10845 sal_Int64 input
= 0;
10846 sal_Int16 radix
= 2;
10848 expVal
+= OString( "0" );
10849 aStrBuf
.append( input
, radix
);
10851 CPPUNIT_ASSERT_EQUAL_MESSAGE
10853 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
10854 expVal
, OString(aStrBuf
.getStr())
10856 CPPUNIT_ASSERT_EQUAL_MESSAGE
10858 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
10859 expVal
.getLength(), aStrBuf
.getLength()
10866 OStringBuffer
aStrBuf( arrOUS
[1] );
10867 OString
expVal( aStrBuf
.getStr() );
10868 sal_Int64 input
= 4;
10869 sal_Int16 radix
= 2;
10871 expVal
+= OString( "100" );
10872 aStrBuf
.append( input
, radix
);
10874 CPPUNIT_ASSERT_EQUAL_MESSAGE
10876 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
10877 expVal
, OString(aStrBuf
.getStr())
10879 CPPUNIT_ASSERT_EQUAL_MESSAGE
10881 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
10882 expVal
.getLength(), aStrBuf
.getLength()
10889 OStringBuffer
aStrBuf( arrOUS
[1] );
10890 OString
expVal( aStrBuf
.getStr() );
10891 sal_Int64 input
= 8;
10892 sal_Int16 radix
= 2;
10894 expVal
+= OString( "1000" );
10895 aStrBuf
.append( input
, radix
);
10897 CPPUNIT_ASSERT_EQUAL_MESSAGE
10899 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
10900 expVal
, OString(aStrBuf
.getStr())
10902 CPPUNIT_ASSERT_EQUAL_MESSAGE
10904 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
10905 expVal
.getLength(), aStrBuf
.getLength()
10912 OStringBuffer
aStrBuf( arrOUS
[1] );
10913 OString
expVal( aStrBuf
.getStr() );
10914 sal_Int64 input
= 15;
10915 sal_Int16 radix
= 2;
10917 expVal
+= OString( "1111" );
10918 aStrBuf
.append( input
, radix
);
10920 CPPUNIT_ASSERT_EQUAL_MESSAGE
10922 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
10923 expVal
, OString(aStrBuf
.getStr())
10925 CPPUNIT_ASSERT_EQUAL_MESSAGE
10927 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
10928 expVal
.getLength(), aStrBuf
.getLength()
10935 OStringBuffer
aStrBuf( arrOUS
[1] );
10936 OString
expVal( aStrBuf
.getStr() );
10937 sal_Int64 input
= 0;
10938 sal_Int16 radix
= 8;
10940 expVal
+= OString( "0" );
10941 aStrBuf
.append( input
, radix
);
10943 CPPUNIT_ASSERT_EQUAL_MESSAGE
10945 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
10946 expVal
, OString(aStrBuf
.getStr())
10948 CPPUNIT_ASSERT_EQUAL_MESSAGE
10950 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
10951 expVal
.getLength(), aStrBuf
.getLength()
10958 OStringBuffer
aStrBuf( arrOUS
[1] );
10959 OString
expVal( aStrBuf
.getStr() );
10960 sal_Int64 input
= 4;
10961 sal_Int16 radix
= 8;
10963 expVal
+= OString( "4" );
10964 aStrBuf
.append( input
, radix
);
10966 CPPUNIT_ASSERT_EQUAL_MESSAGE
10968 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
10969 expVal
, OString(aStrBuf
.getStr())
10971 CPPUNIT_ASSERT_EQUAL_MESSAGE
10973 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
10974 expVal
.getLength(), aStrBuf
.getLength()
10981 OStringBuffer
aStrBuf( arrOUS
[1] );
10982 OString
expVal( aStrBuf
.getStr() );
10983 sal_Int64 input
= 8;
10984 sal_Int16 radix
= 8;
10986 expVal
+= OString( "10" );
10987 aStrBuf
.append( input
, radix
);
10989 CPPUNIT_ASSERT_EQUAL_MESSAGE
10991 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
10992 expVal
, OString(aStrBuf
.getStr())
10994 CPPUNIT_ASSERT_EQUAL_MESSAGE
10996 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
10997 expVal
.getLength(), aStrBuf
.getLength()
11004 OStringBuffer
aStrBuf( arrOUS
[1] );
11005 OString
expVal( aStrBuf
.getStr() );
11006 sal_Int64 input
= 15;
11007 sal_Int16 radix
= 8;
11009 expVal
+= OString( "17" );
11010 aStrBuf
.append( input
, radix
);
11012 CPPUNIT_ASSERT_EQUAL_MESSAGE
11014 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
11015 expVal
, OString(aStrBuf
.getStr())
11017 CPPUNIT_ASSERT_EQUAL_MESSAGE
11019 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
11020 expVal
.getLength(), aStrBuf
.getLength()
11027 OStringBuffer
aStrBuf( arrOUS
[1] );
11028 OString
expVal( aStrBuf
.getStr() );
11029 sal_Int64 input
= 0;
11030 sal_Int16 radix
= 10;
11032 expVal
+= OString( "0" );
11033 aStrBuf
.append( input
, radix
);
11035 CPPUNIT_ASSERT_EQUAL_MESSAGE
11037 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
11038 expVal
, OString(aStrBuf
.getStr())
11040 CPPUNIT_ASSERT_EQUAL_MESSAGE
11042 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
11043 expVal
.getLength(), aStrBuf
.getLength()
11050 OStringBuffer
aStrBuf( arrOUS
[1] );
11051 OString
expVal( aStrBuf
.getStr() );
11052 sal_Int64 input
= 4;
11053 sal_Int16 radix
= 10;
11055 expVal
+= OString( "4" );
11056 aStrBuf
.append( input
, radix
);
11058 CPPUNIT_ASSERT_EQUAL_MESSAGE
11060 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
11061 expVal
, OString(aStrBuf
.getStr())
11063 CPPUNIT_ASSERT_EQUAL_MESSAGE
11065 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
11066 expVal
.getLength(), aStrBuf
.getLength()
11073 OStringBuffer
aStrBuf( arrOUS
[1] );
11074 OString
expVal( aStrBuf
.getStr() );
11075 sal_Int64 input
= 8;
11076 sal_Int16 radix
= 10;
11078 expVal
+= OString( "8" );
11079 aStrBuf
.append( input
, radix
);
11081 CPPUNIT_ASSERT_EQUAL_MESSAGE
11083 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
11084 expVal
, OString(aStrBuf
.getStr())
11086 CPPUNIT_ASSERT_EQUAL_MESSAGE
11088 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
11089 expVal
.getLength(), aStrBuf
.getLength()
11096 OStringBuffer
aStrBuf( arrOUS
[1] );
11097 OString
expVal( aStrBuf
.getStr() );
11098 sal_Int64 input
= 15;
11099 sal_Int16 radix
= 10;
11101 expVal
+= OString( "15" );
11102 aStrBuf
.append( input
, radix
);
11104 CPPUNIT_ASSERT_EQUAL_MESSAGE
11106 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
11107 expVal
, OString(aStrBuf
.getStr())
11109 CPPUNIT_ASSERT_EQUAL_MESSAGE
11111 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
11112 expVal
.getLength(), aStrBuf
.getLength()
11119 OStringBuffer
aStrBuf( arrOUS
[1] );
11120 OString
expVal( aStrBuf
.getStr() );
11121 sal_Int64 input
= 0;
11122 sal_Int16 radix
= 16;
11124 expVal
+= OString( "0" );
11125 aStrBuf
.append( input
, radix
);
11127 CPPUNIT_ASSERT_EQUAL_MESSAGE
11129 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
11130 expVal
, OString(aStrBuf
.getStr())
11132 CPPUNIT_ASSERT_EQUAL_MESSAGE
11134 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
11135 expVal
.getLength(), aStrBuf
.getLength()
11142 OStringBuffer
aStrBuf( arrOUS
[1] );
11143 OString
expVal( aStrBuf
.getStr() );
11144 sal_Int64 input
= 4;
11145 sal_Int16 radix
= 16;
11147 expVal
+= OString( "4" );
11148 aStrBuf
.append( input
, radix
);
11150 CPPUNIT_ASSERT_EQUAL_MESSAGE
11152 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
11153 expVal
, OString(aStrBuf
.getStr())
11155 CPPUNIT_ASSERT_EQUAL_MESSAGE
11157 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
11158 expVal
.getLength(), aStrBuf
.getLength()
11165 OStringBuffer
aStrBuf( arrOUS
[1] );
11166 OString
expVal( aStrBuf
.getStr() );
11167 sal_Int64 input
= 8;
11168 sal_Int16 radix
= 16;
11170 expVal
+= OString( "8" );
11171 aStrBuf
.append( input
, radix
);
11173 CPPUNIT_ASSERT_EQUAL_MESSAGE
11175 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
11176 expVal
, OString(aStrBuf
.getStr())
11178 CPPUNIT_ASSERT_EQUAL_MESSAGE
11180 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
11181 expVal
.getLength(), aStrBuf
.getLength()
11188 OStringBuffer
aStrBuf( arrOUS
[1] );
11189 OString
expVal( aStrBuf
.getStr() );
11190 sal_Int64 input
= 15;
11191 sal_Int16 radix
= 16;
11193 expVal
+= OString( "f" );
11194 aStrBuf
.append( input
, radix
);
11196 CPPUNIT_ASSERT_EQUAL_MESSAGE
11198 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
11199 expVal
, OString(aStrBuf
.getStr())
11201 CPPUNIT_ASSERT_EQUAL_MESSAGE
11203 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
11204 expVal
.getLength(), aStrBuf
.getLength()
11211 OStringBuffer
aStrBuf( arrOUS
[1] );
11212 OString
expVal( aStrBuf
.getStr() );
11213 sal_Int64 input
= 0;
11214 sal_Int16 radix
= 36;
11216 expVal
+= OString( "0" );
11217 aStrBuf
.append( input
, radix
);
11219 CPPUNIT_ASSERT_EQUAL_MESSAGE
11221 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
11222 expVal
, OString(aStrBuf
.getStr())
11224 CPPUNIT_ASSERT_EQUAL_MESSAGE
11226 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
11227 expVal
.getLength(), aStrBuf
.getLength()
11234 OStringBuffer
aStrBuf( arrOUS
[1] );
11235 OString
expVal( aStrBuf
.getStr() );
11236 sal_Int64 input
= 4;
11237 sal_Int16 radix
= 36;
11239 expVal
+= OString( "4" );
11240 aStrBuf
.append( input
, radix
);
11242 CPPUNIT_ASSERT_EQUAL_MESSAGE
11244 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
11245 expVal
, OString(aStrBuf
.getStr())
11247 CPPUNIT_ASSERT_EQUAL_MESSAGE
11249 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
11250 expVal
.getLength(), aStrBuf
.getLength()
11257 OStringBuffer
aStrBuf( arrOUS
[1] );
11258 OString
expVal( aStrBuf
.getStr() );
11259 sal_Int64 input
= 8;
11260 sal_Int16 radix
= 36;
11262 expVal
+= OString( "8" );
11263 aStrBuf
.append( input
, radix
);
11265 CPPUNIT_ASSERT_EQUAL_MESSAGE
11267 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
11268 expVal
, OString(aStrBuf
.getStr())
11270 CPPUNIT_ASSERT_EQUAL_MESSAGE
11272 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
11273 expVal
.getLength(), aStrBuf
.getLength()
11280 OStringBuffer
aStrBuf( arrOUS
[1] );
11281 OString
expVal( aStrBuf
.getStr() );
11282 sal_Int64 input
= 35;
11283 sal_Int16 radix
= 36;
11285 expVal
+= OString( "z" );
11286 aStrBuf
.append( input
, radix
);
11288 CPPUNIT_ASSERT_EQUAL_MESSAGE
11290 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
11291 expVal
, OString(aStrBuf
.getStr())
11293 CPPUNIT_ASSERT_EQUAL_MESSAGE
11295 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
11296 expVal
.getLength(), aStrBuf
.getLength()
11303 OStringBuffer
aStrBuf( arrOUS
[2] );
11304 OString
expVal( aStrBuf
.getStr() );
11305 sal_Int64 input
= 0;
11306 sal_Int16 radix
= 2;
11308 expVal
+= OString( "0" );
11309 aStrBuf
.append( input
, radix
);
11311 CPPUNIT_ASSERT_EQUAL_MESSAGE
11313 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
11314 expVal
, OString(aStrBuf
.getStr())
11316 CPPUNIT_ASSERT_EQUAL_MESSAGE
11318 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
11319 expVal
.getLength(), aStrBuf
.getLength()
11326 OStringBuffer
aStrBuf( arrOUS
[2] );
11327 OString
expVal( aStrBuf
.getStr() );
11328 sal_Int64 input
= 4;
11329 sal_Int16 radix
= 2;
11331 expVal
+= OString( "100" );
11332 aStrBuf
.append( input
, radix
);
11334 CPPUNIT_ASSERT_EQUAL_MESSAGE
11336 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
11337 expVal
, OString(aStrBuf
.getStr())
11339 CPPUNIT_ASSERT_EQUAL_MESSAGE
11341 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
11342 expVal
.getLength(), aStrBuf
.getLength()
11349 OStringBuffer
aStrBuf( arrOUS
[2] );
11350 OString
expVal( aStrBuf
.getStr() );
11351 sal_Int64 input
= 8;
11352 sal_Int16 radix
= 2;
11354 expVal
+= OString( "1000" );
11355 aStrBuf
.append( input
, radix
);
11357 CPPUNIT_ASSERT_EQUAL_MESSAGE
11359 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
11360 expVal
, OString(aStrBuf
.getStr())
11362 CPPUNIT_ASSERT_EQUAL_MESSAGE
11364 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
11365 expVal
.getLength(), aStrBuf
.getLength()
11372 OStringBuffer
aStrBuf( arrOUS
[2] );
11373 OString
expVal( aStrBuf
.getStr() );
11374 sal_Int64 input
= 15;
11375 sal_Int16 radix
= 2;
11377 expVal
+= OString( "1111" );
11378 aStrBuf
.append( input
, radix
);
11380 CPPUNIT_ASSERT_EQUAL_MESSAGE
11382 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
11383 expVal
, OString(aStrBuf
.getStr())
11385 CPPUNIT_ASSERT_EQUAL_MESSAGE
11387 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
11388 expVal
.getLength(), aStrBuf
.getLength()
11395 OStringBuffer
aStrBuf( arrOUS
[2] );
11396 OString
expVal( aStrBuf
.getStr() );
11397 sal_Int64 input
= 0;
11398 sal_Int16 radix
= 8;
11400 expVal
+= OString( "0" );
11401 aStrBuf
.append( input
, radix
);
11403 CPPUNIT_ASSERT_EQUAL_MESSAGE
11405 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
11406 expVal
, OString(aStrBuf
.getStr())
11408 CPPUNIT_ASSERT_EQUAL_MESSAGE
11410 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
11411 expVal
.getLength(), aStrBuf
.getLength()
11418 OStringBuffer
aStrBuf( arrOUS
[2] );
11419 OString
expVal( aStrBuf
.getStr() );
11420 sal_Int64 input
= 4;
11421 sal_Int16 radix
= 8;
11423 expVal
+= OString( "4" );
11424 aStrBuf
.append( input
, radix
);
11426 CPPUNIT_ASSERT_EQUAL_MESSAGE
11428 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
11429 expVal
, OString(aStrBuf
.getStr())
11431 CPPUNIT_ASSERT_EQUAL_MESSAGE
11433 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
11434 expVal
.getLength(), aStrBuf
.getLength()
11441 OStringBuffer
aStrBuf( arrOUS
[2] );
11442 OString
expVal( aStrBuf
.getStr() );
11443 sal_Int64 input
= 8;
11444 sal_Int16 radix
= 8;
11446 expVal
+= OString( "10" );
11447 aStrBuf
.append( input
, radix
);
11449 CPPUNIT_ASSERT_EQUAL_MESSAGE
11451 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
11452 expVal
, OString(aStrBuf
.getStr())
11454 CPPUNIT_ASSERT_EQUAL_MESSAGE
11456 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
11457 expVal
.getLength(), aStrBuf
.getLength()
11464 OStringBuffer
aStrBuf( arrOUS
[2] );
11465 OString
expVal( aStrBuf
.getStr() );
11466 sal_Int64 input
= 15;
11467 sal_Int16 radix
= 8;
11469 expVal
+= OString( "17" );
11470 aStrBuf
.append( input
, radix
);
11472 CPPUNIT_ASSERT_EQUAL_MESSAGE
11474 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
11475 expVal
, OString(aStrBuf
.getStr())
11477 CPPUNIT_ASSERT_EQUAL_MESSAGE
11479 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
11480 expVal
.getLength(), aStrBuf
.getLength()
11487 OStringBuffer
aStrBuf( arrOUS
[2] );
11488 OString
expVal( aStrBuf
.getStr() );
11489 sal_Int64 input
= 0;
11490 sal_Int16 radix
= 10;
11492 expVal
+= OString( "0" );
11493 aStrBuf
.append( input
, radix
);
11495 CPPUNIT_ASSERT_EQUAL_MESSAGE
11497 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
11498 expVal
, OString(aStrBuf
.getStr())
11500 CPPUNIT_ASSERT_EQUAL_MESSAGE
11502 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
11503 expVal
.getLength(), aStrBuf
.getLength()
11510 OStringBuffer
aStrBuf( arrOUS
[2] );
11511 OString
expVal( aStrBuf
.getStr() );
11512 sal_Int64 input
= 4;
11513 sal_Int16 radix
= 10;
11515 expVal
+= OString( "4" );
11516 aStrBuf
.append( input
, radix
);
11518 CPPUNIT_ASSERT_EQUAL_MESSAGE
11520 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
11521 expVal
, OString(aStrBuf
.getStr())
11523 CPPUNIT_ASSERT_EQUAL_MESSAGE
11525 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
11526 expVal
.getLength(), aStrBuf
.getLength()
11533 OStringBuffer
aStrBuf( arrOUS
[2] );
11534 OString
expVal( aStrBuf
.getStr() );
11535 sal_Int64 input
= 8;
11536 sal_Int16 radix
= 10;
11538 expVal
+= OString( "8" );
11539 aStrBuf
.append( input
, radix
);
11541 CPPUNIT_ASSERT_EQUAL_MESSAGE
11543 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
11544 expVal
, OString(aStrBuf
.getStr())
11546 CPPUNIT_ASSERT_EQUAL_MESSAGE
11548 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
11549 expVal
.getLength(), aStrBuf
.getLength()
11556 OStringBuffer
aStrBuf( arrOUS
[2] );
11557 OString
expVal( aStrBuf
.getStr() );
11558 sal_Int64 input
= 15;
11559 sal_Int16 radix
= 10;
11561 expVal
+= OString( "15" );
11562 aStrBuf
.append( input
, radix
);
11564 CPPUNIT_ASSERT_EQUAL_MESSAGE
11566 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
11567 expVal
, OString(aStrBuf
.getStr())
11569 CPPUNIT_ASSERT_EQUAL_MESSAGE
11571 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
11572 expVal
.getLength(), aStrBuf
.getLength()
11579 OStringBuffer
aStrBuf( arrOUS
[2] );
11580 OString
expVal( aStrBuf
.getStr() );
11581 sal_Int64 input
= 0;
11582 sal_Int16 radix
= 16;
11584 expVal
+= OString( "0" );
11585 aStrBuf
.append( input
, radix
);
11587 CPPUNIT_ASSERT_EQUAL_MESSAGE
11589 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
11590 expVal
, OString(aStrBuf
.getStr())
11592 CPPUNIT_ASSERT_EQUAL_MESSAGE
11594 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
11595 expVal
.getLength(), aStrBuf
.getLength()
11602 OStringBuffer
aStrBuf( arrOUS
[2] );
11603 OString
expVal( aStrBuf
.getStr() );
11604 sal_Int64 input
= 4;
11605 sal_Int16 radix
= 16;
11607 expVal
+= OString( "4" );
11608 aStrBuf
.append( input
, radix
);
11610 CPPUNIT_ASSERT_EQUAL_MESSAGE
11612 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
11613 expVal
, OString(aStrBuf
.getStr())
11615 CPPUNIT_ASSERT_EQUAL_MESSAGE
11617 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
11618 expVal
.getLength(), aStrBuf
.getLength()
11625 OStringBuffer
aStrBuf( arrOUS
[2] );
11626 OString
expVal( aStrBuf
.getStr() );
11627 sal_Int64 input
= 8;
11628 sal_Int16 radix
= 16;
11630 expVal
+= OString( "8" );
11631 aStrBuf
.append( input
, radix
);
11633 CPPUNIT_ASSERT_EQUAL_MESSAGE
11635 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
11636 expVal
, OString(aStrBuf
.getStr())
11638 CPPUNIT_ASSERT_EQUAL_MESSAGE
11640 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
11641 expVal
.getLength(), aStrBuf
.getLength()
11648 OStringBuffer
aStrBuf( arrOUS
[2] );
11649 OString
expVal( aStrBuf
.getStr() );
11650 sal_Int64 input
= 15;
11651 sal_Int16 radix
= 16;
11653 expVal
+= OString( "f" );
11654 aStrBuf
.append( input
, radix
);
11656 CPPUNIT_ASSERT_EQUAL_MESSAGE
11658 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
11659 expVal
, OString(aStrBuf
.getStr())
11661 CPPUNIT_ASSERT_EQUAL_MESSAGE
11663 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
11664 expVal
.getLength(), aStrBuf
.getLength()
11671 OStringBuffer
aStrBuf( arrOUS
[2] );
11672 OString
expVal( aStrBuf
.getStr() );
11673 sal_Int64 input
= 0;
11674 sal_Int16 radix
= 36;
11676 expVal
+= OString( "0" );
11677 aStrBuf
.append( input
, radix
);
11679 CPPUNIT_ASSERT_EQUAL_MESSAGE
11681 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
11682 expVal
, OString(aStrBuf
.getStr())
11684 CPPUNIT_ASSERT_EQUAL_MESSAGE
11686 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
11687 expVal
.getLength(), aStrBuf
.getLength()
11694 OStringBuffer
aStrBuf( arrOUS
[2] );
11695 OString
expVal( aStrBuf
.getStr() );
11696 sal_Int64 input
= 4;
11697 sal_Int16 radix
= 36;
11699 expVal
+= OString( "4" );
11700 aStrBuf
.append( input
, radix
);
11702 CPPUNIT_ASSERT_EQUAL_MESSAGE
11704 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
11705 expVal
, OString(aStrBuf
.getStr())
11707 CPPUNIT_ASSERT_EQUAL_MESSAGE
11709 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
11710 expVal
.getLength(), aStrBuf
.getLength()
11717 OStringBuffer
aStrBuf( arrOUS
[2] );
11718 OString
expVal( aStrBuf
.getStr() );
11719 sal_Int64 input
= 8;
11720 sal_Int16 radix
= 36;
11722 expVal
+= OString( "8" );
11723 aStrBuf
.append( input
, radix
);
11725 CPPUNIT_ASSERT_EQUAL_MESSAGE
11727 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
11728 expVal
, OString(aStrBuf
.getStr())
11730 CPPUNIT_ASSERT_EQUAL_MESSAGE
11732 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
11733 expVal
.getLength(), aStrBuf
.getLength()
11740 OStringBuffer
aStrBuf( arrOUS
[2] );
11741 OString
expVal( aStrBuf
.getStr() );
11742 sal_Int64 input
= 35;
11743 sal_Int16 radix
= 36;
11745 expVal
+= OString( "z" );
11746 aStrBuf
.append( input
, radix
);
11748 CPPUNIT_ASSERT_EQUAL_MESSAGE
11750 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
11751 expVal
, OString(aStrBuf
.getStr())
11753 CPPUNIT_ASSERT_EQUAL_MESSAGE
11755 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
11756 expVal
.getLength(), aStrBuf
.getLength()
11763 OStringBuffer
aStrBuf( arrOUS
[3] );
11764 OString
expVal( aStrBuf
.getStr() );
11765 sal_Int64 input
= 0;
11766 sal_Int16 radix
= 2;
11768 expVal
+= OString( "0" );
11769 aStrBuf
.append( input
, radix
);
11771 CPPUNIT_ASSERT_EQUAL_MESSAGE
11773 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
11774 expVal
, OString(aStrBuf
.getStr())
11776 CPPUNIT_ASSERT_EQUAL_MESSAGE
11778 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
11779 expVal
.getLength(), aStrBuf
.getLength()
11786 OStringBuffer
aStrBuf( arrOUS
[3] );
11787 OString
expVal( aStrBuf
.getStr() );
11788 sal_Int64 input
= 4;
11789 sal_Int16 radix
= 2;
11791 expVal
+= OString( "100" );
11792 aStrBuf
.append( input
, radix
);
11794 CPPUNIT_ASSERT_EQUAL_MESSAGE
11796 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
11797 expVal
, OString(aStrBuf
.getStr())
11799 CPPUNIT_ASSERT_EQUAL_MESSAGE
11801 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
11802 expVal
.getLength(), aStrBuf
.getLength()
11809 OStringBuffer
aStrBuf( arrOUS
[3] );
11810 OString
expVal( aStrBuf
.getStr() );
11811 sal_Int64 input
= 8;
11812 sal_Int16 radix
= 2;
11814 expVal
+= OString( "1000" );
11815 aStrBuf
.append( input
, radix
);
11817 CPPUNIT_ASSERT_EQUAL_MESSAGE
11819 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
11820 expVal
, OString(aStrBuf
.getStr())
11822 CPPUNIT_ASSERT_EQUAL_MESSAGE
11824 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
11825 expVal
.getLength(), aStrBuf
.getLength()
11832 OStringBuffer
aStrBuf( arrOUS
[3] );
11833 OString
expVal( aStrBuf
.getStr() );
11834 sal_Int64 input
= 15;
11835 sal_Int16 radix
= 2;
11837 expVal
+= OString( "1111" );
11838 aStrBuf
.append( input
, radix
);
11840 CPPUNIT_ASSERT_EQUAL_MESSAGE
11842 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
11843 expVal
, OString(aStrBuf
.getStr())
11845 CPPUNIT_ASSERT_EQUAL_MESSAGE
11847 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
11848 expVal
.getLength(), aStrBuf
.getLength()
11855 OStringBuffer
aStrBuf( arrOUS
[3] );
11856 OString
expVal( aStrBuf
.getStr() );
11857 sal_Int64 input
= 0;
11858 sal_Int16 radix
= 8;
11860 expVal
+= OString( "0" );
11861 aStrBuf
.append( input
, radix
);
11863 CPPUNIT_ASSERT_EQUAL_MESSAGE
11865 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
11866 expVal
, OString(aStrBuf
.getStr())
11868 CPPUNIT_ASSERT_EQUAL_MESSAGE
11870 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
11871 expVal
.getLength(), aStrBuf
.getLength()
11878 OStringBuffer
aStrBuf( arrOUS
[3] );
11879 OString
expVal( aStrBuf
.getStr() );
11880 sal_Int64 input
= 4;
11881 sal_Int16 radix
= 8;
11883 expVal
+= OString( "4" );
11884 aStrBuf
.append( input
, radix
);
11886 CPPUNIT_ASSERT_EQUAL_MESSAGE
11888 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
11889 expVal
, OString(aStrBuf
.getStr())
11891 CPPUNIT_ASSERT_EQUAL_MESSAGE
11893 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
11894 expVal
.getLength(), aStrBuf
.getLength()
11901 OStringBuffer
aStrBuf( arrOUS
[3] );
11902 OString
expVal( aStrBuf
.getStr() );
11903 sal_Int64 input
= 8;
11904 sal_Int16 radix
= 8;
11906 expVal
+= OString( "10" );
11907 aStrBuf
.append( input
, radix
);
11909 CPPUNIT_ASSERT_EQUAL_MESSAGE
11911 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
11912 expVal
, OString(aStrBuf
.getStr())
11914 CPPUNIT_ASSERT_EQUAL_MESSAGE
11916 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
11917 expVal
.getLength(), aStrBuf
.getLength()
11924 OStringBuffer
aStrBuf( arrOUS
[3] );
11925 OString
expVal( aStrBuf
.getStr() );
11926 sal_Int64 input
= 15;
11927 sal_Int16 radix
= 8;
11929 expVal
+= OString( "17" );
11930 aStrBuf
.append( input
, radix
);
11932 CPPUNIT_ASSERT_EQUAL_MESSAGE
11934 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
11935 expVal
, OString(aStrBuf
.getStr())
11937 CPPUNIT_ASSERT_EQUAL_MESSAGE
11939 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
11940 expVal
.getLength(), aStrBuf
.getLength()
11947 OStringBuffer
aStrBuf( arrOUS
[3] );
11948 OString
expVal( aStrBuf
.getStr() );
11949 sal_Int64 input
= 0;
11950 sal_Int16 radix
= 10;
11952 expVal
+= OString( "0" );
11953 aStrBuf
.append( input
, radix
);
11955 CPPUNIT_ASSERT_EQUAL_MESSAGE
11957 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
11958 expVal
, OString(aStrBuf
.getStr())
11960 CPPUNIT_ASSERT_EQUAL_MESSAGE
11962 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
11963 expVal
.getLength(), aStrBuf
.getLength()
11970 OStringBuffer
aStrBuf( arrOUS
[3] );
11971 OString
expVal( aStrBuf
.getStr() );
11972 sal_Int64 input
= 4;
11973 sal_Int16 radix
= 10;
11975 expVal
+= OString( "4" );
11976 aStrBuf
.append( input
, radix
);
11978 CPPUNIT_ASSERT_EQUAL_MESSAGE
11980 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
11981 expVal
, OString(aStrBuf
.getStr())
11983 CPPUNIT_ASSERT_EQUAL_MESSAGE
11985 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
11986 expVal
.getLength(), aStrBuf
.getLength()
11993 OStringBuffer
aStrBuf( arrOUS
[3] );
11994 OString
expVal( aStrBuf
.getStr() );
11995 sal_Int64 input
= 8;
11996 sal_Int16 radix
= 10;
11998 expVal
+= OString( "8" );
11999 aStrBuf
.append( input
, radix
);
12001 CPPUNIT_ASSERT_EQUAL_MESSAGE
12003 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
12004 expVal
, OString(aStrBuf
.getStr())
12006 CPPUNIT_ASSERT_EQUAL_MESSAGE
12008 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
12009 expVal
.getLength(), aStrBuf
.getLength()
12016 OStringBuffer
aStrBuf( arrOUS
[3] );
12017 OString
expVal( aStrBuf
.getStr() );
12018 sal_Int64 input
= 15;
12019 sal_Int16 radix
= 10;
12021 expVal
+= OString( "15" );
12022 aStrBuf
.append( input
, radix
);
12024 CPPUNIT_ASSERT_EQUAL_MESSAGE
12026 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
12027 expVal
, OString(aStrBuf
.getStr())
12029 CPPUNIT_ASSERT_EQUAL_MESSAGE
12031 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
12032 expVal
.getLength(), aStrBuf
.getLength()
12039 OStringBuffer
aStrBuf( arrOUS
[3] );
12040 OString
expVal( aStrBuf
.getStr() );
12041 sal_Int64 input
= 0;
12042 sal_Int16 radix
= 16;
12044 expVal
+= OString( "0" );
12045 aStrBuf
.append( input
, radix
);
12047 CPPUNIT_ASSERT_EQUAL_MESSAGE
12049 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
12050 expVal
, OString(aStrBuf
.getStr())
12052 CPPUNIT_ASSERT_EQUAL_MESSAGE
12054 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
12055 expVal
.getLength(), aStrBuf
.getLength()
12062 OStringBuffer
aStrBuf( arrOUS
[3] );
12063 OString
expVal( aStrBuf
.getStr() );
12064 sal_Int64 input
= 4;
12065 sal_Int16 radix
= 16;
12067 expVal
+= OString( "4" );
12068 aStrBuf
.append( input
, radix
);
12070 CPPUNIT_ASSERT_EQUAL_MESSAGE
12072 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
12073 expVal
, OString(aStrBuf
.getStr())
12075 CPPUNIT_ASSERT_EQUAL_MESSAGE
12077 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
12078 expVal
.getLength(), aStrBuf
.getLength()
12085 OStringBuffer
aStrBuf( arrOUS
[3] );
12086 OString
expVal( aStrBuf
.getStr() );
12087 sal_Int64 input
= 8;
12088 sal_Int16 radix
= 16;
12090 expVal
+= OString( "8" );
12091 aStrBuf
.append( input
, radix
);
12093 CPPUNIT_ASSERT_EQUAL_MESSAGE
12095 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
12096 expVal
, OString(aStrBuf
.getStr())
12098 CPPUNIT_ASSERT_EQUAL_MESSAGE
12100 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
12101 expVal
.getLength(), aStrBuf
.getLength()
12108 OStringBuffer
aStrBuf( arrOUS
[3] );
12109 OString
expVal( aStrBuf
.getStr() );
12110 sal_Int64 input
= 15;
12111 sal_Int16 radix
= 16;
12113 expVal
+= OString( "f" );
12114 aStrBuf
.append( input
, radix
);
12116 CPPUNIT_ASSERT_EQUAL_MESSAGE
12118 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
12119 expVal
, OString(aStrBuf
.getStr())
12121 CPPUNIT_ASSERT_EQUAL_MESSAGE
12123 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
12124 expVal
.getLength(), aStrBuf
.getLength()
12131 OStringBuffer
aStrBuf( arrOUS
[3] );
12132 OString
expVal( aStrBuf
.getStr() );
12133 sal_Int64 input
= 0;
12134 sal_Int16 radix
= 36;
12136 expVal
+= OString( "0" );
12137 aStrBuf
.append( input
, radix
);
12139 CPPUNIT_ASSERT_EQUAL_MESSAGE
12141 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
12142 expVal
, OString(aStrBuf
.getStr())
12144 CPPUNIT_ASSERT_EQUAL_MESSAGE
12146 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
12147 expVal
.getLength(), aStrBuf
.getLength()
12154 OStringBuffer
aStrBuf( arrOUS
[3] );
12155 OString
expVal( aStrBuf
.getStr() );
12156 sal_Int64 input
= 4;
12157 sal_Int16 radix
= 36;
12159 expVal
+= OString( "4" );
12160 aStrBuf
.append( input
, radix
);
12162 CPPUNIT_ASSERT_EQUAL_MESSAGE
12164 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
12165 expVal
, OString(aStrBuf
.getStr())
12167 CPPUNIT_ASSERT_EQUAL_MESSAGE
12169 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
12170 expVal
.getLength(), aStrBuf
.getLength()
12177 OStringBuffer
aStrBuf( arrOUS
[3] );
12178 OString
expVal( aStrBuf
.getStr() );
12179 sal_Int64 input
= 8;
12180 sal_Int16 radix
= 36;
12182 expVal
+= OString( "8" );
12183 aStrBuf
.append( input
, radix
);
12185 CPPUNIT_ASSERT_EQUAL_MESSAGE
12187 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
12188 expVal
, OString(aStrBuf
.getStr())
12190 CPPUNIT_ASSERT_EQUAL_MESSAGE
12192 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
12193 expVal
.getLength(), aStrBuf
.getLength()
12200 OStringBuffer
aStrBuf( arrOUS
[3] );
12201 OString
expVal( aStrBuf
.getStr() );
12202 sal_Int64 input
= 35;
12203 sal_Int16 radix
= 36;
12205 expVal
+= OString( "z" );
12206 aStrBuf
.append( input
, radix
);
12208 CPPUNIT_ASSERT_EQUAL_MESSAGE
12210 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
12211 expVal
, OString(aStrBuf
.getStr())
12213 CPPUNIT_ASSERT_EQUAL_MESSAGE
12215 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
12216 expVal
.getLength(), aStrBuf
.getLength()
12223 OStringBuffer
aStrBuf( arrOUS
[4] );
12224 OString
expVal( aStrBuf
.getStr() );
12225 sal_Int64 input
= 0;
12226 sal_Int16 radix
= 2;
12228 expVal
+= OString( "0" );
12229 aStrBuf
.append( input
, radix
);
12231 CPPUNIT_ASSERT_EQUAL_MESSAGE
12233 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
12234 expVal
, OString(aStrBuf
.getStr())
12236 CPPUNIT_ASSERT_EQUAL_MESSAGE
12238 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
12239 expVal
.getLength(), aStrBuf
.getLength()
12246 OStringBuffer
aStrBuf( arrOUS
[4] );
12247 OString
expVal( aStrBuf
.getStr() );
12248 sal_Int64 input
= 4;
12249 sal_Int16 radix
= 2;
12251 expVal
+= OString( "100" );
12252 aStrBuf
.append( input
, radix
);
12254 CPPUNIT_ASSERT_EQUAL_MESSAGE
12256 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
12257 expVal
, OString(aStrBuf
.getStr())
12259 CPPUNIT_ASSERT_EQUAL_MESSAGE
12261 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
12262 expVal
.getLength(), aStrBuf
.getLength()
12269 OStringBuffer
aStrBuf( arrOUS
[4] );
12270 OString
expVal( aStrBuf
.getStr() );
12271 sal_Int64 input
= 8;
12272 sal_Int16 radix
= 2;
12274 expVal
+= OString( "1000" );
12275 aStrBuf
.append( input
, radix
);
12277 CPPUNIT_ASSERT_EQUAL_MESSAGE
12279 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
12280 expVal
, OString(aStrBuf
.getStr())
12282 CPPUNIT_ASSERT_EQUAL_MESSAGE
12284 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
12285 expVal
.getLength(), aStrBuf
.getLength()
12292 OStringBuffer
aStrBuf( arrOUS
[4] );
12293 OString
expVal( aStrBuf
.getStr() );
12294 sal_Int64 input
= 15;
12295 sal_Int16 radix
= 2;
12297 expVal
+= OString( "1111" );
12298 aStrBuf
.append( input
, radix
);
12300 CPPUNIT_ASSERT_EQUAL_MESSAGE
12302 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
12303 expVal
, OString(aStrBuf
.getStr())
12305 CPPUNIT_ASSERT_EQUAL_MESSAGE
12307 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
12308 expVal
.getLength(), aStrBuf
.getLength()
12315 OStringBuffer
aStrBuf( arrOUS
[4] );
12316 OString
expVal( aStrBuf
.getStr() );
12317 sal_Int64 input
= 0;
12318 sal_Int16 radix
= 8;
12320 expVal
+= OString( "0" );
12321 aStrBuf
.append( input
, radix
);
12323 CPPUNIT_ASSERT_EQUAL_MESSAGE
12325 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
12326 expVal
, OString(aStrBuf
.getStr())
12328 CPPUNIT_ASSERT_EQUAL_MESSAGE
12330 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
12331 expVal
.getLength(), aStrBuf
.getLength()
12338 OStringBuffer
aStrBuf( arrOUS
[4] );
12339 OString
expVal( aStrBuf
.getStr() );
12340 sal_Int64 input
= 4;
12341 sal_Int16 radix
= 8;
12343 expVal
+= OString( "4" );
12344 aStrBuf
.append( input
, radix
);
12346 CPPUNIT_ASSERT_EQUAL_MESSAGE
12348 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
12349 expVal
, OString(aStrBuf
.getStr())
12351 CPPUNIT_ASSERT_EQUAL_MESSAGE
12353 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
12354 expVal
.getLength(), aStrBuf
.getLength()
12361 OStringBuffer
aStrBuf( arrOUS
[4] );
12362 OString
expVal( aStrBuf
.getStr() );
12363 sal_Int64 input
= 8;
12364 sal_Int16 radix
= 8;
12366 expVal
+= OString( "10" );
12367 aStrBuf
.append( input
, radix
);
12369 CPPUNIT_ASSERT_EQUAL_MESSAGE
12371 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
12372 expVal
, OString(aStrBuf
.getStr())
12374 CPPUNIT_ASSERT_EQUAL_MESSAGE
12376 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
12377 expVal
.getLength(), aStrBuf
.getLength()
12384 OStringBuffer
aStrBuf( arrOUS
[4] );
12385 OString
expVal( aStrBuf
.getStr() );
12386 sal_Int64 input
= 15;
12387 sal_Int16 radix
= 8;
12389 expVal
+= OString( "17" );
12390 aStrBuf
.append( input
, radix
);
12392 CPPUNIT_ASSERT_EQUAL_MESSAGE
12394 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
12395 expVal
, OString(aStrBuf
.getStr())
12397 CPPUNIT_ASSERT_EQUAL_MESSAGE
12399 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
12400 expVal
.getLength(), aStrBuf
.getLength()
12407 OStringBuffer
aStrBuf( arrOUS
[4] );
12408 OString
expVal( aStrBuf
.getStr() );
12409 sal_Int64 input
= 0;
12410 sal_Int16 radix
= 10;
12412 expVal
+= OString( "0" );
12413 aStrBuf
.append( input
, radix
);
12415 CPPUNIT_ASSERT_EQUAL_MESSAGE
12417 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
12418 expVal
, OString(aStrBuf
.getStr())
12420 CPPUNIT_ASSERT_EQUAL_MESSAGE
12422 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
12423 expVal
.getLength(), aStrBuf
.getLength()
12430 OStringBuffer
aStrBuf( arrOUS
[4] );
12431 OString
expVal( aStrBuf
.getStr() );
12432 sal_Int64 input
= 4;
12433 sal_Int16 radix
= 10;
12435 expVal
+= OString( "4" );
12436 aStrBuf
.append( input
, radix
);
12438 CPPUNIT_ASSERT_EQUAL_MESSAGE
12440 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
12441 expVal
, OString(aStrBuf
.getStr())
12443 CPPUNIT_ASSERT_EQUAL_MESSAGE
12445 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
12446 expVal
.getLength(), aStrBuf
.getLength()
12453 OStringBuffer
aStrBuf( arrOUS
[4] );
12454 OString
expVal( aStrBuf
.getStr() );
12455 sal_Int64 input
= 8;
12456 sal_Int16 radix
= 10;
12458 expVal
+= OString( "8" );
12459 aStrBuf
.append( input
, radix
);
12461 CPPUNIT_ASSERT_EQUAL_MESSAGE
12463 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
12464 expVal
, OString(aStrBuf
.getStr())
12466 CPPUNIT_ASSERT_EQUAL_MESSAGE
12468 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
12469 expVal
.getLength(), aStrBuf
.getLength()
12476 OStringBuffer
aStrBuf( arrOUS
[4] );
12477 OString
expVal( aStrBuf
.getStr() );
12478 sal_Int64 input
= 15;
12479 sal_Int16 radix
= 10;
12481 expVal
+= OString( "15" );
12482 aStrBuf
.append( input
, radix
);
12484 CPPUNIT_ASSERT_EQUAL_MESSAGE
12486 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
12487 expVal
, OString(aStrBuf
.getStr())
12489 CPPUNIT_ASSERT_EQUAL_MESSAGE
12491 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
12492 expVal
.getLength(), aStrBuf
.getLength()
12499 OStringBuffer
aStrBuf( arrOUS
[4] );
12500 OString
expVal( aStrBuf
.getStr() );
12501 sal_Int64 input
= 0;
12502 sal_Int16 radix
= 16;
12504 expVal
+= OString( "0" );
12505 aStrBuf
.append( input
, radix
);
12507 CPPUNIT_ASSERT_EQUAL_MESSAGE
12509 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
12510 expVal
, OString(aStrBuf
.getStr())
12512 CPPUNIT_ASSERT_EQUAL_MESSAGE
12514 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
12515 expVal
.getLength(), aStrBuf
.getLength()
12522 OStringBuffer
aStrBuf( arrOUS
[4] );
12523 OString
expVal( aStrBuf
.getStr() );
12524 sal_Int64 input
= 4;
12525 sal_Int16 radix
= 16;
12527 expVal
+= OString( "4" );
12528 aStrBuf
.append( input
, radix
);
12530 CPPUNIT_ASSERT_EQUAL_MESSAGE
12532 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
12533 expVal
, OString(aStrBuf
.getStr())
12535 CPPUNIT_ASSERT_EQUAL_MESSAGE
12537 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
12538 expVal
.getLength(), aStrBuf
.getLength()
12545 OStringBuffer
aStrBuf( arrOUS
[4] );
12546 OString
expVal( aStrBuf
.getStr() );
12547 sal_Int64 input
= 8;
12548 sal_Int16 radix
= 16;
12550 expVal
+= OString( "8" );
12551 aStrBuf
.append( input
, radix
);
12553 CPPUNIT_ASSERT_EQUAL_MESSAGE
12555 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
12556 expVal
, OString(aStrBuf
.getStr())
12558 CPPUNIT_ASSERT_EQUAL_MESSAGE
12560 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
12561 expVal
.getLength(), aStrBuf
.getLength()
12568 OStringBuffer
aStrBuf( arrOUS
[4] );
12569 OString
expVal( aStrBuf
.getStr() );
12570 sal_Int64 input
= 15;
12571 sal_Int16 radix
= 16;
12573 expVal
+= OString( "f" );
12574 aStrBuf
.append( input
, radix
);
12576 CPPUNIT_ASSERT_EQUAL_MESSAGE
12578 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
12579 expVal
, OString(aStrBuf
.getStr())
12581 CPPUNIT_ASSERT_EQUAL_MESSAGE
12583 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
12584 expVal
.getLength(), aStrBuf
.getLength()
12591 OStringBuffer
aStrBuf( arrOUS
[4] );
12592 OString
expVal( aStrBuf
.getStr() );
12593 sal_Int64 input
= 0;
12594 sal_Int16 radix
= 36;
12596 expVal
+= OString( "0" );
12597 aStrBuf
.append( input
, radix
);
12599 CPPUNIT_ASSERT_EQUAL_MESSAGE
12601 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
12602 expVal
, OString(aStrBuf
.getStr())
12604 CPPUNIT_ASSERT_EQUAL_MESSAGE
12606 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
12607 expVal
.getLength(), aStrBuf
.getLength()
12614 OStringBuffer
aStrBuf( arrOUS
[4] );
12615 OString
expVal( aStrBuf
.getStr() );
12616 sal_Int64 input
= 4;
12617 sal_Int16 radix
= 36;
12619 expVal
+= OString( "4" );
12620 aStrBuf
.append( input
, radix
);
12622 CPPUNIT_ASSERT_EQUAL_MESSAGE
12624 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
12625 expVal
, OString(aStrBuf
.getStr())
12627 CPPUNIT_ASSERT_EQUAL_MESSAGE
12629 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
12630 expVal
.getLength(), aStrBuf
.getLength()
12637 OStringBuffer
aStrBuf( arrOUS
[4] );
12638 OString
expVal( aStrBuf
.getStr() );
12639 sal_Int64 input
= 8;
12640 sal_Int16 radix
= 36;
12642 expVal
+= OString( "8" );
12643 aStrBuf
.append( input
, radix
);
12645 CPPUNIT_ASSERT_EQUAL_MESSAGE
12647 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
12648 expVal
, OString(aStrBuf
.getStr())
12650 CPPUNIT_ASSERT_EQUAL_MESSAGE
12652 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
12653 expVal
.getLength(), aStrBuf
.getLength()
12660 OStringBuffer
aStrBuf( arrOUS
[4] );
12661 OString
expVal( aStrBuf
.getStr() );
12662 sal_Int64 input
= 35;
12663 sal_Int16 radix
= 36;
12665 expVal
+= OString( "z" );
12666 aStrBuf
.append( input
, radix
);
12668 CPPUNIT_ASSERT_EQUAL_MESSAGE
12670 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
12671 expVal
, OString(aStrBuf
.getStr())
12673 CPPUNIT_ASSERT_EQUAL_MESSAGE
12675 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
12676 expVal
.getLength(), aStrBuf
.getLength()
12681 CPPUNIT_TEST_SUITE( append_007_Int64
);
12682 CPPUNIT_TEST( append_001
); CPPUNIT_TEST( append_002
);
12683 CPPUNIT_TEST( append_003
); CPPUNIT_TEST( append_004
);
12684 CPPUNIT_TEST( append_005
); CPPUNIT_TEST( append_006
);
12685 CPPUNIT_TEST( append_007
); CPPUNIT_TEST( append_008
);
12686 CPPUNIT_TEST( append_009
); CPPUNIT_TEST( append_010
);
12687 CPPUNIT_TEST( append_011
); CPPUNIT_TEST( append_012
);
12688 CPPUNIT_TEST( append_013
); CPPUNIT_TEST( append_014
);
12689 CPPUNIT_TEST( append_015
); CPPUNIT_TEST( append_016
);
12690 CPPUNIT_TEST( append_017
); CPPUNIT_TEST( append_018
);
12691 CPPUNIT_TEST( append_019
); CPPUNIT_TEST( append_020
);
12692 CPPUNIT_TEST( append_021
); CPPUNIT_TEST( append_022
);
12693 CPPUNIT_TEST( append_023
); CPPUNIT_TEST( append_024
);
12694 CPPUNIT_TEST( append_025
); CPPUNIT_TEST( append_026
);
12695 CPPUNIT_TEST( append_027
); CPPUNIT_TEST( append_028
);
12696 CPPUNIT_TEST( append_029
); CPPUNIT_TEST( append_030
);
12697 CPPUNIT_TEST( append_031
); CPPUNIT_TEST( append_032
);
12698 CPPUNIT_TEST( append_033
); CPPUNIT_TEST( append_034
);
12699 CPPUNIT_TEST( append_035
); CPPUNIT_TEST( append_036
);
12700 CPPUNIT_TEST( append_037
); CPPUNIT_TEST( append_038
);
12701 CPPUNIT_TEST( append_039
); CPPUNIT_TEST( append_040
);
12702 CPPUNIT_TEST( append_041
); CPPUNIT_TEST( append_042
);
12703 CPPUNIT_TEST( append_043
); CPPUNIT_TEST( append_044
);
12704 CPPUNIT_TEST( append_045
); CPPUNIT_TEST( append_046
);
12705 CPPUNIT_TEST( append_047
); CPPUNIT_TEST( append_048
);
12706 CPPUNIT_TEST( append_049
); CPPUNIT_TEST( append_050
);
12707 CPPUNIT_TEST( append_051
); CPPUNIT_TEST( append_052
);
12708 CPPUNIT_TEST( append_053
); CPPUNIT_TEST( append_054
);
12709 CPPUNIT_TEST( append_055
); CPPUNIT_TEST( append_056
);
12710 CPPUNIT_TEST( append_057
); CPPUNIT_TEST( append_058
);
12711 CPPUNIT_TEST( append_059
); CPPUNIT_TEST( append_060
);
12712 CPPUNIT_TEST( append_061
); CPPUNIT_TEST( append_062
);
12713 CPPUNIT_TEST( append_063
); CPPUNIT_TEST( append_064
);
12714 CPPUNIT_TEST( append_065
); CPPUNIT_TEST( append_066
);
12715 CPPUNIT_TEST( append_067
); CPPUNIT_TEST( append_068
);
12716 CPPUNIT_TEST( append_069
); CPPUNIT_TEST( append_070
);
12717 CPPUNIT_TEST( append_071
); CPPUNIT_TEST( append_072
);
12718 CPPUNIT_TEST( append_073
); CPPUNIT_TEST( append_074
);
12719 CPPUNIT_TEST( append_075
); CPPUNIT_TEST( append_076
);
12720 CPPUNIT_TEST( append_077
); CPPUNIT_TEST( append_078
);
12721 CPPUNIT_TEST( append_079
); CPPUNIT_TEST( append_080
);
12722 CPPUNIT_TEST( append_081
); CPPUNIT_TEST( append_082
);
12723 CPPUNIT_TEST( append_083
); CPPUNIT_TEST( append_084
);
12724 CPPUNIT_TEST( append_085
); CPPUNIT_TEST( append_086
);
12725 CPPUNIT_TEST( append_087
); CPPUNIT_TEST( append_088
);
12726 CPPUNIT_TEST( append_089
); CPPUNIT_TEST( append_090
);
12727 CPPUNIT_TEST( append_091
); CPPUNIT_TEST( append_092
);
12728 CPPUNIT_TEST( append_093
); CPPUNIT_TEST( append_094
);
12729 CPPUNIT_TEST( append_095
); CPPUNIT_TEST( append_096
);
12730 CPPUNIT_TEST( append_097
); CPPUNIT_TEST( append_098
);
12731 CPPUNIT_TEST( append_099
); CPPUNIT_TEST( append_100
);
12732 CPPUNIT_TEST_SUITE_END();
12735 // testing the method append( sal_Int64 i, sal_Int16 radix=2 )
12736 // where i = large constants
12737 // testing the method append( sal_Int64 i, sal_Int16 radix=8 )
12738 // where i = large constants
12739 // testing the method append( sal_Int64 i, sal_Int16 radix=10 )
12740 // where i = large constants
12741 // testing the method append( sal_Int64 i, sal_Int16 radix=16 )
12742 // where i = large constants
12743 // testing the method append( sal_Int64 i, sal_Int16 radix=36 )
12744 // where i = large constants
12746 class append_007_Int64_Bounderies
: public CppUnit::TestFixture
12751 void setUp() override
12753 arrOUS
[0] = OString( kTestStr7
);
12754 arrOUS
[1] = OString( );
12755 arrOUS
[2] = OString( kTestStr25
);
12756 arrOUS
[3] = OString( "" );
12757 arrOUS
[4] = OString( kTestStr28
);
12762 OStringBuffer
aStrBuf( arrOUS
[0] );
12763 OString
expVal( aStrBuf
.getStr() );
12764 sal_Int64 input
= kSInt8Max
;
12765 sal_Int16 radix
= 2;
12767 expVal
+= OString( "1111111" );
12768 aStrBuf
.append( input
, radix
);
12770 CPPUNIT_ASSERT_EQUAL_MESSAGE
12772 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
12773 expVal
, OString(aStrBuf
.getStr())
12775 CPPUNIT_ASSERT_EQUAL_MESSAGE
12777 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
12778 expVal
.getLength(), aStrBuf
.getLength()
12785 OStringBuffer
aStrBuf( arrOUS
[0] );
12786 OString
expVal( aStrBuf
.getStr() );
12787 sal_Int64 input
= kSInt64Max
;
12788 sal_Int16 radix
= 2;
12790 expVal
+= OString( "111111111111111111111111111111111111111111111111111111111111111" );
12791 aStrBuf
.append( input
, radix
);
12793 CPPUNIT_ASSERT_EQUAL_MESSAGE
12795 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
12796 expVal
, OString(aStrBuf
.getStr())
12798 CPPUNIT_ASSERT_EQUAL_MESSAGE
12800 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
12801 expVal
.getLength(), aStrBuf
.getLength()
12808 OStringBuffer
aStrBuf( arrOUS
[0] );
12809 OString
expVal( aStrBuf
.getStr() );
12810 sal_Int64 input
= kSInt8Max
;
12811 sal_Int16 radix
= 8;
12813 expVal
+= OString( "177" );
12814 aStrBuf
.append( input
, radix
);
12816 CPPUNIT_ASSERT_EQUAL_MESSAGE
12818 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
12819 expVal
, OString(aStrBuf
.getStr())
12821 CPPUNIT_ASSERT_EQUAL_MESSAGE
12823 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
12824 expVal
.getLength(), aStrBuf
.getLength()
12831 OStringBuffer
aStrBuf( arrOUS
[0] );
12832 OString
expVal( aStrBuf
.getStr() );
12833 sal_Int64 input
= kSInt64Max
;
12834 sal_Int16 radix
= 8;
12836 expVal
+= OString( "777777777777777777777" );
12837 aStrBuf
.append( input
, radix
);
12839 CPPUNIT_ASSERT_EQUAL_MESSAGE
12841 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
12842 expVal
, OString(aStrBuf
.getStr())
12844 CPPUNIT_ASSERT_EQUAL_MESSAGE
12846 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
12847 expVal
.getLength(), aStrBuf
.getLength()
12854 OStringBuffer
aStrBuf( arrOUS
[0] );
12855 OString
expVal( aStrBuf
.getStr() );
12856 sal_Int64 input
= kSInt8Max
;
12857 sal_Int16 radix
= 10;
12859 expVal
+= OString( "127" );
12860 aStrBuf
.append( input
, radix
);
12862 CPPUNIT_ASSERT_EQUAL_MESSAGE
12864 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
12865 expVal
, OString(aStrBuf
.getStr())
12867 CPPUNIT_ASSERT_EQUAL_MESSAGE
12869 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
12870 expVal
.getLength(), aStrBuf
.getLength()
12877 OStringBuffer
aStrBuf( arrOUS
[0] );
12878 OString
expVal( aStrBuf
.getStr() );
12879 sal_Int64 input
= kSInt64Max
;
12880 sal_Int16 radix
= 10;
12882 expVal
+= OString( "9223372036854775807" );
12883 aStrBuf
.append( input
, radix
);
12885 CPPUNIT_ASSERT_EQUAL_MESSAGE
12887 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
12888 expVal
, OString(aStrBuf
.getStr())
12890 CPPUNIT_ASSERT_EQUAL_MESSAGE
12892 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
12893 expVal
.getLength(), aStrBuf
.getLength()
12900 OStringBuffer
aStrBuf( arrOUS
[0] );
12901 OString
expVal( aStrBuf
.getStr() );
12902 sal_Int64 input
= kSInt8Max
;
12903 sal_Int16 radix
= 16;
12905 expVal
+= OString( "7f" );
12906 aStrBuf
.append( input
, radix
);
12908 CPPUNIT_ASSERT_EQUAL_MESSAGE
12910 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
12911 expVal
, OString(aStrBuf
.getStr())
12913 CPPUNIT_ASSERT_EQUAL_MESSAGE
12915 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
12916 expVal
.getLength(), aStrBuf
.getLength()
12923 OStringBuffer
aStrBuf( arrOUS
[0] );
12924 OString
expVal( aStrBuf
.getStr() );
12925 sal_Int64 input
= kSInt64Max
;
12926 sal_Int16 radix
= 16;
12928 expVal
+= OString( "7fffffffffffffff" );
12929 aStrBuf
.append( input
, radix
);
12931 CPPUNIT_ASSERT_EQUAL_MESSAGE
12933 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
12934 expVal
, OString(aStrBuf
.getStr())
12936 CPPUNIT_ASSERT_EQUAL_MESSAGE
12938 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
12939 expVal
.getLength(), aStrBuf
.getLength()
12946 OStringBuffer
aStrBuf( arrOUS
[0] );
12947 OString
expVal( aStrBuf
.getStr() );
12948 sal_Int64 input
= kSInt8Max
;
12949 sal_Int16 radix
= 36;
12951 expVal
+= OString( "3j" );
12952 aStrBuf
.append( input
, radix
);
12954 CPPUNIT_ASSERT_EQUAL_MESSAGE
12956 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
12957 expVal
, OString(aStrBuf
.getStr())
12959 CPPUNIT_ASSERT_EQUAL_MESSAGE
12961 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
12962 expVal
.getLength(), aStrBuf
.getLength()
12969 OStringBuffer
aStrBuf( arrOUS
[0] );
12970 OString
expVal( aStrBuf
.getStr() );
12971 sal_Int64 input
= kSInt64Max
;
12972 sal_Int16 radix
= 36;
12974 expVal
+= OString( "1y2p0ij32e8e7" );
12975 aStrBuf
.append( input
, radix
);
12977 CPPUNIT_ASSERT_EQUAL_MESSAGE
12979 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
12980 expVal
, OString(aStrBuf
.getStr())
12982 CPPUNIT_ASSERT_EQUAL_MESSAGE
12984 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
12985 expVal
.getLength(), aStrBuf
.getLength()
12992 OStringBuffer
aStrBuf( arrOUS
[1] );
12993 OString
expVal( aStrBuf
.getStr() );
12994 sal_Int64 input
= kSInt8Max
;
12995 sal_Int16 radix
= 2;
12997 expVal
+= OString( "1111111" );
12998 aStrBuf
.append( input
, radix
);
13000 CPPUNIT_ASSERT_EQUAL_MESSAGE
13002 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
13003 expVal
, OString(aStrBuf
.getStr())
13005 CPPUNIT_ASSERT_EQUAL_MESSAGE
13007 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
13008 expVal
.getLength(), aStrBuf
.getLength()
13015 OStringBuffer
aStrBuf( arrOUS
[1] );
13016 OString
expVal( aStrBuf
.getStr() );
13017 sal_Int64 input
= kSInt64Max
;
13018 sal_Int16 radix
= 2;
13020 expVal
+= OString( "111111111111111111111111111111111111111111111111111111111111111" );
13021 aStrBuf
.append( input
, radix
);
13023 CPPUNIT_ASSERT_EQUAL_MESSAGE
13025 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
13026 expVal
, OString(aStrBuf
.getStr())
13028 CPPUNIT_ASSERT_EQUAL_MESSAGE
13030 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
13031 expVal
.getLength(), aStrBuf
.getLength()
13038 OStringBuffer
aStrBuf( arrOUS
[1] );
13039 OString
expVal( aStrBuf
.getStr() );
13040 sal_Int64 input
= kSInt8Max
;
13041 sal_Int16 radix
= 8;
13043 expVal
+= OString( "177" );
13044 aStrBuf
.append( input
, radix
);
13046 CPPUNIT_ASSERT_EQUAL_MESSAGE
13048 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
13049 expVal
, OString(aStrBuf
.getStr())
13051 CPPUNIT_ASSERT_EQUAL_MESSAGE
13053 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
13054 expVal
.getLength(), aStrBuf
.getLength()
13061 OStringBuffer
aStrBuf( arrOUS
[1] );
13062 OString
expVal( aStrBuf
.getStr() );
13063 sal_Int64 input
= kSInt64Max
;
13064 sal_Int16 radix
= 8;
13066 expVal
+= OString( "777777777777777777777" );
13067 aStrBuf
.append( input
, radix
);
13069 CPPUNIT_ASSERT_EQUAL_MESSAGE
13071 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
13072 expVal
, OString(aStrBuf
.getStr())
13074 CPPUNIT_ASSERT_EQUAL_MESSAGE
13076 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
13077 expVal
.getLength(), aStrBuf
.getLength()
13084 OStringBuffer
aStrBuf( arrOUS
[1] );
13085 OString
expVal( aStrBuf
.getStr() );
13086 sal_Int64 input
= kSInt8Max
;
13087 sal_Int16 radix
= 10;
13089 expVal
+= OString( "127" );
13090 aStrBuf
.append( input
, radix
);
13092 CPPUNIT_ASSERT_EQUAL_MESSAGE
13094 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
13095 expVal
, OString(aStrBuf
.getStr())
13097 CPPUNIT_ASSERT_EQUAL_MESSAGE
13099 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
13100 expVal
.getLength(), aStrBuf
.getLength()
13107 OStringBuffer
aStrBuf( arrOUS
[1] );
13108 OString
expVal( aStrBuf
.getStr() );
13109 sal_Int64 input
= kSInt64Max
;
13110 sal_Int16 radix
= 10;
13112 expVal
+= OString( "9223372036854775807" );
13113 aStrBuf
.append( input
, radix
);
13115 CPPUNIT_ASSERT_EQUAL_MESSAGE
13117 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
13118 expVal
, OString(aStrBuf
.getStr())
13120 CPPUNIT_ASSERT_EQUAL_MESSAGE
13122 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
13123 expVal
.getLength(), aStrBuf
.getLength()
13130 OStringBuffer
aStrBuf( arrOUS
[1] );
13131 OString
expVal( aStrBuf
.getStr() );
13132 sal_Int64 input
= kSInt8Max
;
13133 sal_Int16 radix
= 16;
13135 expVal
+= OString( "7f" );
13136 aStrBuf
.append( input
, radix
);
13138 CPPUNIT_ASSERT_EQUAL_MESSAGE
13140 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
13141 expVal
, OString(aStrBuf
.getStr())
13143 CPPUNIT_ASSERT_EQUAL_MESSAGE
13145 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
13146 expVal
.getLength(), aStrBuf
.getLength()
13153 OStringBuffer
aStrBuf( arrOUS
[1] );
13154 OString
expVal( aStrBuf
.getStr() );
13155 sal_Int64 input
= kSInt64Max
;
13156 sal_Int16 radix
= 16;
13158 expVal
+= OString( "7fffffffffffffff" );
13159 aStrBuf
.append( input
, radix
);
13161 CPPUNIT_ASSERT_EQUAL_MESSAGE
13163 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
13164 expVal
, OString(aStrBuf
.getStr())
13166 CPPUNIT_ASSERT_EQUAL_MESSAGE
13168 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
13169 expVal
.getLength(), aStrBuf
.getLength()
13176 OStringBuffer
aStrBuf( arrOUS
[1] );
13177 OString
expVal( aStrBuf
.getStr() );
13178 sal_Int64 input
= kSInt8Max
;
13179 sal_Int16 radix
= 36;
13181 expVal
+= OString( "3j" );
13182 aStrBuf
.append( input
, radix
);
13184 CPPUNIT_ASSERT_EQUAL_MESSAGE
13186 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
13187 expVal
, OString(aStrBuf
.getStr())
13189 CPPUNIT_ASSERT_EQUAL_MESSAGE
13191 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
13192 expVal
.getLength(), aStrBuf
.getLength()
13199 OStringBuffer
aStrBuf( arrOUS
[1] );
13200 OString
expVal( aStrBuf
.getStr() );
13201 sal_Int64 input
= kSInt64Max
;
13202 sal_Int16 radix
= 36;
13204 expVal
+= OString( "1y2p0ij32e8e7" );
13205 aStrBuf
.append( input
, radix
);
13207 CPPUNIT_ASSERT_EQUAL_MESSAGE
13209 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
13210 expVal
, OString(aStrBuf
.getStr())
13212 CPPUNIT_ASSERT_EQUAL_MESSAGE
13214 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
13215 expVal
.getLength(), aStrBuf
.getLength()
13222 OStringBuffer
aStrBuf( arrOUS
[2] );
13223 OString
expVal( aStrBuf
.getStr() );
13224 sal_Int64 input
= kSInt8Max
;
13225 sal_Int16 radix
= 2;
13227 expVal
+= OString( "1111111" );
13228 aStrBuf
.append( input
, radix
);
13230 CPPUNIT_ASSERT_EQUAL_MESSAGE
13232 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
13233 expVal
, OString(aStrBuf
.getStr())
13235 CPPUNIT_ASSERT_EQUAL_MESSAGE
13237 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
13238 expVal
.getLength(), aStrBuf
.getLength()
13245 OStringBuffer
aStrBuf( arrOUS
[2] );
13246 OString
expVal( aStrBuf
.getStr() );
13247 sal_Int64 input
= kSInt64Max
;
13248 sal_Int16 radix
= 2;
13250 expVal
+= OString( "111111111111111111111111111111111111111111111111111111111111111" );
13251 aStrBuf
.append( input
, radix
);
13253 CPPUNIT_ASSERT_EQUAL_MESSAGE
13255 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
13256 expVal
, OString(aStrBuf
.getStr())
13258 CPPUNIT_ASSERT_EQUAL_MESSAGE
13260 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
13261 expVal
.getLength(), aStrBuf
.getLength()
13268 OStringBuffer
aStrBuf( arrOUS
[2] );
13269 OString
expVal( aStrBuf
.getStr() );
13270 sal_Int64 input
= kSInt8Max
;
13271 sal_Int16 radix
= 8;
13273 expVal
+= OString( "177" );
13274 aStrBuf
.append( input
, radix
);
13276 CPPUNIT_ASSERT_EQUAL_MESSAGE
13278 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
13279 expVal
, OString(aStrBuf
.getStr())
13281 CPPUNIT_ASSERT_EQUAL_MESSAGE
13283 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
13284 expVal
.getLength(), aStrBuf
.getLength()
13291 OStringBuffer
aStrBuf( arrOUS
[2] );
13292 OString
expVal( aStrBuf
.getStr() );
13293 sal_Int64 input
= kSInt64Max
;
13294 sal_Int16 radix
= 8;
13296 expVal
+= OString( "777777777777777777777" );
13297 aStrBuf
.append( input
, radix
);
13299 CPPUNIT_ASSERT_EQUAL_MESSAGE
13301 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
13302 expVal
, OString(aStrBuf
.getStr())
13304 CPPUNIT_ASSERT_EQUAL_MESSAGE
13306 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
13307 expVal
.getLength(), aStrBuf
.getLength()
13314 OStringBuffer
aStrBuf( arrOUS
[2] );
13315 OString
expVal( aStrBuf
.getStr() );
13316 sal_Int64 input
= kSInt8Max
;
13317 sal_Int16 radix
= 10;
13319 expVal
+= OString( "127" );
13320 aStrBuf
.append( input
, radix
);
13322 CPPUNIT_ASSERT_EQUAL_MESSAGE
13324 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
13325 expVal
, OString(aStrBuf
.getStr())
13327 CPPUNIT_ASSERT_EQUAL_MESSAGE
13329 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
13330 expVal
.getLength(), aStrBuf
.getLength()
13337 OStringBuffer
aStrBuf( arrOUS
[2] );
13338 OString
expVal( aStrBuf
.getStr() );
13339 sal_Int64 input
= kSInt64Max
;
13340 sal_Int16 radix
= 10;
13342 expVal
+= OString( "9223372036854775807" );
13343 aStrBuf
.append( input
, radix
);
13345 CPPUNIT_ASSERT_EQUAL_MESSAGE
13347 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
13348 expVal
, OString(aStrBuf
.getStr())
13350 CPPUNIT_ASSERT_EQUAL_MESSAGE
13352 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
13353 expVal
.getLength(), aStrBuf
.getLength()
13360 OStringBuffer
aStrBuf( arrOUS
[2] );
13361 OString
expVal( aStrBuf
.getStr() );
13362 sal_Int64 input
= kSInt8Max
;
13363 sal_Int16 radix
= 16;
13365 expVal
+= OString( "7f" );
13366 aStrBuf
.append( input
, radix
);
13368 CPPUNIT_ASSERT_EQUAL_MESSAGE
13370 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
13371 expVal
, OString(aStrBuf
.getStr())
13373 CPPUNIT_ASSERT_EQUAL_MESSAGE
13375 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
13376 expVal
.getLength(), aStrBuf
.getLength()
13383 OStringBuffer
aStrBuf( arrOUS
[2] );
13384 OString
expVal( aStrBuf
.getStr() );
13385 sal_Int64 input
= kSInt64Max
;
13386 sal_Int16 radix
= 16;
13388 expVal
+= OString( "7fffffffffffffff" );
13389 aStrBuf
.append( input
, radix
);
13391 CPPUNIT_ASSERT_EQUAL_MESSAGE
13393 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
13394 expVal
, OString(aStrBuf
.getStr())
13396 CPPUNIT_ASSERT_EQUAL_MESSAGE
13398 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
13399 expVal
.getLength(), aStrBuf
.getLength()
13406 OStringBuffer
aStrBuf( arrOUS
[2] );
13407 OString
expVal( aStrBuf
.getStr() );
13408 sal_Int64 input
= kSInt8Max
;
13409 sal_Int16 radix
= 36;
13411 expVal
+= OString( "3j" );
13412 aStrBuf
.append( input
, radix
);
13414 CPPUNIT_ASSERT_EQUAL_MESSAGE
13416 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
13417 expVal
, OString(aStrBuf
.getStr())
13419 CPPUNIT_ASSERT_EQUAL_MESSAGE
13421 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
13422 expVal
.getLength(), aStrBuf
.getLength()
13429 OStringBuffer
aStrBuf( arrOUS
[2] );
13430 OString
expVal( aStrBuf
.getStr() );
13431 sal_Int64 input
= kSInt64Max
;
13432 sal_Int16 radix
= 36;
13434 expVal
+= OString( "1y2p0ij32e8e7" );
13435 aStrBuf
.append( input
, radix
);
13437 CPPUNIT_ASSERT_EQUAL_MESSAGE
13439 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
13440 expVal
, OString(aStrBuf
.getStr())
13442 CPPUNIT_ASSERT_EQUAL_MESSAGE
13444 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
13445 expVal
.getLength(), aStrBuf
.getLength()
13452 OStringBuffer
aStrBuf( arrOUS
[3] );
13453 OString
expVal( aStrBuf
.getStr() );
13454 sal_Int64 input
= kSInt8Max
;
13455 sal_Int16 radix
= 2;
13457 expVal
+= OString( "1111111" );
13458 aStrBuf
.append( input
, radix
);
13460 CPPUNIT_ASSERT_EQUAL_MESSAGE
13462 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
13463 expVal
, OString(aStrBuf
.getStr())
13465 CPPUNIT_ASSERT_EQUAL_MESSAGE
13467 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
13468 expVal
.getLength(), aStrBuf
.getLength()
13475 OStringBuffer
aStrBuf( arrOUS
[3] );
13476 OString
expVal( aStrBuf
.getStr() );
13477 sal_Int64 input
= kSInt64Max
;
13478 sal_Int16 radix
= 2;
13480 expVal
+= OString( "111111111111111111111111111111111111111111111111111111111111111" );
13481 aStrBuf
.append( input
, radix
);
13483 CPPUNIT_ASSERT_EQUAL_MESSAGE
13485 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
13486 expVal
, OString(aStrBuf
.getStr())
13488 CPPUNIT_ASSERT_EQUAL_MESSAGE
13490 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
13491 expVal
.getLength(), aStrBuf
.getLength()
13498 OStringBuffer
aStrBuf( arrOUS
[3] );
13499 OString
expVal( aStrBuf
.getStr() );
13500 sal_Int64 input
= kSInt8Max
;
13501 sal_Int16 radix
= 8;
13503 expVal
+= OString( "177" );
13504 aStrBuf
.append( input
, radix
);
13506 CPPUNIT_ASSERT_EQUAL_MESSAGE
13508 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
13509 expVal
, OString(aStrBuf
.getStr())
13511 CPPUNIT_ASSERT_EQUAL_MESSAGE
13513 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
13514 expVal
.getLength(), aStrBuf
.getLength()
13521 OStringBuffer
aStrBuf( arrOUS
[3] );
13522 OString
expVal( aStrBuf
.getStr() );
13523 sal_Int64 input
= kSInt64Max
;
13524 sal_Int16 radix
= 8;
13526 expVal
+= OString( "777777777777777777777" );
13527 aStrBuf
.append( input
, radix
);
13529 CPPUNIT_ASSERT_EQUAL_MESSAGE
13531 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
13532 expVal
, OString(aStrBuf
.getStr())
13534 CPPUNIT_ASSERT_EQUAL_MESSAGE
13536 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
13537 expVal
.getLength(), aStrBuf
.getLength()
13544 OStringBuffer
aStrBuf( arrOUS
[3] );
13545 OString
expVal( aStrBuf
.getStr() );
13546 sal_Int64 input
= kSInt8Max
;
13547 sal_Int16 radix
= 10;
13549 expVal
+= OString( "127" );
13550 aStrBuf
.append( input
, radix
);
13552 CPPUNIT_ASSERT_EQUAL_MESSAGE
13554 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
13555 expVal
, OString(aStrBuf
.getStr())
13557 CPPUNIT_ASSERT_EQUAL_MESSAGE
13559 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
13560 expVal
.getLength(), aStrBuf
.getLength()
13567 OStringBuffer
aStrBuf( arrOUS
[3] );
13568 OString
expVal( aStrBuf
.getStr() );
13569 sal_Int64 input
= kSInt64Max
;
13570 sal_Int16 radix
= 10;
13572 expVal
+= OString( "9223372036854775807" );
13573 aStrBuf
.append( input
, radix
);
13575 CPPUNIT_ASSERT_EQUAL_MESSAGE
13577 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
13578 expVal
, OString(aStrBuf
.getStr())
13580 CPPUNIT_ASSERT_EQUAL_MESSAGE
13582 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
13583 expVal
.getLength(), aStrBuf
.getLength()
13590 OStringBuffer
aStrBuf( arrOUS
[3] );
13591 OString
expVal( aStrBuf
.getStr() );
13592 sal_Int64 input
= kSInt8Max
;
13593 sal_Int16 radix
= 16;
13595 expVal
+= OString( "7f" );
13596 aStrBuf
.append( input
, radix
);
13598 CPPUNIT_ASSERT_EQUAL_MESSAGE
13600 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
13601 expVal
, OString(aStrBuf
.getStr())
13603 CPPUNIT_ASSERT_EQUAL_MESSAGE
13605 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
13606 expVal
.getLength(), aStrBuf
.getLength()
13613 OStringBuffer
aStrBuf( arrOUS
[3] );
13614 OString
expVal( aStrBuf
.getStr() );
13615 sal_Int64 input
= kSInt64Max
;
13616 sal_Int16 radix
= 16;
13618 expVal
+= OString( "7fffffffffffffff" );
13619 aStrBuf
.append( input
, radix
);
13621 CPPUNIT_ASSERT_EQUAL_MESSAGE
13623 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
13624 expVal
, OString(aStrBuf
.getStr())
13626 CPPUNIT_ASSERT_EQUAL_MESSAGE
13628 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
13629 expVal
.getLength(), aStrBuf
.getLength()
13636 OStringBuffer
aStrBuf( arrOUS
[3] );
13637 OString
expVal( aStrBuf
.getStr() );
13638 sal_Int64 input
= kSInt8Max
;
13639 sal_Int16 radix
= 36;
13641 expVal
+= OString( "3j" );
13642 aStrBuf
.append( input
, radix
);
13644 CPPUNIT_ASSERT_EQUAL_MESSAGE
13646 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
13647 expVal
, OString(aStrBuf
.getStr())
13649 CPPUNIT_ASSERT_EQUAL_MESSAGE
13651 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
13652 expVal
.getLength(), aStrBuf
.getLength()
13659 OStringBuffer
aStrBuf( arrOUS
[3] );
13660 OString
expVal( aStrBuf
.getStr() );
13661 sal_Int64 input
= kSInt64Max
;
13662 sal_Int16 radix
= 36;
13664 expVal
+= OString( "1y2p0ij32e8e7" );
13665 aStrBuf
.append( input
, radix
);
13667 CPPUNIT_ASSERT_EQUAL_MESSAGE
13669 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
13670 expVal
, OString(aStrBuf
.getStr())
13672 CPPUNIT_ASSERT_EQUAL_MESSAGE
13674 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
13675 expVal
.getLength(), aStrBuf
.getLength()
13682 OStringBuffer
aStrBuf( arrOUS
[4] );
13683 OString
expVal( aStrBuf
.getStr() );
13684 sal_Int64 input
= kSInt8Max
;
13685 sal_Int16 radix
= 2;
13687 expVal
+= OString( "1111111" );
13688 aStrBuf
.append( input
, radix
);
13690 CPPUNIT_ASSERT_EQUAL_MESSAGE
13692 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
13693 expVal
, OString(aStrBuf
.getStr())
13695 CPPUNIT_ASSERT_EQUAL_MESSAGE
13697 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
13698 expVal
.getLength(), aStrBuf
.getLength()
13705 OStringBuffer
aStrBuf( arrOUS
[4] );
13706 OString
expVal( aStrBuf
.getStr() );
13707 sal_Int64 input
= kSInt64Max
;
13708 sal_Int16 radix
= 2;
13710 expVal
+= OString( "111111111111111111111111111111111111111111111111111111111111111" );
13711 aStrBuf
.append( input
, radix
);
13713 CPPUNIT_ASSERT_EQUAL_MESSAGE
13715 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
13716 expVal
, OString(aStrBuf
.getStr())
13718 CPPUNIT_ASSERT_EQUAL_MESSAGE
13720 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
13721 expVal
.getLength(), aStrBuf
.getLength()
13728 OStringBuffer
aStrBuf( arrOUS
[4] );
13729 OString
expVal( aStrBuf
.getStr() );
13730 sal_Int64 input
= kSInt8Max
;
13731 sal_Int16 radix
= 8;
13733 expVal
+= OString( "177" );
13734 aStrBuf
.append( input
, radix
);
13736 CPPUNIT_ASSERT_EQUAL_MESSAGE
13738 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
13739 expVal
, OString(aStrBuf
.getStr())
13741 CPPUNIT_ASSERT_EQUAL_MESSAGE
13743 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
13744 expVal
.getLength(), aStrBuf
.getLength()
13751 OStringBuffer
aStrBuf( arrOUS
[4] );
13752 OString
expVal( aStrBuf
.getStr() );
13753 sal_Int64 input
= kSInt64Max
;
13754 sal_Int16 radix
= 8;
13756 expVal
+= OString( "777777777777777777777" );
13757 aStrBuf
.append( input
, radix
);
13759 CPPUNIT_ASSERT_EQUAL_MESSAGE
13761 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
13762 expVal
, OString(aStrBuf
.getStr())
13764 CPPUNIT_ASSERT_EQUAL_MESSAGE
13766 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
13767 expVal
.getLength(), aStrBuf
.getLength()
13774 OStringBuffer
aStrBuf( arrOUS
[4] );
13775 OString
expVal( aStrBuf
.getStr() );
13776 sal_Int64 input
= kSInt8Max
;
13777 sal_Int16 radix
= 10;
13779 expVal
+= OString( "127" );
13780 aStrBuf
.append( input
, radix
);
13782 CPPUNIT_ASSERT_EQUAL_MESSAGE
13784 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
13785 expVal
, OString(aStrBuf
.getStr())
13787 CPPUNIT_ASSERT_EQUAL_MESSAGE
13789 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
13790 expVal
.getLength(), aStrBuf
.getLength()
13797 OStringBuffer
aStrBuf( arrOUS
[4] );
13798 OString
expVal( aStrBuf
.getStr() );
13799 sal_Int64 input
= kSInt64Max
;
13800 sal_Int16 radix
= 10;
13802 expVal
+= OString( "9223372036854775807" );
13803 aStrBuf
.append( input
, radix
);
13805 CPPUNIT_ASSERT_EQUAL_MESSAGE
13807 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
13808 expVal
, OString(aStrBuf
.getStr())
13810 CPPUNIT_ASSERT_EQUAL_MESSAGE
13812 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
13813 expVal
.getLength(), aStrBuf
.getLength()
13820 OStringBuffer
aStrBuf( arrOUS
[4] );
13821 OString
expVal( aStrBuf
.getStr() );
13822 sal_Int64 input
= kSInt8Max
;
13823 sal_Int16 radix
= 16;
13825 expVal
+= OString( "7f" );
13826 aStrBuf
.append( input
, radix
);
13828 CPPUNIT_ASSERT_EQUAL_MESSAGE
13830 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
13831 expVal
, OString(aStrBuf
.getStr())
13833 CPPUNIT_ASSERT_EQUAL_MESSAGE
13835 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
13836 expVal
.getLength(), aStrBuf
.getLength()
13843 OStringBuffer
aStrBuf( arrOUS
[4] );
13844 OString
expVal( aStrBuf
.getStr() );
13845 sal_Int64 input
= kSInt64Max
;
13846 sal_Int16 radix
= 16;
13848 expVal
+= OString( "7fffffffffffffff" );
13849 aStrBuf
.append( input
, radix
);
13851 CPPUNIT_ASSERT_EQUAL_MESSAGE
13853 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
13854 expVal
, OString(aStrBuf
.getStr())
13856 CPPUNIT_ASSERT_EQUAL_MESSAGE
13858 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
13859 expVal
.getLength(), aStrBuf
.getLength()
13866 OStringBuffer
aStrBuf( arrOUS
[4] );
13867 OString
expVal( aStrBuf
.getStr() );
13868 sal_Int64 input
= kSInt8Max
;
13869 sal_Int16 radix
= 36;
13871 expVal
+= OString( "3j" );
13872 aStrBuf
.append( input
, radix
);
13874 CPPUNIT_ASSERT_EQUAL_MESSAGE
13876 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
13877 expVal
, OString(aStrBuf
.getStr())
13879 CPPUNIT_ASSERT_EQUAL_MESSAGE
13881 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
13882 expVal
.getLength(), aStrBuf
.getLength()
13889 OStringBuffer
aStrBuf( arrOUS
[4] );
13890 OString
expVal( aStrBuf
.getStr() );
13891 sal_Int64 input
= kSInt64Max
;
13892 sal_Int16 radix
= 36;
13894 expVal
+= OString( "1y2p0ij32e8e7" );
13895 aStrBuf
.append( input
, radix
);
13897 CPPUNIT_ASSERT_EQUAL_MESSAGE
13899 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
13900 expVal
, OString(aStrBuf
.getStr())
13902 CPPUNIT_ASSERT_EQUAL_MESSAGE
13904 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
13905 expVal
.getLength(), aStrBuf
.getLength()
13910 CPPUNIT_TEST_SUITE( append_007_Int64_Bounderies
);
13911 CPPUNIT_TEST( append_001
); CPPUNIT_TEST( append_002
);
13912 CPPUNIT_TEST( append_003
); CPPUNIT_TEST( append_004
);
13913 CPPUNIT_TEST( append_005
); CPPUNIT_TEST( append_006
);
13914 CPPUNIT_TEST( append_007
); CPPUNIT_TEST( append_008
);
13915 CPPUNIT_TEST( append_009
); CPPUNIT_TEST( append_010
);
13916 CPPUNIT_TEST( append_011
); CPPUNIT_TEST( append_012
);
13917 CPPUNIT_TEST( append_013
); CPPUNIT_TEST( append_014
);
13918 CPPUNIT_TEST( append_015
); CPPUNIT_TEST( append_016
);
13919 CPPUNIT_TEST( append_017
); CPPUNIT_TEST( append_018
);
13920 CPPUNIT_TEST( append_019
); CPPUNIT_TEST( append_020
);
13921 CPPUNIT_TEST( append_021
); CPPUNIT_TEST( append_022
);
13922 CPPUNIT_TEST( append_023
); CPPUNIT_TEST( append_024
);
13923 CPPUNIT_TEST( append_025
); CPPUNIT_TEST( append_026
);
13924 CPPUNIT_TEST( append_027
); CPPUNIT_TEST( append_028
);
13925 CPPUNIT_TEST( append_029
); CPPUNIT_TEST( append_030
);
13926 CPPUNIT_TEST( append_031
); CPPUNIT_TEST( append_032
);
13927 CPPUNIT_TEST( append_033
); CPPUNIT_TEST( append_034
);
13928 CPPUNIT_TEST( append_035
); CPPUNIT_TEST( append_036
);
13929 CPPUNIT_TEST( append_037
); CPPUNIT_TEST( append_038
);
13930 CPPUNIT_TEST( append_039
); CPPUNIT_TEST( append_040
);
13931 CPPUNIT_TEST( append_041
); CPPUNIT_TEST( append_042
);
13932 CPPUNIT_TEST( append_043
); CPPUNIT_TEST( append_044
);
13933 CPPUNIT_TEST( append_045
); CPPUNIT_TEST( append_046
);
13934 CPPUNIT_TEST( append_047
); CPPUNIT_TEST( append_048
);
13935 CPPUNIT_TEST( append_049
); CPPUNIT_TEST( append_050
);
13936 CPPUNIT_TEST_SUITE_END();
13939 // testing the method append( sal_Int64 i, sal_Int16 radix=2 )
13940 // for negative value
13941 // testing the method append( sal_Int64 i, sal_Int16 radix=8 )
13942 // for negative value
13943 // testing the method append( sal_Int64 i, sal_Int16 radix=10 )
13944 // for negative value
13945 // testing the method append( sal_Int64 i, sal_Int16 radix=16 )
13946 // for negative value
13947 // testing the method append( sal_Int64 i, sal_Int16 radix=36 )
13948 // for negative value
13950 class append_007_Int64_Negative
: public CppUnit::TestFixture
13955 void setUp() override
13957 arrOUS
[0] = OString( kTestStr7
);
13958 arrOUS
[1] = OString( );
13959 arrOUS
[2] = OString( kTestStr25
);
13960 arrOUS
[3] = OString( "" );
13961 arrOUS
[4] = OString( kTestStr28
);
13966 OStringBuffer
aStrBuf( arrOUS
[0] );
13967 OString
expVal( aStrBuf
.getStr() );
13968 sal_Int64 input
= -0;
13969 sal_Int16 radix
= 2;
13971 expVal
+= OString( "0" );
13972 aStrBuf
.append( input
, radix
);
13974 CPPUNIT_ASSERT_EQUAL_MESSAGE
13976 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
13977 expVal
, OString(aStrBuf
.getStr())
13979 CPPUNIT_ASSERT_EQUAL_MESSAGE
13981 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
13982 expVal
.getLength(), aStrBuf
.getLength()
13989 OStringBuffer
aStrBuf( arrOUS
[0] );
13990 OString
expVal( aStrBuf
.getStr() );
13991 sal_Int64 input
= -4;
13992 sal_Int16 radix
= 2;
13994 expVal
+= OString( "-" );
13995 expVal
+= OString( "100" );
13996 aStrBuf
.append( input
, radix
);
13998 CPPUNIT_ASSERT_EQUAL_MESSAGE
14000 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
14001 expVal
, OString(aStrBuf
.getStr())
14003 CPPUNIT_ASSERT_EQUAL_MESSAGE
14005 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
14006 expVal
.getLength(), aStrBuf
.getLength()
14013 OStringBuffer
aStrBuf( arrOUS
[0] );
14014 OString
expVal( aStrBuf
.getStr() );
14015 sal_Int64 input
= -8;
14016 sal_Int16 radix
= 2;
14018 expVal
+= OString( "-" );
14019 expVal
+= OString( "1000" );
14020 aStrBuf
.append( input
, radix
);
14022 CPPUNIT_ASSERT_EQUAL_MESSAGE
14024 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
14025 expVal
, OString(aStrBuf
.getStr())
14027 CPPUNIT_ASSERT_EQUAL_MESSAGE
14029 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
14030 expVal
.getLength(), aStrBuf
.getLength()
14037 OStringBuffer
aStrBuf( arrOUS
[0] );
14038 OString
expVal( aStrBuf
.getStr() );
14039 sal_Int64 input
= -15;
14040 sal_Int16 radix
= 2;
14042 expVal
+= OString( "-" );
14043 expVal
+= OString( "1111" );
14044 aStrBuf
.append( input
, radix
);
14046 CPPUNIT_ASSERT_EQUAL_MESSAGE
14048 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
14049 expVal
, OString(aStrBuf
.getStr())
14051 CPPUNIT_ASSERT_EQUAL_MESSAGE
14053 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
14054 expVal
.getLength(), aStrBuf
.getLength()
14061 OStringBuffer
aStrBuf( arrOUS
[0] );
14062 OString
expVal( aStrBuf
.getStr() );
14063 sal_Int64 input
= -0;
14064 sal_Int16 radix
= 8;
14066 expVal
+= OString( "0" );
14067 aStrBuf
.append( input
, radix
);
14069 CPPUNIT_ASSERT_EQUAL_MESSAGE
14071 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
14072 expVal
, OString(aStrBuf
.getStr())
14074 CPPUNIT_ASSERT_EQUAL_MESSAGE
14076 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
14077 expVal
.getLength(), aStrBuf
.getLength()
14084 OStringBuffer
aStrBuf( arrOUS
[0] );
14085 OString
expVal( aStrBuf
.getStr() );
14086 sal_Int64 input
= -4;
14087 sal_Int16 radix
= 8;
14089 expVal
+= OString( "-" );
14090 expVal
+= OString( "4" );
14091 aStrBuf
.append( input
, radix
);
14093 CPPUNIT_ASSERT_EQUAL_MESSAGE
14095 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
14096 expVal
, OString(aStrBuf
.getStr())
14098 CPPUNIT_ASSERT_EQUAL_MESSAGE
14100 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
14101 expVal
.getLength(), aStrBuf
.getLength()
14108 OStringBuffer
aStrBuf( arrOUS
[0] );
14109 OString
expVal( aStrBuf
.getStr() );
14110 sal_Int64 input
= -8;
14111 sal_Int16 radix
= 8;
14113 expVal
+= OString( "-" );
14114 expVal
+= OString( "10" );
14115 aStrBuf
.append( input
, radix
);
14117 CPPUNIT_ASSERT_EQUAL_MESSAGE
14119 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
14120 expVal
, OString(aStrBuf
.getStr())
14122 CPPUNIT_ASSERT_EQUAL_MESSAGE
14124 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
14125 expVal
.getLength(), aStrBuf
.getLength()
14132 OStringBuffer
aStrBuf( arrOUS
[0] );
14133 OString
expVal( aStrBuf
.getStr() );
14134 sal_Int64 input
= -15;
14135 sal_Int16 radix
= 8;
14137 expVal
+= OString( "-" );
14138 expVal
+= OString( "17" );
14139 aStrBuf
.append( input
, radix
);
14141 CPPUNIT_ASSERT_EQUAL_MESSAGE
14143 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
14144 expVal
, OString(aStrBuf
.getStr())
14146 CPPUNIT_ASSERT_EQUAL_MESSAGE
14148 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
14149 expVal
.getLength(), aStrBuf
.getLength()
14156 OStringBuffer
aStrBuf( arrOUS
[0] );
14157 OString
expVal( aStrBuf
.getStr() );
14158 sal_Int64 input
= -0;
14159 sal_Int16 radix
= 10;
14161 expVal
+= OString( "0" );
14162 aStrBuf
.append( input
, radix
);
14164 CPPUNIT_ASSERT_EQUAL_MESSAGE
14166 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
14167 expVal
, OString(aStrBuf
.getStr())
14169 CPPUNIT_ASSERT_EQUAL_MESSAGE
14171 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
14172 expVal
.getLength(), aStrBuf
.getLength()
14179 OStringBuffer
aStrBuf( arrOUS
[0] );
14180 OString
expVal( aStrBuf
.getStr() );
14181 sal_Int64 input
= -4;
14182 sal_Int16 radix
= 10;
14184 expVal
+= OString( "-" );
14185 expVal
+= OString( "4" );
14186 aStrBuf
.append( input
, radix
);
14188 CPPUNIT_ASSERT_EQUAL_MESSAGE
14190 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
14191 expVal
, OString(aStrBuf
.getStr())
14193 CPPUNIT_ASSERT_EQUAL_MESSAGE
14195 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
14196 expVal
.getLength(), aStrBuf
.getLength()
14203 OStringBuffer
aStrBuf( arrOUS
[0] );
14204 OString
expVal( aStrBuf
.getStr() );
14205 sal_Int64 input
= -8;
14206 sal_Int16 radix
= 10;
14208 expVal
+= OString( "-" );
14209 expVal
+= OString( "8" );
14210 aStrBuf
.append( input
, radix
);
14212 CPPUNIT_ASSERT_EQUAL_MESSAGE
14214 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
14215 expVal
, OString(aStrBuf
.getStr())
14217 CPPUNIT_ASSERT_EQUAL_MESSAGE
14219 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
14220 expVal
.getLength(), aStrBuf
.getLength()
14227 OStringBuffer
aStrBuf( arrOUS
[0] );
14228 OString
expVal( aStrBuf
.getStr() );
14229 sal_Int64 input
= -15;
14230 sal_Int16 radix
= 10;
14232 expVal
+= OString( "-" );
14233 expVal
+= OString( "15" );
14234 aStrBuf
.append( input
, radix
);
14236 CPPUNIT_ASSERT_EQUAL_MESSAGE
14238 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
14239 expVal
, OString(aStrBuf
.getStr())
14241 CPPUNIT_ASSERT_EQUAL_MESSAGE
14243 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
14244 expVal
.getLength(), aStrBuf
.getLength()
14251 OStringBuffer
aStrBuf( arrOUS
[0] );
14252 OString
expVal( aStrBuf
.getStr() );
14253 sal_Int64 input
= -0;
14254 sal_Int16 radix
= 16;
14256 expVal
+= OString( "0" );
14257 aStrBuf
.append( input
, radix
);
14259 CPPUNIT_ASSERT_EQUAL_MESSAGE
14261 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
14262 expVal
, OString(aStrBuf
.getStr())
14264 CPPUNIT_ASSERT_EQUAL_MESSAGE
14266 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
14267 expVal
.getLength(), aStrBuf
.getLength()
14274 OStringBuffer
aStrBuf( arrOUS
[0] );
14275 OString
expVal( aStrBuf
.getStr() );
14276 sal_Int64 input
= -4;
14277 sal_Int16 radix
= 16;
14279 expVal
+= OString( "-" );
14280 expVal
+= OString( "4" );
14281 aStrBuf
.append( input
, radix
);
14283 CPPUNIT_ASSERT_EQUAL_MESSAGE
14285 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
14286 expVal
, OString(aStrBuf
.getStr())
14288 CPPUNIT_ASSERT_EQUAL_MESSAGE
14290 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
14291 expVal
.getLength(), aStrBuf
.getLength()
14298 OStringBuffer
aStrBuf( arrOUS
[0] );
14299 OString
expVal( aStrBuf
.getStr() );
14300 sal_Int64 input
= -8;
14301 sal_Int16 radix
= 16;
14303 expVal
+= OString( "-" );
14304 expVal
+= OString( "8" );
14305 aStrBuf
.append( input
, radix
);
14307 CPPUNIT_ASSERT_EQUAL_MESSAGE
14309 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
14310 expVal
, OString(aStrBuf
.getStr())
14312 CPPUNIT_ASSERT_EQUAL_MESSAGE
14314 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
14315 expVal
.getLength(), aStrBuf
.getLength()
14322 OStringBuffer
aStrBuf( arrOUS
[0] );
14323 OString
expVal( aStrBuf
.getStr() );
14324 sal_Int64 input
= -15;
14325 sal_Int16 radix
= 16;
14327 expVal
+= OString( "-" );
14328 expVal
+= OString( "f" );
14329 aStrBuf
.append( input
, radix
);
14331 CPPUNIT_ASSERT_EQUAL_MESSAGE
14333 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
14334 expVal
, OString(aStrBuf
.getStr())
14336 CPPUNIT_ASSERT_EQUAL_MESSAGE
14338 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
14339 expVal
.getLength(), aStrBuf
.getLength()
14346 OStringBuffer
aStrBuf( arrOUS
[0] );
14347 OString
expVal( aStrBuf
.getStr() );
14348 sal_Int64 input
= -0;
14349 sal_Int16 radix
= 36;
14351 expVal
+= OString( "0" );
14352 aStrBuf
.append( input
, radix
);
14354 CPPUNIT_ASSERT_EQUAL_MESSAGE
14356 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
14357 expVal
, OString(aStrBuf
.getStr())
14359 CPPUNIT_ASSERT_EQUAL_MESSAGE
14361 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
14362 expVal
.getLength(), aStrBuf
.getLength()
14369 OStringBuffer
aStrBuf( arrOUS
[0] );
14370 OString
expVal( aStrBuf
.getStr() );
14371 sal_Int64 input
= -4;
14372 sal_Int16 radix
= 36;
14374 expVal
+= OString( "-" );
14375 expVal
+= OString( "4" );
14376 aStrBuf
.append( input
, radix
);
14378 CPPUNIT_ASSERT_EQUAL_MESSAGE
14380 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
14381 expVal
, OString(aStrBuf
.getStr())
14383 CPPUNIT_ASSERT_EQUAL_MESSAGE
14385 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
14386 expVal
.getLength(), aStrBuf
.getLength()
14393 OStringBuffer
aStrBuf( arrOUS
[0] );
14394 OString
expVal( aStrBuf
.getStr() );
14395 sal_Int64 input
= -8;
14396 sal_Int16 radix
= 36;
14398 expVal
+= OString( "-" );
14399 expVal
+= OString( "8" );
14400 aStrBuf
.append( input
, radix
);
14402 CPPUNIT_ASSERT_EQUAL_MESSAGE
14404 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
14405 expVal
, OString(aStrBuf
.getStr())
14407 CPPUNIT_ASSERT_EQUAL_MESSAGE
14409 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
14410 expVal
.getLength(), aStrBuf
.getLength()
14417 OStringBuffer
aStrBuf( arrOUS
[0] );
14418 OString
expVal( aStrBuf
.getStr() );
14419 sal_Int64 input
= -35;
14420 sal_Int16 radix
= 36;
14422 expVal
+= OString( "-" );
14423 expVal
+= OString( "z" );
14424 aStrBuf
.append( input
, radix
);
14426 CPPUNIT_ASSERT_EQUAL_MESSAGE
14428 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
14429 expVal
, OString(aStrBuf
.getStr())
14431 CPPUNIT_ASSERT_EQUAL_MESSAGE
14433 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
14434 expVal
.getLength(), aStrBuf
.getLength()
14441 OStringBuffer
aStrBuf( arrOUS
[1] );
14442 OString
expVal( aStrBuf
.getStr() );
14443 sal_Int64 input
= -0;
14444 sal_Int16 radix
= 2;
14446 expVal
+= OString( "0" );
14447 aStrBuf
.append( input
, radix
);
14449 CPPUNIT_ASSERT_EQUAL_MESSAGE
14451 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
14452 expVal
, OString(aStrBuf
.getStr())
14454 CPPUNIT_ASSERT_EQUAL_MESSAGE
14456 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
14457 expVal
.getLength(), aStrBuf
.getLength()
14464 OStringBuffer
aStrBuf( arrOUS
[1] );
14465 OString
expVal( aStrBuf
.getStr() );
14466 sal_Int64 input
= -4;
14467 sal_Int16 radix
= 2;
14469 expVal
+= OString( "-" );
14470 expVal
+= OString( "100" );
14471 aStrBuf
.append( input
, radix
);
14473 CPPUNIT_ASSERT_EQUAL_MESSAGE
14475 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
14476 expVal
, OString(aStrBuf
.getStr())
14478 CPPUNIT_ASSERT_EQUAL_MESSAGE
14480 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
14481 expVal
.getLength(), aStrBuf
.getLength()
14488 OStringBuffer
aStrBuf( arrOUS
[1] );
14489 OString
expVal( aStrBuf
.getStr() );
14490 sal_Int64 input
= -8;
14491 sal_Int16 radix
= 2;
14493 expVal
+= OString( "-" );
14494 expVal
+= OString( "1000" );
14495 aStrBuf
.append( input
, radix
);
14497 CPPUNIT_ASSERT_EQUAL_MESSAGE
14499 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
14500 expVal
, OString(aStrBuf
.getStr())
14502 CPPUNIT_ASSERT_EQUAL_MESSAGE
14504 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
14505 expVal
.getLength(), aStrBuf
.getLength()
14512 OStringBuffer
aStrBuf( arrOUS
[1] );
14513 OString
expVal( aStrBuf
.getStr() );
14514 sal_Int64 input
= -15;
14515 sal_Int16 radix
= 2;
14517 expVal
+= OString( "-" );
14518 expVal
+= OString( "1111" );
14519 aStrBuf
.append( input
, radix
);
14521 CPPUNIT_ASSERT_EQUAL_MESSAGE
14523 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
14524 expVal
, OString(aStrBuf
.getStr())
14526 CPPUNIT_ASSERT_EQUAL_MESSAGE
14528 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
14529 expVal
.getLength(), aStrBuf
.getLength()
14536 OStringBuffer
aStrBuf( arrOUS
[1] );
14537 OString
expVal( aStrBuf
.getStr() );
14538 sal_Int64 input
= -0;
14539 sal_Int16 radix
= 8;
14541 expVal
+= OString( "0" );
14542 aStrBuf
.append( input
, radix
);
14544 CPPUNIT_ASSERT_EQUAL_MESSAGE
14546 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
14547 expVal
, OString(aStrBuf
.getStr())
14549 CPPUNIT_ASSERT_EQUAL_MESSAGE
14551 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
14552 expVal
.getLength(), aStrBuf
.getLength()
14559 OStringBuffer
aStrBuf( arrOUS
[1] );
14560 OString
expVal( aStrBuf
.getStr() );
14561 sal_Int64 input
= -4;
14562 sal_Int16 radix
= 8;
14564 expVal
+= OString( "-" );
14565 expVal
+= OString( "4" );
14566 aStrBuf
.append( input
, radix
);
14568 CPPUNIT_ASSERT_EQUAL_MESSAGE
14570 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
14571 expVal
, OString(aStrBuf
.getStr())
14573 CPPUNIT_ASSERT_EQUAL_MESSAGE
14575 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
14576 expVal
.getLength(), aStrBuf
.getLength()
14583 OStringBuffer
aStrBuf( arrOUS
[1] );
14584 OString
expVal( aStrBuf
.getStr() );
14585 sal_Int64 input
= -8;
14586 sal_Int16 radix
= 8;
14588 expVal
+= OString( "-" );
14589 expVal
+= OString( "10" );
14590 aStrBuf
.append( input
, radix
);
14592 CPPUNIT_ASSERT_EQUAL_MESSAGE
14594 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
14595 expVal
, OString(aStrBuf
.getStr())
14597 CPPUNIT_ASSERT_EQUAL_MESSAGE
14599 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
14600 expVal
.getLength(), aStrBuf
.getLength()
14607 OStringBuffer
aStrBuf( arrOUS
[1] );
14608 OString
expVal( aStrBuf
.getStr() );
14609 sal_Int64 input
= -15;
14610 sal_Int16 radix
= 8;
14612 expVal
+= OString( "-" );
14613 expVal
+= OString( "17" );
14614 aStrBuf
.append( input
, radix
);
14616 CPPUNIT_ASSERT_EQUAL_MESSAGE
14618 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
14619 expVal
, OString(aStrBuf
.getStr())
14621 CPPUNIT_ASSERT_EQUAL_MESSAGE
14623 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
14624 expVal
.getLength(), aStrBuf
.getLength()
14631 OStringBuffer
aStrBuf( arrOUS
[1] );
14632 OString
expVal( aStrBuf
.getStr() );
14633 sal_Int64 input
= -0;
14634 sal_Int16 radix
= 10;
14636 expVal
+= OString( "0" );
14637 aStrBuf
.append( input
, radix
);
14639 CPPUNIT_ASSERT_EQUAL_MESSAGE
14641 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
14642 expVal
, OString(aStrBuf
.getStr())
14644 CPPUNIT_ASSERT_EQUAL_MESSAGE
14646 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
14647 expVal
.getLength(), aStrBuf
.getLength()
14654 OStringBuffer
aStrBuf( arrOUS
[1] );
14655 OString
expVal( aStrBuf
.getStr() );
14656 sal_Int64 input
= -4;
14657 sal_Int16 radix
= 10;
14659 expVal
+= OString( "-" );
14660 expVal
+= OString( "4" );
14661 aStrBuf
.append( input
, radix
);
14663 CPPUNIT_ASSERT_EQUAL_MESSAGE
14665 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
14666 expVal
, OString(aStrBuf
.getStr())
14668 CPPUNIT_ASSERT_EQUAL_MESSAGE
14670 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
14671 expVal
.getLength(), aStrBuf
.getLength()
14678 OStringBuffer
aStrBuf( arrOUS
[1] );
14679 OString
expVal( aStrBuf
.getStr() );
14680 sal_Int64 input
= -8;
14681 sal_Int16 radix
= 10;
14683 expVal
+= OString( "-" );
14684 expVal
+= OString( "8" );
14685 aStrBuf
.append( input
, radix
);
14687 CPPUNIT_ASSERT_EQUAL_MESSAGE
14689 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
14690 expVal
, OString(aStrBuf
.getStr())
14692 CPPUNIT_ASSERT_EQUAL_MESSAGE
14694 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
14695 expVal
.getLength(), aStrBuf
.getLength()
14702 OStringBuffer
aStrBuf( arrOUS
[1] );
14703 OString
expVal( aStrBuf
.getStr() );
14704 sal_Int64 input
= -15;
14705 sal_Int16 radix
= 10;
14707 expVal
+= OString( "-" );
14708 expVal
+= OString( "15" );
14709 aStrBuf
.append( input
, radix
);
14711 CPPUNIT_ASSERT_EQUAL_MESSAGE
14713 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
14714 expVal
, OString(aStrBuf
.getStr())
14716 CPPUNIT_ASSERT_EQUAL_MESSAGE
14718 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
14719 expVal
.getLength(), aStrBuf
.getLength()
14726 OStringBuffer
aStrBuf( arrOUS
[1] );
14727 OString
expVal( aStrBuf
.getStr() );
14728 sal_Int64 input
= -0;
14729 sal_Int16 radix
= 16;
14731 expVal
+= OString( "0" );
14732 aStrBuf
.append( input
, radix
);
14734 CPPUNIT_ASSERT_EQUAL_MESSAGE
14736 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
14737 expVal
, OString(aStrBuf
.getStr())
14739 CPPUNIT_ASSERT_EQUAL_MESSAGE
14741 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
14742 expVal
.getLength(), aStrBuf
.getLength()
14749 OStringBuffer
aStrBuf( arrOUS
[1] );
14750 OString
expVal( aStrBuf
.getStr() );
14751 sal_Int64 input
= -4;
14752 sal_Int16 radix
= 16;
14754 expVal
+= OString( "-" );
14755 expVal
+= OString( "4" );
14756 aStrBuf
.append( input
, radix
);
14758 CPPUNIT_ASSERT_EQUAL_MESSAGE
14760 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
14761 expVal
, OString(aStrBuf
.getStr())
14763 CPPUNIT_ASSERT_EQUAL_MESSAGE
14765 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
14766 expVal
.getLength(), aStrBuf
.getLength()
14773 OStringBuffer
aStrBuf( arrOUS
[1] );
14774 OString
expVal( aStrBuf
.getStr() );
14775 sal_Int64 input
= -8;
14776 sal_Int16 radix
= 16;
14778 expVal
+= OString( "-" );
14779 expVal
+= OString( "8" );
14780 aStrBuf
.append( input
, radix
);
14782 CPPUNIT_ASSERT_EQUAL_MESSAGE
14784 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
14785 expVal
, OString(aStrBuf
.getStr())
14787 CPPUNIT_ASSERT_EQUAL_MESSAGE
14789 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
14790 expVal
.getLength(), aStrBuf
.getLength()
14797 OStringBuffer
aStrBuf( arrOUS
[1] );
14798 OString
expVal( aStrBuf
.getStr() );
14799 sal_Int64 input
= -15;
14800 sal_Int16 radix
= 16;
14802 expVal
+= OString( "-" );
14803 expVal
+= OString( "f" );
14804 aStrBuf
.append( input
, radix
);
14806 CPPUNIT_ASSERT_EQUAL_MESSAGE
14808 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
14809 expVal
, OString(aStrBuf
.getStr())
14811 CPPUNIT_ASSERT_EQUAL_MESSAGE
14813 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
14814 expVal
.getLength(), aStrBuf
.getLength()
14821 OStringBuffer
aStrBuf( arrOUS
[1] );
14822 OString
expVal( aStrBuf
.getStr() );
14823 sal_Int64 input
= -0;
14824 sal_Int16 radix
= 36;
14826 expVal
+= OString( "0" );
14827 aStrBuf
.append( input
, radix
);
14829 CPPUNIT_ASSERT_EQUAL_MESSAGE
14831 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
14832 expVal
, OString(aStrBuf
.getStr())
14834 CPPUNIT_ASSERT_EQUAL_MESSAGE
14836 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
14837 expVal
.getLength(), aStrBuf
.getLength()
14844 OStringBuffer
aStrBuf( arrOUS
[1] );
14845 OString
expVal( aStrBuf
.getStr() );
14846 sal_Int64 input
= -4;
14847 sal_Int16 radix
= 36;
14849 expVal
+= OString( "-" );
14850 expVal
+= OString( "4" );
14851 aStrBuf
.append( input
, radix
);
14853 CPPUNIT_ASSERT_EQUAL_MESSAGE
14855 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
14856 expVal
, OString(aStrBuf
.getStr())
14858 CPPUNIT_ASSERT_EQUAL_MESSAGE
14860 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
14861 expVal
.getLength(), aStrBuf
.getLength()
14868 OStringBuffer
aStrBuf( arrOUS
[1] );
14869 OString
expVal( aStrBuf
.getStr() );
14870 sal_Int64 input
= -8;
14871 sal_Int16 radix
= 36;
14873 expVal
+= OString( "-" );
14874 expVal
+= OString( "8" );
14875 aStrBuf
.append( input
, radix
);
14877 CPPUNIT_ASSERT_EQUAL_MESSAGE
14879 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
14880 expVal
, OString(aStrBuf
.getStr())
14882 CPPUNIT_ASSERT_EQUAL_MESSAGE
14884 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
14885 expVal
.getLength(), aStrBuf
.getLength()
14892 OStringBuffer
aStrBuf( arrOUS
[1] );
14893 OString
expVal( aStrBuf
.getStr() );
14894 sal_Int64 input
= -35;
14895 sal_Int16 radix
= 36;
14897 expVal
+= OString( "-" );
14898 expVal
+= OString( "z" );
14899 aStrBuf
.append( input
, radix
);
14901 CPPUNIT_ASSERT_EQUAL_MESSAGE
14903 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
14904 expVal
, OString(aStrBuf
.getStr())
14906 CPPUNIT_ASSERT_EQUAL_MESSAGE
14908 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
14909 expVal
.getLength(), aStrBuf
.getLength()
14916 OStringBuffer
aStrBuf( arrOUS
[2] );
14917 OString
expVal( aStrBuf
.getStr() );
14918 sal_Int64 input
= -0;
14919 sal_Int16 radix
= 2;
14921 expVal
+= OString( "0" );
14922 aStrBuf
.append( input
, radix
);
14924 CPPUNIT_ASSERT_EQUAL_MESSAGE
14926 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
14927 expVal
, OString(aStrBuf
.getStr())
14929 CPPUNIT_ASSERT_EQUAL_MESSAGE
14931 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
14932 expVal
.getLength(), aStrBuf
.getLength()
14939 OStringBuffer
aStrBuf( arrOUS
[2] );
14940 OString
expVal( aStrBuf
.getStr() );
14941 sal_Int64 input
= -4;
14942 sal_Int16 radix
= 2;
14944 expVal
+= OString( "-" );
14945 expVal
+= OString( "100" );
14946 aStrBuf
.append( input
, radix
);
14948 CPPUNIT_ASSERT_EQUAL_MESSAGE
14950 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
14951 expVal
, OString(aStrBuf
.getStr())
14953 CPPUNIT_ASSERT_EQUAL_MESSAGE
14955 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
14956 expVal
.getLength(), aStrBuf
.getLength()
14963 OStringBuffer
aStrBuf( arrOUS
[2] );
14964 OString
expVal( aStrBuf
.getStr() );
14965 sal_Int64 input
= -8;
14966 sal_Int16 radix
= 2;
14968 expVal
+= OString( "-" );
14969 expVal
+= OString( "1000" );
14970 aStrBuf
.append( input
, radix
);
14972 CPPUNIT_ASSERT_EQUAL_MESSAGE
14974 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
14975 expVal
, OString(aStrBuf
.getStr())
14977 CPPUNIT_ASSERT_EQUAL_MESSAGE
14979 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
14980 expVal
.getLength(), aStrBuf
.getLength()
14987 OStringBuffer
aStrBuf( arrOUS
[2] );
14988 OString
expVal( aStrBuf
.getStr() );
14989 sal_Int64 input
= -15;
14990 sal_Int16 radix
= 2;
14992 expVal
+= OString( "-" );
14993 expVal
+= OString( "1111" );
14994 aStrBuf
.append( input
, radix
);
14996 CPPUNIT_ASSERT_EQUAL_MESSAGE
14998 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
14999 expVal
, OString(aStrBuf
.getStr())
15001 CPPUNIT_ASSERT_EQUAL_MESSAGE
15003 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
15004 expVal
.getLength(), aStrBuf
.getLength()
15011 OStringBuffer
aStrBuf( arrOUS
[2] );
15012 OString
expVal( aStrBuf
.getStr() );
15013 sal_Int64 input
= -0;
15014 sal_Int16 radix
= 8;
15016 expVal
+= OString( "0" );
15017 aStrBuf
.append( input
, radix
);
15019 CPPUNIT_ASSERT_EQUAL_MESSAGE
15021 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
15022 expVal
, OString(aStrBuf
.getStr())
15024 CPPUNIT_ASSERT_EQUAL_MESSAGE
15026 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
15027 expVal
.getLength(), aStrBuf
.getLength()
15034 OStringBuffer
aStrBuf( arrOUS
[2] );
15035 OString
expVal( aStrBuf
.getStr() );
15036 sal_Int64 input
= -4;
15037 sal_Int16 radix
= 8;
15039 expVal
+= OString( "-" );
15040 expVal
+= OString( "4" );
15041 aStrBuf
.append( input
, radix
);
15043 CPPUNIT_ASSERT_EQUAL_MESSAGE
15045 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
15046 expVal
, OString(aStrBuf
.getStr())
15048 CPPUNIT_ASSERT_EQUAL_MESSAGE
15050 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
15051 expVal
.getLength(), aStrBuf
.getLength()
15058 OStringBuffer
aStrBuf( arrOUS
[2] );
15059 OString
expVal( aStrBuf
.getStr() );
15060 sal_Int64 input
= -8;
15061 sal_Int16 radix
= 8;
15063 expVal
+= OString( "-" );
15064 expVal
+= OString( "10" );
15065 aStrBuf
.append( input
, radix
);
15067 CPPUNIT_ASSERT_EQUAL_MESSAGE
15069 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
15070 expVal
, OString(aStrBuf
.getStr())
15072 CPPUNIT_ASSERT_EQUAL_MESSAGE
15074 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
15075 expVal
.getLength(), aStrBuf
.getLength()
15082 OStringBuffer
aStrBuf( arrOUS
[2] );
15083 OString
expVal( aStrBuf
.getStr() );
15084 sal_Int64 input
= -15;
15085 sal_Int16 radix
= 8;
15087 expVal
+= OString( "-" );
15088 expVal
+= OString( "17" );
15089 aStrBuf
.append( input
, radix
);
15091 CPPUNIT_ASSERT_EQUAL_MESSAGE
15093 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
15094 expVal
, OString(aStrBuf
.getStr())
15096 CPPUNIT_ASSERT_EQUAL_MESSAGE
15098 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
15099 expVal
.getLength(), aStrBuf
.getLength()
15106 OStringBuffer
aStrBuf( arrOUS
[2] );
15107 OString
expVal( aStrBuf
.getStr() );
15108 sal_Int64 input
= -0;
15109 sal_Int16 radix
= 10;
15111 expVal
+= OString( "0" );
15112 aStrBuf
.append( input
, radix
);
15114 CPPUNIT_ASSERT_EQUAL_MESSAGE
15116 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
15117 expVal
, OString(aStrBuf
.getStr())
15119 CPPUNIT_ASSERT_EQUAL_MESSAGE
15121 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
15122 expVal
.getLength(), aStrBuf
.getLength()
15129 OStringBuffer
aStrBuf( arrOUS
[2] );
15130 OString
expVal( aStrBuf
.getStr() );
15131 sal_Int64 input
= -4;
15132 sal_Int16 radix
= 10;
15134 expVal
+= OString( "-" );
15135 expVal
+= OString( "4" );
15136 aStrBuf
.append( input
, radix
);
15138 CPPUNIT_ASSERT_EQUAL_MESSAGE
15140 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
15141 expVal
, OString(aStrBuf
.getStr())
15143 CPPUNIT_ASSERT_EQUAL_MESSAGE
15145 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
15146 expVal
.getLength(), aStrBuf
.getLength()
15153 OStringBuffer
aStrBuf( arrOUS
[2] );
15154 OString
expVal( aStrBuf
.getStr() );
15155 sal_Int64 input
= -8;
15156 sal_Int16 radix
= 10;
15158 expVal
+= OString( "-" );
15159 expVal
+= OString( "8" );
15160 aStrBuf
.append( input
, radix
);
15162 CPPUNIT_ASSERT_EQUAL_MESSAGE
15164 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
15165 expVal
, OString(aStrBuf
.getStr())
15167 CPPUNIT_ASSERT_EQUAL_MESSAGE
15169 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
15170 expVal
.getLength(), aStrBuf
.getLength()
15177 OStringBuffer
aStrBuf( arrOUS
[2] );
15178 OString
expVal( aStrBuf
.getStr() );
15179 sal_Int64 input
= -15;
15180 sal_Int16 radix
= 10;
15182 expVal
+= OString( "-" );
15183 expVal
+= OString( "15" );
15184 aStrBuf
.append( input
, radix
);
15186 CPPUNIT_ASSERT_EQUAL_MESSAGE
15188 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
15189 expVal
, OString(aStrBuf
.getStr())
15191 CPPUNIT_ASSERT_EQUAL_MESSAGE
15193 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
15194 expVal
.getLength(), aStrBuf
.getLength()
15201 OStringBuffer
aStrBuf( arrOUS
[2] );
15202 OString
expVal( aStrBuf
.getStr() );
15203 sal_Int64 input
= -0;
15204 sal_Int16 radix
= 16;
15206 expVal
+= OString( "0" );
15207 aStrBuf
.append( input
, radix
);
15209 CPPUNIT_ASSERT_EQUAL_MESSAGE
15211 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
15212 expVal
, OString(aStrBuf
.getStr())
15214 CPPUNIT_ASSERT_EQUAL_MESSAGE
15216 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
15217 expVal
.getLength(), aStrBuf
.getLength()
15224 OStringBuffer
aStrBuf( arrOUS
[2] );
15225 OString
expVal( aStrBuf
.getStr() );
15226 sal_Int64 input
= -4;
15227 sal_Int16 radix
= 16;
15229 expVal
+= OString( "-" );
15230 expVal
+= OString( "4" );
15231 aStrBuf
.append( input
, radix
);
15233 CPPUNIT_ASSERT_EQUAL_MESSAGE
15235 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
15236 expVal
, OString(aStrBuf
.getStr())
15238 CPPUNIT_ASSERT_EQUAL_MESSAGE
15240 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
15241 expVal
.getLength(), aStrBuf
.getLength()
15248 OStringBuffer
aStrBuf( arrOUS
[2] );
15249 OString
expVal( aStrBuf
.getStr() );
15250 sal_Int64 input
= -8;
15251 sal_Int16 radix
= 16;
15253 expVal
+= OString( "-" );
15254 expVal
+= OString( "8" );
15255 aStrBuf
.append( input
, radix
);
15257 CPPUNIT_ASSERT_EQUAL_MESSAGE
15259 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
15260 expVal
, OString(aStrBuf
.getStr())
15262 CPPUNIT_ASSERT_EQUAL_MESSAGE
15264 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
15265 expVal
.getLength(), aStrBuf
.getLength()
15272 OStringBuffer
aStrBuf( arrOUS
[2] );
15273 OString
expVal( aStrBuf
.getStr() );
15274 sal_Int64 input
= -15;
15275 sal_Int16 radix
= 16;
15277 expVal
+= OString( "-" );
15278 expVal
+= OString( "f" );
15279 aStrBuf
.append( input
, radix
);
15281 CPPUNIT_ASSERT_EQUAL_MESSAGE
15283 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
15284 expVal
, OString(aStrBuf
.getStr())
15286 CPPUNIT_ASSERT_EQUAL_MESSAGE
15288 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
15289 expVal
.getLength(), aStrBuf
.getLength()
15296 OStringBuffer
aStrBuf( arrOUS
[2] );
15297 OString
expVal( aStrBuf
.getStr() );
15298 sal_Int64 input
= -0;
15299 sal_Int16 radix
= 36;
15301 expVal
+= OString( "0" );
15302 aStrBuf
.append( input
, radix
);
15304 CPPUNIT_ASSERT_EQUAL_MESSAGE
15306 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
15307 expVal
, OString(aStrBuf
.getStr())
15309 CPPUNIT_ASSERT_EQUAL_MESSAGE
15311 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
15312 expVal
.getLength(), aStrBuf
.getLength()
15319 OStringBuffer
aStrBuf( arrOUS
[2] );
15320 OString
expVal( aStrBuf
.getStr() );
15321 sal_Int64 input
= -4;
15322 sal_Int16 radix
= 36;
15324 expVal
+= OString( "-" );
15325 expVal
+= OString( "4" );
15326 aStrBuf
.append( input
, radix
);
15328 CPPUNIT_ASSERT_EQUAL_MESSAGE
15330 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
15331 expVal
, OString(aStrBuf
.getStr())
15333 CPPUNIT_ASSERT_EQUAL_MESSAGE
15335 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
15336 expVal
.getLength(), aStrBuf
.getLength()
15343 OStringBuffer
aStrBuf( arrOUS
[2] );
15344 OString
expVal( aStrBuf
.getStr() );
15345 sal_Int64 input
= -8;
15346 sal_Int16 radix
= 36;
15348 expVal
+= OString( "-" );
15349 expVal
+= OString( "8" );
15350 aStrBuf
.append( input
, radix
);
15352 CPPUNIT_ASSERT_EQUAL_MESSAGE
15354 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
15355 expVal
, OString(aStrBuf
.getStr())
15357 CPPUNIT_ASSERT_EQUAL_MESSAGE
15359 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
15360 expVal
.getLength(), aStrBuf
.getLength()
15367 OStringBuffer
aStrBuf( arrOUS
[2] );
15368 OString
expVal( aStrBuf
.getStr() );
15369 sal_Int64 input
= -35;
15370 sal_Int16 radix
= 36;
15372 expVal
+= OString( "-" );
15373 expVal
+= OString( "z" );
15374 aStrBuf
.append( input
, radix
);
15376 CPPUNIT_ASSERT_EQUAL_MESSAGE
15378 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
15379 expVal
, OString(aStrBuf
.getStr())
15381 CPPUNIT_ASSERT_EQUAL_MESSAGE
15383 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
15384 expVal
.getLength(), aStrBuf
.getLength()
15391 OStringBuffer
aStrBuf( arrOUS
[3] );
15392 OString
expVal( aStrBuf
.getStr() );
15393 sal_Int64 input
= -0;
15394 sal_Int16 radix
= 2;
15396 expVal
+= OString( "0" );
15397 aStrBuf
.append( input
, radix
);
15399 CPPUNIT_ASSERT_EQUAL_MESSAGE
15401 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
15402 expVal
, OString(aStrBuf
.getStr())
15404 CPPUNIT_ASSERT_EQUAL_MESSAGE
15406 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
15407 expVal
.getLength(), aStrBuf
.getLength()
15414 OStringBuffer
aStrBuf( arrOUS
[3] );
15415 OString
expVal( aStrBuf
.getStr() );
15416 sal_Int64 input
= -4;
15417 sal_Int16 radix
= 2;
15419 expVal
+= OString( "-" );
15420 expVal
+= OString( "100" );
15421 aStrBuf
.append( input
, radix
);
15423 CPPUNIT_ASSERT_EQUAL_MESSAGE
15425 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
15426 expVal
, OString(aStrBuf
.getStr())
15428 CPPUNIT_ASSERT_EQUAL_MESSAGE
15430 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
15431 expVal
.getLength(), aStrBuf
.getLength()
15438 OStringBuffer
aStrBuf( arrOUS
[3] );
15439 OString
expVal( aStrBuf
.getStr() );
15440 sal_Int64 input
= -8;
15441 sal_Int16 radix
= 2;
15443 expVal
+= OString( "-" );
15444 expVal
+= OString( "1000" );
15445 aStrBuf
.append( input
, radix
);
15447 CPPUNIT_ASSERT_EQUAL_MESSAGE
15449 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
15450 expVal
, OString(aStrBuf
.getStr())
15452 CPPUNIT_ASSERT_EQUAL_MESSAGE
15454 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
15455 expVal
.getLength(), aStrBuf
.getLength()
15462 OStringBuffer
aStrBuf( arrOUS
[3] );
15463 OString
expVal( aStrBuf
.getStr() );
15464 sal_Int64 input
= -15;
15465 sal_Int16 radix
= 2;
15467 expVal
+= OString( "-" );
15468 expVal
+= OString( "1111" );
15469 aStrBuf
.append( input
, radix
);
15471 CPPUNIT_ASSERT_EQUAL_MESSAGE
15473 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
15474 expVal
, OString(aStrBuf
.getStr())
15476 CPPUNIT_ASSERT_EQUAL_MESSAGE
15478 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
15479 expVal
.getLength(), aStrBuf
.getLength()
15486 OStringBuffer
aStrBuf( arrOUS
[3] );
15487 OString
expVal( aStrBuf
.getStr() );
15488 sal_Int64 input
= -0;
15489 sal_Int16 radix
= 8;
15491 expVal
+= OString( "0" );
15492 aStrBuf
.append( input
, radix
);
15494 CPPUNIT_ASSERT_EQUAL_MESSAGE
15496 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
15497 expVal
, OString(aStrBuf
.getStr())
15499 CPPUNIT_ASSERT_EQUAL_MESSAGE
15501 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
15502 expVal
.getLength(), aStrBuf
.getLength()
15509 OStringBuffer
aStrBuf( arrOUS
[3] );
15510 OString
expVal( aStrBuf
.getStr() );
15511 sal_Int64 input
= -4;
15512 sal_Int16 radix
= 8;
15514 expVal
+= OString( "-" );
15515 expVal
+= OString( "4" );
15516 aStrBuf
.append( input
, radix
);
15518 CPPUNIT_ASSERT_EQUAL_MESSAGE
15520 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
15521 expVal
, OString(aStrBuf
.getStr())
15523 CPPUNIT_ASSERT_EQUAL_MESSAGE
15525 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
15526 expVal
.getLength(), aStrBuf
.getLength()
15533 OStringBuffer
aStrBuf( arrOUS
[3] );
15534 OString
expVal( aStrBuf
.getStr() );
15535 sal_Int64 input
= -8;
15536 sal_Int16 radix
= 8;
15538 expVal
+= OString( "-" );
15539 expVal
+= OString( "10" );
15540 aStrBuf
.append( input
, radix
);
15542 CPPUNIT_ASSERT_EQUAL_MESSAGE
15544 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
15545 expVal
, OString(aStrBuf
.getStr())
15547 CPPUNIT_ASSERT_EQUAL_MESSAGE
15549 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
15550 expVal
.getLength(), aStrBuf
.getLength()
15557 OStringBuffer
aStrBuf( arrOUS
[3] );
15558 OString
expVal( aStrBuf
.getStr() );
15559 sal_Int64 input
= -15;
15560 sal_Int16 radix
= 8;
15562 expVal
+= OString( "-" );
15563 expVal
+= OString( "17" );
15564 aStrBuf
.append( input
, radix
);
15566 CPPUNIT_ASSERT_EQUAL_MESSAGE
15568 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
15569 expVal
, OString(aStrBuf
.getStr())
15571 CPPUNIT_ASSERT_EQUAL_MESSAGE
15573 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
15574 expVal
.getLength(), aStrBuf
.getLength()
15581 OStringBuffer
aStrBuf( arrOUS
[3] );
15582 OString
expVal( aStrBuf
.getStr() );
15583 sal_Int64 input
= -0;
15584 sal_Int16 radix
= 10;
15586 expVal
+= OString( "0" );
15587 aStrBuf
.append( input
, radix
);
15589 CPPUNIT_ASSERT_EQUAL_MESSAGE
15591 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
15592 expVal
, OString(aStrBuf
.getStr())
15594 CPPUNIT_ASSERT_EQUAL_MESSAGE
15596 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
15597 expVal
.getLength(), aStrBuf
.getLength()
15604 OStringBuffer
aStrBuf( arrOUS
[3] );
15605 OString
expVal( aStrBuf
.getStr() );
15606 sal_Int64 input
= -4;
15607 sal_Int16 radix
= 10;
15609 expVal
+= OString( "-" );
15610 expVal
+= OString( "4" );
15611 aStrBuf
.append( input
, radix
);
15613 CPPUNIT_ASSERT_EQUAL_MESSAGE
15615 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
15616 expVal
, OString(aStrBuf
.getStr())
15618 CPPUNIT_ASSERT_EQUAL_MESSAGE
15620 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
15621 expVal
.getLength(), aStrBuf
.getLength()
15628 OStringBuffer
aStrBuf( arrOUS
[3] );
15629 OString
expVal( aStrBuf
.getStr() );
15630 sal_Int64 input
= -8;
15631 sal_Int16 radix
= 10;
15633 expVal
+= OString( "-" );
15634 expVal
+= OString( "8" );
15635 aStrBuf
.append( input
, radix
);
15637 CPPUNIT_ASSERT_EQUAL_MESSAGE
15639 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
15640 expVal
, OString(aStrBuf
.getStr())
15642 CPPUNIT_ASSERT_EQUAL_MESSAGE
15644 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
15645 expVal
.getLength(), aStrBuf
.getLength()
15652 OStringBuffer
aStrBuf( arrOUS
[3] );
15653 OString
expVal( aStrBuf
.getStr() );
15654 sal_Int64 input
= -15;
15655 sal_Int16 radix
= 10;
15657 expVal
+= OString( "-" );
15658 expVal
+= OString( "15" );
15659 aStrBuf
.append( input
, radix
);
15661 CPPUNIT_ASSERT_EQUAL_MESSAGE
15663 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
15664 expVal
, OString(aStrBuf
.getStr())
15666 CPPUNIT_ASSERT_EQUAL_MESSAGE
15668 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
15669 expVal
.getLength(), aStrBuf
.getLength()
15676 OStringBuffer
aStrBuf( arrOUS
[3] );
15677 OString
expVal( aStrBuf
.getStr() );
15678 sal_Int64 input
= -0;
15679 sal_Int16 radix
= 16;
15681 expVal
+= OString( "0" );
15682 aStrBuf
.append( input
, radix
);
15684 CPPUNIT_ASSERT_EQUAL_MESSAGE
15686 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
15687 expVal
, OString(aStrBuf
.getStr())
15689 CPPUNIT_ASSERT_EQUAL_MESSAGE
15691 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
15692 expVal
.getLength(), aStrBuf
.getLength()
15699 OStringBuffer
aStrBuf( arrOUS
[3] );
15700 OString
expVal( aStrBuf
.getStr() );
15701 sal_Int64 input
= -4;
15702 sal_Int16 radix
= 16;
15704 expVal
+= OString( "-" );
15705 expVal
+= OString( "4" );
15706 aStrBuf
.append( input
, radix
);
15708 CPPUNIT_ASSERT_EQUAL_MESSAGE
15710 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
15711 expVal
, OString(aStrBuf
.getStr())
15713 CPPUNIT_ASSERT_EQUAL_MESSAGE
15715 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
15716 expVal
.getLength(), aStrBuf
.getLength()
15723 OStringBuffer
aStrBuf( arrOUS
[3] );
15724 OString
expVal( aStrBuf
.getStr() );
15725 sal_Int64 input
= -8;
15726 sal_Int16 radix
= 16;
15728 expVal
+= OString( "-" );
15729 expVal
+= OString( "8" );
15730 aStrBuf
.append( input
, radix
);
15732 CPPUNIT_ASSERT_EQUAL_MESSAGE
15734 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
15735 expVal
, OString(aStrBuf
.getStr())
15737 CPPUNIT_ASSERT_EQUAL_MESSAGE
15739 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
15740 expVal
.getLength(), aStrBuf
.getLength()
15747 OStringBuffer
aStrBuf( arrOUS
[3] );
15748 OString
expVal( aStrBuf
.getStr() );
15749 sal_Int64 input
= -15;
15750 sal_Int16 radix
= 16;
15752 expVal
+= OString( "-" );
15753 expVal
+= OString( "f" );
15754 aStrBuf
.append( input
, radix
);
15756 CPPUNIT_ASSERT_EQUAL_MESSAGE
15758 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
15759 expVal
, OString(aStrBuf
.getStr())
15761 CPPUNIT_ASSERT_EQUAL_MESSAGE
15763 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
15764 expVal
.getLength(), aStrBuf
.getLength()
15771 OStringBuffer
aStrBuf( arrOUS
[3] );
15772 OString
expVal( aStrBuf
.getStr() );
15773 sal_Int64 input
= -0;
15774 sal_Int16 radix
= 36;
15776 expVal
+= OString( "0" );
15777 aStrBuf
.append( input
, radix
);
15779 CPPUNIT_ASSERT_EQUAL_MESSAGE
15781 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
15782 expVal
, OString(aStrBuf
.getStr())
15784 CPPUNIT_ASSERT_EQUAL_MESSAGE
15786 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
15787 expVal
.getLength(), aStrBuf
.getLength()
15794 OStringBuffer
aStrBuf( arrOUS
[3] );
15795 OString
expVal( aStrBuf
.getStr() );
15796 sal_Int64 input
= -4;
15797 sal_Int16 radix
= 36;
15799 expVal
+= OString( "-" );
15800 expVal
+= OString( "4" );
15801 aStrBuf
.append( input
, radix
);
15803 CPPUNIT_ASSERT_EQUAL_MESSAGE
15805 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
15806 expVal
, OString(aStrBuf
.getStr())
15808 CPPUNIT_ASSERT_EQUAL_MESSAGE
15810 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
15811 expVal
.getLength(), aStrBuf
.getLength()
15818 OStringBuffer
aStrBuf( arrOUS
[3] );
15819 OString
expVal( aStrBuf
.getStr() );
15820 sal_Int64 input
= -8;
15821 sal_Int16 radix
= 36;
15823 expVal
+= OString( "-" );
15824 expVal
+= OString( "8" );
15825 aStrBuf
.append( input
, radix
);
15827 CPPUNIT_ASSERT_EQUAL_MESSAGE
15829 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
15830 expVal
, OString(aStrBuf
.getStr())
15832 CPPUNIT_ASSERT_EQUAL_MESSAGE
15834 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
15835 expVal
.getLength(), aStrBuf
.getLength()
15842 OStringBuffer
aStrBuf( arrOUS
[3] );
15843 OString
expVal( aStrBuf
.getStr() );
15844 sal_Int64 input
= -35;
15845 sal_Int16 radix
= 36;
15847 expVal
+= OString( "-" );
15848 expVal
+= OString( "z" );
15849 aStrBuf
.append( input
, radix
);
15851 CPPUNIT_ASSERT_EQUAL_MESSAGE
15853 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
15854 expVal
, OString(aStrBuf
.getStr())
15856 CPPUNIT_ASSERT_EQUAL_MESSAGE
15858 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
15859 expVal
.getLength(), aStrBuf
.getLength()
15866 OStringBuffer
aStrBuf( arrOUS
[4] );
15867 OString
expVal( aStrBuf
.getStr() );
15868 sal_Int64 input
= -0;
15869 sal_Int16 radix
= 2;
15871 expVal
+= OString( "0" );
15872 aStrBuf
.append( input
, radix
);
15874 CPPUNIT_ASSERT_EQUAL_MESSAGE
15876 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
15877 expVal
, OString(aStrBuf
.getStr())
15879 CPPUNIT_ASSERT_EQUAL_MESSAGE
15881 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
15882 expVal
.getLength(), aStrBuf
.getLength()
15889 OStringBuffer
aStrBuf( arrOUS
[4] );
15890 OString
expVal( aStrBuf
.getStr() );
15891 sal_Int64 input
= -4;
15892 sal_Int16 radix
= 2;
15894 expVal
+= OString( "-" );
15895 expVal
+= OString( "100" );
15896 aStrBuf
.append( input
, radix
);
15898 CPPUNIT_ASSERT_EQUAL_MESSAGE
15900 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
15901 expVal
, OString(aStrBuf
.getStr())
15903 CPPUNIT_ASSERT_EQUAL_MESSAGE
15905 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
15906 expVal
.getLength(), aStrBuf
.getLength()
15913 OStringBuffer
aStrBuf( arrOUS
[4] );
15914 OString
expVal( aStrBuf
.getStr() );
15915 sal_Int64 input
= -8;
15916 sal_Int16 radix
= 2;
15918 expVal
+= OString( "-" );
15919 expVal
+= OString( "1000" );
15920 aStrBuf
.append( input
, radix
);
15922 CPPUNIT_ASSERT_EQUAL_MESSAGE
15924 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
15925 expVal
, OString(aStrBuf
.getStr())
15927 CPPUNIT_ASSERT_EQUAL_MESSAGE
15929 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
15930 expVal
.getLength(), aStrBuf
.getLength()
15937 OStringBuffer
aStrBuf( arrOUS
[4] );
15938 OString
expVal( aStrBuf
.getStr() );
15939 sal_Int64 input
= -15;
15940 sal_Int16 radix
= 2;
15942 expVal
+= OString( "-" );
15943 expVal
+= OString( "1111" );
15944 aStrBuf
.append( input
, radix
);
15946 CPPUNIT_ASSERT_EQUAL_MESSAGE
15948 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
15949 expVal
, OString(aStrBuf
.getStr())
15951 CPPUNIT_ASSERT_EQUAL_MESSAGE
15953 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
15954 expVal
.getLength(), aStrBuf
.getLength()
15961 OStringBuffer
aStrBuf( arrOUS
[4] );
15962 OString
expVal( aStrBuf
.getStr() );
15963 sal_Int64 input
= -0;
15964 sal_Int16 radix
= 8;
15966 expVal
+= OString( "0" );
15967 aStrBuf
.append( input
, radix
);
15969 CPPUNIT_ASSERT_EQUAL_MESSAGE
15971 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
15972 expVal
, OString(aStrBuf
.getStr())
15974 CPPUNIT_ASSERT_EQUAL_MESSAGE
15976 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
15977 expVal
.getLength(), aStrBuf
.getLength()
15984 OStringBuffer
aStrBuf( arrOUS
[4] );
15985 OString
expVal( aStrBuf
.getStr() );
15986 sal_Int64 input
= -4;
15987 sal_Int16 radix
= 8;
15989 expVal
+= OString( "-" );
15990 expVal
+= OString( "4" );
15991 aStrBuf
.append( input
, radix
);
15993 CPPUNIT_ASSERT_EQUAL_MESSAGE
15995 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
15996 expVal
, OString(aStrBuf
.getStr())
15998 CPPUNIT_ASSERT_EQUAL_MESSAGE
16000 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
16001 expVal
.getLength(), aStrBuf
.getLength()
16008 OStringBuffer
aStrBuf( arrOUS
[4] );
16009 OString
expVal( aStrBuf
.getStr() );
16010 sal_Int64 input
= -8;
16011 sal_Int16 radix
= 8;
16013 expVal
+= OString( "-" );
16014 expVal
+= OString( "10" );
16015 aStrBuf
.append( input
, radix
);
16017 CPPUNIT_ASSERT_EQUAL_MESSAGE
16019 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
16020 expVal
, OString(aStrBuf
.getStr())
16022 CPPUNIT_ASSERT_EQUAL_MESSAGE
16024 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
16025 expVal
.getLength(), aStrBuf
.getLength()
16032 OStringBuffer
aStrBuf( arrOUS
[4] );
16033 OString
expVal( aStrBuf
.getStr() );
16034 sal_Int64 input
= -15;
16035 sal_Int16 radix
= 8;
16037 expVal
+= OString( "-" );
16038 expVal
+= OString( "17" );
16039 aStrBuf
.append( input
, radix
);
16041 CPPUNIT_ASSERT_EQUAL_MESSAGE
16043 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
16044 expVal
, OString(aStrBuf
.getStr())
16046 CPPUNIT_ASSERT_EQUAL_MESSAGE
16048 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
16049 expVal
.getLength(), aStrBuf
.getLength()
16056 OStringBuffer
aStrBuf( arrOUS
[4] );
16057 OString
expVal( aStrBuf
.getStr() );
16058 sal_Int64 input
= -0;
16059 sal_Int16 radix
= 10;
16061 expVal
+= OString( "0" );
16062 aStrBuf
.append( input
, radix
);
16064 CPPUNIT_ASSERT_EQUAL_MESSAGE
16066 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
16067 expVal
, OString(aStrBuf
.getStr())
16069 CPPUNIT_ASSERT_EQUAL_MESSAGE
16071 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
16072 expVal
.getLength(), aStrBuf
.getLength()
16079 OStringBuffer
aStrBuf( arrOUS
[4] );
16080 OString
expVal( aStrBuf
.getStr() );
16081 sal_Int64 input
= -4;
16082 sal_Int16 radix
= 10;
16084 expVal
+= OString( "-" );
16085 expVal
+= OString( "4" );
16086 aStrBuf
.append( input
, radix
);
16088 CPPUNIT_ASSERT_EQUAL_MESSAGE
16090 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
16091 expVal
, OString(aStrBuf
.getStr())
16093 CPPUNIT_ASSERT_EQUAL_MESSAGE
16095 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
16096 expVal
.getLength(), aStrBuf
.getLength()
16103 OStringBuffer
aStrBuf( arrOUS
[4] );
16104 OString
expVal( aStrBuf
.getStr() );
16105 sal_Int64 input
= -8;
16106 sal_Int16 radix
= 10;
16108 expVal
+= OString( "-" );
16109 expVal
+= OString( "8" );
16110 aStrBuf
.append( input
, radix
);
16112 CPPUNIT_ASSERT_EQUAL_MESSAGE
16114 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
16115 expVal
, OString(aStrBuf
.getStr())
16117 CPPUNIT_ASSERT_EQUAL_MESSAGE
16119 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
16120 expVal
.getLength(), aStrBuf
.getLength()
16127 OStringBuffer
aStrBuf( arrOUS
[4] );
16128 OString
expVal( aStrBuf
.getStr() );
16129 sal_Int64 input
= -15;
16130 sal_Int16 radix
= 10;
16132 expVal
+= OString( "-" );
16133 expVal
+= OString( "15" );
16134 aStrBuf
.append( input
, radix
);
16136 CPPUNIT_ASSERT_EQUAL_MESSAGE
16138 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
16139 expVal
, OString(aStrBuf
.getStr())
16141 CPPUNIT_ASSERT_EQUAL_MESSAGE
16143 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
16144 expVal
.getLength(), aStrBuf
.getLength()
16151 OStringBuffer
aStrBuf( arrOUS
[4] );
16152 OString
expVal( aStrBuf
.getStr() );
16153 sal_Int64 input
= -0;
16154 sal_Int16 radix
= 16;
16156 expVal
+= OString( "0" );
16157 aStrBuf
.append( input
, radix
);
16159 CPPUNIT_ASSERT_EQUAL_MESSAGE
16161 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
16162 expVal
, OString(aStrBuf
.getStr())
16164 CPPUNIT_ASSERT_EQUAL_MESSAGE
16166 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
16167 expVal
.getLength(), aStrBuf
.getLength()
16174 OStringBuffer
aStrBuf( arrOUS
[4] );
16175 OString
expVal( aStrBuf
.getStr() );
16176 sal_Int64 input
= -4;
16177 sal_Int16 radix
= 16;
16179 expVal
+= OString( "-" );
16180 expVal
+= OString( "4" );
16181 aStrBuf
.append( input
, radix
);
16183 CPPUNIT_ASSERT_EQUAL_MESSAGE
16185 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
16186 expVal
, OString(aStrBuf
.getStr())
16188 CPPUNIT_ASSERT_EQUAL_MESSAGE
16190 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
16191 expVal
.getLength(), aStrBuf
.getLength()
16198 OStringBuffer
aStrBuf( arrOUS
[4] );
16199 OString
expVal( aStrBuf
.getStr() );
16200 sal_Int64 input
= -8;
16201 sal_Int16 radix
= 16;
16203 expVal
+= OString( "-" );
16204 expVal
+= OString( "8" );
16205 aStrBuf
.append( input
, radix
);
16207 CPPUNIT_ASSERT_EQUAL_MESSAGE
16209 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
16210 expVal
, OString(aStrBuf
.getStr())
16212 CPPUNIT_ASSERT_EQUAL_MESSAGE
16214 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
16215 expVal
.getLength(), aStrBuf
.getLength()
16222 OStringBuffer
aStrBuf( arrOUS
[4] );
16223 OString
expVal( aStrBuf
.getStr() );
16224 sal_Int64 input
= -15;
16225 sal_Int16 radix
= 16;
16227 expVal
+= OString( "-" );
16228 expVal
+= OString( "f" );
16229 aStrBuf
.append( input
, radix
);
16231 CPPUNIT_ASSERT_EQUAL_MESSAGE
16233 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
16234 expVal
, OString(aStrBuf
.getStr())
16236 CPPUNIT_ASSERT_EQUAL_MESSAGE
16238 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
16239 expVal
.getLength(), aStrBuf
.getLength()
16246 OStringBuffer
aStrBuf( arrOUS
[4] );
16247 OString
expVal( aStrBuf
.getStr() );
16248 sal_Int64 input
= -0;
16249 sal_Int16 radix
= 36;
16251 expVal
+= OString( "0" );
16252 aStrBuf
.append( input
, radix
);
16254 CPPUNIT_ASSERT_EQUAL_MESSAGE
16256 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
16257 expVal
, OString(aStrBuf
.getStr())
16259 CPPUNIT_ASSERT_EQUAL_MESSAGE
16261 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
16262 expVal
.getLength(), aStrBuf
.getLength()
16269 OStringBuffer
aStrBuf( arrOUS
[4] );
16270 OString
expVal( aStrBuf
.getStr() );
16271 sal_Int64 input
= -4;
16272 sal_Int16 radix
= 36;
16274 expVal
+= OString( "-" );
16275 expVal
+= OString( "4" );
16276 aStrBuf
.append( input
, radix
);
16278 CPPUNIT_ASSERT_EQUAL_MESSAGE
16280 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
16281 expVal
, OString(aStrBuf
.getStr())
16283 CPPUNIT_ASSERT_EQUAL_MESSAGE
16285 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
16286 expVal
.getLength(), aStrBuf
.getLength()
16293 OStringBuffer
aStrBuf( arrOUS
[4] );
16294 OString
expVal( aStrBuf
.getStr() );
16295 sal_Int64 input
= -8;
16296 sal_Int16 radix
= 36;
16298 expVal
+= OString( "-" );
16299 expVal
+= OString( "8" );
16300 aStrBuf
.append( input
, radix
);
16302 CPPUNIT_ASSERT_EQUAL_MESSAGE
16304 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
16305 expVal
, OString(aStrBuf
.getStr())
16307 CPPUNIT_ASSERT_EQUAL_MESSAGE
16309 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
16310 expVal
.getLength(), aStrBuf
.getLength()
16317 OStringBuffer
aStrBuf( arrOUS
[4] );
16318 OString
expVal( aStrBuf
.getStr() );
16319 sal_Int64 input
= -35;
16320 sal_Int16 radix
= 36;
16322 expVal
+= OString( "-" );
16323 expVal
+= OString( "z" );
16324 aStrBuf
.append( input
, radix
);
16326 CPPUNIT_ASSERT_EQUAL_MESSAGE
16328 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
16329 expVal
, OString(aStrBuf
.getStr())
16331 CPPUNIT_ASSERT_EQUAL_MESSAGE
16333 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
16334 expVal
.getLength(), aStrBuf
.getLength()
16339 CPPUNIT_TEST_SUITE( append_007_Int64_Negative
);
16340 CPPUNIT_TEST( append_001
); CPPUNIT_TEST( append_002
);
16341 CPPUNIT_TEST( append_003
); CPPUNIT_TEST( append_004
);
16342 CPPUNIT_TEST( append_005
); CPPUNIT_TEST( append_006
);
16343 CPPUNIT_TEST( append_007
); CPPUNIT_TEST( append_008
);
16344 CPPUNIT_TEST( append_009
); CPPUNIT_TEST( append_010
);
16345 CPPUNIT_TEST( append_011
); CPPUNIT_TEST( append_012
);
16346 CPPUNIT_TEST( append_013
); CPPUNIT_TEST( append_014
);
16347 CPPUNIT_TEST( append_015
); CPPUNIT_TEST( append_016
);
16348 CPPUNIT_TEST( append_017
); CPPUNIT_TEST( append_018
);
16349 CPPUNIT_TEST( append_019
); CPPUNIT_TEST( append_020
);
16350 CPPUNIT_TEST( append_021
); CPPUNIT_TEST( append_022
);
16351 CPPUNIT_TEST( append_023
); CPPUNIT_TEST( append_024
);
16352 CPPUNIT_TEST( append_025
); CPPUNIT_TEST( append_026
);
16353 CPPUNIT_TEST( append_027
); CPPUNIT_TEST( append_028
);
16354 CPPUNIT_TEST( append_029
); CPPUNIT_TEST( append_030
);
16355 CPPUNIT_TEST( append_031
); CPPUNIT_TEST( append_032
);
16356 CPPUNIT_TEST( append_033
); CPPUNIT_TEST( append_034
);
16357 CPPUNIT_TEST( append_035
); CPPUNIT_TEST( append_036
);
16358 CPPUNIT_TEST( append_037
); CPPUNIT_TEST( append_038
);
16359 CPPUNIT_TEST( append_039
); CPPUNIT_TEST( append_040
);
16360 CPPUNIT_TEST( append_041
); CPPUNIT_TEST( append_042
);
16361 CPPUNIT_TEST( append_043
); CPPUNIT_TEST( append_044
);
16362 CPPUNIT_TEST( append_045
); CPPUNIT_TEST( append_046
);
16363 CPPUNIT_TEST( append_047
); CPPUNIT_TEST( append_048
);
16364 CPPUNIT_TEST( append_049
); CPPUNIT_TEST( append_050
);
16365 CPPUNIT_TEST( append_051
); CPPUNIT_TEST( append_052
);
16366 CPPUNIT_TEST( append_053
); CPPUNIT_TEST( append_054
);
16367 CPPUNIT_TEST( append_055
); CPPUNIT_TEST( append_056
);
16368 CPPUNIT_TEST( append_057
); CPPUNIT_TEST( append_058
);
16369 CPPUNIT_TEST( append_059
); CPPUNIT_TEST( append_060
);
16370 CPPUNIT_TEST( append_061
); CPPUNIT_TEST( append_062
);
16371 CPPUNIT_TEST( append_063
); CPPUNIT_TEST( append_064
);
16372 CPPUNIT_TEST( append_065
); CPPUNIT_TEST( append_066
);
16373 CPPUNIT_TEST( append_067
); CPPUNIT_TEST( append_068
);
16374 CPPUNIT_TEST( append_069
); CPPUNIT_TEST( append_070
);
16375 CPPUNIT_TEST( append_071
); CPPUNIT_TEST( append_072
);
16376 CPPUNIT_TEST( append_073
); CPPUNIT_TEST( append_074
);
16377 CPPUNIT_TEST( append_075
); CPPUNIT_TEST( append_076
);
16378 CPPUNIT_TEST( append_077
); CPPUNIT_TEST( append_078
);
16379 CPPUNIT_TEST( append_079
); CPPUNIT_TEST( append_080
);
16380 CPPUNIT_TEST( append_081
); CPPUNIT_TEST( append_082
);
16381 CPPUNIT_TEST( append_083
); CPPUNIT_TEST( append_084
);
16382 CPPUNIT_TEST( append_085
); CPPUNIT_TEST( append_086
);
16383 CPPUNIT_TEST( append_087
); CPPUNIT_TEST( append_088
);
16384 CPPUNIT_TEST( append_089
); CPPUNIT_TEST( append_090
);
16385 CPPUNIT_TEST( append_091
); CPPUNIT_TEST( append_092
);
16386 CPPUNIT_TEST( append_093
); CPPUNIT_TEST( append_094
);
16387 CPPUNIT_TEST( append_095
); CPPUNIT_TEST( append_096
);
16388 CPPUNIT_TEST( append_097
); CPPUNIT_TEST( append_098
);
16389 CPPUNIT_TEST( append_099
); CPPUNIT_TEST( append_100
);
16390 CPPUNIT_TEST_SUITE_END();
16393 class append_007_Int64_defaultParam
: public CppUnit::TestFixture
16398 void setUp() override
16400 arrOUS
[0] = OString( kTestStr7
);
16401 arrOUS
[1] = OString( );
16402 arrOUS
[2] = OString( kTestStr25
);
16403 arrOUS
[3] = OString( "" );
16404 arrOUS
[4] = OString( kTestStr28
);
16409 OStringBuffer
aStrBuf( arrOUS
[0] );
16410 OString
expVal( kTestStr59
);
16411 sal_Int64 input
= 11;
16413 aStrBuf
.append( input
);
16415 CPPUNIT_ASSERT_EQUAL_MESSAGE
16417 "input Int64 11 and return OStringBuffer[0]+11",
16418 expVal
, aStrBuf
.toString()
16420 CPPUNIT_ASSERT_EQUAL_MESSAGE
16422 "input Int64 11 and return OStringBuffer[0]+11",
16423 expVal
.getLength(), aStrBuf
.getLength()
16430 OStringBuffer
aStrBuf( arrOUS
[0] );
16431 OString
expVal( kTestStr62
);
16432 sal_Int64 input
= 0;
16434 aStrBuf
.append( input
);
16436 CPPUNIT_ASSERT_EQUAL_MESSAGE
16438 "input Int64 0 and return OStringBuffer[0]+0",
16439 expVal
, aStrBuf
.toString()
16441 CPPUNIT_ASSERT_EQUAL_MESSAGE
16443 "input Int64 0 and return OStringBuffer[0]+0",
16444 expVal
.getLength(), aStrBuf
.getLength()
16451 OStringBuffer
aStrBuf( arrOUS
[0] );
16452 OString
expVal( kTestStr63
);
16453 sal_Int64 input
= -11;
16455 aStrBuf
.append( input
);
16457 CPPUNIT_ASSERT_EQUAL_MESSAGE
16459 "input Int64 -11 and return OStringBuffer[0]+(-11)",
16460 expVal
, aStrBuf
.toString()
16462 CPPUNIT_ASSERT_EQUAL_MESSAGE
16464 "input Int64 -11 and return OStringBuffer[0]+(-11)",
16465 expVal
.getLength(), aStrBuf
.getLength()
16472 OStringBuffer
aStrBuf( arrOUS
[0] );
16473 OString
expVal( kTestStr116
);
16474 sal_Int64 input
= SAL_CONST_INT64(9223372036854775807);
16475 aStrBuf
.append( input
);
16477 CPPUNIT_ASSERT_EQUAL_MESSAGE
16479 "input Int64 9223372036854775807 and return OStringBuffer[0]+9223372036854775807",
16480 expVal
, aStrBuf
.toString()
16482 CPPUNIT_ASSERT_EQUAL_MESSAGE
16484 "input Int64 9223372036854775807 and return OStringBuffer[0]+9223372036854775807",
16485 expVal
.getLength(), aStrBuf
.getLength()
16492 OStringBuffer
aStrBuf( arrOUS
[0] );
16493 OString
expVal( kTestStr117
);
16494 sal_Int64 input
= SAL_MIN_INT64
/*-9223372036854775808*/; // LLA: this is not the same :-( kNonSInt64Max;
16496 aStrBuf
.append( input
);
16498 bool bRes
= expVal
== aStrBuf
.getStr();
16499 CPPUNIT_ASSERT_MESSAGE
16501 "input Int64 -9223372036854775808 and return OStringBuffer[0]+(-9223372036854775808)",
16504 CPPUNIT_ASSERT_EQUAL_MESSAGE
16506 "input Int64 -9223372036854775808 and return OStringBuffer[0]+(-9223372036854775808)",
16507 expVal
.getLength(), aStrBuf
.getLength()
16514 OStringBuffer
aStrBuf( arrOUS
[1] );
16515 OString
expVal( kTestStr60
);
16516 sal_Int64 input
= 11;
16518 aStrBuf
.append( input
);
16520 CPPUNIT_ASSERT_EQUAL_MESSAGE
16522 "input Int64 11 and return OStringBuffer[1]+11",
16523 expVal
, aStrBuf
.toString()
16525 CPPUNIT_ASSERT_EQUAL_MESSAGE
16527 "input Int64 11 and return OStringBuffer[1]+11",
16528 expVal
.getLength(), aStrBuf
.getLength()
16535 OStringBuffer
aStrBuf( arrOUS
[1] );
16536 OString
expVal( kTestStr66
);
16537 sal_Int64 input
= 0;
16539 aStrBuf
.append( input
);
16541 CPPUNIT_ASSERT_EQUAL_MESSAGE
16543 "input Int64 0 and return OStringBuffer[1]+0",
16544 expVal
, aStrBuf
.toString()
16546 CPPUNIT_ASSERT_EQUAL_MESSAGE
16548 "input Int64 0 and return OStringBuffer[1]+0",
16549 expVal
.getLength(), aStrBuf
.getLength()
16556 OStringBuffer
aStrBuf( arrOUS
[1] );
16557 OString
expVal( kTestStr67
);
16558 sal_Int64 input
= -11;
16560 aStrBuf
.append( input
);
16562 CPPUNIT_ASSERT_EQUAL_MESSAGE
16564 "input Int64 -11 and return OStringBuffer[1]+(-11)",
16565 expVal
, aStrBuf
.toString()
16567 CPPUNIT_ASSERT_EQUAL_MESSAGE
16569 "input Int64 -11 and return OStringBuffer[1]+(-11)",
16570 expVal
.getLength(), aStrBuf
.getLength()
16577 OStringBuffer
aStrBuf( arrOUS
[1] );
16578 OString
expVal( kTestStr118
);
16579 sal_Int64 input
= SAL_CONST_INT64(9223372036854775807);
16580 aStrBuf
.append( input
);
16582 CPPUNIT_ASSERT_EQUAL_MESSAGE
16584 "input Int64 9223372036854775807 and return OStringBuffer[1]+9223372036854775807",
16585 expVal
, aStrBuf
.toString()
16587 CPPUNIT_ASSERT_EQUAL_MESSAGE
16589 "input Int64 9223372036854775807 and return OStringBuffer[1]+9223372036854775807",
16590 expVal
.getLength(), aStrBuf
.getLength()
16597 OStringBuffer
aStrBuf( arrOUS
[1] );
16598 OString
expVal( kTestStr119
);
16599 sal_Int64 input
= SAL_MIN_INT64
; // LLA: this is not the same :-( kNonSInt64Max;
16601 aStrBuf
.append( input
);
16603 CPPUNIT_ASSERT_EQUAL_MESSAGE
16605 "input Int64 -9223372036854775808 and return OStringBuffer[1]+(-9223372036854775808)",
16606 expVal
, aStrBuf
.toString()
16608 CPPUNIT_ASSERT_EQUAL_MESSAGE
16610 "input Int64 -9223372036854775808 and return OStringBuffer[1]+(-9223372036854775808)",
16611 expVal
.getLength(), aStrBuf
.getLength()
16618 OStringBuffer
aStrBuf( arrOUS
[2] );
16619 OString
expVal( kTestStr60
);
16620 sal_Int64 input
= 11;
16622 aStrBuf
.append( input
);
16624 CPPUNIT_ASSERT_EQUAL_MESSAGE
16626 "input Int64 11 and return OStringBuffer[2]+11",
16627 expVal
, aStrBuf
.toString()
16629 CPPUNIT_ASSERT_EQUAL_MESSAGE
16631 "input Int64 11 and return OStringBuffer[2]+11",
16632 expVal
.getLength(), aStrBuf
.getLength()
16639 OStringBuffer
aStrBuf( arrOUS
[2] );
16640 OString
expVal( kTestStr66
);
16641 sal_Int64 input
= 0;
16643 aStrBuf
.append( input
);
16645 CPPUNIT_ASSERT_EQUAL_MESSAGE
16647 "input Int64 0 and return OUStringBuffer[2]+0",
16648 expVal
, aStrBuf
.toString()
16650 CPPUNIT_ASSERT_EQUAL_MESSAGE
16652 "input Int64 0 and return OUStringBuffer[2]+0",
16653 expVal
.getLength(), aStrBuf
.getLength()
16660 OStringBuffer
aStrBuf( arrOUS
[2] );
16661 OString
expVal( kTestStr67
);
16662 sal_Int64 input
= -11;
16664 aStrBuf
.append( input
);
16666 CPPUNIT_ASSERT_EQUAL_MESSAGE
16668 "input Int64 -11 and return OUStringBuffer[2]+(-11)",
16669 expVal
, aStrBuf
.toString()
16671 CPPUNIT_ASSERT_EQUAL_MESSAGE
16673 "input Int64 -11 and return OUStringBuffer[2]+(-11)",
16674 expVal
.getLength(), aStrBuf
.getLength()
16681 OStringBuffer
aStrBuf( arrOUS
[2] );
16682 OString
expVal( kTestStr118
);
16683 sal_Int64 input
= SAL_CONST_INT64(9223372036854775807);
16684 aStrBuf
.append( input
);
16686 CPPUNIT_ASSERT_EQUAL_MESSAGE
16688 "input Int64 9223372036854775807 and return OStringBuffer[2]+9223372036854775807",
16689 expVal
, aStrBuf
.toString()
16691 CPPUNIT_ASSERT_EQUAL_MESSAGE
16693 "input Int64 9223372036854775807 and return OStringBuffer[2]+9223372036854775807",
16694 expVal
.getLength(), aStrBuf
.getLength()
16701 OStringBuffer
aStrBuf( arrOUS
[2] );
16702 OString
expVal( kTestStr119
);
16703 sal_Int64 input
= SAL_MIN_INT64
; // LLA: this is not the same :-( kNonSInt64Max;
16705 aStrBuf
.append( input
);
16707 CPPUNIT_ASSERT_EQUAL_MESSAGE
16709 "input Int64 -9223372036854775808 and return OStringBuffer[2]+(-9223372036854775808)",
16710 expVal
, aStrBuf
.toString()
16712 CPPUNIT_ASSERT_EQUAL_MESSAGE
16714 "input Int64 -9223372036854775808 and return OStringBuffer[2]+(-9223372036854775808)",
16715 expVal
.getLength(), aStrBuf
.getLength()
16722 OStringBuffer
aStrBuf( arrOUS
[3] );
16723 OString
expVal( kTestStr60
);
16724 sal_Int64 input
= 11;
16726 aStrBuf
.append( input
);
16728 CPPUNIT_ASSERT_EQUAL_MESSAGE
16730 "input Int64 11 and return OStringBuffer[3]+11",
16731 expVal
, aStrBuf
.toString()
16733 CPPUNIT_ASSERT_EQUAL_MESSAGE
16735 "input Int64 11 and return OStringBuffer[3]+11",
16736 expVal
.getLength(), aStrBuf
.getLength()
16743 OStringBuffer
aStrBuf( arrOUS
[3] );
16744 OString
expVal( kTestStr66
);
16745 sal_Int64 input
= 0;
16747 aStrBuf
.append( input
);
16749 CPPUNIT_ASSERT_EQUAL_MESSAGE
16751 "input Int64 0 and return OStringBuffer[3]+0",
16752 expVal
, aStrBuf
.toString()
16754 CPPUNIT_ASSERT_EQUAL_MESSAGE
16756 "input Int64 0 and return OStringBuffer[3]+0",
16757 expVal
.getLength(), aStrBuf
.getLength()
16764 OStringBuffer
aStrBuf( arrOUS
[3] );
16765 OString
expVal( kTestStr67
);
16766 sal_Int64 input
= -11;
16768 aStrBuf
.append( input
);
16770 CPPUNIT_ASSERT_EQUAL_MESSAGE
16772 "input Int64 -11 and return OStringBuffer[3]+(-11)",
16773 expVal
, aStrBuf
.toString()
16775 CPPUNIT_ASSERT_EQUAL_MESSAGE
16777 "input Int64 -11 and return OStringBuffer[3]+(-11)",
16778 expVal
.getLength(), aStrBuf
.getLength()
16785 OStringBuffer
aStrBuf( arrOUS
[3] );
16786 OString
expVal( kTestStr118
);
16787 sal_Int64 input
= SAL_CONST_INT64(9223372036854775807);
16788 aStrBuf
.append( input
);
16790 CPPUNIT_ASSERT_EQUAL_MESSAGE
16792 "input Int64 9223372036854775807 and return OStringBuffer[3]+9223372036854775807",
16793 expVal
, aStrBuf
.toString()
16795 CPPUNIT_ASSERT_EQUAL_MESSAGE
16797 "input Int64 9223372036854775807 and return OStringBuffer[3]+9223372036854775807",
16798 expVal
.getLength(), aStrBuf
.getLength()
16805 OStringBuffer
aStrBuf( arrOUS
[3] );
16806 OString
expVal( kTestStr119
);
16807 sal_Int64 input
= SAL_MIN_INT64
; // LLA: this is not the same :-( kNonSInt64Max;
16809 aStrBuf
.append( input
);
16811 CPPUNIT_ASSERT_EQUAL_MESSAGE
16813 "input Int64 -9223372036854775808 and return OStringBuffer[3]+(-9223372036854775808)",
16814 expVal
, aStrBuf
.toString()
16816 CPPUNIT_ASSERT_EQUAL_MESSAGE
16818 "input Int64 -9223372036854775808 and return OStringBuffer[3]+(-9223372036854775808)",
16819 expVal
.getLength(), aStrBuf
.getLength()
16826 OStringBuffer
aStrBuf( arrOUS
[4] );
16827 OString
expVal( kTestStr61
);
16828 sal_Int64 input
= 11;
16830 aStrBuf
.append( input
);
16832 CPPUNIT_ASSERT_EQUAL_MESSAGE
16834 "input Int64 11 and return OStringBuffer[4]+11",
16835 expVal
, aStrBuf
.toString()
16837 CPPUNIT_ASSERT_EQUAL_MESSAGE
16839 "input Int64 11 and return OStringBuffer[4]+11",
16840 expVal
.getLength(), aStrBuf
.getLength()
16847 OStringBuffer
aStrBuf( arrOUS
[4] );
16848 OString
expVal( kTestStr70
);
16849 sal_Int64 input
= 0;
16851 aStrBuf
.append( input
);
16853 CPPUNIT_ASSERT_EQUAL_MESSAGE
16855 "input Int64 0 and return OStringBuffer[4]+0",
16856 expVal
, aStrBuf
.toString()
16858 CPPUNIT_ASSERT_EQUAL_MESSAGE
16860 "input Int64 0 and return OStringBuffer[4]+0",
16861 expVal
.getLength(), aStrBuf
.getLength()
16868 OStringBuffer
aStrBuf( arrOUS
[4] );
16869 OString
expVal( kTestStr71
);
16870 sal_Int64 input
= -11;
16872 aStrBuf
.append( input
);
16874 CPPUNIT_ASSERT_EQUAL_MESSAGE
16876 "input Int64 -11 and return OStringBuffer[4]+(-11)",
16877 expVal
, aStrBuf
.toString()
16879 CPPUNIT_ASSERT_EQUAL_MESSAGE
16881 "input Int64 -11 and return OStringBuffer[4]+(-11)",
16882 expVal
.getLength(), aStrBuf
.getLength()
16889 OStringBuffer
aStrBuf( arrOUS
[4] );
16890 OString
expVal( kTestStr120
);
16891 sal_Int64 input
= SAL_CONST_INT64(9223372036854775807);
16892 aStrBuf
.append( input
);
16894 CPPUNIT_ASSERT_EQUAL_MESSAGE
16896 "input Int64 9223372036854775807 and return OStringBuffer[4]+9223372036854775807",
16897 expVal
, aStrBuf
.toString()
16899 CPPUNIT_ASSERT_EQUAL_MESSAGE
16901 "input Int64 9223372036854775807 and return OStringBuffer[4]+9223372036854775807",
16902 expVal
.getLength(), aStrBuf
.getLength()
16909 OStringBuffer
aStrBuf( arrOUS
[4] );
16910 OString
expVal( kTestStr121
);
16911 sal_Int64 input
= SAL_MIN_INT64
; // LLA: this is not the same :-( kNonSInt64Max;
16913 aStrBuf
.append( input
);
16915 CPPUNIT_ASSERT_EQUAL_MESSAGE
16917 "input Int64 -9223372036854775808 and return OStringBuffer[4]+(-9223372036854775808)",
16918 expVal
, aStrBuf
.toString()
16920 CPPUNIT_ASSERT_EQUAL_MESSAGE
16922 "input Int64 -9223372036854775808 and return OStringBuffer[4]+(-9223372036854775808)",
16923 expVal
.getLength(), aStrBuf
.getLength()
16930 OStringBuffer
aStrBuf( kSInt64Max
);
16931 OString
expVal( kTestStr60
);
16932 sal_Int64 input
= 11;
16934 aStrBuf
.append( input
);
16936 CPPUNIT_ASSERT_MESSAGE
16938 "input Int64 11 and return OStringBuffer(kSInt64Max)+11",
16939 (aStrBuf
.toString() == expVal
&&
16940 aStrBuf
.getLength() == expVal
.getLength())
16947 OStringBuffer
aStrBuf( kSInt64Max
);
16948 OString
expVal( kTestStr66
);
16949 sal_Int64 input
= 0;
16951 aStrBuf
.append( input
);
16953 CPPUNIT_ASSERT_MESSAGE
16955 "input Int64 0 and return OStringBuffer(kSInt64Max)+0",
16956 (aStrBuf
.toString() == expVal
&&
16957 aStrBuf
.getLength() == expVal
.getLength())
16964 OStringBuffer
aStrBuf( kSInt64Max
);
16965 OString
expVal( kTestStr67
);
16966 sal_Int64 input
= -11;
16968 aStrBuf
.append( input
);
16970 CPPUNIT_ASSERT_MESSAGE
16972 "input Int64 -11 and return OStringBuffer(kSInt64Max)+(-11)",
16973 (aStrBuf
.toString() == expVal
&&
16974 aStrBuf
.getLength() == expVal
.getLength())
16981 OStringBuffer
aStrBuf( kSInt64Max
);
16982 OString
expVal( kTestStr118
);
16983 sal_Int64 input
= 9223372036854775807;
16985 aStrBuf
.append( input
);
16987 CPPUNIT_ASSERT_MESSAGE
16989 "input Int64 9223372036854775807 and return OStringBuffer(kSInt64Max)+9223372036854775807",
16990 (aStrBuf
.toString() == expVal
&&
16991 aStrBuf
.getLength() == expVal
.getLength())
16998 OStringBuffer
aStrBuf( kSInt64Max
);
16999 OString
expVal( kTestStr119
);
17000 sal_Int64 input
= SAL_MIN_INT64
; // LLA: this is not the same :-( kNonSInt64Max;
17002 aStrBuf
.append( input
);
17004 CPPUNIT_ASSERT_MESSAGE
17006 "input Int64 -9223372036854775808 and return OStringBuffer(kSInt64Max)+(-9223372036854775808)",
17007 (aStrBuf
.toString() == expVal
&&
17008 aStrBuf
.getLength() == expVal
.getLength())
17014 CPPUNIT_TEST_SUITE( append_007_Int64_defaultParam
);
17015 CPPUNIT_TEST( append_001
);
17016 CPPUNIT_TEST( append_002
);
17017 CPPUNIT_TEST( append_003
);
17018 CPPUNIT_TEST( append_004
);
17019 CPPUNIT_TEST( append_005
);
17020 CPPUNIT_TEST( append_006
);
17021 CPPUNIT_TEST( append_007
);
17022 CPPUNIT_TEST( append_008
);
17023 CPPUNIT_TEST( append_009
);
17024 CPPUNIT_TEST( append_010
);
17025 CPPUNIT_TEST( append_011
);
17026 CPPUNIT_TEST( append_012
);
17027 CPPUNIT_TEST( append_013
);
17028 CPPUNIT_TEST( append_014
);
17029 CPPUNIT_TEST( append_015
);
17030 CPPUNIT_TEST( append_016
);
17031 CPPUNIT_TEST( append_017
);
17032 CPPUNIT_TEST( append_018
);
17033 CPPUNIT_TEST( append_019
);
17034 CPPUNIT_TEST( append_020
);
17035 CPPUNIT_TEST( append_021
);
17036 CPPUNIT_TEST( append_022
);
17037 CPPUNIT_TEST( append_023
);
17038 CPPUNIT_TEST( append_024
);
17039 CPPUNIT_TEST( append_025
);
17041 CPPUNIT_TEST( append_026
);
17042 CPPUNIT_TEST( append_027
);
17043 CPPUNIT_TEST( append_028
);
17044 CPPUNIT_TEST( append_029
);
17045 CPPUNIT_TEST( append_030
);
17047 CPPUNIT_TEST_SUITE_END();
17050 // testing the method append( float f )
17052 class checkfloat
: public CppUnit::TestFixture
17055 bool checkIfStrBufContainAtPosTheFloat(OStringBuffer
const& _sStrBuf
, sal_Int32 _nLen
, float _nFloat
)
17057 OString sFloatValue
= OString::number(_nFloat
);
17059 OString
sBufferString(_sStrBuf
.getStr());
17060 sal_Int32 nPos
= sBufferString
.indexOf(sFloatValue
);
17061 return nPos
>= 0 && nPos
== _nLen
;
17065 class append_008_float
: public checkfloat
17070 void setUp() override
17072 arrOUS
[0] = OString( kTestStr7
);
17073 arrOUS
[1] = OString( );
17074 arrOUS
[2] = OString( kTestStr25
);
17075 arrOUS
[3] = OString( "" );
17076 arrOUS
[4] = OString( kTestStr28
);
17081 OStringBuffer
aStrBuf( arrOUS
[0] );
17082 float input
= static_cast<float>(atof("3.0"));
17085 // the complex problem is here, that a float value is not really what we write.
17086 // So a 3.0 could also be 3 or 3.0 or 3.0000001 or 2.9999999
17087 // this has to be checked.
17088 sal_Int32 nLen
= aStrBuf
.getLength();
17089 aStrBuf
.append( input
);
17091 CPPUNIT_ASSERT_MESSAGE
17093 "arrOUS[0] append 3.0",
17094 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17101 OStringBuffer
aStrBuf( arrOUS
[0] );
17102 float input
= static_cast<float>(atof("3.5"));
17104 sal_Int32 nLen
= aStrBuf
.getLength();
17105 aStrBuf
.append( input
);
17107 CPPUNIT_ASSERT_MESSAGE
17109 "arrOUS[0] append 3.5",
17110 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17117 OStringBuffer
aStrBuf( arrOUS
[0] );
17118 float input
= static_cast<float>(atof("3.0625"));
17120 sal_Int32 nLen
= aStrBuf
.getLength();
17121 aStrBuf
.append( input
);
17123 CPPUNIT_ASSERT_MESSAGE
17125 "arrOUS[0] append 3.0625",
17126 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17133 OStringBuffer
aStrBuf( arrOUS
[0] );
17134 float input
= static_cast<float>(atof("3.502525"));
17136 sal_Int32 nLen
= aStrBuf
.getLength();
17137 aStrBuf
.append( input
);
17139 CPPUNIT_ASSERT_MESSAGE
17141 "arrOUS[0] append 3.502525",
17142 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17149 OStringBuffer
aStrBuf( arrOUS
[0] );
17150 float input
= static_cast<float>(atof("3.141592"));
17152 sal_Int32 nLen
= aStrBuf
.getLength();
17153 aStrBuf
.append( input
);
17155 CPPUNIT_ASSERT_MESSAGE
17157 "arrOUS[0] append 3.141592",
17158 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17165 OStringBuffer
aStrBuf( arrOUS
[0] );
17166 float input
= static_cast<float>(atof("3.5025255"));
17168 sal_Int32 nLen
= aStrBuf
.getLength();
17169 aStrBuf
.append( input
);
17171 CPPUNIT_ASSERT_MESSAGE
17173 "arrOUS[0] append 3.5025255",
17174 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17181 OStringBuffer
aStrBuf( arrOUS
[0] );
17182 float input
= static_cast<float>(atof("3.00390625"));
17184 sal_Int32 nLen
= aStrBuf
.getLength();
17185 aStrBuf
.append( input
);
17187 CPPUNIT_ASSERT_MESSAGE
17189 "arrOUS[0] append 3.0039062",
17190 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17197 OStringBuffer
aStrBuf( arrOUS
[1] );
17198 float input
= static_cast<float>(atof("3.0"));
17200 sal_Int32 nLen
= aStrBuf
.getLength();
17201 aStrBuf
.append( input
);
17203 CPPUNIT_ASSERT_MESSAGE
17205 "arrOUS[1] append 3.0",
17206 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17213 OStringBuffer
aStrBuf( arrOUS
[1] );
17214 float input
= static_cast<float>(atof("3.5"));
17216 sal_Int32 nLen
= aStrBuf
.getLength();
17217 aStrBuf
.append( input
);
17219 CPPUNIT_ASSERT_MESSAGE
17221 "arrOUS[1] append 3.5",
17222 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17229 OStringBuffer
aStrBuf( arrOUS
[1] );
17230 float input
= static_cast<float>(atof("3.0625"));
17232 sal_Int32 nLen
= aStrBuf
.getLength();
17233 aStrBuf
.append( input
);
17235 CPPUNIT_ASSERT_MESSAGE
17237 "arrOUS[1] append 3.0625",
17238 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17245 OStringBuffer
aStrBuf( arrOUS
[1] );
17246 float input
= static_cast<float>(atof("3.502525"));
17248 sal_Int32 nLen
= aStrBuf
.getLength();
17249 aStrBuf
.append( input
);
17251 CPPUNIT_ASSERT_MESSAGE
17253 "arrOUS[1] append 3.502525",
17254 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17261 OStringBuffer
aStrBuf( arrOUS
[1] );
17262 float input
= static_cast<float>(atof("3.141592"));
17264 sal_Int32 nLen
= aStrBuf
.getLength();
17265 aStrBuf
.append( input
);
17267 CPPUNIT_ASSERT_MESSAGE
17269 "arrOUS[1] append 3.141592",
17270 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17277 OStringBuffer
aStrBuf( arrOUS
[1] );
17278 float input
= static_cast<float>(atof("3.5025255"));
17280 sal_Int32 nLen
= aStrBuf
.getLength();
17281 aStrBuf
.append( input
);
17283 CPPUNIT_ASSERT_MESSAGE
17285 "arrOUS[1] append 3.5025255",
17286 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17293 OStringBuffer
aStrBuf( arrOUS
[1] );
17294 float input
= static_cast<float>(atof("3.00390625"));
17296 sal_Int32 nLen
= aStrBuf
.getLength();
17297 aStrBuf
.append( input
);
17299 CPPUNIT_ASSERT_MESSAGE
17301 "arrOUS[1] append 3.0039062",
17302 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17309 OStringBuffer
aStrBuf( arrOUS
[2] );
17310 float input
= static_cast<float>(atof("3.0"));
17312 sal_Int32 nLen
= aStrBuf
.getLength();
17313 aStrBuf
.append( input
);
17315 CPPUNIT_ASSERT_MESSAGE
17317 "arrOUS[2] append 3.0",
17318 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17325 OStringBuffer
aStrBuf( arrOUS
[2] );
17326 float input
= static_cast<float>(atof("3.5"));
17328 sal_Int32 nLen
= aStrBuf
.getLength();
17329 aStrBuf
.append( input
);
17331 CPPUNIT_ASSERT_MESSAGE
17333 "arrOUS[2] append 3.5",
17334 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17341 OStringBuffer
aStrBuf( arrOUS
[2] );
17342 float input
= static_cast<float>(atof("3.0625"));
17344 sal_Int32 nLen
= aStrBuf
.getLength();
17345 aStrBuf
.append( input
);
17347 CPPUNIT_ASSERT_MESSAGE
17349 "arrOUS[2] append 3.0625",
17350 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17357 OStringBuffer
aStrBuf( arrOUS
[2] );
17358 float input
= static_cast<float>(atof("3.502525"));
17360 sal_Int32 nLen
= aStrBuf
.getLength();
17361 aStrBuf
.append( input
);
17363 CPPUNIT_ASSERT_MESSAGE
17365 "arrOUS[2] append 3.502525",
17366 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17373 OStringBuffer
aStrBuf( arrOUS
[2] );
17374 float input
= static_cast<float>(atof("3.141592"));
17376 sal_Int32 nLen
= aStrBuf
.getLength();
17377 aStrBuf
.append( input
);
17379 CPPUNIT_ASSERT_MESSAGE
17381 "arrOUS[2] append 3.141592",
17382 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17389 OStringBuffer
aStrBuf( arrOUS
[2] );
17390 float input
= static_cast<float>(atof("3.5025255"));
17392 sal_Int32 nLen
= aStrBuf
.getLength();
17393 aStrBuf
.append( input
);
17395 CPPUNIT_ASSERT_MESSAGE
17397 "arrOUS[2] append 3.5025255",
17398 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17405 OStringBuffer
aStrBuf( arrOUS
[2] );
17406 float input
= static_cast<float>(atof("3.00390625"));
17408 sal_Int32 nLen
= aStrBuf
.getLength();
17409 aStrBuf
.append( input
);
17411 CPPUNIT_ASSERT_MESSAGE
17413 "arrOUS[2] append 3.0039062",
17414 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17421 OStringBuffer
aStrBuf( arrOUS
[3] );
17422 float input
= static_cast<float>(atof("3.0"));
17424 sal_Int32 nLen
= aStrBuf
.getLength();
17425 aStrBuf
.append( input
);
17427 CPPUNIT_ASSERT_MESSAGE
17429 "arrOUS[3] append 3.0",
17430 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17437 OStringBuffer
aStrBuf( arrOUS
[3] );
17438 float input
= static_cast<float>(atof("3.5"));
17440 sal_Int32 nLen
= aStrBuf
.getLength();
17441 aStrBuf
.append( input
);
17443 CPPUNIT_ASSERT_MESSAGE
17445 "arrOUS[3] append 3.5",
17446 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17453 OStringBuffer
aStrBuf( arrOUS
[3] );
17454 float input
= static_cast<float>(atof("3.0625"));
17456 sal_Int32 nLen
= aStrBuf
.getLength();
17457 aStrBuf
.append( input
);
17459 CPPUNIT_ASSERT_MESSAGE
17461 "arrOUS[3] append 3.0625",
17462 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17469 OStringBuffer
aStrBuf( arrOUS
[3] );
17470 float input
= static_cast<float>(atof("3.502525"));
17472 sal_Int32 nLen
= aStrBuf
.getLength();
17473 aStrBuf
.append( input
);
17475 CPPUNIT_ASSERT_MESSAGE
17477 "arrOUS[3] append 3.502525",
17478 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17486 OStringBuffer
aStrBuf( kSInt32Max
);
17487 float input
= (float)atof("3.0");
17489 sal_Int32 nLen
= aStrBuf
.getLength();
17490 aStrBuf
.append( input
);
17492 CPPUNIT_ASSERT_MESSAGE
17494 "OStringBuffer( kSInt32Max ) append 3.0",
17495 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17502 OStringBuffer
aStrBuf( kSInt32Max
);
17503 float input
= (float)atof("3.5");
17505 sal_Int32 nLen
= aStrBuf
.getLength();
17506 aStrBuf
.append( input
);
17508 CPPUNIT_ASSERT_MESSAGE
17510 "OStringBuffer( kSInt32Max ) append 3.5",
17511 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17518 OStringBuffer
aStrBuf( kSInt32Max
);
17519 float input
= (float)atof("3.0625");
17521 sal_Int32 nLen
= aStrBuf
.getLength();
17522 aStrBuf
.append( input
);
17524 CPPUNIT_ASSERT_MESSAGE
17526 "OStringBuffer( kSInt32Max ) append 3.0625",
17527 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17534 OStringBuffer
aStrBuf( kSInt32Max
);
17535 float input
= (float)atof("3.502525");
17537 sal_Int32 nLen
= aStrBuf
.getLength();
17538 aStrBuf
.append( input
);
17540 CPPUNIT_ASSERT_MESSAGE
17542 "OStringBuffer( kSInt32Max ) append 3.502525",
17543 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17550 OStringBuffer
aStrBuf( kSInt32Max
);
17551 float input
= (float)atof("3.141592");
17553 sal_Int32 nLen
= aStrBuf
.getLength();
17554 aStrBuf
.append( input
);
17556 CPPUNIT_ASSERT_MESSAGE
17558 "OStringBuffer( kSInt32Max ) append 3.141592",
17559 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17566 OStringBuffer
aStrBuf( kSInt32Max
);
17567 float input
= (float)atof("3.5025255");
17569 sal_Int32 nLen
= aStrBuf
.getLength();
17570 aStrBuf
.append( input
);
17572 CPPUNIT_ASSERT_MESSAGE
17574 "OStringBuffer( kSInt32Max ) append 3.5025255",
17575 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17582 OStringBuffer
aStrBuf( kSInt32Max
);
17583 float input
= (float)atof("3.00390625");
17585 sal_Int32 nLen
= aStrBuf
.getLength();
17586 aStrBuf
.append( input
);
17588 CPPUNIT_ASSERT_MESSAGE
17590 "OStringBuffer( kSInt32Max ) append 3.0039062",
17591 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17597 CPPUNIT_TEST_SUITE( append_008_float
);
17598 CPPUNIT_TEST( append_001
);
17599 CPPUNIT_TEST( append_002
);
17600 CPPUNIT_TEST( append_003
);
17601 CPPUNIT_TEST( append_004
);
17602 CPPUNIT_TEST( append_005
);
17603 CPPUNIT_TEST( append_006
);
17604 CPPUNIT_TEST( append_007
);
17605 CPPUNIT_TEST( append_008
);
17606 CPPUNIT_TEST( append_009
);
17607 CPPUNIT_TEST( append_010
);
17608 CPPUNIT_TEST( append_011
);
17609 CPPUNIT_TEST( append_012
);
17610 CPPUNIT_TEST( append_013
);
17611 CPPUNIT_TEST( append_014
);
17612 CPPUNIT_TEST( append_015
);
17613 CPPUNIT_TEST( append_016
);
17614 CPPUNIT_TEST( append_017
);
17615 CPPUNIT_TEST( append_018
);
17616 CPPUNIT_TEST( append_019
);
17617 CPPUNIT_TEST( append_020
);
17618 CPPUNIT_TEST( append_021
);
17619 CPPUNIT_TEST( append_022
);
17620 CPPUNIT_TEST( append_023
);
17621 CPPUNIT_TEST( append_024
);
17622 CPPUNIT_TEST( append_025
);
17624 CPPUNIT_TEST( append_026
);
17625 CPPUNIT_TEST( append_027
);
17626 CPPUNIT_TEST( append_028
);
17627 CPPUNIT_TEST( append_029
);
17628 CPPUNIT_TEST( append_030
);
17630 CPPUNIT_TEST_SUITE_END();
17633 // testing the method append( float f ) for negative value
17635 class append_008_Float_Negative
: public checkfloat
17640 void setUp() override
17642 arrOUS
[0] = OString( kTestStr7
);
17643 arrOUS
[1] = OString( );
17644 arrOUS
[2] = OString( kTestStr25
);
17645 arrOUS
[3] = OString( "" );
17646 arrOUS
[4] = OString( kTestStr28
);
17651 OStringBuffer
aStrBuf( arrOUS
[0] );
17652 float input
= static_cast<float>(atof("-3.0"));
17654 sal_Int32 nLen
= aStrBuf
.getLength();
17655 aStrBuf
.append( input
);
17657 CPPUNIT_ASSERT_MESSAGE
17659 "arrOUS[0] append -3.0",
17660 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17667 OStringBuffer
aStrBuf( arrOUS
[0] );
17668 float input
= static_cast<float>(atof("-3.5"));
17670 sal_Int32 nLen
= aStrBuf
.getLength();
17671 aStrBuf
.append( input
);
17673 CPPUNIT_ASSERT_MESSAGE
17675 "arrOUS[0] append -3.5",
17676 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17683 OStringBuffer
aStrBuf( arrOUS
[0] );
17684 float input
= static_cast<float>(atof("-3.0625"));
17686 sal_Int32 nLen
= aStrBuf
.getLength();
17687 aStrBuf
.append( input
);
17689 CPPUNIT_ASSERT_MESSAGE
17691 "arrOUS[0] append -3.0625",
17692 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17699 OStringBuffer
aStrBuf( arrOUS
[0] );
17700 float input
= static_cast<float>(atof("-3.502525"));
17702 sal_Int32 nLen
= aStrBuf
.getLength();
17703 aStrBuf
.append( input
);
17705 CPPUNIT_ASSERT_MESSAGE
17707 "arrOUS[0] append -3.502525",
17708 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17715 OStringBuffer
aStrBuf( arrOUS
[0] );
17716 float input
= static_cast<float>(atof("-3.141592"));
17718 sal_Int32 nLen
= aStrBuf
.getLength();
17719 aStrBuf
.append( input
);
17721 CPPUNIT_ASSERT_MESSAGE
17723 "arrOUS[0] append -3.141592",
17724 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17731 OStringBuffer
aStrBuf( arrOUS
[0] );
17732 float input
= static_cast<float>(atof("-3.5025255"));
17734 sal_Int32 nLen
= aStrBuf
.getLength();
17735 aStrBuf
.append( input
);
17737 CPPUNIT_ASSERT_MESSAGE
17739 "arrOUS[0] append -3.5025255",
17740 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17747 OStringBuffer
aStrBuf( arrOUS
[0] );
17748 float input
= static_cast<float>(atof("-3.00390625"));
17750 sal_Int32 nLen
= aStrBuf
.getLength();
17751 aStrBuf
.append( input
);
17753 CPPUNIT_ASSERT_MESSAGE
17755 "arrOUS[0] append -3.0039062",
17756 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17763 OStringBuffer
aStrBuf( arrOUS
[1] );
17764 float input
= static_cast<float>(atof("-3.0"));
17766 sal_Int32 nLen
= aStrBuf
.getLength();
17767 aStrBuf
.append( input
);
17769 CPPUNIT_ASSERT_MESSAGE
17771 "arrOUS[1] append -3.0",
17772 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17779 OStringBuffer
aStrBuf( arrOUS
[1] );
17780 float input
= static_cast<float>(atof("-3.5"));
17782 sal_Int32 nLen
= aStrBuf
.getLength();
17783 aStrBuf
.append( input
);
17785 CPPUNIT_ASSERT_MESSAGE
17787 "arrOUS[1] append -3.5",
17788 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17795 OStringBuffer
aStrBuf( arrOUS
[1] );
17796 float input
= static_cast<float>(atof("-3.0625"));
17798 sal_Int32 nLen
= aStrBuf
.getLength();
17799 aStrBuf
.append( input
);
17801 CPPUNIT_ASSERT_MESSAGE
17803 "arrOUS[1] append -3.0625",
17804 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17811 OStringBuffer
aStrBuf( arrOUS
[1] );
17812 float input
= static_cast<float>(atof("-3.502525"));
17814 sal_Int32 nLen
= aStrBuf
.getLength();
17815 aStrBuf
.append( input
);
17817 CPPUNIT_ASSERT_MESSAGE
17819 "arrOUS[1] append -3.502525",
17820 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17827 OStringBuffer
aStrBuf( arrOUS
[1] );
17828 float input
= static_cast<float>(atof("-3.141592"));
17830 sal_Int32 nLen
= aStrBuf
.getLength();
17831 aStrBuf
.append( input
);
17833 CPPUNIT_ASSERT_MESSAGE
17835 "arrOUS[1] append -3.141592",
17836 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17843 OStringBuffer
aStrBuf( arrOUS
[1] );
17844 float input
= static_cast<float>(atof("-3.5025255"));
17846 sal_Int32 nLen
= aStrBuf
.getLength();
17847 aStrBuf
.append( input
);
17849 CPPUNIT_ASSERT_MESSAGE
17851 "arrOUS[1] append -3.5025255",
17852 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17859 OStringBuffer
aStrBuf( arrOUS
[1] );
17860 float input
= static_cast<float>(atof("-3.00390625"));
17862 sal_Int32 nLen
= aStrBuf
.getLength();
17863 aStrBuf
.append( input
);
17865 CPPUNIT_ASSERT_MESSAGE
17867 "arrOUS[1] append -3.0039062",
17868 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17875 OStringBuffer
aStrBuf( arrOUS
[2] );
17876 float input
= static_cast<float>(atof("-3.0"));
17878 sal_Int32 nLen
= aStrBuf
.getLength();
17879 aStrBuf
.append( input
);
17881 CPPUNIT_ASSERT_MESSAGE
17883 "arrOUS[2] append -3.0",
17884 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17891 OStringBuffer
aStrBuf( arrOUS
[2] );
17892 float input
= static_cast<float>(atof("-3.5"));
17894 sal_Int32 nLen
= aStrBuf
.getLength();
17895 aStrBuf
.append( input
);
17897 CPPUNIT_ASSERT_MESSAGE
17899 "arrOUS[2] append -3.5",
17900 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17907 OStringBuffer
aStrBuf( arrOUS
[2] );
17908 float input
= static_cast<float>(atof("-3.0625"));
17910 sal_Int32 nLen
= aStrBuf
.getLength();
17911 aStrBuf
.append( input
);
17913 CPPUNIT_ASSERT_MESSAGE
17915 "arrOUS[2] append -3.0625",
17916 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17923 OStringBuffer
aStrBuf( arrOUS
[2] );
17924 float input
= static_cast<float>(atof("-3.502525"));
17926 sal_Int32 nLen
= aStrBuf
.getLength();
17927 aStrBuf
.append( input
);
17929 CPPUNIT_ASSERT_MESSAGE
17931 "arrOUS[2] append -3.502525",
17932 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17939 OStringBuffer
aStrBuf( arrOUS
[2] );
17940 float input
= static_cast<float>(atof("-3.141592"));
17942 sal_Int32 nLen
= aStrBuf
.getLength();
17943 aStrBuf
.append( input
);
17945 CPPUNIT_ASSERT_MESSAGE
17947 "arrOUS[2] append -3.141592",
17948 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17955 OStringBuffer
aStrBuf( arrOUS
[2] );
17956 float input
= static_cast<float>(atof("-3.5025255"));
17958 sal_Int32 nLen
= aStrBuf
.getLength();
17959 aStrBuf
.append( input
);
17961 CPPUNIT_ASSERT_MESSAGE
17963 "arrOUS[2] append -3.5025255",
17964 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17971 OStringBuffer
aStrBuf( arrOUS
[2] );
17972 float input
= static_cast<float>(atof("-3.00390625"));
17974 sal_Int32 nLen
= aStrBuf
.getLength();
17975 aStrBuf
.append( input
);
17977 CPPUNIT_ASSERT_MESSAGE
17979 "arrOUS[2] append -3.0039062",
17980 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17987 OStringBuffer
aStrBuf( arrOUS
[3] );
17988 float input
= static_cast<float>(atof("-3.0"));
17990 sal_Int32 nLen
= aStrBuf
.getLength();
17991 aStrBuf
.append( input
);
17993 CPPUNIT_ASSERT_MESSAGE
17995 "arrOUS[3] append -3.0",
17996 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
18003 OStringBuffer
aStrBuf( arrOUS
[3] );
18004 float input
= static_cast<float>(atof("-3.5"));
18006 sal_Int32 nLen
= aStrBuf
.getLength();
18007 aStrBuf
.append( input
);
18009 CPPUNIT_ASSERT_MESSAGE
18011 "arrOUS[3] append -3.5",
18012 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
18019 OStringBuffer
aStrBuf( arrOUS
[3] );
18020 float input
= static_cast<float>(atof("-3.0625"));
18022 sal_Int32 nLen
= aStrBuf
.getLength();
18023 aStrBuf
.append( input
);
18025 CPPUNIT_ASSERT_MESSAGE
18027 "arrOUS[3] append -3.0625",
18028 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
18035 OStringBuffer
aStrBuf( arrOUS
[3] );
18036 float input
= static_cast<float>(atof("-3.502525"));
18038 sal_Int32 nLen
= aStrBuf
.getLength();
18039 aStrBuf
.append( input
);
18041 CPPUNIT_ASSERT_MESSAGE
18043 "arrOUS[3] append -3.502525",
18044 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
18052 OStringBuffer
aStrBuf( kSInt32Max
);
18053 float input
= (float)atof("-3.0");
18055 sal_Int32 nLen
= aStrBuf
.getLength();
18056 aStrBuf
.append( input
);
18058 CPPUNIT_ASSERT_MESSAGE
18060 "OStringBuffer( kSInt32Max ) append -3.0",
18061 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
18068 OStringBuffer
aStrBuf( kSInt32Max
);
18069 float input
= (float)atof("-3.5");
18071 sal_Int32 nLen
= aStrBuf
.getLength();
18072 aStrBuf
.append( input
);
18074 CPPUNIT_ASSERT_MESSAGE
18076 "OStringBuffer( kSInt32Max ) append -3.5",
18077 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
18084 OStringBuffer
aStrBuf( kSInt32Max
);
18085 float input
= (float)atof("-3.0625");
18087 sal_Int32 nLen
= aStrBuf
.getLength();
18088 aStrBuf
.append( input
);
18090 CPPUNIT_ASSERT_MESSAGE
18092 "OStringBuffer( kSInt32Max ) append -3.0625",
18093 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
18100 OStringBuffer
aStrBuf( kSInt32Max
);
18101 float input
= (float)atof("-3.502525");
18103 sal_Int32 nLen
= aStrBuf
.getLength();
18104 aStrBuf
.append( input
);
18106 CPPUNIT_ASSERT_MESSAGE
18108 "OStringBuffer( kSInt32Max ) append -3.502525",
18109 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
18116 OStringBuffer
aStrBuf( kSInt32Max
);
18117 float input
= (float)atof("-3.141592");
18119 sal_Int32 nLen
= aStrBuf
.getLength();
18120 aStrBuf
.append( input
);
18122 CPPUNIT_ASSERT_MESSAGE
18124 "OStringBuffer( kSInt32Max ) append -3.141592",
18125 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
18132 OStringBuffer
aStrBuf( kSInt32Max
);
18133 float input
= (float)atof("-3.5025255");
18135 sal_Int32 nLen
= aStrBuf
.getLength();
18136 aStrBuf
.append( input
);
18138 CPPUNIT_ASSERT_MESSAGE
18140 "OStringBuffer( kSInt32Max ) append -3.5025255",
18141 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
18148 OStringBuffer
aStrBuf( kSInt32Max
);
18149 float input
= (float)atof("-3.00390625");
18151 sal_Int32 nLen
= aStrBuf
.getLength();
18152 aStrBuf
.append( input
);
18154 CPPUNIT_ASSERT_MESSAGE
18156 "OStringBuffer( kSInt32Max ) append -3.0039062",
18157 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
18163 CPPUNIT_TEST_SUITE( append_008_Float_Negative
);
18164 CPPUNIT_TEST( append_001
);
18165 CPPUNIT_TEST( append_002
);
18166 CPPUNIT_TEST( append_003
);
18167 CPPUNIT_TEST( append_004
);
18168 CPPUNIT_TEST( append_005
);
18169 CPPUNIT_TEST( append_006
);
18170 CPPUNIT_TEST( append_007
);
18171 CPPUNIT_TEST( append_008
);
18172 CPPUNIT_TEST( append_009
);
18173 CPPUNIT_TEST( append_010
);
18174 CPPUNIT_TEST( append_011
);
18175 CPPUNIT_TEST( append_012
);
18176 CPPUNIT_TEST( append_013
);
18177 CPPUNIT_TEST( append_014
);
18178 CPPUNIT_TEST( append_015
);
18179 CPPUNIT_TEST( append_016
);
18180 CPPUNIT_TEST( append_017
);
18181 CPPUNIT_TEST( append_018
);
18182 CPPUNIT_TEST( append_019
);
18183 CPPUNIT_TEST( append_020
);
18184 CPPUNIT_TEST( append_021
);
18185 CPPUNIT_TEST( append_022
);
18186 CPPUNIT_TEST( append_023
);
18187 CPPUNIT_TEST( append_024
);
18188 CPPUNIT_TEST( append_025
);
18190 CPPUNIT_TEST( append_026
);
18191 CPPUNIT_TEST( append_027
);
18192 CPPUNIT_TEST( append_028
);
18193 CPPUNIT_TEST( append_029
);
18194 CPPUNIT_TEST( append_030
);
18196 CPPUNIT_TEST_SUITE_END();
18199 // testing the method append( double d )
18201 class checkdouble
: public CppUnit::TestFixture
18204 bool checkIfStrBufContainAtPosTheDouble(OStringBuffer
const& _sStrBuf
, sal_Int32 _nLen
, double _nDouble
)
18206 OString sDoubleValue
= OString::number(_nDouble
);
18208 OString
sBufferString(_sStrBuf
.getStr());
18209 sal_Int32 nPos
= sBufferString
.indexOf(sDoubleValue
);
18210 return nPos
>= 0 && nPos
== _nLen
;
18214 class append_009_double
: public checkdouble
18219 void setUp() override
18221 arrOUS
[0] = OString( kTestStr7
);
18222 arrOUS
[1] = OString( );
18223 arrOUS
[2] = OString( kTestStr25
);
18224 arrOUS
[3] = OString( "" );
18225 arrOUS
[4] = OString( kTestStr28
);
18230 OStringBuffer
aStrBuf( arrOUS
[0] );
18231 double input
= atof("3.0");
18233 sal_Int32 nLen
= aStrBuf
.getLength();
18234 aStrBuf
.append( input
);
18236 CPPUNIT_ASSERT_MESSAGE
18238 "arrOUS[0] append 3.0",
18239 checkIfStrBufContainAtPosTheDouble(aStrBuf
, nLen
, input
)
18246 OStringBuffer
aStrBuf( arrOUS
[4] );
18247 double input
= atof("3.141592653589793238462643");
18249 sal_Int32 nLen
= aStrBuf
.getLength();
18250 aStrBuf
.append( input
);
18252 CPPUNIT_ASSERT_MESSAGE
18254 "arrOUS[4] append 3.141592653589793238462643",
18255 checkIfStrBufContainAtPosTheDouble(aStrBuf
, nLen
, input
)
18260 CPPUNIT_TEST_SUITE( append_009_double
);
18261 CPPUNIT_TEST( append_001
);
18262 CPPUNIT_TEST( append_035
);
18263 CPPUNIT_TEST_SUITE_END();
18266 // testing the method append( double f ) for negative value
18268 class append_009_Double_Negative
: public checkdouble
18273 void setUp() override
18275 arrOUS
[0] = OString( kTestStr7
);
18276 arrOUS
[1] = OString( );
18277 arrOUS
[2] = OString( kTestStr25
);
18278 arrOUS
[3] = OString( "" );
18279 arrOUS
[4] = OString( kTestStr28
);
18284 OStringBuffer
aStrBuf( arrOUS
[0] );
18285 double input
= atof("-3.0");
18287 sal_Int32 nLen
= aStrBuf
.getLength();
18288 aStrBuf
.append( input
);
18290 CPPUNIT_ASSERT_MESSAGE
18292 "arrOUS[0] append -3.0",
18293 checkIfStrBufContainAtPosTheDouble(aStrBuf
, nLen
, input
)
18300 OStringBuffer
aStrBuf( arrOUS
[4] );
18301 double input
= atof("-3.141592653589793238462643");
18303 sal_Int32 nLen
= aStrBuf
.getLength();
18304 aStrBuf
.append( input
);
18306 CPPUNIT_ASSERT_MESSAGE
18308 "arrOUS[4] append -3.141592653589793238462643",
18309 checkIfStrBufContainAtPosTheDouble(aStrBuf
, nLen
, input
)
18314 CPPUNIT_TEST_SUITE( append_009_Double_Negative
);
18315 CPPUNIT_TEST( append_001
);
18316 CPPUNIT_TEST( append_035
);
18317 CPPUNIT_TEST_SUITE_END();
18320 class AppendUninitialized
: public CppUnit::TestFixture
{
18324 void testNonEmpty();
18328 CPPUNIT_TEST_SUITE(AppendUninitialized
);
18329 CPPUNIT_TEST(testEmpty
);
18330 CPPUNIT_TEST(testNonEmpty
);
18331 CPPUNIT_TEST(testZero
);
18332 CPPUNIT_TEST_SUITE_END();
18335 void AppendUninitialized::testEmpty() {
18337 CPPUNIT_ASSERT_EQUAL(sal_Int32(0), s
.getLength());
18338 char * p
= s
.appendUninitialized(5);
18339 CPPUNIT_ASSERT_EQUAL(
18340 static_cast<void const *>(s
.getStr()),
18341 static_cast<void const *>(p
));
18342 CPPUNIT_ASSERT_EQUAL(sal_Int32(5), s
.getLength());
18345 void AppendUninitialized::testNonEmpty() {
18346 OStringBuffer
s("ab");
18347 CPPUNIT_ASSERT_EQUAL(sal_Int32(2), s
.getLength());
18348 char * p
= s
.appendUninitialized(5);
18349 CPPUNIT_ASSERT_EQUAL(
18350 static_cast<void const *>(s
.getStr() + 2),
18351 static_cast<void const *>(p
));
18352 CPPUNIT_ASSERT_EQUAL(sal_Int32(7), s
.getLength());
18355 void AppendUninitialized::testZero() {
18357 char * p
= s
.appendUninitialized(0);
18358 CPPUNIT_ASSERT_EQUAL(
18359 static_cast<void const *>(s
.getStr()),
18360 static_cast<void const *>(p
));
18361 CPPUNIT_ASSERT_EQUAL(sal_Int32(0), s
.getLength());
18363 } // namespace rtl_OStringBuffer
18365 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::ctors
);
18366 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::makeStringAndClear
);
18367 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::getLength
);
18368 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::getCapacity
);
18369 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::ensureCapacity
);
18370 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::setLength
);
18371 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::csuc
);
18372 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::getStr
);
18373 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_001
);
18374 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_002
);
18375 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_003
);
18376 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_004
);
18377 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_005
);
18378 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32
);
18379 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32_Bounderies
);
18380 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32_Negative
);
18381 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32_defaultParam
);
18382 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64
);
18383 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64_Bounderies
);
18384 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64_Negative
);
18385 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64_defaultParam
);
18386 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_008_float
);
18387 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_008_Float_Negative
);
18388 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_009_double
);
18389 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_009_Double_Negative
);
18390 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::AppendUninitialized
);
18391 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::remove
);
18393 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */