Skip to content

Commit

Permalink
test protein rf display
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegenes committed Dec 16, 2024
1 parent e5ea8af commit 8a0600d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/core/src/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1517,6 +1517,19 @@ mod test {
assert_eq!(protein_frame.frame_type(), "Protein");
}

#[test]
fn test_readingframe_display_protein() {
// Create a Protein ReadingFrame
let protein_frame = ReadingFrame::Protein {
fw: b"MVHLK".to_vec(),
len: 5,
};

let output = format!("{}", protein_frame);
// Assert the output matches the expected format
assert_eq!(output, "Type: Protein (5aa), Forward: MVHLK");
}

#[test]
fn test_seqtohashes_frames_dna() {
let sequence = b"AGTCGT";
Expand Down

0 comments on commit 8a0600d

Please sign in to comment.