diff --git a/auto_tests/tox_test.c b/auto_tests/tox_test.c index 501c93dc..e63bd7b8 100644 --- a/auto_tests/tox_test.c +++ b/auto_tests/tox_test.c @@ -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);