int main (int argc, char *argv[]) { int retval = 0; if ((retval = test_append_char()) != 0 ) { return retval; } if ((retval = test_append_string()) != 0 ) { return retval; } if ((retval = test_append_binary_data()) != 0 ) { return retval; } if ((retval = test_null_parameters()) != 0 ) { return retval; } if ((retval = test_buffer_clear()) != 0 ) { return retval; } return retval; }
void test_string() { test_alloc_string(); test_alloc_string_array(); test_realloc_string(); test_init_string(); test_copy_string(); test_trim_string(); test_substr_before(); test_substr_between(); test_substr_after(); test_dyna_strcat(); test_append_char(); test_split_string(); test_split_string_once(); test_equals_string(); test_hash_code_string(); test_strlwr(); }
int main(void) { test_construct_with_null(); test_construct_with_empty_string(); test_construct_with_nonempty_string(); test_append_char(); test_at(); test_back(); test_capacity(); test_clear(); test_compare(); test_data(); test_empty(); test_free(); test_front(); test_length(); test_max_size(); test_pop_back(); test_push_back(); test_reserve(); test_resize(); test_size(); return EXIT_SUCCESS; }