Skip to content

Commit

Permalink
Remove check that evolution history differs for different seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
donRumata03 committed Apr 16, 2024
1 parent 27d96d7 commit dc7675b
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions test/unit/utilities/random_seeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,8 @@ def history_equals(history1, history2):
for i in range(len(history1.generations))
)

first_seed = 42
second_seed = first_seed + 1
seed = 42
first_run = launch_with_seed(seed)
second_run = launch_with_seed(seed)

first_seed_first_run = launch_with_seed(first_seed)
first_seed_second_run = launch_with_seed(first_seed)
second_seed_run = launch_with_seed(second_seed)

assert history_equals(first_seed_first_run, first_seed_second_run)
assert not history_equals(first_seed_first_run, second_seed_run)
assert history_equals(first_run, second_run)

0 comments on commit dc7675b

Please sign in to comment.