Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tibvdm committed Aug 27, 2024
1 parent 031a609 commit b6ff10d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sa-index/src/bounds_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,13 @@ mod tests {

for i in 0..20_usize.pow(5) {
let kmer = kmer_cache.index_to_kmer(i);

if kmer.contains(&b'L') {
let equated_kmer = kmer.iter().map(|&c| if c == b'L' { b'I' } else { c }).collect::<Vec<u8>>();
assert_eq!(kmer_cache.kmer_to_index(&kmer), kmer_cache.kmer_to_index(&equated_kmer));
continue;
}

assert_eq!(kmer_cache.kmer_to_index(&kmer), i);
}
}
Expand Down

0 comments on commit b6ff10d

Please sign in to comment.