Adds helper functions for ScopedPtr
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
11
tests/MemoryTests.cpp
Normal file
11
tests/MemoryTests.cpp
Normal 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
|
||||
Reference in New Issue
Block a user