From 42c1ba7bbaf5b0afbd7d37f2254cd55f03a0a8de Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Sat, 17 Apr 2021 15:02:21 +0200 Subject: [PATCH] test: sip: use g_assert_cmpint for asserting enums --- tests/test-sip.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test-sip.c b/tests/test-sip.c index 65a5add..7516916 100644 --- a/tests/test-sip.c +++ b/tests/test-sip.c @@ -39,7 +39,7 @@ test_sip_provider_object (SipFixture *fixture, g_object_get (fixture->provider, "sip-state", &state, NULL); - g_assert_true (state == SIP_ENGINE_READY); + g_assert_cmpint (state, ==, SIP_ENGINE_READY); } static void @@ -102,9 +102,9 @@ test_sip_origin_objects (SipFixture *fixture, "account-state", &state_offline, NULL); - g_assert_true (state_alice == SIP_ACCOUNT_ONLINE); - g_assert_true (state_bob == SIP_ACCOUNT_ONLINE); - g_assert_true (state_offline == SIP_ACCOUNT_OFFLINE); + g_assert_cmpint (state_alice, ==, SIP_ACCOUNT_ONLINE); + g_assert_cmpint (state_bob, ==, SIP_ACCOUNT_ONLINE); + g_assert_cmpint (state_offline, ==, SIP_ACCOUNT_OFFLINE); } static void