1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00
profanity/tests/unittests/test_preferences.c

34 lines
727 B
C
Raw Normal View History

2014-01-19 12:20:31 -05:00
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
#include <stdlib.h>
#include <string.h>
#include <glib.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);
}
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);
}
void statuses_muc_defaults_to_all(void **state)
2014-01-19 12:20:31 -05:00
{
char *setting = prefs_get_string(PREF_STATUSES_MUC);
2014-01-19 12:20:31 -05:00
assert_non_null(setting);
assert_string_equal("all", setting);
2014-01-19 12:20:31 -05:00
}