10#include "test_memory.c"
11#include "test_str_builder.c"
37 RUN_TEST(mem_arena_allocator_interface);
48 RUN_TEST(sb_result_in_separate_alloc);
static void sb_append_cstr(StringBuilder *sb, MemAllocator *alloc, const char *cstr)
Appends a null-terminated C string to the builder.
static void sb_append_fmt(StringBuilder *sb, MemAllocator *alloc, const char *fmt,...)
Appends a printf-style formatted string to the builder.
Single-header testing framework with pretty-printed output.
#define BEGIN_SUITE(name)
Open a named suite block. Must be paired with END_SUITE.
static int tr_end(void)
Print the results summary. Return value is the process exit code.
#define END_SUITE
Close a suite block opened with BEGIN_SUITE.
#define RUN_TEST(name)
Execute a test case and print the result.
static void tr_begin(const char *title)
Print the top-level banner. Call once at the start of main().