Implement read-only string literals

This commit is contained in:
2025-02-09 14:29:54 +00:00
parent 7657ad1b58
commit bbf38499ca
4 changed files with 48 additions and 15 deletions

View File

@@ -1,4 +1,4 @@
#include "str8/test_str8.h"
#include "test_str8.h"
#include "test_allocator.h"
#include "test_arena.h"
#include "test_cpath.h"
@@ -10,9 +10,9 @@
int main(void) {
wapp_tester_run_tests(test_arena_allocator, test_arena_init, test_arena_init_succeeds_when_reserving_very_large_size,
test_str8_lit, test_str8_buf, test_str8_get_index_within_bounds, test_str8_get_index_out_of_bounds,
test_str8_set, test_cpath_join_path, test_cpath_dirname, test_cpath_dirup,
test_arena_alloc_succeeds_when_within_capacity, test_arena_alloc_fails_when_over_capacity,
test_str8_lit, test_str8_lit_ro, test_str8_buf, test_str8_get_index_within_bounds,
test_str8_get_index_out_of_bounds, test_str8_set, test_cpath_join_path, test_cpath_dirname,
test_cpath_dirup, test_arena_alloc_succeeds_when_within_capacity, test_arena_alloc_fails_when_over_capacity,
test_arena_realloc_bigger_size, test_arena_realloc_smaller_size, test_arena_clear,
test_arena_destroy, test_commander_cmd_success, test_commander_cmd_failure,
test_commander_cmd_out_buf_success, test_commander_cmd_out_buf_failure);