diff options
Diffstat (limited to '')
-rw-r--r-- | src/unit/blobbuilder.unit | 28 |
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 | |||
16 | suite 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 | } | ||