forked from enlightenment/efl
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:
parent
77ab3523cd
commit
8128e3fea2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue