summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@free.fr>2019-09-18 19:30:17 -0700
committerCedric Bail <cedric.bail@free.fr>2019-09-19 14:37:51 -0700
commit8128e3fea2af21b41ff420fc0fc2cd2045b72684 (patch)
tree6391deb3151588dc27ae34538b1a4ba5bae85163 /src/tests
parent77ab3523cdafe3e128d1fa911e93ede14fac96b6 (diff)
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
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/efl/efl_test_composite_model.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/efl/efl_test_composite_model.c b/src/tests/efl/efl_test_composite_model.c
index d20bc1c017..5a7d3f21ab 100644
--- a/src/tests/efl/efl_test_composite_model.c
+++ b/src/tests/efl/efl_test_composite_model.c
@@ -43,7 +43,7 @@ _children_slice_get_then(void *data EINA_UNUSED,
43 Eina_Value *p_int = NULL; 43 Eina_Value *p_int = NULL;
44 Eina_Value *p_true = NULL; 44 Eina_Value *p_true = NULL;
45 Eina_Value *p_false = NULL; 45 Eina_Value *p_false = NULL;
46 int v_int = 0; 46 int v_int = -1;
47 Eina_Bool v_true = EINA_FALSE; 47 Eina_Bool v_true = EINA_FALSE;
48 Eina_Bool v_false = EINA_TRUE; 48 Eina_Bool v_false = EINA_TRUE;
49 49
@@ -51,9 +51,9 @@ _children_slice_get_then(void *data EINA_UNUSED,
51 p_true = efl_model_property_get(child, "test_p_true"); 51 p_true = efl_model_property_get(child, "test_p_true");
52 p_false = efl_model_property_get(child, "test_p_false"); 52 p_false = efl_model_property_get(child, "test_p_false");
53 53
54 eina_value_get(p_int, &v_int); 54 eina_value_int_get(p_int, &v_int);
55 eina_value_get(p_true, &v_true); 55 eina_value_bool_get(p_true, &v_true);
56 eina_value_get(p_false, &v_false); 56 eina_value_bool_get(p_false, &v_false);
57 57
58 fail_if(v_int != base_ints[i]); 58 fail_if(v_int != base_ints[i]);
59 fail_if(v_true != EINA_TRUE); 59 fail_if(v_true != EINA_TRUE);