From 3424954adfec2b2aa862d8c7ddf8f6adc433b896 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 11 Jul 2023 09:22:59 -0700 Subject: Tweaked/improved tests. --- src/unit/blob.unit | 4 ++-- src/unit/blobbuilder.unit | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/unit/blob.unit b/src/unit/blob.unit index 6f98cfc..76f4baf 100644 --- a/src/unit/blob.unit +++ b/src/unit/blob.unit @@ -107,9 +107,9 @@ suite Blob const char *sDat = "abcdefghijklmnopqrstuvwxyz"; Bu::Blob bDat( sDat ); - Bu::Blob::iterator i2; + Bu::Blob::const_iterator i2; const char *sCmp = sDat; - for( Bu::Blob::iterator i = bDat.begin(); i; i++, sCmp++ ) + for( Bu::Blob::const_iterator i = bDat.begin(); i; i++, sCmp++ ) { unitTest( *i == *sCmp ); 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 { test append { - /* + Bu::BlobBuilder a; a.append("a"); a.append("bc"); a += "def"; - Bu::println(">%1<\n\n").arg( a.getBlob() ); a.append("abcdef"); - Bu::println(">%1<\n\n").arg( a.getBlob() ); - */ + } test appendChar @@ -35,7 +33,6 @@ suite BlobBuilder { a += 'A'; } - Bu::println("%1").arg( a.getBlob() ); unitTest( a.getBlob() == "AAAAAAAAAAAAAAAAAAAA" ); } } -- cgit v1.2.3