Adds helper functions for ScopedPtr
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-08-29 16:23:04 +02:00
parent b58b8537b5
commit 54c5422cda
3 changed files with 23 additions and 5 deletions

11
tests/MemoryTests.cpp Normal file
View File

@@ -0,0 +1,11 @@
#ifdef TESTS_BUILD
#include "../extern/doctest.hpp"
#include "../src/Memory/Memory.hpp"
using namespace ArbUt;
TEST_CASE("Scoped Pointer deletes child after out of scope") {
auto a = ScopedPtr<uint32_t>(new uint32_t(100));
}
#endif