Commit 75c8c4b4 authored by Rico Tzschichholz's avatar Rico Tzschichholz

Revert "Fix make check"

This reverts commit c0a23c28.
parent 803f5473
......@@ -2265,12 +2265,11 @@ public static void param_test (Api.Namespace ns, Api.Package pkg) {
assert (param.parameter_type.data_type != null);
assert (param.parameter_type.data_type is Api.Array);
//assert (((Api.Array) param.parameter_type.data_type).dimension == 1);
assert (((Api.Array) param.parameter_type.data_type).data_type is Api.TypeReference);
assert (((Api.Array) param.parameter_type.data_type).data_type is Api.Array);
//assert (((Api.Array) ((Api.Array) param.parameter_type.data_type).data_type).dimension == 1);
assert (((Api.TypeReference) ((Api.Array) param.parameter_type.data_type).data_type).data_type is Api.Array);
assert (((Api.Array) ((Api.TypeReference) ((Api.Array) param.parameter_type.data_type).data_type).data_type).data_type is Api.TypeReference);
assert (((Api.TypeReference) ((Api.Array) ((Api.TypeReference) ((Api.Array) param.parameter_type.data_type).data_type).data_type).data_type).data_type is Api.Struct);
assert (((Api.Struct) ((Api.TypeReference) ((Api.Array) ((Api.TypeReference) ((Api.Array) param.parameter_type.data_type).data_type).data_type).data_type).data_type).get_full_name () == "int");
assert (((Api.Array) ((Api.Array) param.parameter_type.data_type).data_type).data_type is Api.TypeReference);
assert (((Api.TypeReference) ((Api.Array) ((Api.Array) param.parameter_type.data_type).data_type).data_type).data_type is Api.Struct);
assert (((Api.Struct) ((Api.TypeReference) ((Api.Array) ((Api.Array) param.parameter_type.data_type).data_type).data_type).data_type).get_full_name () == "int");
assert (param.parameter_type.get_type_arguments ().size == 0);
assert (param.parameter_type.pass_ownership == false);
assert (param.parameter_type.is_owned == false);
......@@ -2501,12 +2500,11 @@ public static void return_test (Api.Namespace ns, Api.Package pkg) {
case "test_function_9":
assert (ret.data_type is Api.Array);
//assert (((Api.Array) ret.data_type).dimension == 1);
assert (((Api.Array) ret.data_type).data_type is Api.TypeReference);
assert (((Api.Array) ret.data_type).data_type is Api.Array);
//assert (((Api.Array) ((Api.Array) ret.data_type).data_type).dimension == 1);
assert (((Api.TypeReference) ((Api.Array) ret.data_type).data_type).data_type is Api.Array);
assert (((Api.Array) ((Api.TypeReference) ((Api.Array) ret.data_type).data_type).data_type).data_type is Api.TypeReference);
assert (((Api.TypeReference) ((Api.Array) ((Api.TypeReference) ((Api.Array) ret.data_type).data_type).data_type).data_type).data_type is Api.Struct);
assert (((Api.Struct) ((Api.TypeReference) ((Api.Array) ((Api.TypeReference) ((Api.Array) ret.data_type).data_type).data_type).data_type).data_type).get_full_name () == "int");
assert (((Api.Array) ((Api.Array) ret.data_type).data_type).data_type is Api.TypeReference);
assert (((Api.TypeReference) ((Api.Array) ((Api.Array) ret.data_type).data_type).data_type).data_type is Api.Struct);
assert (((Api.Struct) ((Api.TypeReference) ((Api.Array) ((Api.Array) ret.data_type).data_type).data_type).data_type).get_full_name () == "int");
assert (ret.get_type_arguments ().size == 0);
assert (ret.pass_ownership == false);
assert (ret.is_owned == false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment