From 20c5a9c8ba042cf4b20c2f2095f9c0acc14a8d4c Mon Sep 17 00:00:00 2001 From: Rakshit Sharma Date: Fri, 23 Jun 2023 16:05:37 +0530 Subject: [PATCH] Added Modf API test function --- .../test_core/test_elementwise.py | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/ivy_tests/test_ivy/test_functional/test_experimental/test_core/test_elementwise.py b/ivy_tests/test_ivy/test_functional/test_experimental/test_core/test_elementwise.py index 622aee66503b4..6a994ccdaeee6 100644 --- a/ivy_tests/test_ivy/test_functional/test_experimental/test_core/test_elementwise.py +++ b/ivy_tests/test_ivy/test_functional/test_experimental/test_core/test_elementwise.py @@ -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], + ) + \ No newline at end of file