aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/tests/stllike/vector_map_test.cpp
blob: 00794bcc1e3bff11643a7bf47b2851691ff6de7a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
// Unit tests for hashtable.

#include <vespa/log/log.h>
LOG_SETUP("vector_map_test");

#include <vespa/vespalib/stllike/vector_map.h>
#include <vespa/vespalib/testkit/testapp.h>

using vespalib::vector_map;

using namespace vespalib;

namespace {

TEST("verify size of underlying storage") {
    EXPECT_EQUAL(8u, sizeof(vector_map<uint32_t, uint32_t>::value_type));
    EXPECT_EQUAL(16u, sizeof(vector_map<uint32_t, void *>::value_type));
}

}  // namespace

TEST_MAIN() { TEST_RUN_ALL(); }