def test_centimorgen_to_phred(): assert round(centimorgen_to_phred(0.10010013353365396)) == 30 assert round(centimorgen_to_phred(0.0010000100001343354)) == 50 assert round(centimorgen_to_phred(1e-38)) == 400
def test_centimorgen_to_phred_zero(): assert centimorgen_to_phred(0)
def test_centimorgen_to_phred_zero(): with raises(ValueError): assert centimorgen_to_phred(0)