From 0c6d8060a64f457d58fee6a7fcc6a293bd2ccca1 Mon Sep 17 00:00:00 2001 From: danielwilczak101 <44122838+danielwilczak101@users.noreply.github.com> Date: Tue, 3 Nov 2020 14:18:37 -0500 Subject: [PATCH] Added default run to testing --- src/test_EasyGA.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/test_EasyGA.py b/src/test_EasyGA.py index 6c6644a..350f234 100644 --- a/src/test_EasyGA.py +++ b/src/test_EasyGA.py @@ -47,6 +47,15 @@ def test_initilization(): """ """ pass -def test_second(): +def test_default(): + # Create the Genetic algorithm + ga = EasyGA.GA() - assert 1 + 1 == 2 + # Evolve the genetic algorithm + ga.evolve() + + # Print your default genetic algorithm + ga.print_generation() + ga.print_population() + + assert ga != None