[gtksourceview/wip/uchardet-2: 3/5] tests: fix test_big_char() test when running with uchardet



commit 4f803814352387f37a98596febe7c219cea069f5
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]