/** * Replaces the test case at position <code>testIndex</code> with the passed * TestChromosome. */ @Override public boolean hasImproved(TestChromosome testCase) { return hasChanged(testCase) < 0; }
/** * Returns true if by replacing the test case at position * <code>testIndex</code> with the argument <code>testCase</code>, the * resulting test suite has not worsened the fitness */ @Override public boolean hasNotWorsened(TestChromosome testCase) { return hasChanged(testCase) < 1; }