Skip to content

Commit

Permalink
tweaking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pillarxyz committed Oct 17, 2022
1 parent 8e16bd5 commit 22753be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions ivy_tests/test_ivy/test_functional/test_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,8 +698,11 @@ def statistical_dtype_values(draw, *, function):
# implement test for isin
@handle_cmd_line_args
@given(
dtype_and_x = helpers.dtype_and_values(available_dtypes=helpers.get_dtypes("numeric"), num_arrays=2),
num_positional_args=helpers.num_positional_args(fn_name="isin")
dtype_and_x=helpers.dtype_and_values(available_dtypes=helpers.get_dtypes("numeric"),
num_arrays=2),
num_positional_args=helpers.num_positional_args(fn_name="isin"),
invert=st.booleans(),
assume_unique=st.booleans()
)

def test_isin(
Expand All @@ -713,7 +716,6 @@ def test_isin(
fw,
):
dtype, values = dtype_and_x
assume(len(values) == 2)
helpers.test_function(
input_dtypes=dtype,
as_variable_flags=as_variable,
Expand All @@ -724,8 +726,8 @@ def test_isin(
instance_method=instance_method,
fw=fw,
fn_name="isin",
element=values[0],
test_elements=values[1:],
element=np.asarray(values[0], dtype=dtype[0]),
test_elements=np.asarray(values[1], dtype=dtype[1]),
)

@handle_cmd_line_args
Expand Down

0 comments on commit 22753be

Please sign in to comment.