forked from enlightenment/efl
eina: add test case for eina_strbuf_string_free function.
Summary: Added test case for eina_strbuf_string_free function in eina_strbuf module Signed-off-by: vivek <vivek.ellur@samsung.com> Reviewers: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2382 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
ce45d443c1
commit
08b99cf201
|
@ -56,6 +56,11 @@ START_TEST(strbuf_simple)
|
|||
fail_if(eina_strbuf_length_get(buf) != 0);
|
||||
fail_if(!strcmp(eina_strbuf_string_get(buf), TEXT));
|
||||
|
||||
eina_strbuf_string_free(buf);
|
||||
fail_if(eina_strbuf_length_get(buf));
|
||||
eina_strbuf_append(buf, TEXT);
|
||||
fail_if(strcmp(eina_strbuf_string_get(buf), TEXT));
|
||||
|
||||
eina_strbuf_free(buf);
|
||||
|
||||
eina_shutdown();
|
||||
|
|
Loading…
Reference in New Issue