speed up of regression test

This commit is contained in:
hneemann 2017-03-11 12:37:57 +01:00
parent 4263ece634
commit 7cbda2c13b

View File

@ -48,11 +48,14 @@ public class QuineMcCluskeyDontCareTest extends TestCase {
* @throws ExpressionException * @throws ExpressionException
*/ */
public void testRegression() throws ExpressionException { public void testRegression() throws ExpressionException {
int numOfTest = 2048;
for (int n = 4; n <= 8; n++) { for (int n = 4; n <= 8; n++) {
// test some tables with n variables // test some tables with n variables
for (int i = 0; i < 100; i++) { // System.out.println(n + " vars: " + numOfTest + "tests");
for (int i = 0; i < numOfTest; i++) {
performTestCalculationRandom(n); performTestCalculationRandom(n);
} }
numOfTest /= 4;
} }
} }