aboutsummaryrefslogtreecommitdiff
path: root/src/unit/blobbuilder.unit
blob: 84bf549b5873b13e8f7fc7ece9da125607badd2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 <string.h>

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() );
    }
}