diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-07-07 13:55:09 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-07-07 14:33:59 -0500 |
commit | db71137fd2444d6a83488a888d17ba4fab9ed84b (patch) | |
tree | 878a6195b9de1bb6e57348d55253c6d73a2eeac1 /unit/test-util.c | |
parent | 8d88ff2e11f3608ee582c576eba72aaf0b2226db (diff) | |
download | ofono-db71137fd2444d6a83488a888d17ba4fab9ed84b.tar.bz2 |
Update unit tests
Diffstat (limited to 'unit/test-util.c')
-rw-r--r-- | unit/test-util.c | 5 |
1 files changed, 5 insertions, 0 deletions
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) |