Added Default for gene impl and setter example in Easy GA
This commit is contained in:
@ -5,12 +5,13 @@ import EasyGA
|
||||
# python3 -m pytest
|
||||
|
||||
def test_chromosome_length():
|
||||
ga = EasyGA.GA()
|
||||
ga.chromosome_length = 100
|
||||
ga.evolve()
|
||||
for i in range(0,100):
|
||||
ga = EasyGA.GA()
|
||||
ga.chromosome_length = 100
|
||||
ga.evolve()
|
||||
|
||||
""" Test to see if the actual chromosome length is the same as defined."""
|
||||
assert ga.population.chromosome_list[0].size() == ga.chromosome_length
|
||||
""" Test to see if the actual chromosome length is the same as defined."""
|
||||
assert ga.population.chromosome_list[0].size() == ga.chromosome_length
|
||||
|
||||
def test_second():
|
||||
|
||||
|
||||
Reference in New Issue
Block a user