// vim: syntax=cpp /* * Copyright (C) 2007-2019 Xagasoft, All rights reserved. * * This file is part of the libbu++ library and is released under the * terms of the license contained in the file LICENSE. */ #include "bu/blob.h" #include "bu/blobbuilder.h" #include "bu/exceptionindexoutofbounds.h" #include "bu/sio.h" #include suite BlobBuilder { test append { Bu::BlobBuilder a; a.append("a"); a.append("bc"); a += "def"; a.append("abcdef"); } test appendChar { Bu::BlobBuilder a; for( int j = 0; j < 20; j++ ) { a += 'A'; } unitTest( a.getBlob() == "AAAAAAAAAAAAAAAAAAAA" ); } }