blob: 153e68613172b298686ed097149b2e9425838008 (
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 2017 Yahoo Holdings. 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(); }
|