Fix the Hibernate4 issues (#1106)

* Binary genetic algorithm

* Fix the junit tests conflict
This commit is contained in:
maibin
2017-02-04 18:47:30 +01:00
committed by GitHub
parent ad104bfe8c
commit ffd17c1b21
7 changed files with 308 additions and 82 deletions

View File

@@ -0,0 +1,16 @@
package com.baeldung.algorithms;
import org.junit.Assert;
import org.junit.Test;
import com.baeldung.algorithms.ga.binary.SimpleGeneticAlgorithm;
public class BinaryGeneticAlgorithmTest {
@Test
public void testGA() {
Assert.assertTrue(SimpleGeneticAlgorithm.runAlgorithm(50,
"1011000100000100010000100000100111001000000100000100000000001111"));
}
}