summaryrefslogtreecommitdiff
path: root/src/tests/elementary/elm_code_test_text.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-03-06 23:43:06 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-03-07 02:32:15 +0900
commit9c8749b99a03d3601321da6d16071dd7b631d1ae (patch)
tree1baee8a41dfe32bd6bb2f155564ae04c08fb086b /src/tests/elementary/elm_code_test_text.c
parent6865ad177368cdc54b587ab0979f39b20ff61552 (diff)
ecore - go back to args 0 being the command and 1+ being actual args
so this is then inconsistent with efl.exe and efl.thread, so go back to being normal with 0'th arg being the binary itself jsut to make sure we have conistent usage.
Diffstat (limited to 'src/tests/elementary/elm_code_test_text.c')
-rw-r--r--src/tests/elementary/elm_code_test_text.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/tests/elementary/elm_code_test_text.c b/src/tests/elementary/elm_code_test_text.c
index dfff80f..0ab22df 100644
--- a/src/tests/elementary/elm_code_test_text.c
+++ b/src/tests/elementary/elm_code_test_text.c
@@ -17,7 +17,8 @@ START_TEST (elm_code_text_get_test)
17 const char *str; 17 const char *str;
18 unsigned int len; 18 unsigned int len;
19 19
20 elm_init(1, NULL); 20 char *args[] = { "exe" };
21 elm_init(1, args);
21 code = elm_code_create(); 22 code = elm_code_create();
22 file = elm_code_file_new(code); 23 file = elm_code_file_new(code);
23 24
@@ -38,7 +39,8 @@ START_TEST (elm_code_text_insert_test)
38 const char *text; 39 const char *text;
39 unsigned int length; 40 unsigned int length;
40 41
41 elm_init(1, NULL); 42 char *args[] = { "exe" };
43 elm_init(1, args);
42 code = elm_code_create(); 44 code = elm_code_create();
43 file = elm_code_file_new(code); 45 file = elm_code_file_new(code);
44 46
@@ -58,7 +60,8 @@ START_TEST (elm_code_text_contains_test)
58 Elm_Code_File *file; 60 Elm_Code_File *file;
59 Elm_Code_Line *line; 61 Elm_Code_Line *line;
60 62
61 elm_init(1, NULL); 63 char *args[] = { "exe" };
64 elm_init(1, args);
62 code = elm_code_create(); 65 code = elm_code_create();
63 file = elm_code_file_new(code); 66 file = elm_code_file_new(code);
64 67
@@ -80,7 +83,8 @@ START_TEST (elm_code_text_strpos_test)
80 Elm_Code_File *file; 83 Elm_Code_File *file;
81 Elm_Code_Line *line; 84 Elm_Code_Line *line;
82 85
83 elm_init(1, NULL); 86 char *args[] = { "exe" };
87 elm_init(1, args);
84 code = elm_code_create(); 88 code = elm_code_create();
85 file = elm_code_file_new(code); 89 file = elm_code_file_new(code);
86 90
@@ -106,7 +110,8 @@ START_TEST (elm_code_text_newline_position_test)
106 const char *unixtext = "a test\nwith newline"; 110 const char *unixtext = "a test\nwith newline";
107 const char *wintext = "a windows\r\nnewline"; 111 const char *wintext = "a windows\r\nnewline";
108 112
109 elm_init(1, NULL); 113 char *args[] = { "exe" };
114 elm_init(1, args);
110 ck_assert_int_eq(6, elm_code_text_newlinenpos(unixtext, strlen(unixtext), &nllen)); 115 ck_assert_int_eq(6, elm_code_text_newlinenpos(unixtext, strlen(unixtext), &nllen));
111 ck_assert_int_eq(1, nllen); 116 ck_assert_int_eq(1, nllen);
112 ck_assert_int_eq(9, elm_code_text_newlinenpos(wintext, strlen(wintext), &nllen)); 117 ck_assert_int_eq(9, elm_code_text_newlinenpos(wintext, strlen(wintext), &nllen));
@@ -119,7 +124,8 @@ START_TEST (elm_code_text_is_whitespace_test)
119{ 124{
120 const char *text; 125 const char *text;
121 126
122 elm_init(1, NULL); 127 char *args[] = { "exe" };
128 elm_init(1, args);
123 text = " "; 129 text = " ";
124 ck_assert_int_eq(1, elm_code_text_is_whitespace(text, strlen(text))); 130 ck_assert_int_eq(1, elm_code_text_is_whitespace(text, strlen(text)));
125 131