diff options
author | Daniel Kolesa <d.kolesa@samsung.com> | 2019-09-04 18:00:58 +0200 |
---|---|---|
committer | Daniel Kolesa <d.kolesa@samsung.com> | 2019-09-04 18:02:47 +0200 |
commit | 6751f011c1c621c67b671baa4d63e887af374bd4 (patch) | |
tree | 38f2c7d73e4171799e502cf61db346a1aa3c28a2 /src/tests | |
parent | 0021d1386d5828e1bd2b857a2f073327902df817 (diff) |
eolian: remove the expression eval_type API
This is unnecessary because for all contexts where type is
relevant the validator already makes sure the type and expression
match correctly, so you don't ever need to re-validate it. If you
are doing a generic case and are not sure, just use MASK_ALL.
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/eolian/eolian_parsing.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/eolian/eolian_parsing.c b/src/tests/eolian/eolian_parsing.c index c35d10b1a7..60d35150dc 100644 --- a/src/tests/eolian/eolian_parsing.c +++ b/src/tests/eolian/eolian_parsing.c | |||
@@ -800,7 +800,7 @@ EFL_START_TEST(eolian_var) | |||
800 | fail_if(!(name = eolian_type_short_name_get(type))); | 800 | fail_if(!(name = eolian_type_short_name_get(type))); |
801 | fail_if(strcmp(name, "int")); | 801 | fail_if(strcmp(name, "int")); |
802 | fail_if(!(exp = eolian_variable_value_get(var))); | 802 | fail_if(!(exp = eolian_variable_value_get(var))); |
803 | v = eolian_expression_eval_type(exp, type); | 803 | v = eolian_expression_eval(exp, EOLIAN_MASK_ALL); |
804 | fail_if(v.type != EOLIAN_EXPR_INT); | 804 | fail_if(v.type != EOLIAN_EXPR_INT); |
805 | fail_if(v.value.i != 5); | 805 | fail_if(v.value.i != 5); |
806 | 806 | ||
@@ -812,7 +812,7 @@ EFL_START_TEST(eolian_var) | |||
812 | fail_if(!(name = eolian_type_short_name_get(type))); | 812 | fail_if(!(name = eolian_type_short_name_get(type))); |
813 | fail_if(strcmp(name, "float")); | 813 | fail_if(strcmp(name, "float")); |
814 | fail_if(!(exp = eolian_variable_value_get(var))); | 814 | fail_if(!(exp = eolian_variable_value_get(var))); |
815 | v = eolian_expression_eval_type(exp, type); | 815 | v = eolian_expression_eval(exp, EOLIAN_MASK_ALL); |
816 | fail_if(v.type != EOLIAN_EXPR_FLOAT); | 816 | fail_if(v.type != EOLIAN_EXPR_FLOAT); |
817 | fail_if(((int)v.value.f) != 10); | 817 | fail_if(((int)v.value.f) != 10); |
818 | 818 | ||