Add tests for string allocation functions

This commit is contained in:
2025-02-09 18:47:10 +00:00
parent 023c74d8d9
commit ff4d3c9e99
3 changed files with 86 additions and 0 deletions

View File

@@ -10,9 +10,13 @@ BEGIN_C_LINKAGE
TestFuncResult test_str8_lit(void);
TestFuncResult test_str8_lit_ro(void);
TestFuncResult test_str8_buf(void);
TestFuncResult test_str8_buf_alloc(void);
TestFuncResult test_str8_alloc_cstr(void);
TestFuncResult test_str8_alloc_str8(void);
TestFuncResult test_str8_get_index_within_bounds(void);
TestFuncResult test_str8_get_index_out_of_bounds(void);
TestFuncResult test_str8_set(void);
TestFuncResult test_str8_substr(void);
TestFuncResult test_str8_find(void);
TestFuncResult test_str8_rfind(void);