eolian: fix tests following the container restrictions

This commit is contained in:
Daniel Kolesa 2017-11-02 14:03:30 +01:00
parent 263c3ac2ae
commit 9ec1b4fa53
5 changed files with 11 additions and 11 deletions

View File

@ -9,7 +9,7 @@ class Complex_Type {
get { get {
} }
values { values {
value: list<int> @owned; value: list<string> @owned;
} }
} }
foo { foo {

View File

@ -3,7 +3,7 @@ class Object_Impl (Base) {
@property a { @property a {
set { set {
values { values {
value: const(list<int>); value: const(list<string>);
} }
return: bool (false); return: bool (false);
} }
@ -13,7 +13,7 @@ class Object_Impl (Base) {
part: string; part: string;
} }
values { values {
value: list<int> @owned; value: list<string> @owned;
} }
} }
@property b { @property b {
@ -23,7 +23,7 @@ class Object_Impl (Base) {
/* set as virtual pure - no implementation expected */ /* set as virtual pure - no implementation expected */
} }
values { values {
value: list<int> @owned; value: list<string> @owned;
} }
} }
constructor_1 { constructor_1 {

View File

@ -9,7 +9,7 @@ class Object_Impl_Add (Base) {
/* set as virtual pure - no implementation expected */ /* set as virtual pure - no implementation expected */
} }
values { values {
value: list<int> @owned; value: list<string> @owned;
} }
} }
} }

View File

@ -6,17 +6,17 @@ class Owning {
methods { methods {
test1 { test1 {
params { params {
test1 : list<int> @owned; test1 : list<string> @owned;
test2 : iterator<int> @owned; test2 : iterator<string> @owned;
test3 : hash<int, int> @owned; test3 : hash<string, string> @owned;
test4 : accessor<int> @owned; test4 : accessor<string> @owned;
} }
} }
test2 { test2 {
params { params {
test1 : list<ptr(Test.A) @owned> @owned; test1 : list<ptr(Test.A) @owned> @owned;
test2 : iterator<ptr(Test.A) @owned> @owned; test2 : iterator<ptr(Test.A) @owned> @owned;
test3 : hash<int, ptr(Test.A) @owned> @owned; test3 : hash<string, ptr(Test.A) @owned> @owned;
test4 : accessor<ptr(Test.A) @owned> @owned; test4 : accessor<ptr(Test.A) @owned> @owned;
} }
} }

View File

@ -444,7 +444,7 @@ START_TEST(eolian_complex_type)
fail_if(!!eolian_type_next_type_get(type)); fail_if(!!eolian_type_next_type_get(type));
fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_DEFAULT))); fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_DEFAULT)));
fail_if(eolian_type_is_owned(type)); fail_if(eolian_type_is_owned(type));
fail_if(strcmp(type_name, "int")); fail_if(strcmp(type_name, "const char *"));
eina_stringshare_del(type_name); eina_stringshare_del(type_name);
/* Methods return type */ /* Methods return type */