q66 pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=333e8766295dee32dcbd1b5f2a2b9f2d3d941b44

commit 333e8766295dee32dcbd1b5f2a2b9f2d3d941b44
Author: Daniel Kolesa <d.kol...@osg.samsung.com>
Date:   Wed May 13 17:22:25 2015 +0100

    eolian: use the actual enum type in tests
---
 src/tests/eolian/data/enum.eo     | 6 +++---
 src/tests/eolian/eolian_parsing.c | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/tests/eolian/data/enum.eo b/src/tests/eolian/data/enum.eo
index 3b16a2a..93fca58 100644
--- a/src/tests/eolian/data/enum.eo
+++ b/src/tests/eolian/data/enum.eo
@@ -16,6 +16,8 @@ enum Baz {
     flag3 = 1 << 2
 }
 
+const Bah: Baz = Baz.flag1;
+
 enum Value {
     foo,
     bar,
@@ -25,9 +27,7 @@ enum Value {
     pants
 }
 
-const Pants: int = Value.pants;
-
-const Bah: int = Baz.flag1;
+const Pants: Value = Value.pants;
 
 class Enum {
     methods {
diff --git a/src/tests/eolian/eolian_parsing.c 
b/src/tests/eolian/eolian_parsing.c
index 5eefe74..4591732 100644
--- a/src/tests/eolian/eolian_parsing.c
+++ b/src/tests/eolian/eolian_parsing.c
@@ -910,7 +910,7 @@ START_TEST(eolian_enum)
    fail_if(eolian_variable_is_extern(var));
    fail_if(!(type = eolian_variable_base_type_get(var)));
    fail_if(!(name = eolian_type_name_get(type)));
-   fail_if(strcmp(name, "int"));
+   fail_if(strcmp(name, "Baz"));
    fail_if(!(exp = eolian_variable_value_get(var)));
    v = eolian_expression_eval(exp, EOLIAN_MASK_ALL);
    fail_if(v.type != EOLIAN_EXPR_INT);

-- 


Reply via email to