From 5196aa82ca7df90bf53ae98ef55f624d73b7b447 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Thu, 4 Jun 2015 22:18:09 -0400 Subject: [PATCH] Added test. --- auto_tests/tox_test.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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);