#include "minunit.h" int units_run = 0; int cases_run = 0; #include #include #include #include #include static unit_result test_str_index_replace() { MU_UNIT_INIT(); struct function_options { char *is; //input string char *rw; //replace with int si; //start index int ei; //end index char *assert; //result }; struct function_options tcs[]= { {"----....----", "````", 4, 4+4, "----````----"}, {"1234567890", "qwerty", 1, 4, "1qwerty567890"}, {"1234567890", "qwerty", 1, 4, "1qwerty567890"}, }; int len_tcs = lenofarr(tcs); for(int i=0; i