Skip to content

Commit 5cc56e4

Browse files
committed
Added requested comment
1 parent 0a6840f commit 5cc56e4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

core/src/main/kotlin/org/evomaster/core/search/gene/regex/CharacterRangeRxGene.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ class CharacterRangeRxGene(
3030
private val log = LoggerFactory.getLogger(CharacterRangeRxGene::class.java)
3131
}
3232

33+
// '\u0000' is a placeholder for the unsatisfiable case (empty MCR with no valid ranges).
34+
// This gene will never be randomized or mutated when isUnsatisfiable() is true, as it would be immutable.
35+
// getValueAsPrintableString throws when isUnsatisfiable, so that value should be unreachable.
3336
var value : Char = if (isUnsatisfiable()) '\u0000' else validRanges[0].start
3437

3538
/**

0 commit comments

Comments
 (0)