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.
test_remainder
1 parent f76a75c commit 8930c3bCopy full SHA for 8930c3b
xptests/test_elementwise_functions.py
@@ -1306,17 +1306,10 @@ def test_remainder(
1306
assume(right != 0)
1307
else:
1308
assume(not ah.any(right == 0))
1309
- # TODO: rework same sign testing below to remove this
1310
- if not right_is_scalar:
1311
- assume(len(left.shape) <= len(right.shape))
1312
1313
- res = func(left, right)
+ func(left, right)
1314
1315
1316
- # res and x2 should have the same sign.
1317
- # ah.assert_same_sign returns False for nans
1318
- not_nan = ah.logical_not(ah.logical_or(ah.isnan(res), ah.isnan(left)))
1319
- ah.assert_same_sign(res[not_nan], right[not_nan])
+ # TODO: test results
1320
1321
1322
@given(xps.arrays(dtype=xps.numeric_dtypes(), shape=hh.shapes()))
0 commit comments