cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=2b2bf31264ab851bf558d2c5c51ddbc6ae89a10a
commit 2b2bf31264ab851bf558d2c5c51ddbc6ae89a10a Author: Cedric BAIL <[email protected]> Date: Mon Feb 11 18:21:39 2019 -0800 eo: add tests for efl_property_reflection_exist. Reviewed-by: Marcel Hollerbach <[email protected]> Differential Revision: https://phab.enlightenment.org/D7938 --- src/tests/eo/suite/eo_test_reflection.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tests/eo/suite/eo_test_reflection.c b/src/tests/eo/suite/eo_test_reflection.c index 2546cfefed..9175785f14 100644 --- a/src/tests/eo/suite/eo_test_reflection.c +++ b/src/tests/eo/suite/eo_test_reflection.c @@ -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); --
