mirror of
https://github.com/profanity-im/profanity.git
synced 2024-10-06 20:03:46 -04:00
40 lines
790 B
C
40 lines
790 B
C
#include <cmocka.h>
|
|
#include <glib.h>
|
|
#include <setjmp.h>
|
|
#include <stdarg.h>
|
|
#include <stddef.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
#include "config/preferences.h"
|
|
|
|
void
|
|
statuses_console_defaults_to_all(void** state)
|
|
{
|
|
char* setting = prefs_get_string(PREF_STATUSES_CONSOLE);
|
|
|
|
assert_non_null(setting);
|
|
assert_string_equal("all", setting);
|
|
g_free(setting);
|
|
}
|
|
|
|
void
|
|
statuses_chat_defaults_to_all(void** state)
|
|
{
|
|
char* setting = prefs_get_string(PREF_STATUSES_CHAT);
|
|
|
|
assert_non_null(setting);
|
|
assert_string_equal("all", setting);
|
|
g_free(setting);
|
|
}
|
|
|
|
void
|
|
statuses_muc_defaults_to_all(void** state)
|
|
{
|
|
char* setting = prefs_get_string(PREF_STATUSES_MUC);
|
|
|
|
assert_non_null(setting);
|
|
assert_string_equal("all", setting);
|
|
g_free(setting);
|
|
}
|