aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2023-07-11 09:24:40 -0700
committerMike Buland <eichlan@xagasoft.com>2023-07-11 09:24:40 -0700
commit7529ab103b0c20220a5bbe2f2ce5511e04e9acda (patch)
treecc774309936a1aa377d7b8dc43b5e3e1dac6d381 /src
parent658b5c946e49d72266377750d6b96107113f7677 (diff)
parent3424954adfec2b2aa862d8c7ddf8f6adc433b896 (diff)
downloadlibbu++-7529ab103b0c20220a5bbe2f2ce5511e04e9acda.tar.gz
libbu++-7529ab103b0c20220a5bbe2f2ce5511e04e9acda.tar.bz2
libbu++-7529ab103b0c20220a5bbe2f2ce5511e04e9acda.tar.xz
libbu++-7529ab103b0c20220a5bbe2f2ce5511e04e9acda.zip
Merge branch 'main' into noshare
Diffstat (limited to '')
-rw-r--r--src/unit/blob.unit4
-rw-r--r--src/unit/blobbuilder.unit7
2 files changed, 4 insertions, 7 deletions
diff --git a/src/unit/blob.unit b/src/unit/blob.unit
index 8b8abe4..8784416 100644
--- a/src/unit/blob.unit
+++ b/src/unit/blob.unit
@@ -107,9 +107,9 @@ suite Blob
107 const char *sDat = "abcdefghijklmnopqrstuvwxyz"; 107 const char *sDat = "abcdefghijklmnopqrstuvwxyz";
108 Bu::Blob bDat( sDat ); 108 Bu::Blob bDat( sDat );
109 109
110 Bu::Blob::iterator i2; 110 Bu::Blob::const_iterator i2;
111 const char *sCmp = sDat; 111 const char *sCmp = sDat;
112 for( Bu::Blob::iterator i = bDat.begin(); i; i++, sCmp++ ) 112 for( Bu::Blob::const_iterator i = bDat.begin(); i; i++, sCmp++ )
113 { 113 {
114 unitTest( *i == *sCmp ); 114 unitTest( *i == *sCmp );
115 if( *i == 'k' ) 115 if( *i == 'k' )
diff --git a/src/unit/blobbuilder.unit b/src/unit/blobbuilder.unit
index 7f3fb93..16da92c 100644
--- a/src/unit/blobbuilder.unit
+++ b/src/unit/blobbuilder.unit
@@ -17,15 +17,13 @@ suite BlobBuilder
17{ 17{
18 test append 18 test append
19 { 19 {
20 /* 20
21 Bu::BlobBuilder a; 21 Bu::BlobBuilder a;
22 a.append("a"); 22 a.append("a");
23 a.append("bc"); 23 a.append("bc");
24 a += "def"; 24 a += "def";
25 Bu::println(">%1<\n\n").arg( a.getBlob() );
26 a.append("abcdef"); 25 a.append("abcdef");
27 Bu::println(">%1<\n\n").arg( a.getBlob() ); 26
28 */
29 } 27 }
30 28
31 test appendChar 29 test appendChar
@@ -35,7 +33,6 @@ suite BlobBuilder
35 { 33 {
36 a += 'A'; 34 a += 'A';
37 } 35 }
38 Bu::println("%1").arg( a.getBlob() );
39 unitTest( a.getBlob() == "AAAAAAAAAAAAAAAAAAAA" ); 36 unitTest( a.getBlob() == "AAAAAAAAAAAAAAAAAAAA" );
40 } 37 }
41} 38}