Skip to content

Commit 676fb2f

Browse files
committed
Improve section comments in 'libpool-test.c'
1 parent edf1969 commit 676fb2f

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

examples/libpool-test.c

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include "test.h"
2828

2929
/*----------------------------------------------------------------------------*/
30-
/* Tests for pool_new */
30+
/* Tests for 'pool_new' */
3131

3232
TEST_DECL(pool_new_basic) {
3333
Pool* pool = pool_new(10, sizeof(void*));
@@ -64,7 +64,7 @@ TEST_DECL(pool_new_single_chunk) {
6464
}
6565

6666
/*----------------------------------------------------------------------------*/
67-
/* Tests for pool_alloc */
67+
/* Tests for 'pool_alloc' */
6868

6969
TEST_DECL(pool_alloc_basic) {
7070
Pool* pool;
@@ -165,7 +165,7 @@ TEST_DECL(pool_alloc_write_data) {
165165
}
166166

167167
/*----------------------------------------------------------------------------*/
168-
/* Tests for pool_free */
168+
/* Tests for 'pool_free' */
169169

170170
TEST_DECL(pool_free_basic) {
171171
Pool* pool;
@@ -266,7 +266,7 @@ TEST_DECL(pool_free_out_of_order) {
266266
}
267267

268268
/*----------------------------------------------------------------------------*/
269-
/* Tests for pool_expand */
269+
/* Tests for 'pool_expand' */
270270

271271
TEST_DECL(pool_expand_basic) {
272272
Pool* pool = pool_new(2, sizeof(void*));
@@ -346,7 +346,7 @@ TEST_DECL(pool_expand_preserves_allocated) {
346346
}
347347

348348
/*----------------------------------------------------------------------------*/
349-
/* Tests for pool_destroy */
349+
/* Tests for 'pool_destroy' */
350350

351351
TEST_DECL(pool_destroy_null) {
352352
pool_destroy(NULL);
@@ -452,6 +452,9 @@ TEST_DECL(large_pool) {
452452
pool_destroy(pool);
453453
}
454454

455+
/*----------------------------------------------------------------------------*/
456+
/* Preprocessor-specific tests */
457+
455458
#if defined(LIBPOOL_NO_ALIGNMENT)
456459
TEST_DECL(pool_new_small_chunk) {
457460
/* Should not be able to create pools with chunks smaller than a pointer */

0 commit comments

Comments
 (0)