#include "gp/utils/pointers.hpp" #include "gp/utils/allocators/arena.hpp" #include "test_scaffold.h" #include "allocator.hpp" #include struct unique_ptr_test : public test_scaffold { uint32_t seed; unique_ptr_test() { name = __FILE__ ":1"; } virtual int run() { std::unique_ptr> store = std::make_unique>(); gp::arena alloc{&*store->begin(), store->size()}; auto v = gp::unique_ptr::make(alloc, 1024); return !v; } }; append_test dummy_45sdf543(new unique_ptr_test{}); struct unique_ptr2_test : public test_scaffold { uint32_t seed; unique_ptr2_test() { name = __FILE__ ":2"; } virtual int run() { std::unique_ptr> store = std::make_unique>(); gp::arena alloc{&*store->begin(), store->size()}; auto v = gp::unique_ptr::make(alloc, "1024"); return !(*(v->begin()) == '1' && v); } }; append_test dummy_aguhdff543(new unique_ptr2_test{});