From e8422002f84dc4313894a5b3136c44a9005081fd Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Sat, 2 Nov 2024 20:45:02 -0500 Subject: Allocator deallocate is void rather than returning FudStatus. --- test/test_allocator.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/test_allocator.cpp') diff --git a/test/test_allocator.cpp b/test/test_allocator.cpp index 6382463..fa32a96 100644 --- a/test/test_allocator.cpp +++ b/test/test_allocator.cpp @@ -39,10 +39,10 @@ TEST(AllocatorTest, TestFudAllocator) ASSERT_TRUE(allocResult.isOkay()); auto* mem = allocResult.getOkay(); ASSERT_NE(mem, nullptr); - ASSERT_EQ(fudAllocator.deallocate(mem, 0), FudStatus::ArgumentInvalid); - ASSERT_EQ(fudAllocator.deallocate(mem, 1), FudStatus::Success); + fudAllocator.deallocate(mem, 0); + fudAllocator.deallocate(mem, 1); mem = nullptr; - ASSERT_EQ(fudAllocator.deallocate(mem, 1), FudStatus::ArgumentInvalid); + fudAllocator.deallocate(mem, 1); FailAllocator failAllocator{}; globalMockFudAlloc.m_allocator = &failAllocator; -- cgit v1.2.3