blob: 00cc77d19cb7c7d0c2919c686cb97be071caae7a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/gtest/gtest.h>
#include <vespa/vespalib/util/growablebytebuffer.h>
using namespace vespalib;
TEST(GrowableByteBufferTest, test_growing)
{
GrowableByteBuffer buf(10);
buf.putInt(3);
buf.putInt(7);
buf.putLong(1234);
buf.putDouble(1234);
buf.putString("hei der");
EXPECT_EQ(35u, buf.position());
}
GTEST_MAIN_RUN_ALL_TESTS()
|