chore: initial commit

This commit is contained in:
fallenoak 2023-02-26 17:51:03 -06:00
commit d5300e4723
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
19 changed files with 18365 additions and 0 deletions

20
test/Memory.cpp Normal file
View file

@ -0,0 +1,20 @@
#include "bc/Memory.hpp"
#include "test/Test.hpp"
TEST_CASE("Blizzard::Memory::Allocate", "[memory]") {
SECTION("allocates memory and returns pointer") {
auto ptr = Blizzard::Memory::Allocate(100);
REQUIRE(ptr);
Blizzard::Memory::Free(ptr);
}
SECTION("allocates memory and returns pointer using overload with flags") {
auto ptr = Blizzard::Memory::Allocate(100, 0x0, __FILE__, __LINE__, nullptr);
REQUIRE(ptr);
Blizzard::Memory::Free(ptr);
}
}