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