mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-13 14:12:11 +00:00
bug 3484 tests updated
This commit is contained in:
1 parent
dac39516f1
commit
1235d5dde5
2 files changed
+3
-6
No files matched your search
@@ -22,8 +22,6 @@ public class PairingListTemplateTest extends PairingListTemplateImpl{
|
||||
if(z<=0) Assert.fail("Values of Pairing List Template must not be 0!");
|
||||
}
|
||||
}
|
||||
|
||||
System.out.println(getQuality());
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -118,12 +116,12 @@ public class PairingListTemplateTest extends PairingListTemplateImpl{
|
||||
@Test
|
||||
public void testAssignmentQuality(){
|
||||
this.createPairingListTemplate(15, 3, 18);
|
||||
if(calcStandardDev(getAssignmentAssociations(this.getPairingListTemplate(), new int[18][6]))>=1.2) {
|
||||
if(calcStandardDev(getAssignmentAssociations(this.getPairingListTemplate(), new int[18][6]))>=1.5) {
|
||||
Assert.fail("Quality of Boat Assignments is worse than usual!");
|
||||
}
|
||||
|
||||
this.createPairingListTemplate(7, 5, 10);
|
||||
if(calcStandardDev(getAssignmentAssociations(this.getPairingListTemplate(), new int[30][10]))>=10.6) {
|
||||
this.createPairingListTemplate(10, 3, 30);
|
||||
if(calcStandardDev(getAssignmentAssociations(this.getPairingListTemplate(), new int[30][10]))>=0.6) {
|
||||
Assert.fail("Quality of Boat Assignments is worse than usual!");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -109,7 +109,6 @@ public class PairingListTemplateImpl implements PairingListTemplate{
|
||||
bestPLT=this.improveAssignment(bestPLT, flights, groups, competitors);
|
||||
this.standardDev = bestDev;
|
||||
this.pairingListTemplate=bestPLT;
|
||||
System.out.println(Arrays.deepToString(getAssociationsFromPairingList(bestPLT, new int[competitors][competitors])));
|
||||
//executorService.shutdown();
|
||||
futures.clear();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user