示例#1
0
void TestEvolutionaryAlgorithm::test_get_mutation_method(void)
{
   message += "test_get_mutation_method\n";

   EvolutionaryAlgorithm ea;

   ea.set_mutation_method(EvolutionaryAlgorithm::Normal);
  
   assert_true(ea.get_mutation_method() == EvolutionaryAlgorithm::Normal, LOG);

   ea.set_mutation_method(EvolutionaryAlgorithm::Uniform);
  
   assert_true(ea.get_mutation_method() == EvolutionaryAlgorithm::Uniform, LOG);
}