void TestEvolutionaryAlgorithm::test_get_selection_method(void) { message += "test_get_selection_method\n"; EvolutionaryAlgorithm ea; ea.set_selection_method(EvolutionaryAlgorithm::RouletteWheel); assert_true(ea.get_selection_method() == EvolutionaryAlgorithm::RouletteWheel, LOG); ea.set_selection_method(EvolutionaryAlgorithm::StochasticUniversalSampling); assert_true(ea.get_selection_method() == EvolutionaryAlgorithm::StochasticUniversalSampling, LOG); }
void EvolutionaryAlgorithmTest::test_get_selection_method(void) { message += "test_get_selection_method\n"; EvolutionaryAlgorithm ea; ea.set_selection_method(EvolutionaryAlgorithm::RouletteWheel); assert_true(ea.get_selection_method() == EvolutionaryAlgorithm::RouletteWheel, LOG); }