diff options
author | d-kiss <speakupness@gmail.com> | 2018-02-03 17:55:15 +0200 |
---|---|---|
committer | d-kiss <speakupness@gmail.com> | 2018-02-03 17:55:15 +0200 |
commit | 4135a38bf27be125b6dd2be3bfac1546fa06094b (patch) | |
tree | 9d78d4c57c078e96d4492668c756e0f33f244231 | |
parent | fee6378d840d4fe2e36f9904ec1cee3b386d9bef (diff) | |
download | natsort-4135a38bf27be125b6dd2be3bfac1546fa06094b.tar.gz |
Revert "This should be in a PR of it's own."
This reverts commit fee6378d840d4fe2e36f9904ec1cee3b386d9bef.
-rw-r--r-- | test_natsort/test_main.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test_natsort/test_main.py b/test_natsort/test_main.py index 704e0bb..148d873 100644 --- a/test_natsort/test_main.py +++ b/test_natsort/test_main.py @@ -210,9 +210,11 @@ 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(), 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))) +@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)) assert check_filter(list(zip(x, y))) == [(float(i), float(j)) for i, j in zip(x, y)] |