Add Arena::getMaxSize() and Arena::getUsed(). Make Arena tests discoverable.
Some checks failed
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, macos-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Has been cancelled

This commit is contained in:
2026-09-11 00:08:24 -07:00
parent a7e97b2461
commit 1cb44e96b1
5 changed files with 33 additions and 19 deletions

View File

@@ -1,25 +1,10 @@
#include <gtest/gtest.h>
#include "mimir.h"
#include "test_util.h"
namespace mimir_tests {
void writeData(std::byte* dest, size_t count, int seed)
{
for (int i = 0; i < count; i++) {
dest[i] = std::byte((seed * 3162 + i * 63163) % 0xff);
}
}
bool checkData(std::byte* src, size_t count, int seed)
{
for (int i = 0; i < count; i++) {
if (src[i] != std::byte((seed * 3162 + i * 63163) % 0xff)) {
return false;
}
}
return true;
}
TEST(Region, InitialState)
{
mimir::init();