Skip to content

Commit

Permalink
fix: fixing the tests for the Shape __ge__ method (ivy-llc#28384)
Browse files Browse the repository at this point in the history
  • Loading branch information
fnhirwa authored Feb 22, 2024
1 parent fb66d33 commit 459799c
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions ivy_tests/test_ivy/test_misc/test_shape.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,14 @@ def test_shape__eq__(


@handle_method(
init_tree=CLASS_TREE,
method_tree="Shape.__ge__",
dtype_and_x=helpers.dtype_and_values(
available_dtypes=helpers.get_dtypes("numeric"),
num_arrays=2,
shared_dtype=True,
),
shape_1=helpers.get_shape(),
shape_2=helpers.get_shape(),
)
def test_shape__ge__(
dtype_and_x,
shape_1,
shape_2,
method_name,
class_name,
ground_truth_backend,
Expand All @@ -130,17 +129,16 @@ def test_shape__ge__(
method_flags,
on_device,
):
dtype, x = dtype_and_x
helpers.test_method(
on_device=on_device,
ground_truth_backend=ground_truth_backend,
backend_to_test=backend_fw,
init_flags=init_flags,
method_flags=method_flags,
init_all_as_kwargs_np={"shape": x[0]},
init_input_dtypes=dtype,
method_input_dtypes=dtype,
method_all_as_kwargs_np={"other": x[1]},
init_all_as_kwargs_np={"shape_tup": shape_1},
init_input_dtypes=DUMMY_DTYPE,
method_input_dtypes=DUMMY_DTYPE,
method_all_as_kwargs_np={"other": shape_2},
class_name=class_name,
method_name=method_name,
)
Expand Down

0 comments on commit 459799c

Please sign in to comment.