We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db075a1 commit 848b7b5Copy full SHA for 848b7b5
array_api_tests/test_elementwise_functions.py
@@ -810,11 +810,11 @@ def test_not_equal(args):
810
assert aidx.shape == x1idx.shape == x2idx.shape
811
assert bool(aidx) == (scalar_func(x1idx) != scalar_func(x2idx))
812
813
-@given(numeric_scalars)
+@given(xps.arrays(dtype=xps.numeric_dtypes(), shape=shapes))
814
def test_positive(x):
815
- a = _array_module.positive(x)
+ out = _array_module.positive(x)
816
# Positive does nothing
817
- assert_exactly_equal(a, x)
+ assert_exactly_equal(out, x)
818
819
@given(two_mutual_arrays(floating_dtype_objects))
820
def test_pow(x1_and_x2):
0 commit comments