* This makes sure that is true.
*/
@Test
public void testAllEqual() {
final Equilateral eq = new Equilateral(10, -1, 1);
final CalculateDistance dc = new EuclideanDistance();
double compareDist = 0;
for (int x = 0; x < 10; x++) {
double[] baseClass = eq.encode(x);
for (int y = 0; y < 10; y++) {
if (x != y) {
double[] otherClass = eq.encode(y);
double dist = dc.calculate(baseClass, otherClass);
if (compareDist < AIFH.DEFAULT_PRECISION) {
compareDist = dist;
} else {
assertEquals(compareDist, dist, AIFH.DEFAULT_PRECISION);
}