Remove useless comparison
[pidgin-git.git] / libpurple / tests / tests.h
blob815b157ba7276d678ed20f670d373782db8f28f2
1 #ifndef TESTS_H
2 # define TESTS_H
4 #include "../purple.h"
6 #include <check.h>
8 /* define the test suites here */
9 /* remember to add the suite to the runner in check_libpurple.c */
10 Suite * master_suite(void);
11 Suite * cipher_suite(void);
12 Suite * jabber_caps_suite(void);
13 Suite * jabber_digest_md5_suite(void);
14 Suite * jabber_jutil_suite(void);
15 Suite * jabber_scram_suite(void);
16 Suite * oscar_util_suite(void);
17 Suite * util_suite(void);
18 Suite * xmlnode_suite(void);
20 /* helper macros */
21 #define assert_int_equal(expected, actual) { \
22 fail_if(expected != actual, "Expected '%d' but got '%d'", expected, actual); \
25 #define assert_string_equal(expected, actual) { \
26 const gchar *a = actual; \
27 fail_unless(purple_strequal(expected, a), "Expected '%s' but got '%s'", expected, a); \
30 #define assert_string_equal_free(expected, actual) { \
31 gchar *b = actual; \
32 assert_string_equal(expected, b); \
33 g_free(b); \
37 #endif /* ifndef TESTS_H */