Skip to content

Commit 6192da4

Browse files
Merge pull request #81 from petertseng/rna-rm-as-ref
rna-transcription: Remove as_ref test
2 parents 94aa5be + 0bdaade commit 6192da4

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

exercises/rna-transcription/example.rs

-6
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ impl RibonucleicAcid {
1111
}
1212
}
1313

14-
impl AsRef<str> for RibonucleicAcid {
15-
fn as_ref(&self) -> &str {
16-
self.nucleotides.as_ref()
17-
}
18-
}
19-
2014
#[derive(PartialEq, Eq, Debug)]
2115
pub struct DeoxyribonucleicAcid {
2216
nucleotides: String

exercises/rna-transcription/tests/rna-transcription.rs

-7
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,3 @@ fn test_transcribes_thymine_to_adenine() {
3535
fn test_transcribes_all_dna_to_rna() {
3636
assert_eq!(dna::RibonucleicAcid::new("UGCACCAGAAUU"), dna::DeoxyribonucleicAcid::new("ACGTGGTCTTAA").to_rna())
3737
}
38-
39-
#[test]
40-
#[ignore]
41-
fn test_acid_converts_to_string() {
42-
assert_eq!(dna::RibonucleicAcid::new("AGC").as_ref(), "AGC");
43-
assert_eq!(dna::RibonucleicAcid::new("CGA").as_ref(), "CGA");
44-
}

0 commit comments

Comments
 (0)