def test_fitness1_fitness(self): self.assertEqual(self.ff_object.fitness1_fitness(self.vals), ff.sphere_function(self.vals)) self.assertEqual(self.cy_object.fitness1_fitness(self.ary), cy.sphere_function(self.ary)) self.assertEqual(self.ff_object.fitness1_fitness(self.vals), self.cy_object.fitness1_fitness(self.ary))
def test_sphere_function(self): self.assertEqual(ff.sphere_function(self.vals), cy.sphere_function(self.ary))