about summary refs log tree commit diff stats
path: root/tests/test_form.h
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-09-14 22:31:27 +0100
committerJames Booth <boothj5@gmail.com>2014-09-14 22:31:27 +0100
commitb934ad54d53a9108499829924af9292e182c39d9 (patch)
tree684657941c80c781f40975d59bafc16bb5f0cacf /tests/test_form.h
parentde0ce0b80daad482e7f7791887ce810307f9a477 (diff)
downloadprofani-tty-b934ad54d53a9108499829924af9292e182c39d9.tar.gz
Added form tests
Diffstat (limited to 'tests/test_form.h')
-rw-r--r--tests/test_form.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_form.h b/tests/test_form.h
new file mode 100644
index 00000000..1daaefa7
--- /dev/null
+++ b/tests/test_form.h
@@ -0,0 +1,10 @@
+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);