diff --git a/src/rust_api.rs b/src/rust_api.rs index 3de1555..6a69cca 100644 --- a/src/rust_api.rs +++ b/src/rust_api.rs @@ -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() {