[telepathy-gabble/telepathy-gabble-0.8] Assert that base64_decode parses valid base64.
Will Thompson
will.thompson at collabora.co.uk
Wed Nov 25 06:07:10 PST 2009
All the other tests in this file check that base64_decode() returns
non-NULL, so this one should too.
---
tests/test-base64.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/tests/test-base64.c b/tests/test-base64.c
index 53c62c5..49ebbf3 100644
--- a/tests/test-base64.c
+++ b/tests/test-base64.c
@@ -86,6 +86,7 @@ main (void)
/* test string with embedded NULL */
tmp1 = base64_decode ("Zm9vAGJhcg==");
tmp2 = g_string_new_len ("foo\0bar", 7);
+ g_assert (tmp1);
g_assert (g_string_equal (tmp1, tmp2));
g_string_free (tmp1, TRUE);
g_string_free (tmp2, TRUE);
--
1.5.6.5
More information about the telepathy-commits
mailing list