[gtksourceview/wip/uchardet] tests: fix test_big_char() test when running with uchardet.



commit a5250e88ad2a7264a87eadb35b63e420b04b3cce
Author: Jehan <jehan girinstud io>
Date:   Sat Nov 28 17:38:28 2015 +0100

    tests: fix test_big_char() test when running with uchardet.
    
    We send two 3-bytes UTF-8 characters to the output stream, by write
    chunks of 2 bytes. Let's feed at least a complete character to uchardet
    to have a relevant answer.
    Right now it was returning WINDOWS-1252 (which is a valid answer with
    the 2 bytes it was given).

 tests/test-buffer-output-stream.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/test-buffer-output-stream.c b/tests/test-buffer-output-stream.c
index e2a6ed2..bac10cf 100644
--- a/tests/test-buffer-output-stream.c
+++ b/tests/test-buffer-output-stream.c
@@ -113,7 +113,7 @@ test_consecutive_tnewline (void)
 static void
 test_big_char (void)
 {
-       test_consecutive_write ("\343\203\200\343\203\200", "\343\203\200\343\203\200", 2,
+       test_consecutive_write ("\343\203\200\343\203\200", "\343\203\200\343\203\200", 3,
                                GTK_SOURCE_NEWLINE_TYPE_LF);
 }
 


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