forked from enlightenment/efl
eolian: move list<> tests to be @beta and preserve enough meaningful that are not @beta.
Reviewed-by: Daniel Kolesa <daniel@octaforge.org> Reviewed-by: Felipe Magno de Almeida <felipe@expertisesolutions.com.br> Differential Revision: https://phab.enlightenment.org/D11046
This commit is contained in:
parent
0f49f5e472
commit
1d28ff6a76
|
@ -1,6 +1,6 @@
|
||||||
class Complex_Type {
|
class Complex_Type {
|
||||||
methods {
|
methods {
|
||||||
@property a {
|
@property a @beta {
|
||||||
set {
|
set {
|
||||||
return: list<array<strbuf @move> > @move;
|
return: list<array<strbuf @move> > @move;
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ class Complex_Type {
|
||||||
value: list<string> @move;
|
value: list<string> @move;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
foo {
|
foo @beta {
|
||||||
params {
|
params {
|
||||||
buf: mstring @move;
|
buf: mstring @move;
|
||||||
sl: slice<ubyte>;
|
sl: slice<ubyte>;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
abstract Object_Impl extends Base {
|
abstract Object_Impl extends Base {
|
||||||
methods {
|
methods {
|
||||||
@property a {
|
@property a @beta {
|
||||||
set {
|
set {
|
||||||
values {
|
values {
|
||||||
value: const(list<string>);
|
value: const(list<string>);
|
||||||
|
@ -23,7 +23,7 @@ abstract Object_Impl extends Base {
|
||||||
/* set as virtual pure - no implementation expected */
|
/* set as virtual pure - no implementation expected */
|
||||||
}
|
}
|
||||||
values {
|
values {
|
||||||
value: list<string> @move;
|
value: iterator<string> @move;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
constructor_1 {
|
constructor_1 {
|
||||||
|
|
|
@ -2,7 +2,7 @@ class Object_Impl_Add extends Base {
|
||||||
data: Object_Impl_Data;
|
data: Object_Impl_Data;
|
||||||
|
|
||||||
methods {
|
methods {
|
||||||
@property c {
|
@property c @beta {
|
||||||
set {
|
set {
|
||||||
}
|
}
|
||||||
get {
|
get {
|
||||||
|
|
|
@ -20,7 +20,7 @@ _object_impl_a_get(const Eo *obj, Object_Impl_Data *pd, const char *part)
|
||||||
}
|
}
|
||||||
|
|
||||||
EOLIAN static void
|
EOLIAN static void
|
||||||
_object_impl_b_set(Eo *obj, Object_Impl_Data *pd, Eina_List *value)
|
_object_impl_b_set(Eo *obj, Object_Impl_Data *pd, Eina_Iterator *value)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ _object_impl_a_get(const Eo *obj, Object_Impl_Data *pd, const char *part)
|
||||||
}
|
}
|
||||||
|
|
||||||
EOLIAN static void
|
EOLIAN static void
|
||||||
_object_impl_b_set(Eo *obj, Object_Impl_Data *pd, Eina_List *value)
|
_object_impl_b_set(Eo *obj, Object_Impl_Data *pd, Eina_Iterator *value)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
type Evas.Coord: int; /* Simple type definition */
|
type Evas.Coord: int; /* Simple type definition */
|
||||||
type List_Objects: list<Typedef>; /* A little more complex */
|
type List_Objects: iterator<Typedef>; /* A little more complex */
|
||||||
|
|
||||||
type Evas.Coord2: Evas.Coord;
|
type Evas.Coord2: Evas.Coord;
|
||||||
type Evas.Coord3: Evas.Coord2;
|
type Evas.Coord3: Evas.Coord2;
|
||||||
|
|
|
@ -13,7 +13,7 @@ typedef Eo Typedef;
|
||||||
|
|
||||||
typedef int Evas_Coord;
|
typedef int Evas_Coord;
|
||||||
|
|
||||||
typedef Eina_List *List_Objects;
|
typedef Eina_Iterator *List_Objects;
|
||||||
|
|
||||||
typedef Evas_Coord Evas_Coord2;
|
typedef Evas_Coord Evas_Coord2;
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ typedef Eo Typedef;
|
||||||
|
|
||||||
typedef int Evas_Coord;
|
typedef int Evas_Coord;
|
||||||
|
|
||||||
typedef Eina_List *List_Objects;
|
typedef Eina_Iterator *List_Objects;
|
||||||
|
|
||||||
typedef Evas_Coord Evas_Coord2;
|
typedef Evas_Coord Evas_Coord2;
|
||||||
|
|
||||||
|
|
|
@ -106,6 +106,7 @@ EFL_START_TEST(eolian_dev_impl_code)
|
||||||
fail_if(0 != _eolian_gen_execute(TESTS_SRC_DIR"/data/object_impl.eo", "-gi", output_filepath));
|
fail_if(0 != _eolian_gen_execute(TESTS_SRC_DIR"/data/object_impl.eo", "-gi", output_filepath));
|
||||||
fail_if(!_files_compare(TESTS_SRC_DIR"/data/object_impl_ref.c", output_filepath, "c"));
|
fail_if(!_files_compare(TESTS_SRC_DIR"/data/object_impl_ref.c", output_filepath, "c"));
|
||||||
fail_if(0 != _eolian_gen_execute(TESTS_SRC_DIR"/data/object_impl_add.eo", "-gi", output_filepath));
|
fail_if(0 != _eolian_gen_execute(TESTS_SRC_DIR"/data/object_impl_add.eo", "-gi", output_filepath));
|
||||||
|
fprintf(stderr, "[%s]\n", output_filepath);
|
||||||
fail_if(!_files_compare(TESTS_SRC_DIR"/data/object_impl_add_ref.c", output_filepath, "c"));
|
fail_if(!_files_compare(TESTS_SRC_DIR"/data/object_impl_add_ref.c", output_filepath, "c"));
|
||||||
}
|
}
|
||||||
EFL_END_TEST
|
EFL_END_TEST
|
||||||
|
|
|
@ -368,7 +368,7 @@ EFL_START_TEST(eolian_typedef)
|
||||||
fail_if(strcmp(type_name, "List_Objects"));
|
fail_if(strcmp(type_name, "List_Objects"));
|
||||||
fail_if(!(type = eolian_typedecl_base_type_get(tdl)));
|
fail_if(!(type = eolian_typedecl_base_type_get(tdl)));
|
||||||
fail_if(!(type_name = eolian_type_c_type_get(type)));
|
fail_if(!(type_name = eolian_type_c_type_get(type)));
|
||||||
fail_if(strcmp(type_name, "Eina_List *"));
|
fail_if(strcmp(type_name, "Eina_Iterator *"));
|
||||||
eina_stringshare_del(type_name);
|
eina_stringshare_del(type_name);
|
||||||
fail_if(!(type = eolian_type_base_type_get(type)));
|
fail_if(!(type = eolian_type_base_type_get(type)));
|
||||||
fail_if(!!eolian_type_next_type_get(type));
|
fail_if(!!eolian_type_next_type_get(type));
|
||||||
|
|
Loading…
Reference in New Issue