-first draft of BinSearchArrayMap
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user