Skip to content

Commit

Permalink
fix rng in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ohjeah committed Aug 30, 2018
1 parent f15db9d commit ecec5e7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/test_cgp.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ def assert_different_individuals(old, new):
@hypothesis.settings(max_examples=25)
@hypothesis.given(ind_strat, s.data())
def test_mutation(ind, data):
new_ind = mutate(
ind, n_mutations=data.draw(integers(5, 10)), method=data.draw(s.sampled_from(["active", "point"]))
)
new_ind = mutate(ind, n_mutations=5, method=data.draw(s.sampled_from(["active", "point"])), random_state=0)
assert_different_individuals(ind, new_ind)


Expand Down

0 comments on commit ecec5e7

Please sign in to comment.