Skip to content

Commit

Permalink
Remove test panic
Browse files Browse the repository at this point in the history
  • Loading branch information
jguhlin committed Aug 16, 2024
1 parent 60c98eb commit f8d2f15
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1488,22 +1488,21 @@ mod tests {
fn test_alignment_score() {
let mut aligner = Aligner::builder()
.preset(Preset::Splice)
.with_index_threads(1)
.with_cigar_clipping();
.with_index_threads(1);

aligner.check_opts().expect("Opts are invalid");

aligner = aligner
.with_index("test_data/genome.fa", None)
.unwrap()
.with_cigar();
.unwrap();

let output = aligner.map(
b"GAAATACGGGTCTCTGGTTTGACATAAAGGTCCAACTGTAATAACTGATTTTATCTGTGGGTGATGCGTTTCTCGGACAACCACGACCGCGCCCAGACTTAAATCGCACATACTGCGTCGTGCAATGCCGGGCGCTAACGGCTCAATATCACGCTGCGTCACTATGGCTACCCCAAAGCGGGGGGGGCATCGACGGGCTGTTTGATTTGAGCTCCATTACCCTACAATTAGAACACTGGCAACATTTGGGCGTTGAGCGGTCTTCCGTGTCGCTCGATCCGCTGGAACTTGGCAACCACACTCTAAACTACATGTGGTATGGCTCATAAGATCATGCGGATCGTGGCACTGCTTTCGGCCACGTTAGAGCCGCTGTGCTCGAAGATTGGGACCTACCAAC",
false, false, None, None).unwrap();

println!("{:#?}", aligner.mapopt);
println!("{:#?}", aligner.idxopt);
println!("{:#?}", output);
panic!();
}

#[test]
Expand Down

0 comments on commit f8d2f15

Please sign in to comment.