eolian: fix tests following the container restrictions
authorDaniel Kolesa <d.kolesa@osg.samsung.com>
Thu, 2 Nov 2017 13:03:30 +0000 (14:03 +0100)
committerDaniel Kolesa <d.kolesa@osg.samsung.com>
Thu, 2 Nov 2017 13:03:30 +0000 (14:03 +0100)
src/tests/eolian/data/complex_type.eo
src/tests/eolian/data/object_impl.eo
src/tests/eolian/data/object_impl_add.eo
src/tests/eolian/data/owning.eo
src/tests/eolian/eolian_parsing.c

index 4c37970..e8fe1a7 100644 (file)
@@ -9,7 +9,7 @@ class Complex_Type {
          get {
          }
          values {
-            value: list<int> @owned;
+            value: list<string> @owned;
          }
       }
       foo {
index 7eb4f36..7019225 100644 (file)
@@ -3,7 +3,7 @@ class Object_Impl (Base) {
       @property a {
          set {
             values {
-                value: const(list<int>);
+                value: const(list<string>);
             }
             return: bool (false);
          }
@@ -13,7 +13,7 @@ class Object_Impl (Base) {
             part: string;
          }
          values {
-            value: list<int> @owned;
+            value: list<string> @owned;
          }
       }
       @property b {
@@ -23,7 +23,7 @@ class Object_Impl (Base) {
             /* set as virtual pure - no implementation expected */
          }
          values {
-            value: list<int> @owned;
+            value: list<string> @owned;
          }
       }
       constructor_1 {
index 3fa5892..4059110 100644 (file)
@@ -9,7 +9,7 @@ class Object_Impl_Add (Base) {
             /* set as virtual pure - no implementation expected */
          }
          values {
-            value: list<int> @owned;
+            value: list<string> @owned;
          }
       }
    }
index 7330375..f74d683 100644 (file)
@@ -6,17 +6,17 @@ class Owning {
    methods {
      test1 {
        params {
-         test1 : list<int> @owned;
-         test2 : iterator<int> @owned;
-         test3 : hash<int, int> @owned;
-         test4 : accessor<int> @owned;
+         test1 : list<string> @owned;
+         test2 : iterator<string> @owned;
+         test3 : hash<string, string> @owned;
+         test4 : accessor<string> @owned;
        }
      }
      test2 {
        params {
          test1 : list<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;
        }
      }
index c9d07ba..9297932 100644 (file)
@@ -444,7 +444,7 @@ START_TEST(eolian_complex_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(eolian_type_is_owned(type));
-   fail_if(strcmp(type_name, "int"));
+   fail_if(strcmp(type_name, "const char *"));
    eina_stringshare_del(type_name);
 
    /* Methods return type */