From 36b52d4f87bf5e676a630dc898fb4fa8504f8380 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 6 Jul 2009 15:24:26 -0500 Subject: Update unit test for empty strings --- unit/test-util.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'unit/test-util.c') diff --git a/unit/test-util.c b/unit/test-util.c index 11cd6b3a..32a167e9 100644 --- a/unit/test-util.c +++ b/unit/test-util.c @@ -188,8 +188,11 @@ static void test_invalid() res = convert_gsm_to_utf8(invalid_gsm_extended, 0, &nread, &nwritten, 0); - g_assert(res == NULL); + g_assert(res); g_assert(nread == 0); + g_assert(nwritten == 0); + g_assert(res[0] == '\0'); + g_free(res); res = convert_gsm_to_utf8(invalid_gsm_extended, sizeof(invalid_gsm_extended), -- cgit v1.2.3