osrm-backend/test/unit/count.cpp
Siarhei Fedartsou f1087e81ec Squashed 'third_party/unordered_dense/' content from commit 231e48c94
git-subtree-dir: third_party/unordered_dense
git-subtree-split: 231e48c9426bd21c273669e5fdcd042c146975cf
2024-05-30 19:06:16 +02:00

13 lines
270 B
C++

#include <ankerl/unordered_dense.h>
#include <app/doctest.h>
TEST_CASE_MAP("count", int, int) {
auto map = map_t();
REQUIRE(map.count(123) == 0);
REQUIRE(map.count(0) == 0);
map[123];
REQUIRE(map.count(123) == 1);
REQUIRE(map.count(0) == 0);
}