[glib] Improve coverage of converter stream tests
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Improve coverage of converter stream tests
- Date: Fri, 30 Jul 2010 23:58:59 +0000 (UTC)
commit 670528c187b0ae59a8fca1b6921722461992a9fb
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jul 29 02:20:15 2010 -0400
Improve coverage of converter stream tests
gio/tests/converter-stream.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gio/tests/converter-stream.c b/gio/tests/converter-stream.c
index f8f2d5b..14225c5 100644
--- a/gio/tests/converter-stream.c
+++ b/gio/tests/converter-stream.c
@@ -354,6 +354,10 @@ test_expander (void)
mem_out = g_memory_output_stream_new (NULL, 0, g_realloc, g_free);
cstream_out = g_converter_output_stream_new (mem_out, expander);
+ g_assert (g_converter_output_stream_get_converter (G_CONVERTER_OUTPUT_STREAM (cstream_out)) == expander);
+ g_object_get (cstream_out, "converter", &converter, NULL);
+ g_assert (converter == expander);
+ g_object_unref (converter);
g_object_unref (mem_out);
for (i = 0; i < sizeof(unexpanded_data); i++)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]