aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ByteBufferTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ByteBufferTest.cpp b/test/ByteBufferTest.cpp
index ca7a999..f8190c5 100644
--- a/test/ByteBufferTest.cpp
+++ b/test/ByteBufferTest.cpp
@@ -27,7 +27,7 @@ public:
}
~Bytes() {
- delete secret;
+ delete[] secret;
}
uint8_t* bytes;
@@ -85,13 +85,13 @@ BOOST_AUTO_TEST_CASE(view) {
ByteBuffer buffer(b.bytes, b.capacity);
BOOST_CHECK_EQUAL(buffer.read8(), 0);
- ByteBuffer view1 = buffer.view();
+ ByteBuffer view1 = buffer.viewRest();
checkBuffer(view1, 999, 0);
BOOST_CHECK_EQUAL(view1.read8(), 1);
BOOST_CHECK_EQUAL(view1.read8(), 2);
- ByteBuffer view2 = view1.view();
+ ByteBuffer view2 = view1.viewRest();
checkBuffer(view2, 997, 0);
BOOST_CHECK_EQUAL(view1.read8(), 3);