diff options
author | d-kiss <speakupness@gmail.com> | 2018-01-28 08:27:07 +0200 |
---|---|---|
committer | d-kiss <speakupness@gmail.com> | 2018-01-28 08:27:07 +0200 |
commit | fee6378d840d4fe2e36f9904ec1cee3b386d9bef (patch) | |
tree | 2d5b6489025a50f3f679dd46ab8f07b11d302e1f | |
parent | 2c20e789f0d95f0f9caed6cb7ff0cad36c9e76f0 (diff) | |
download | natsort-fee6378d840d4fe2e36f9904ec1cee3b386d9bef.tar.gz |
This should be in a PR of it's own.
-rw-r--r-- | test_natsort/test_main.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test_natsort/test_main.py b/test_natsort/test_main.py index 148d873..704e0bb 100644 --- a/test_natsort/test_main.py +++ b/test_natsort/test_main.py @@ -210,11 +210,9 @@ def test_check_filter_converts_filter_numbers_to_floats_if_filter_is_valid_examp assert check_filter([(6, 7), (2, 8)]) == [(6.0, 7.0), (2.0, 8.0)] -@given(x=tuples(integers(max_value=100000, min_value=-100000), integers(max_value=100000, min_value=-100000), - floats(max_value=100000, min_value=-100000), floats(max_value=100000, min_value=-100000))) -def test_check_filter_converts_filter_numbers_to_floats_if_filter_is_valid(x): - y = [a + 1 for a in x] - assert all(float(i) < float(j) for i, j in zip(x, y)) +@given(x=tuples(integers(), integers(), floats(), floats()), y=tuples(integers(), floats(), floats(), integers())) +def test_check_filter_converts_filter_numbers_to_floats_if_filter_is_valid(x, y): + assume(all(float(i) < float(j) for i, j in zip(x, y))) assert check_filter(list(zip(x, y))) == [(float(i), float(j)) for i, j in zip(x, y)] |