diff mbox series

[6/6] unit: Update to the new API

Message ID 20240205213150.1001245-6-denkenz@gmail.com (mailing list archive)
State Accepted
Commit 98a0809de30900982b56e597228cd258fea43cf0
Headers show
Series [1/6] stkagent: Use l_utf8_get_codepoint | expand

Commit Message

Denis Kenzior Feb. 5, 2024, 9:31 p.m. UTC
The function now returns stdbool instead of gboolean, so update the use
accordingly and to the new coding style.
---
 unit/test-simutil.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
diff mbox series

Patch

diff --git a/unit/test-simutil.c b/unit/test-simutil.c
index 530f624e6b0b..8364f200c665 100644
--- a/unit/test-simutil.c
+++ b/unit/test-simutil.c
@@ -97,14 +97,14 @@  static void test_validate_tlv(void)
 	unsigned char impi_invalid1[] = { 0x80, 0x4, 'F', '\0', 'O', '\0' };
 	unsigned char impi_invalid2[] = { 0x80, 0x4, 0xff, 0xff, 0xff, 0xff };
 
-	g_assert(validate_utf8_tlv(impi_none) == FALSE);
-	g_assert(validate_utf8_tlv(impi_empty) == TRUE);
-	g_assert(validate_utf8_tlv(impi_term1) == TRUE);
-	g_assert(validate_utf8_tlv(impi_term2) == TRUE);
-	g_assert(validate_utf8_tlv(impi_term3) == TRUE);
-	g_assert(validate_utf8_tlv(impi_term4) == TRUE);
-	g_assert(validate_utf8_tlv(impi_invalid1) == FALSE);
-	g_assert(validate_utf8_tlv(impi_invalid2) == FALSE);
+	g_assert(!validate_utf8_tlv(impi_none));
+	g_assert(validate_utf8_tlv(impi_empty));
+	g_assert(validate_utf8_tlv(impi_term1));
+	g_assert(validate_utf8_tlv(impi_term2));
+	g_assert(validate_utf8_tlv(impi_term3));
+	g_assert(validate_utf8_tlv(impi_term4));
+	g_assert(!validate_utf8_tlv(impi_invalid1));
+	g_assert(!validate_utf8_tlv(impi_invalid2));
 }
 
 static void test_ber_tlv_builder_mms(void)