Skip to content

Commit

Permalink
Test work again.
Browse files Browse the repository at this point in the history
  • Loading branch information
stela2502 committed Jan 23, 2024
1 parent 804e457 commit be7b4f0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/second_seq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,17 @@ mod tests {
fn test_needleman_wunsch() {
let seq1 = SecondSeq(0b101010, 20);
let seq2 = SecondSeq(0b101010, 20);
assert_eq!( seq1.needleman_wunsch( &seq2 ), 1 );
assert_eq!( seq1.needleman_wunsch( &seq2 ), 1.0/20.0 );
let seq3 = SecondSeq(0b011010, 20);
assert_eq!( seq1.needleman_wunsch( &seq3 ), 3 );
assert_eq!( seq1.needleman_wunsch( &seq3 ), 3.0/20.0 );
let seq4 = SecondSeq(0b001010, 20);
assert_eq!( seq1.needleman_wunsch( &seq4 ), 3 );
assert_eq!( seq1.needleman_wunsch( &seq4 ), 3.0/20.0 );
let seq5 = SecondSeq(0b011001, 20);
assert_eq!( seq1.needleman_wunsch( &seq5 ), 5 );
assert_eq!( seq1.needleman_wunsch( &seq5 ), 5.0/20.0 );
let seq6 = SecondSeq(0b0, 20);
assert_eq!( seq1.needleman_wunsch( &seq6 ), 7 );
assert_eq!( seq1.needleman_wunsch( &seq6 ), 7.0/20.0 );
let seq7 = SecondSeq(0b101010, 15);
assert_eq!( seq1.needleman_wunsch( &seq7 ), 1 );
assert_eq!( seq1.needleman_wunsch( &seq7 ), 1.0/15.0 );
}

#[test]
Expand Down

0 comments on commit be7b4f0

Please sign in to comment.