EvoSuite / evosuite

EvoSuite - automated generation of JUnit test suites for Java classes
http://www.evosuite.org
GNU Lesser General Public License v3.0
829 stars 340 forks source link

Avoid comparing equal chromosomes #401

Closed fc51111 closed 1 year ago

fc51111 commented 2 years ago

The "isBetterThanCurrent" method of the "Archive" class checks if a candidate solution is better than an existing one even when both solutions are equal (this method will always return false in such circumstances).

Wouldn't it be better to verify whether the solutions are equal before checking which solution is the best?