chore: unify max_examples across tests
Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
d4d0b65f45
commit
c3d757204c
3 changed files with 7 additions and 3 deletions
|
@ -116,7 +116,7 @@ def test_rotate(values):
|
|||
assert tree.is_correct
|
||||
|
||||
|
||||
@hypothesis.settings(max_examples=1000, deadline=None)
|
||||
@hypothesis.settings(max_examples=10000, deadline=None)
|
||||
@hypothesis.given(values=st.sets(st.integers()))
|
||||
def test_insert_random(values):
|
||||
tree = AVLTree()
|
||||
|
@ -141,7 +141,7 @@ def _report(t_before: str, t_after: str) -> None:
|
|||
print(t_after, file=after)
|
||||
|
||||
|
||||
@hypothesis.settings(max_examples=1000, deadline=None)
|
||||
@hypothesis.settings(max_examples=10000, deadline=None)
|
||||
@hypothesis.given(config=delete_strategy())
|
||||
def test_delete_random(config):
|
||||
values, delete_order = config
|
||||
|
|
|
@ -88,7 +88,7 @@ def test_rotate(values):
|
|||
assert tree.is_correct
|
||||
|
||||
|
||||
@hypothesis.settings(max_examples=1000, deadline=None)
|
||||
@hypothesis.settings(max_examples=10000, deadline=None)
|
||||
@hypothesis.given(values=st.sets(st.integers()))
|
||||
def test_insert_random(values):
|
||||
tree = RAVLTree()
|
||||
|
|
|
@ -98,6 +98,9 @@ def test_insert_random(values):
|
|||
assert tree.is_correct
|
||||
assert tree.search(value) is not None
|
||||
|
||||
for value in values:
|
||||
assert tree.search(value) is not None
|
||||
|
||||
|
||||
def test_search_empty():
|
||||
tree = WAVLTree()
|
||||
|
@ -140,6 +143,7 @@ def test_delete_random(config):
|
|||
after = str(tree)
|
||||
|
||||
try:
|
||||
assert tree.search(value) is None
|
||||
assert tree.is_correct
|
||||
except AssertionError:
|
||||
logger.info(
|
||||
|
|
Loading…
Reference in a new issue