Skip to content

Commit

Permalink
Added Modf API test function
Browse files Browse the repository at this point in the history
  • Loading branch information
RakshitKumar04 committed Jun 23, 2023
1 parent 6add471 commit 20c5a9c
Showing 1 changed file with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -845,3 +845,33 @@ def test_frexp(
on_device=on_device,
x=x[0],
)


# modf
@handle_test(
fn_tree="functional.ivy.experimental.modf",
dtype_and_x=helpers.dtype_and_values(
available_dtypes=helpers.get_dtypes("numeric"),
num_arrays=1,
min_value=0,
exclude_min=True,
),
test_with_out=st.just(False),
)
def test_modf(
dtype_and_x,
frontend,
test_flags,
fn_tree,
on_device,
):
input_dtype, x = dtype_and_x
helpers.test_function(
input_dtypes=input_dtype,
frontend=frontend,
test_flags=test_flags,
fn_tree=fn_tree,
on_device=on_device,
x=x[0],
)

0 comments on commit 20c5a9c

Please sign in to comment.