I forgot to run all tests and overlooked updating these.
assert_int_equal(status, expects[i]);
} // for
- f_utf_string_dynamic_resize(0, &utf_string_1);
- f_utf_string_dynamic_resize(0, &utf_string_2);
+ free((void *) utf_string_1.string);
+ free((void *) utf_string_2.string);
}
#ifdef __cplusplus
assert_int_equal(status, expects[i]);
} // for
- f_utf_string_dynamic_resize(0, &utf_string_1);
- f_utf_string_dynamic_resize(0, &utf_string_2);
+ free((void *) utf_string_1.string);
+ free((void *) utf_string_2.string);
}
#ifdef __cplusplus
assert_int_equal(status, expects[i]);
} // for
- f_utf_string_dynamic_resize(0, &utf_string_1);
- f_utf_string_dynamic_resize(0, &utf_string_2);
+ free((void *) utf_string_1.string);
+ free((void *) utf_string_2.string);
}
#ifdef __cplusplus
assert_int_equal(status, expects[i]);
} // for
- f_utf_string_dynamic_resize(0, &utf_string_1);
- f_utf_string_dynamic_resize(0, &utf_string_2);
+ free((void *) utf_string_1.string);
+ free((void *) utf_string_2.string);
}
#ifdef __cplusplus
assert_int_equal(status, expects[i]);
} // for
- f_utf_string_dynamic_resize(0, &utf_string_1);
- f_utf_string_dynamic_resize(0, &utf_string_2);
+ free((void *) utf_string_1.string);
+ free((void *) utf_string_2.string);
}
#ifdef __cplusplus
assert_int_equal(status, expects[i]);
} // for
- f_utf_string_dynamic_resize(0, &utf_string_1);
- f_utf_string_dynamic_resize(0, &utf_string_2);
+ free((void *) utf_string_1.string);
+ free((void *) utf_string_2.string);
}
#ifdef __cplusplus
assert_int_equal(status, expects[i]);
} // for
- f_utf_string_dynamic_resize(0, &utf_string_1);
- f_utf_string_dynamic_resize(0, &utf_string_2);
+ free((void *) utf_string_1.string);
+ free((void *) utf_string_2.string);
}
#ifdef __cplusplus
assert_int_equal(status, expects[i]);
} // for
- f_utf_string_dynamic_resize(0, &utf_string_1);
- f_utf_string_dynamic_resize(0, &utf_string_2);
+ free((void *) utf_string_1.string);
+ free((void *) utf_string_2.string);
}
#ifdef __cplusplus
assert_int_equal(status, expects[i]);
} // for
- f_utf_string_dynamic_resize(0, &utf_string_1);
- f_utf_string_dynamic_resize(0, &utf_string_2);
+ free((void *) utf_string_1.string);
+ free((void *) utf_string_2.string);
}
#ifdef __cplusplus
assert_int_equal(status, expects[i]);
} // for
- f_utf_string_dynamic_resize(0, &utf_string_1);
- f_utf_string_dynamic_resize(0, &utf_string_2);
+ free((void *) utf_string_1.string);
+ free((void *) utf_string_2.string);
}
#ifdef __cplusplus
assert_int_equal(status, expects[i]);
} // for
- f_utf_string_dynamic_resize(0, &utf_string_1);
- f_utf_string_dynamic_resize(0, &utf_string_2);
+ free((void *) utf_string_1.string);
+ free((void *) utf_string_2.string);
}
#ifdef __cplusplus
assert_int_equal(status, expects[i]);
} // for
- f_utf_string_dynamic_resize(0, &utf_string_1);
- f_utf_string_dynamic_resize(0, &utf_string_2);
+ free((void *) utf_string_1.string);
+ free((void *) utf_string_2.string);
}
#ifdef __cplusplus
assert_int_equal(status, expects[i]);
} // for
- f_utf_string_dynamic_resize(0, &utf_string_1);
- f_utf_string_dynamic_resize(0, &utf_string_2);
+ free((void *) utf_string_1.string);
+ free((void *) utf_string_2.string);
}
#ifdef __cplusplus
assert_int_equal(status, expects[i]);
} // for
- f_utf_string_dynamic_resize(0, &utf_string_1);
- f_utf_string_dynamic_resize(0, &utf_string_2);
+ free((void *) utf_string_1.string);
+ free((void *) utf_string_2.string);
}
#ifdef __cplusplus
assert_int_equal(status, expects[i]);
} // for
- f_utf_string_dynamic_resize(0, &utf_string_1);
- f_utf_string_dynamic_resize(0, &utf_string_2);
+ free((void *) utf_string_1.string);
+ free((void *) utf_string_2.string);
}
#ifdef __cplusplus
assert_int_equal(status, expects[i]);
} // for
- f_utf_string_dynamic_resize(0, &utf_string_1);
- f_utf_string_dynamic_resize(0, &utf_string_2);
+ free((void *) utf_string_1.string);
+ free((void *) utf_string_2.string);
}
#ifdef __cplusplus
assert_int_equal(status, expects[i]);
} // for
- f_utf_string_dynamic_resize(0, &utf_string_1);
- f_utf_string_dynamic_resize(0, &utf_string_2);
+ free((void *) utf_string_1.string);
+ free((void *) utf_string_2.string);
}
#ifdef __cplusplus
assert_int_equal(status, expects[i]);
} // for
- f_utf_string_dynamic_resize(0, &utf_string_1);
- f_utf_string_dynamic_resize(0, &utf_string_2);
+ free((void *) utf_string_1.string);
+ free((void *) utf_string_2.string);
}
#ifdef __cplusplus
assert_int_equal(status, expects[i]);
} // for
- f_utf_string_dynamic_resize(0, &utf_string_1);
- f_utf_string_dynamic_resize(0, &utf_string_2);
+ free((void *) utf_string_1.string);
+ free((void *) utf_string_2.string);
}
#ifdef __cplusplus
assert_int_equal(status, F_equal_to);
} // for
- f_utf_string_dynamic_resize(0, &utf_string_1);
- f_utf_string_dynamic_resize(0, &utf_string_2);
+ free((void *) utf_string_1.string);
+ free((void *) utf_string_2.string);
}
void test__f_compare_utf_dynamic_trim__something_misses_nothing(void **state) {
assert_int_equal(status, F_equal_to_not);
} // for
- f_utf_string_dynamic_resize(0, &utf_string_1);
+ free((void *) utf_string_1.string);
}
void test__f_compare_utf_dynamic_trim__works(void **state) {
assert_int_equal(status, expects[i]);
} // for
- f_utf_string_dynamic_resize(0, &utf_string_1);
- f_utf_string_dynamic_resize(0, &utf_string_2);
+ free((void *) utf_string_1.string);
+ free((void *) utf_string_2.string);
}
#ifdef __cplusplus
assert_int_equal(status, F_equal_to);
} // for
- f_utf_string_dynamic_resize(0, &utf_string_1);
- f_utf_string_dynamic_resize(0, &utf_string_2);
+ free((void *) utf_string_1.string);
+ free((void *) utf_string_2.string);
}
void test__f_compare_utf_dynamic_trim_string__something_misses_nothing(void **state) {
assert_int_equal(status, F_equal_to_not);
} // for
- f_utf_string_dynamic_resize(0, &utf_string_1);
+ free((void *) utf_string_1.string);
}
void test__f_compare_utf_dynamic_trim_string__works(void **state) {
assert_int_equal(status, expects[i]);
} // for
- f_utf_string_dynamic_resize(0, &utf_string_1);
- f_utf_string_dynamic_resize(0, &utf_string_2);
+ free((void *) utf_string_1.string);
+ free((void *) utf_string_2.string);
}
#ifdef __cplusplus
assert_int_equal(status, expects[i]);
} // for
- f_utf_string_dynamic_resize(0, &utf_string_1);
- f_utf_string_dynamic_resize(0, &utf_string_2);
+ free((void *) utf_string_1.string);
+ free((void *) utf_string_2.string);
}
#ifdef __cplusplus
assert_int_equal(status, expects[i]);
} // for
- f_utf_string_dynamic_resize(0, &utf_string_1);
- f_utf_string_dynamic_resize(0, &utf_string_2);
+ free((void *) utf_string_1.string);
+ free((void *) utf_string_2.string);
}
#ifdef __cplusplus
assert_int_equal(status, F_equal_to);
} // for
- f_utf_string_dynamic_resize(0, &utf_string_1);
- f_utf_string_dynamic_resize(0, &utf_string_2);
+ free((void *) utf_string_1.string);
+ free((void *) utf_string_2.string);
}
void test__f_compare_utf_trim__something_misses_nothing(void **state) {
assert_int_equal(status, F_equal_to_not);
} // for
- f_utf_string_dynamic_resize(0, &utf_string_1);
+ free((void *) utf_string_1.string);
}
void test__f_compare_utf_trim__works(void **state) {
assert_int_equal(status, expects[i]);
} // for
- f_utf_string_dynamic_resize(0, &utf_string_1);
- f_utf_string_dynamic_resize(0, &utf_string_2);
+ free((void *) utf_string_1.string);
+ free((void *) utf_string_2.string);
}
#ifdef __cplusplus
f_status_t test_convert_dynamic_to_utf(const f_string_static_t dynamic, f_utf_string_dynamic_t * const utf) {
- f_status_t status = f_utf_string_dynamic_resize(dynamic.used, utf);
+ f_status_t status = f_memory_array_resize(dynamic.used, sizeof(f_utf_char_t), (void **) &utf->string, &utf->used, &utf->size);
if (F_status_is_error(status)) return status;
utf->used = 0;
* @return
* F_okay on success.
*
+ * Errors (with error bit) from: f_memory_array_resize().
* Errors (with error bit) from: f_utf_char_to_character().
- * Errors (with error bit) from: f_utf_string_dynamic_resize().
*
+ * @see f_memory_array_resize()
* @see f_utf_char_to_character()
- * @see f_utf_string_dynamic_resize()
*/
extern f_status_t test_convert_dynamic_to_utf(const f_string_static_t dynamic, f_utf_string_dynamic_t * const utf);