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.
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
andDesign.add_half_crossover
when there is already a crossover at the position.