From 2f91dea637edfec2ffe20166a32fc6feb7be118e Mon Sep 17 00:00:00 2001 From: danielwilczak101 <44122838+danielwilczak101@users.noreply.github.com> Date: Tue, 13 Oct 2020 16:05:34 -0400 Subject: [PATCH] Changed testing on EasyGA --- src/test_EasyGA.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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