@@ -1206,8 +1206,31 @@ def test_identify_clean_prefix_in_pairs(
12061206 (),
12071207 id = "trivial_case" ,
12081208 ),
1209- # Note: we have no single allele tests because that contradicts one
1210- # of our preconditions.
1209+ pytest .param (
1210+ [("C*01" , "02" , "03" , "04G" )],
1211+ ("C*01" , "02" , "03" , "04G" ),
1212+ id = "single_input_length_4" ,
1213+ ),
1214+ pytest .param (
1215+ [("C*01" , "02" , "03" )],
1216+ ("C*01" , "02" , "03" ),
1217+ id = "single_input_length_3" ,
1218+ ),
1219+ pytest .param (
1220+ [("C*01" , "02" )],
1221+ ("C*01" , "02" ),
1222+ id = "single_input_length_2" ,
1223+ ),
1224+ pytest .param (
1225+ [("C*01" ,)],
1226+ ("C*01" ,),
1227+ id = "single_input_length_1" ,
1228+ ),
1229+ pytest .param (
1230+ [("C*01" , "02" , "03" , "04G" ), ("C*01" , "02" , "03" , "04G" )],
1231+ ("C*01" , "02" , "03" , "04G" ),
1232+ id = "best_match_length_4" ,
1233+ ),
12111234 pytest .param (
12121235 [("C*01" , "02" , "03" , "04G" ), ("C*01" , "02" , "03" , "110N" )],
12131236 ("C*01" , "02" , "03" ),
@@ -1248,6 +1271,11 @@ def test_identify_clean_prefix_in_pairs(
12481271 ("C*01" ,),
12491272 id = "best_match_length_1_different_lengths_one_with_no_excess" ,
12501273 ),
1274+ pytest .param (
1275+ [("C*01" , "07" , "88" ), ("C*01" , "07" , "01" ), ("C*01" , "07" , "01" , "110N" )],
1276+ ("C*01" , "07" ),
1277+ id = "typical_case" ,
1278+ ),
12511279 ],
12521280 )
12531281 def test_identify_longest_prefix (
0 commit comments