-first draft of BinSearchArrayMap

This commit is contained in:
Metehan Tuncbilek
2024-09-23 17:00:07 +03:00
parent f8326a5686
commit 02d84af907
3 changed files with 6 additions and 7 deletions

View File

@@ -12,6 +12,7 @@
#include <type_traits>
#include "Data/Containers/BinSearchArrayMap.hpp"
#include "Data/Containers/StableVector.hpp"
using namespace OpenVulkano;
@@ -26,7 +27,6 @@ TEST_CASE("BinSearchArrayMap")
auto wtf =
std::lower_bound(data.begin(), data.end(), 10, [](const auto& pair, const int& key) { return pair.first < key; });
auto test = *wtf;
REQUIRE(test.first == 10);
REQUIRE(test.second == "Five");
@@ -39,4 +39,5 @@ TEST_CASE("BinSearchArrayMap")
map.Insert(10, "Five");
REQUIRE(map[6] == "Three");
REQUIRE(map[10] == "Five");
}