Skip to content

Commit 641cc90

Browse files
committed
Add elementwise test stub for logaddexp
1 parent 2ff39c8 commit 641cc90

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

array_api_tests/test_elementwise_functions.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,12 @@ def test_log2(x):
398398
def test_log10(x):
399399
a = _array_module.log10(x)
400400

401+
@given(two_numeric_dtypes.flatmap(lambda i: two_array_scalars(*i)))
402+
def test_logaddexp(args):
403+
x1, x2 = args
404+
sanity_check(x1, x2)
405+
a = _array_module.logaddexp(x1, x2)
406+
401407
@given(two_boolean_dtypes.flatmap(lambda i: two_array_scalars(*i)))
402408
def test_logical_and(args):
403409
x1, x2 = args

0 commit comments

Comments
 (0)