Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
hash_backends_test.cc File Reference

Regression tests for HashSet/HashMap default backends. More...

#include <string>
#include <type_traits>
#include <unordered_set>
#include <gtest/gtest.h>
#include <tpl_hash.H>
Include dependency graph for hash_backends_test.cc:

Go to the source code of this file.

Detailed Description

Regression tests for HashSet/HashMap default backends.

These tests pin the default hash backend for HashSet and HashMap (OLhashTable / MapOLhash, changed from OD in commit 323aeb7b) and verify that both OL and OD backends are functionally equivalent. If the default is intentionally changed in the future the static_asserts below will catch it at compile time, forcing an explicit acknowledgment of the breaking change.

Definition in file hash_backends_test.cc.