From faaf980150e3ba613d28203f75255bedb9f06fba Mon Sep 17 00:00:00 2001 From: Nina Burgdorfer Date: Fri, 17 Nov 2023 13:25:21 +0100 Subject: [PATCH] fix[next]: Names of variable in tests --- .../ffront_tests/test_execution.py | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/tests/next_tests/integration_tests/feature_tests/ffront_tests/test_execution.py b/tests/next_tests/integration_tests/feature_tests/ffront_tests/test_execution.py index 58181fd7a8..8787b7d7bc 100644 --- a/tests/next_tests/integration_tests/feature_tests/ffront_tests/test_execution.py +++ b/tests/next_tests/integration_tests/feature_tests/ffront_tests/test_execution.py @@ -338,33 +338,33 @@ def field_op_returning_a_tuple( def cast_tuple( a: cases.IFloatField, b: cases.IFloatField, - a_casted_to_int_outside_of_gt4py: cases.IField, - b_casted_to_int_outside_of_gt4py: cases.IField, + a_asint: cases.IField, + b_asint: cases.IField, ) -> tuple[gtx.Field[[IDim], bool], gtx.Field[[IDim], bool]]: result = astype(field_op_returning_a_tuple(a, b), int32) return ( - result[0] == a_casted_to_int_outside_of_gt4py, - result[1] == b_casted_to_int_outside_of_gt4py, + result[0] == a_asint, + result[1] == b_asint, ) @gtx.field_operator def cast_nested_tuple( a: cases.IFloatField, b: cases.IFloatField, - a_casted_to_int_outside_of_gt4py: cases.IField, - b_casted_to_int_outside_of_gt4py: cases.IField, + a_asint: cases.IField, + b_asint: cases.IField, ) -> tuple[gtx.Field[[IDim], bool], gtx.Field[[IDim], bool], gtx.Field[[IDim], bool]]: result = astype((a, field_op_returning_a_tuple(a, b)), int32) return ( - result[0] == a_casted_to_int_outside_of_gt4py, - result[1][0] == a_casted_to_int_outside_of_gt4py, - result[1][1] == b_casted_to_int_outside_of_gt4py, + result[0] == a_asint, + result[1][0] == a_asint, + result[1][1] == b_asint, ) a = cases.allocate(cartesian_case, cast_tuple, "a")() b = cases.allocate(cartesian_case, cast_tuple, "b")() - a_casted_to_int_outside_of_gt4py = gtx.np_as_located_field(IDim)(np.asarray(a).astype(int32)) - b_casted_to_int_outside_of_gt4py = gtx.np_as_located_field(IDim)(np.asarray(b).astype(int32)) + a_asint = gtx.np_as_located_field(IDim)(np.asarray(a).astype(int32)) + b_asint = gtx.np_as_located_field(IDim)(np.asarray(b).astype(int32)) out_tuple = cases.allocate(cartesian_case, cast_tuple, cases.RETURN)() out_nested_tuple = cases.allocate(cartesian_case, cast_nested_tuple, cases.RETURN)() @@ -373,8 +373,8 @@ def cast_nested_tuple( cast_tuple, a, b, - a_casted_to_int_outside_of_gt4py, - b_casted_to_int_outside_of_gt4py, + a_asint, + b_asint, out=out_tuple, ref=(np.full_like(a, True, dtype=bool), np.full_like(b, True, dtype=bool)), ) @@ -384,8 +384,8 @@ def cast_nested_tuple( cast_nested_tuple, a, b, - a_casted_to_int_outside_of_gt4py, - b_casted_to_int_outside_of_gt4py, + a_asint, + b_asint, out=out_nested_tuple, ref=( np.full_like(a, True, dtype=bool),