This commit is contained in:
2025-12-14 12:40:32 +01:00
parent c9959cdb5b
commit 308cb6e83d
10 changed files with 48 additions and 219 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ static void test_buffer_alloc(buffer_allocator_t impl) {
for (int i = 0; i < n_ints; i++) {
cr_assert_eq(ints[i], i);
}
cr_assert_eq(impl.size, sizeof(int)*n_ints);
cr_assert_eq(impl.size, sizeof(int)*n_ints, "%zu != %d", impl.size, n_ints);
ints = allocator_alloc(inter, sizeof(int) * n_ints);
for (int i = 0; i < n_ints; i++) {
ints[i] = i;