retab everything to use tabs
This commit is contained in:
+16
-16
@@ -3,24 +3,24 @@
|
||||
|
||||
#define EXPECT 5
|
||||
Test(borrow_allocator, test) {
|
||||
allocator_t balloc = allocator_from_borrow(&borrow_allocator_value());
|
||||
int *ptr = allocator_alloc(balloc, sizeof(int));
|
||||
*ptr = EXPECT;
|
||||
cr_assert_eq(*ptr, EXPECT);
|
||||
allocator_reset(balloc);
|
||||
allocator_t balloc = allocator_from_borrow(&borrow_allocator_value());
|
||||
int *ptr = allocator_alloc(balloc, sizeof(int));
|
||||
*ptr = EXPECT;
|
||||
cr_assert_eq(*ptr, EXPECT);
|
||||
allocator_reset(balloc);
|
||||
}
|
||||
|
||||
#define IS_SIZE 900
|
||||
Test(borrow_allocator, with) {
|
||||
with_borrow(foo) {
|
||||
with_borrow(bar) {
|
||||
}
|
||||
int *is = allocator_alloc(foo, sizeof(int) * IS_SIZE);
|
||||
for (int i = 0; i < IS_SIZE; i++) is[i] = i;
|
||||
is = allocator_alloc(foo, sizeof(int) * IS_SIZE);
|
||||
for (int i = 0; i < IS_SIZE; i++) is[i] = i;
|
||||
is = allocator_alloc(foo, sizeof(int) * IS_SIZE);
|
||||
for (int i = 0; i < IS_SIZE; i++) is[i] = i;
|
||||
break;
|
||||
}
|
||||
with_borrow(foo) {
|
||||
with_borrow(bar) {
|
||||
}
|
||||
int *is = allocator_alloc(foo, sizeof(int) * IS_SIZE);
|
||||
for (int i = 0; i < IS_SIZE; i++) is[i] = i;
|
||||
is = allocator_alloc(foo, sizeof(int) * IS_SIZE);
|
||||
for (int i = 0; i < IS_SIZE; i++) is[i] = i;
|
||||
is = allocator_alloc(foo, sizeof(int) * IS_SIZE);
|
||||
for (int i = 0; i < IS_SIZE; i++) is[i] = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user