From 238244337283a7f888cf49a1e56b809c22466a63 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 8 Aug 2019 09:59:52 -0700 Subject: Fixed a bug in the BlobBuilder. Appending wasn't working correctly. --- src/unit/blobbuilder.unit | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/unit') diff --git a/src/unit/blobbuilder.unit b/src/unit/blobbuilder.unit index 84bf549..7f3fb93 100644 --- a/src/unit/blobbuilder.unit +++ b/src/unit/blobbuilder.unit @@ -17,6 +17,7 @@ suite BlobBuilder { test append { + /* Bu::BlobBuilder a; a.append("a"); a.append("bc"); @@ -24,5 +25,17 @@ suite BlobBuilder Bu::println(">%1<\n\n").arg( a.getBlob() ); a.append("abcdef"); Bu::println(">%1<\n\n").arg( a.getBlob() ); + */ + } + + test appendChar + { + Bu::BlobBuilder a; + for( int j = 0; j < 20; j++ ) + { + a += 'A'; + } + Bu::println("%1").arg( a.getBlob() ); + unitTest( a.getBlob() == "AAAAAAAAAAAAAAAAAAAA" ); } } -- cgit v1.2.3