Merge common and util

This commit is contained in:
James Booth
2012-08-23 01:08:06 +01:00
parent 8b7975bdf3
commit 0fe70ce7d3
15 changed files with 91 additions and 142 deletions

View File

@@ -1,7 +1,7 @@
#include <stdlib.h>
#include <string.h>
#include <head-unit.h>
#include "util.h"
#include "common.h"
void replace_one_substr(void)
{
@@ -146,9 +146,9 @@ void replace_when_new_null(void)
assert_string_equals("hello", result);
}
void register_util_tests(void)
void register_common_tests(void)
{
TEST_MODULE("util tests");
TEST_MODULE("common tests");
TEST(replace_one_substr);
TEST(replace_one_substr_beginning);
TEST(replace_one_substr_end);

View File

@@ -5,7 +5,7 @@ int main(void)
{
register_prof_history_tests();
register_contact_list_tests();
register_util_tests();
register_common_tests();
register_prof_autocomplete_tests();
run_suite();
return 0;

View File

@@ -3,7 +3,7 @@
void register_prof_history_tests(void);
void register_contact_list_tests(void);
void register_util_tests(void);
void register_common_tests(void);
void register_prof_autocomplete_tests(void);
#endif