memgraph/tests/unit/lockfree_hashmap.cpp

12 lines
247 B
C++
Raw Normal View History

2016-06-05 20:30:40 +08:00
#define CATCH_CONFIG_MAIN
#include "catch.hpp"
2016-06-05 20:30:40 +08:00
#include "data_structures/map/hashmap.hpp"
TEST_CASE("Lockfree HashMap basic functionality")
{
lockfree::HashMap<int, int> hashmap;
hashmap.put(32, 10);
REQUIRE(hashmap.at(32) == 10);
}