mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Added test.
This commit is contained in:
parent
6d883f488f
commit
5196aa82ca
|
@ -286,6 +286,16 @@ void tox_connection_status(Tox *tox, TOX_CONNECTION connection_status, void *use
|
|||
|
||||
START_TEST(test_one)
|
||||
{
|
||||
{
|
||||
TOX_ERR_OPTIONS_NEW o_err;
|
||||
struct Tox_Options *o1 = tox_options_new(&o_err);
|
||||
struct Tox_Options o2;
|
||||
tox_options_default(&o2);
|
||||
ck_assert_msg(o_err == TOX_ERR_OPTIONS_NEW_OK, "tox_options_new wrong error");
|
||||
ck_assert_msg(memcmp(o1, &o2, sizeof(struct Tox_Options)) == 0, "tox_options_new error");
|
||||
tox_options_free(o1);
|
||||
}
|
||||
|
||||
Tox *tox1 = tox_new(0, 0);
|
||||
Tox *tox2 = tox_new(0, 0);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user