eo: add tests for efl_property_reflection_exist.
authorCedric BAIL <cedric.bail@free.fr>
Tue, 12 Feb 2019 02:21:39 +0000 (18:21 -0800)
committerWonki Kim <wonki_.kim@samsung.com>
Fri, 8 Mar 2019 11:49:35 +0000 (20:49 +0900)
Reviewed-by: Marcel Hollerbach <marcel-hollerbach@t-online.de>
Differential Revision: https://phab.enlightenment.org/D7938

src/tests/eo/suite/eo_test_reflection.c

index 2546cfe..9175785 100644 (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);