void test_mutt_hist_add(void)
{
// void mutt_hist_add(enum HistoryClass hclass, const char *str, bool save);
+
+ {
+ mutt_hist_add(0, NULL, false);
+ TEST_CHECK_(1, "mutt_hist_add(0, NULL, false)");
+ }
}
void test_mutt_hist_save_scratch(void)
{
// void mutt_hist_save_scratch(enum HistoryClass hclass, const char *str);
+
+ {
+ mutt_hist_save_scratch(0, NULL);
+ TEST_CHECK_(1, "mutt_hist_save_scratch(0, NULL)");
+ }
}
void test_mutt_hist_search(void)
{
// int mutt_hist_search(const char *search_buf, enum HistoryClass hclass, char **matches);
+
+ {
+ char *matches = NULL;
+ TEST_CHECK(mutt_hist_search(NULL, 0, &matches) == 0);
+ }
+
+ {
+ char buf[32] = { 0 };
+ TEST_CHECK(mutt_hist_search(buf, 0, NULL) == 0);
+ }
}