GEN-3a: test that Uw input renders as canonical G (never echoed back)

This commit is contained in:
2026-06-06 10:27:08 +02:00
parent 7aac59f3e5
commit e2fd32ea12

View File

@@ -273,6 +273,14 @@ describe('GEN-3a: Uw=G alias', () => {
expect(fromDisplayString('AA CC DD EE UwUw PP spsp rere').G).toEqual(['G', 'G']) expect(fromDisplayString('AA CC DD EE UwUw PP spsp rere').G).toEqual(['G', 'G'])
expect(fromDisplayString('AA CC DD EE uwuw PP spsp rere').G).toEqual(['g', 'g']) expect(fromDisplayString('AA CC DD EE uwuw PP spsp rere').G).toEqual(['g', 'g'])
}) })
it('always RENDERS G, never Uw (breeder preference)', () => {
// Uw/uw is an input/import alias only; output must echo G/g.
expect(toDisplayString(fromDisplayString('AA CC DD EE Uwuw PP spsp rere'))).toBe(
'AA CC DD EE Gg PP spsp rere',
)
expect(toDisplayString(fromDisplayString('AA CC DD EE uwuw PP spsp rere'))).not.toContain('uw')
})
}) })
describe('GEN-3a: second spotting locus Sls (WP)', () => { describe('GEN-3a: second spotting locus Sls (WP)', () => {