From 14683979c43e17393dc4f902fe65ed22898b2bce Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 25 Jun 2019 20:00:47 -0700 Subject: BlobBuilder implemented, tests in progress. --- src/unit/blobbuilder.unit | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/unit/blobbuilder.unit (limited to 'src/unit') diff --git a/src/unit/blobbuilder.unit b/src/unit/blobbuilder.unit new file mode 100644 index 0000000..84bf549 --- /dev/null +++ b/src/unit/blobbuilder.unit @@ -0,0 +1,28 @@ +// 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"; + Bu::println(">%1<\n\n").arg( a.getBlob() ); + a.append("abcdef"); + Bu::println(">%1<\n\n").arg( a.getBlob() ); + } +} -- cgit v1.2.3