eo: add tests for efl_property_reflection_exist.

Reviewed-by: Marcel Hollerbach <marcel-hollerbach@t-online.de>
Differential Revision: https://phab.enlightenment.org/D7938
This commit is contained in:
Cedric BAIL 2019-02-11 18:21:39 -08:00
parent 11d2b39b44
commit 2b2bf31264
1 changed files with 4 additions and 0 deletions

View File

@ -52,9 +52,13 @@ EFL_START_TEST(eo_test_reflection_simple)
efl_property_reflection_set(simple, "simple_a", numb_val);
ck_assert_int_eq(simple_a_get(simple), numb);
ck_assert_int_eq(efl_property_reflection_exist(simple, "simple_a"), EINA_TRUE);
ck_assert_int_eq(efl_property_reflection_set(simple, "should_fail", useless_val),
EINA_ERROR_NOT_IMPLEMENTED);
ck_assert_int_eq(efl_property_reflection_exist(simple, "should_fail"), EINA_FALSE);
simple_a_set(simple, 22);
Eina_Value res = efl_property_reflection_get(simple, "simple_a");
eina_value_int_convert(&res, &number_ref);