Skip to content

Commit

Permalink
Clarified logic for xps.from_dtype() minimisation test
Browse files Browse the repository at this point in the history
  • Loading branch information
honno committed Oct 20, 2021
1 parent 48a6235 commit d544b8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hypothesis-python/tests/array_api/test_from_dtype.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ def test_from_dtype_with_kwargs(data, dtype, kwargs, predicate):
def test_can_minimize_floats():
"""Inferred float strategy minimizes to a good example."""
smallest = minimal(xps.from_dtype(xp.float32), lambda n: n >= 1.0)
assert smallest in (1, 50)
assert smallest == 1

0 comments on commit d544b8e

Please sign in to comment.