diff options
author | Patrick Monnerat <[email protected]> | 2015-10-08 16:30:59 +0200 |
---|---|---|
committer | Patrick Monnerat <[email protected]> | 2015-10-08 16:30:59 +0200 |
commit | 78101257f40bbf8a0d7b606bee36e527f9b0ea11 (patch) | |
tree | 7d7cbd083ac93c0bcb13d5525142ec076f1673f1 /tests/document-output-stream.c | |
parent | b580b354454c6ade07627914f2d84ff3108ca2ca (diff) | |
download | pluma-78101257f40bbf8a0d7b606bee36e527f9b0ea11.tar.bz2 pluma-78101257f40bbf8a0d7b606bee36e527f9b0ea11.tar.xz |
tests/document-output-stream.c: change substring length from 2 to 3 in EOL tests.
CRs always appear at the same modulus 2 offset in test strings, thus bug
https://github.com/mate-desktop/pluma/issues/100 is never detected.
Setting substring lengths to 3 causes the test to detect bug #100, thus failing,
as it should yet do.
Diffstat (limited to 'tests/document-output-stream.c')
-rw-r--r-- | tests/document-output-stream.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/document-output-stream.c b/tests/document-output-stream.c index a7e93a32..75587c50 100644 --- a/tests/document-output-stream.c +++ b/tests/document-output-stream.c @@ -91,22 +91,22 @@ test_empty () static void test_consecutive () { - test_consecutive_write ("hello\nhow\nare\nyou", "hello\nhow\nare\nyou", 2, + test_consecutive_write ("hello\nhow\nare\nyou", "hello\nhow\nare\nyou", 3, PLUMA_DOCUMENT_NEWLINE_TYPE_LF); - test_consecutive_write ("hello\rhow\rare\ryou", "hello\rhow\rare\ryou", 2, + test_consecutive_write ("hello\rhow\rare\ryou", "hello\rhow\rare\ryou", 3, PLUMA_DOCUMENT_NEWLINE_TYPE_CR); - test_consecutive_write ("hello\r\nhow\r\nare\r\nyou", "hello\r\nhow\r\nare\r\nyou", 2, + test_consecutive_write ("hello\r\nhow\r\nare\r\nyou", "hello\r\nhow\r\nare\r\nyou", 3, PLUMA_DOCUMENT_NEWLINE_TYPE_CR_LF); } static void test_consecutive_tnewline () { - test_consecutive_write ("hello\nhow\nare\nyou\n", "hello\nhow\nare\nyou", 2, + test_consecutive_write ("hello\nhow\nare\nyou\n", "hello\nhow\nare\nyou", 3, PLUMA_DOCUMENT_NEWLINE_TYPE_LF); - test_consecutive_write ("hello\rhow\rare\ryou\r", "hello\rhow\rare\ryou", 2, + test_consecutive_write ("hello\rhow\rare\ryou\r", "hello\rhow\rare\ryou", 3, PLUMA_DOCUMENT_NEWLINE_TYPE_CR); - test_consecutive_write ("hello\r\nhow\r\nare\r\nyou\r\n", "hello\r\nhow\r\nare\r\nyou", 2, + test_consecutive_write ("hello\r\nhow\r\nare\r\nyou\r\n", "hello\r\nhow\r\nare\r\nyou", 3, PLUMA_DOCUMENT_NEWLINE_TYPE_CR_LF); } |