Skip to content

Commit

Permalink
Test AsRef impl
Browse files Browse the repository at this point in the history
  • Loading branch information
lynn committed Jan 31, 2024
1 parent 49eec23 commit 7ffbbbd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/rust_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,13 @@ mod tests {
protein(" an gtnattag \t");
}

#[test]
fn test_as_ref() {
let sequence = dna("ac");
let nucleotides: &[NucleotideAmbiguous] = sequence.as_ref();
assert!(nucleotides == &[NucleotideAmbiguous::A, NucleotideAmbiguous::C]);
}

#[cfg(feature = "serde")]
#[test]
fn test_serde_json() {
Expand Down

0 comments on commit 7ffbbbd

Please sign in to comment.