-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");
|
||||
}
|
||||
|
||||
@@ -95,7 +95,6 @@ TEST_CASE("MemMappedFileWrite")
|
||||
OpenVulkano::MemMappedFileWriteHelper::USE_CURRENT_FILE_SIZE);
|
||||
REQUIRE(helper.Data() != nullptr);
|
||||
std::string testData((char*) helper.Data());
|
||||
printf("size: %llu", helper.Size());
|
||||
helper.Close();
|
||||
|
||||
std::ifstream file(path, std::ios::binary);
|
||||
@@ -112,8 +111,6 @@ TEST_CASE("MemMappedFileWrite")
|
||||
}
|
||||
|
||||
REQUIRE(streamData.size() == testData.size());
|
||||
|
||||
printf("helper size: %llu\n", helper.Size());
|
||||
}
|
||||
|
||||
SECTION("Actual Size")
|
||||
|
||||
Reference in New Issue
Block a user