efl: improve Efl.Boolean_Model test to enforce Eina_Value type too.

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Differential Revision: https://phab.enlightenment.org/D10031
This commit is contained in:
Cedric Bail 2019-09-18 19:30:17 -07:00
parent 77ab3523cd
commit 8128e3fea2
1 changed files with 4 additions and 4 deletions

View File

@ -43,7 +43,7 @@ _children_slice_get_then(void *data EINA_UNUSED,
Eina_Value *p_int = NULL;
Eina_Value *p_true = NULL;
Eina_Value *p_false = NULL;
int v_int = 0;
int v_int = -1;
Eina_Bool v_true = EINA_FALSE;
Eina_Bool v_false = EINA_TRUE;
@ -51,9 +51,9 @@ _children_slice_get_then(void *data EINA_UNUSED,
p_true = efl_model_property_get(child, "test_p_true");
p_false = efl_model_property_get(child, "test_p_false");
eina_value_get(p_int, &v_int);
eina_value_get(p_true, &v_true);
eina_value_get(p_false, &v_false);
eina_value_int_get(p_int, &v_int);
eina_value_bool_get(p_true, &v_true);
eina_value_bool_get(p_false, &v_false);
fail_if(v_int != base_ints[i]);
fail_if(v_true != EINA_TRUE);