ajwillia-ms pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=37aa0855e604e9567b92016370793b442d8c240e

commit 37aa0855e604e9567b92016370793b442d8c240e
Author: Andy Williams <[email protected]>
Date:   Wed Jun 14 19:38:43 2017 +0100

    elm_code: Fix make check
    
    The tests were using some code that became somewhat invalid, adjusting tests
---
 src/tests/elementary/elm_code_test_widget_selection.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/tests/elementary/elm_code_test_widget_selection.c 
b/src/tests/elementary/elm_code_test_widget_selection.c
index db046a0155..59c1565be1 100644
--- a/src/tests/elementary/elm_code_test_widget_selection.c
+++ b/src/tests/elementary/elm_code_test_widget_selection.c
@@ -365,12 +365,12 @@ START_TEST (elm_code_test_widget_selection_delete_twoline)
    ck_assert_int_eq(2, elm_code_file_lines_get(file));
 
    elm_code_widget_selection_start(widget, 1, 5);
-   elm_code_widget_selection_end(widget, 2, 0);
+   elm_code_widget_selection_end(widget, 2, 1);
    elm_code_widget_selection_delete(widget);
 
    line = elm_code_file_line_get(file, 1);
    text = elm_code_line_text_get(line, &length);
-   ck_assert_strn_eq("teXTremove", text, length);
+   ck_assert_strn_eq("teXTemove", text, length);
    ck_assert_int_eq(1, elm_code_file_lines_get(file));
 
    elm_code_free(code);
@@ -411,13 +411,13 @@ START_TEST 
(elm_code_test_widget_selection_reverse_delete_twoline)
    ck_assert_strn_eq("teXT", text, length);
    ck_assert_int_eq(2, elm_code_file_lines_get(file));
 
-   elm_code_widget_selection_start(widget, 2, 0);
+   elm_code_widget_selection_start(widget, 2, 1);
    elm_code_widget_selection_end(widget, 1, 5);
    elm_code_widget_selection_delete(widget);
 
    line = elm_code_file_line_get(file, 1);
    text = elm_code_line_text_get(line, &length);
-   ck_assert_strn_eq("teXTremove", text, length);
+   ck_assert_strn_eq("teXTemove", text, length);
    ck_assert_int_eq(1, elm_code_file_lines_get(file));
 
    elm_code_free(code);
@@ -461,12 +461,12 @@ START_TEST 
(elm_code_test_widget_selection_delete_multiline)
    ck_assert_int_eq(3, elm_code_file_lines_get(file));
 
    elm_code_widget_selection_start(widget, 1, 5);
-   elm_code_widget_selection_end(widget, 3, 0);
+   elm_code_widget_selection_end(widget, 3, 1);
    elm_code_widget_selection_delete(widget);
 
    line = elm_code_file_line_get(file, 1);
    text = elm_code_line_text_get(line, &length);
-   ck_assert_strn_eq("teXTREMOVE", text, length);
+   ck_assert_strn_eq("teXTEMOVE", text, length);
    ck_assert_int_eq(1, elm_code_file_lines_get(file));
 
    elm_code_free(code);
@@ -509,13 +509,13 @@ START_TEST 
(elm_code_test_widget_selection_reverse_delete_multiline)
    ck_assert_strn_eq("teXT", text, length);
    ck_assert_int_eq(3, elm_code_file_lines_get(file));
 
-   elm_code_widget_selection_start(widget, 3, 0);
+   elm_code_widget_selection_start(widget, 3, 1);
    elm_code_widget_selection_end(widget, 1, 5);
    elm_code_widget_selection_delete(widget);
 
    line = elm_code_file_line_get(file, 1);
    text = elm_code_line_text_get(line, &length);
-   ck_assert_strn_eq("teXTREMOVE", text, length);
+   ck_assert_strn_eq("teXTEMOVE", text, length);
    ck_assert_int_eq(1, elm_code_file_lines_get(file));
 
    elm_code_free(code);

-- 


Reply via email to