forked from enlightenment/efl
eina strbuf tests - fix tests to properly check fail unless conditions
the contiions were wrong - warnings picked it up. fix.
This commit is contained in:
parent
9fd36d7037
commit
b4f9021e55
|
@ -487,16 +487,16 @@ EFL_START_TEST(eina_test_strbuf_tolower)
|
||||||
eina_strbuf_append(buf, "UPPER");
|
eina_strbuf_append(buf, "UPPER");
|
||||||
eina_strbuf_tolower(buf);
|
eina_strbuf_tolower(buf);
|
||||||
str = eina_strbuf_string_get(buf);
|
str = eina_strbuf_string_get(buf);
|
||||||
fail_unless(str || strcmp(str, "upper"));
|
fail_unless(str && !strcmp(str, "upper"));
|
||||||
|
|
||||||
eina_strbuf_tolower(buf);
|
eina_strbuf_tolower(buf);
|
||||||
str = eina_strbuf_string_get(buf);
|
str = eina_strbuf_string_get(buf);
|
||||||
fail_unless(str || strcmp(str, "upper"));
|
fail_unless(str && !strcmp(str, "upper"));
|
||||||
|
|
||||||
eina_strbuf_append(buf, "1@ ");
|
eina_strbuf_append(buf, "1@ ");
|
||||||
eina_strbuf_tolower(buf);
|
eina_strbuf_tolower(buf);
|
||||||
str = eina_strbuf_string_get(buf);
|
str = eina_strbuf_string_get(buf);
|
||||||
fail_unless(str || strcmp(str, "upper1@ "));
|
fail_unless(str && !strcmp(str, "upper1@ "));
|
||||||
|
|
||||||
eina_strbuf_free(buf);
|
eina_strbuf_free(buf);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue