[gtksourceview/wip/uchardet] tests: do not test small chunk conversion with uchardet.



commit 11f9085effe20a02588f1900d73851852fb86303
Author: Jehan <jehan girinstud io>
Date:   Sat Nov 28 19:25:06 2015 +0100

    tests: do not test small chunk conversion with uchardet.
    
    This fixes test_utf16_utf8().

 tests/test-buffer-output-stream.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/test-buffer-output-stream.c b/tests/test-buffer-output-stream.c
index ed78c67..707d6ff 100644
--- a/tests/test-buffer-output-stream.c
+++ b/tests/test-buffer-output-stream.c
@@ -396,9 +396,12 @@ test_utf16_utf8 (void)
        g_assert_cmpstr (aux, ==, "\xe2\xb4\xb2");
        g_free (aux);
 
+#ifndef WITH_UCHARDET
+       /* Small chunk test but not with uchardet */
        aux = do_test (text, "UTF-16", NULL, aux_len, 1, NULL);
        g_assert_cmpstr (aux, ==, "\xe2\xb4\xb2");
        g_free (aux);
+#endif
 }
 
 gint


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]