fix(genetics): Engine-Fixes Ticket-Triage (Goldfuchsschimmel, Dilute CP-Blaufuchs, Eltern-Inferenz, Punnett, uw[d])
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -28,6 +28,11 @@ r = g.parse("uwuw")
|
||||
check("uwuw -> gg", r["mapped8locus"].get("G") == ["g", "g"])
|
||||
r = g.parse("uw[d]uw[d]")
|
||||
check("uw[d]uw[d] -> gg (dense underwhite)", r["mapped8locus"].get("G") == ["g", "g"])
|
||||
# GEN-5 (ticket 5151ab20 / Vance): the het 'Uwuw[d]' (one Underwhite, one dense
|
||||
# underwhite) must parse to the G locus as Gg — never crash on the [d] modifier.
|
||||
r = g.parse("aa Cc[chm] D- ee Uwuw[d] PP spsp")
|
||||
check("Uwuw[d] -> Gg (Vance, het dense underwhite)", r["mapped8locus"].get("G") == ["G", "g"])
|
||||
check("Uwuw[d] full string: nothing unmapped", r["unmappedTokens"] == [])
|
||||
|
||||
# Gg and Uwuw must produce the SAME mapped locus (so they stop being a conflict)
|
||||
check("Gg identical to Uwuw at G locus",
|
||||
|
||||
Reference in New Issue
Block a user