summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2019-02-11 18:21:39 -0800
committerCedric BAIL <cedric.bail@free.fr>2019-02-21 11:54:16 -0800
commit2b2bf31264ab851bf558d2c5c51ddbc6ae89a10a (patch)
tree48e2b0cd514975d38e6df1ec11b17111df8791c8 /src
parent11d2b39b445ba7a381ff6661c30365df74647755 (diff)
eo: add tests for efl_property_reflection_exist.
Reviewed-by: Marcel Hollerbach <marcel-hollerbach@t-online.de> Differential Revision: https://phab.enlightenment.org/D7938
Diffstat (limited to 'src')
-rw-r--r--src/tests/eo/suite/eo_test_reflection.c4
1 files changed, 4 insertions, 0 deletions
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)
52 efl_property_reflection_set(simple, "simple_a", numb_val); 52 efl_property_reflection_set(simple, "simple_a", numb_val);
53 ck_assert_int_eq(simple_a_get(simple), numb); 53 ck_assert_int_eq(simple_a_get(simple), numb);
54 54
55 ck_assert_int_eq(efl_property_reflection_exist(simple, "simple_a"), EINA_TRUE);
56
55 ck_assert_int_eq(efl_property_reflection_set(simple, "should_fail", useless_val), 57 ck_assert_int_eq(efl_property_reflection_set(simple, "should_fail", useless_val),
56 EINA_ERROR_NOT_IMPLEMENTED); 58 EINA_ERROR_NOT_IMPLEMENTED);
57 59
60 ck_assert_int_eq(efl_property_reflection_exist(simple, "should_fail"), EINA_FALSE);
61
58 simple_a_set(simple, 22); 62 simple_a_set(simple, 22);
59 Eina_Value res = efl_property_reflection_get(simple, "simple_a"); 63 Eina_Value res = efl_property_reflection_get(simple, "simple_a");
60 eina_value_int_convert(&res, &number_ref); 64 eina_value_int_convert(&res, &number_ref);