summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorAli Alzyod <ali198724@gmail.com>2020-06-22 17:31:54 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2020-06-22 17:31:54 +0900
commitc501d09c3aa4c3e7f1ab5a27171b897c3cb4a11c (patch)
tree3de35b8b209289a16a85a56d2e323e0fb8b921ca /src/tests
parentfd24fb568eb600357c4a84b6fc4aa2ba8e36c86d (diff)
eina_strbuf: introduce change last occurrence function
Reviewers: cedric, woohyun, bowonryu Reviewed By: cedric Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8757 Differential Revision: https://phab.enlightenment.org/D11990
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/eina/eina_test_strbuf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tests/eina/eina_test_strbuf.c b/src/tests/eina/eina_test_strbuf.c
index 1d9f52c0d2..ac99992a31 100644
--- a/src/tests/eina/eina_test_strbuf.c
+++ b/src/tests/eina/eina_test_strbuf.c
@@ -303,8 +303,12 @@ EFL_START_TEST(eina_test_strbuf_replace)
303 fail_if(strlen(eina_strbuf_string_get(buf)) != eina_strbuf_length_get(buf)); 303 fail_if(strlen(eina_strbuf_string_get(buf)) != eina_strbuf_length_get(buf));
304 fail_if(strcmp(eina_strbuf_string_get(buf), "baaaab")); 304 fail_if(strcmp(eina_strbuf_string_get(buf), "baaaab"));
305 305
306 fail_if(eina_strbuf_replace_last(buf, "a", "x") == 0);
307 fail_if(strlen(eina_strbuf_string_get(buf)) != eina_strbuf_length_get(buf));
308 fail_if(strcmp(eina_strbuf_string_get(buf), "baaaxb"));
309
306 fail_if(eina_strbuf_replace_first(buf, "a", "b") == 0); 310 fail_if(eina_strbuf_replace_first(buf, "a", "b") == 0);
307 fail_if(strcmp(eina_strbuf_string_get(buf), "bbaaab")); 311 fail_if(strcmp(eina_strbuf_string_get(buf), "bbaaxb"));
308 312
309 eina_strbuf_free(buf); 313 eina_strbuf_free(buf);
310 314