Eolian: fix test.

Constructor has to be defined in the constructors section and not as a
method.
This commit is contained in:
Daniel Zaoui 2014-05-28 13:51:49 +03:00
parent b9b5fe5744
commit d949e9b41b
2 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,9 @@
class Base {
methods {
constructors {
constructor {
}
}
methods {
destructor {
}
}

View File

@ -202,7 +202,7 @@ START_TEST(eolian_ctor_dtor)
fail_if(strcmp(impl_func, "destructor"));
/* Custom ctors/dtors */
fail_if(!eolian_class_function_find_by_name(base, "constructor", EOLIAN_METHOD));
fail_if(!eolian_class_function_find_by_name(base, "constructor", EOLIAN_CTOR));
fail_if(!eolian_class_function_find_by_name(base, "destructor", EOLIAN_METHOD));
fail_if(!eolian_class_function_find_by_name(class, "custom_constructor_1", EOLIAN_CTOR));
fail_if(!eolian_class_function_find_by_name(class, "custom_constructor_2", EOLIAN_CTOR));