summaryrefslogtreecommitdiff
path: root/sal/qa/ByteSequence
diff options
context:
space:
mode:
authorMindy Liu <mindyliu@openoffice.org>2003-03-04 07:19:26 +0000
committerMindy Liu <mindyliu@openoffice.org>2003-03-04 07:19:26 +0000
commit8770d0c2d1de8d72180b887c5395d13940d51d3c (patch)
tree4a8ed2a41e7ece8cc8f42e53c1b1ce6268212cba /sal/qa/ByteSequence
parent8be9129c7ab17d6e234185434521abd0a5673548 (diff)
update code style
Diffstat (limited to 'sal/qa/ByteSequence')
-rw-r--r--sal/qa/ByteSequence/ByteSequence.cxx19
1 files changed, 14 insertions, 5 deletions
diff --git a/sal/qa/ByteSequence/ByteSequence.cxx b/sal/qa/ByteSequence/ByteSequence.cxx
index 81d3596b9af0..cd19b98f2a05 100644
--- a/sal/qa/ByteSequence/ByteSequence.cxx
+++ b/sal/qa/ByteSequence/ByteSequence.cxx
@@ -78,9 +78,13 @@ class ctor : public CppUnit::TestFixture
void ctor_004()
{
- sal_Int8 * pElements = &kTestByte;
+ sal_Int8 * pElements = &kTestByte4;
sal_Int32 len = kTestByteCount1;
::rtl::ByteSequence aByteSeq( pElements, len);
+ printf("the kTestByte4 is %d\n", kTestByte4);
+ printf("the aByteSeq[0] is %d\n", aByteSeq[0]);
+ printf("the aByteSeq[1] is %d\n", aByteSeq[1]);
+ printf("the aByteSeq[2] is %d\n", aByteSeq[2]);
//printf("ctor004\n");
CPPUNIT_ASSERT_MESSAGE
(
@@ -510,21 +514,26 @@ public:
void getData_002()
{
::rtl::ByteSequence aByteSeq( &kTestByteSeq2 );
+ sal_Int8 nValue = aByteSeq[0];
CPPUNIT_ASSERT_MESSAGE
(
"Obtains a reference to byte indexed at given position: reference count > 1",
- aByteSeq[1] == 0 //not sure what is right,hehe
+ nValue == kTestChar2 //not sure what is right,hehe
);
}
void getData_003()
{
- ::rtl::ByteSequence aByteSeq( &kTestByteSeq1 );
- printf("the 3th byte in aByteSeq is %d\n", aByteSeq[0]);
+ ::rtl::ByteSequence aByteSeq( &kTestByteSeq3 );
+ sal_Int8 nValue = aByteSeq[0];
+ printf("the kTestChar3 is %d\n", kTestChar3);
+ printf("the aByteSeq[0] is %d\n", aByteSeq[0]);
+ printf("the aByteSeq[1] is %d\n", aByteSeq[1]);
+ printf("the aByteSeq[2] is %d\n", aByteSeq[2]);
CPPUNIT_ASSERT_MESSAGE
(
"Obtains a reference to byte indexed at given position: reference count = 1",
- aByteSeq[1] == 0 //not sure what is right,hehe
+ nValue == kTestChar3 //not sure what is right,hehe
);
}