Skip to content

fixes #231: Design.add_full_crossover and Design.add_half_crossover should check for existing crossovers#232

Merged
dave-doty merged 2 commits intodevfrom
231-design-add_full_crossover-and-design-add_half_crossover-should-check-for-existing-crossovers
Jun 29, 2022
Merged

fixes #231: Design.add_full_crossover and Design.add_half_crossover should check for existing crossovers#232
dave-doty merged 2 commits intodevfrom
231-design-add_full_crossover-and-design-add_half_crossover-should-check-for-existing-crossovers

Conversation

@dave-doty
Copy link
Copy Markdown
Member

Description

Added error-checking code when automatically adding nicks when Design.add_full_crossover.

Related Issue

#231

Motivation and Context

Ill-defined behavior happened previously, editing the design in strange ways. This explicitly fails and alerts the user they need to add the crossover somewhere that a crossover does not already exist.

How Has This Been Tested?

Some unit tests where added testing Design.add_full_crossover and Design.add_half_crossover when there is already a crossover at the position.

@dave-doty dave-doty merged commit 6262990 into dev Jun 29, 2022
@dave-doty dave-doty deleted the 231-design-add_full_crossover-and-design-add_half_crossover-should-check-for-existing-crossovers branch June 29, 2022 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Design.add_full_crossover and Design.add_half_crossover should check for existing crossovers

1 participant