コード例 #1
0
def test_constructor_with_mutate():
    #This test has no asserts. Instead, for now, I must manually check DNA
    #manually to make sure it does not differ to greatly

    world = World()
    robot = Robot(0,0,world)
    mutated_robot = Robot(0,0,world, robot)
    t = time.time()
    robot.save_dna('1test_time_' + str(t))
    mutated_robot.save_dna('2test_time_' + str(t))