mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-28 23:45:17 -04:00
speed up of regression test
This commit is contained in:
parent
4263ece634
commit
7cbda2c13b
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user