From db71137fd2444d6a83488a888d17ba4fab9ed84b Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 7 Jul 2009 13:55:09 -0500 Subject: [PATCH] Update unit tests --- unit/test-util.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/unit/test-util.c b/unit/test-util.c index 5bd73e8d..cc96442c 100644 --- a/unit/test-util.c +++ b/unit/test-util.c @@ -634,6 +634,8 @@ static unsigned char sim_82_0[] = { 0x82, 0x05, 0x05, 0x30, 0x2D, 0x82, 0xD3, 0x2D, 0x31 }; static unsigned char sim_82_1[] = { 0x82, 0x05, 0x04, 0x00, 0x2D, 0xB3, 0xB4, 0x2D, 0x31 }; +static unsigned char sim_82_2[] = { 0x82, 0x05, 0xD8, 0x00, 0x2D, 0xB3, 0xB4, + 0x2D, 0x31 }; static void test_sim() { @@ -680,6 +682,9 @@ static void test_sim() utf8 = sim_string_to_utf8(sim_82_1, sizeof(sim_82_1)); g_assert(utf8); g_free(utf8); + + utf8 = sim_string_to_utf8(sim_82_2, sizeof(sim_82_2)); + g_assert(utf8 == NULL); } int main(int argc, char **argv)