Moved tests -> unittests

This commit is contained in:
James Booth
2015-05-28 18:50:55 +01:00
parent 0c99dc7ad6
commit 6d6bb64588
58 changed files with 52 additions and 50 deletions

21
unittests/test_form.h Normal file
View File

@@ -0,0 +1,21 @@
void get_form_type_field_returns_null_no_fields(void **state);
void get_form_type_field_returns_null_when_not_present(void **state);
void get_form_type_field_returns_value_when_present(void **state);
void get_field_type_returns_unknown_when_no_fields(void **state);
void get_field_type_returns_correct_type(void **state);
void set_value_adds_when_none(void **state);
void set_value_updates_when_one(void **state);
void add_unique_value_adds_when_none(void **state);
void add_unique_value_does_nothing_when_exists(void **state);
void add_unique_value_adds_when_doesnt_exist(void **state);
void add_value_adds_when_none(void **state);
void add_value_adds_when_some(void **state);
void add_value_adds_when_exists(void **state);
void remove_value_does_nothing_when_none(void **state);
void remove_value_does_nothing_when_doesnt_exist(void **state);
void remove_value_removes_when_one(void **state);
void remove_value_removes_when_many(void **state);
void remove_text_multi_value_does_nothing_when_none(void **state);
void remove_text_multi_value_does_nothing_when_doesnt_exist(void **state);
void remove_text_multi_value_removes_when_one(void **state);
void remove_text_multi_value_removes_when_many(void **state);