diff --git a/src/test_EasyGA.py b/src/test_EasyGA.py index e69de29..0d8bda7 100644 --- a/src/test_EasyGA.py +++ b/src/test_EasyGA.py @@ -0,0 +1,17 @@ +import random +import EasyGA + +# USE THIS COMMAND WHEN TESTING - + # python3 -m pytest + +def test_chromosome_length(): + 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 + +def test_second(): + + assert 1 + 1 == 2