feat: add string concat

This commit is contained in:
2025-08-23 17:00:04 +02:00
parent cf8b6765b9
commit ca04e8898e
3 changed files with 29 additions and 0 deletions

View File

@@ -94,6 +94,14 @@ int test_string_to_lower() {
return 0;
}
int test_string_concat() {
char* test_str = str_concat("Hello", "World");
assert(strcmp(test_str, "HelloWorld") == 0);
free(test_str);
return 0;
}
int test_string_functions() {
int result = 0;
@@ -103,6 +111,7 @@ int test_string_functions() {
result += test_split_function_by_substring();
result += test_string_to_upper();
result += test_string_to_lower();
result += test_string_concat();
return result;
}