We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f3329a commit 137db6bCopy full SHA for 137db6b
1 file changed
core/src/test/kotlin/org/evomaster/core/search/gene/GeneSamplerForTests.kt
@@ -406,9 +406,12 @@ object GeneSamplerForTests {
406
}
407
408
fun sampleBackReferenceRxGene(rand: Randomness): BackReferenceRxGene {
409
+ val captureGroup = sampleDisjunctionListRxGene(rand)
410
+ // as we do not allow to mutate the inner captureGroup gene using the backref gene we must first initialize it
411
+ captureGroup.doInitialize(rand)
412
return BackReferenceRxGene(
413
groupIndex = rand.nextInt(1, 99),
- captureGroup = sampleDisjunctionListRxGene(rand)
414
+ captureGroup = captureGroup
415
)
416
417
0 commit comments