Add Unit tests for Arena allocator
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:05:39 -07:00
parent f3e9c789b9
commit a7e97b2461
3 changed files with 224 additions and 0 deletions

12
tests/test_util.h Normal file
View File

@@ -0,0 +1,12 @@
#pragma once
#include <cstddef>
namespace mimir_tests {
void writeData(std::byte* dest, size_t count, int seed);
bool checkData(std::byte* src, size_t count, int seed);
size_t alignUp(size_t val, size_t alignment);
size_t alignDown(size_t val, size_t alignment);
}; // namespace mimir_tests