aboutsummaryrefslogtreecommitdiff
path: root/src/unit
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2019-06-25 20:00:47 -0700
committerMike Buland <eichlan@xagasoft.com>2019-06-25 20:00:47 -0700
commit14683979c43e17393dc4f902fe65ed22898b2bce (patch)
treee2395ae8de63b41d944c46cae0d2d25266d4377a /src/unit
parent9e4d15b6dec9a7f9358855faeb96b1ac767a15e6 (diff)
downloadlibbu++-14683979c43e17393dc4f902fe65ed22898b2bce.tar.gz
libbu++-14683979c43e17393dc4f902fe65ed22898b2bce.tar.bz2
libbu++-14683979c43e17393dc4f902fe65ed22898b2bce.tar.xz
libbu++-14683979c43e17393dc4f902fe65ed22898b2bce.zip
BlobBuilder implemented, tests in progress.
Diffstat (limited to 'src/unit')
-rw-r--r--src/unit/blobbuilder.unit28
1 files changed, 28 insertions, 0 deletions
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 @@
1// vim: syntax=cpp
2/*
3 * Copyright (C) 2007-2019 Xagasoft, All rights reserved.
4 *
5 * This file is part of the libbu++ library and is released under the
6 * terms of the license contained in the file LICENSE.
7 */
8
9#include "bu/blob.h"
10#include "bu/blobbuilder.h"
11#include "bu/exceptionindexoutofbounds.h"
12#include "bu/sio.h"
13
14#include <string.h>
15
16suite BlobBuilder
17{
18 test append
19 {
20 Bu::BlobBuilder a;
21 a.append("a");
22 a.append("bc");
23 a += "def";
24 Bu::println(">%1<\n\n").arg( a.getBlob() );
25 a.append("abcdef");
26 Bu::println(">%1<\n\n").arg( a.getBlob() );
27 }
28}