File tree Expand file tree Collapse file tree 2 files changed +0
-13
lines changed
exercises/rna-transcription Expand file tree Collapse file tree 2 files changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,6 @@ impl RibonucleicAcid {
11
11
}
12
12
}
13
13
14
- impl AsRef < str > for RibonucleicAcid {
15
- fn as_ref ( & self ) -> & str {
16
- self . nucleotides . as_ref ( )
17
- }
18
- }
19
-
20
14
#[ derive( PartialEq , Eq , Debug ) ]
21
15
pub struct DeoxyribonucleicAcid {
22
16
nucleotides : String
Original file line number Diff line number Diff line change @@ -35,10 +35,3 @@ fn test_transcribes_thymine_to_adenine() {
35
35
fn test_transcribes_all_dna_to_rna ( ) {
36
36
assert_eq ! ( dna:: RibonucleicAcid :: new( "UGCACCAGAAUU" ) , dna:: DeoxyribonucleicAcid :: new( "ACGTGGTCTTAA" ) . to_rna( ) )
37
37
}
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
- }
You can’t perform that action at this time.
0 commit comments