This commit is contained in:
2025-12-03 18:26:32 +01:00
parent 5d22f8c47a
commit 83a8526a78
4 changed files with 8 additions and 13 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
#define EXPECT 5
Test(borrow_allocator, test) {
allocator_t balloc = borrow_allocator(&borrow_allocator_create());
allocator_t balloc = allocator_from_borrow(&borrow_allocator_value());
int *ptr = allocator_alloc(balloc, sizeof(int));
*ptr = EXPECT;
cr_assert_eq(*ptr, EXPECT);