Sha256: 61f5bf05f8ed19fe2b91a4e8ae2d77b3a3f8adfdfcf3bfa2760499b39587a1a3

Contents?: true

Size: 1.15 KB

Versions: 72

Compression:

Stored size: 1.15 KB

Contents

component extends="testbox.system.BaseSpec" {

	function beforeAll(){
	  SUT = createObject( 'RnaTranscription' );
	}

	function run(){
	
		describe( "My RnaTranscription class", function(){			

			it( 'RNA complement of cytosine is guanine', function(){
				expect( SUT.toRna( dna='C' ) ).toBe( 'G' );
			});

			it( 'RNA complement of guanine is cytosine', function(){
				expect( SUT.toRna( dna='G' ) ).toBe( 'C' );
			});

			it( 'RNA complement of thymine is adenine', function(){
				expect( SUT.toRna( dna='T' ) ).toBe( 'A' );
			});

			it( 'RNA complement of adenine is uracil', function(){
				expect( SUT.toRna( dna='A' ) ).toBe( 'U' );
			});

			it( 'RNA complement', function(){
				expect( SUT.toRna( dna='ACGTGGTCTTAA' ) ).toBe( 'UGCACCAGAAUU' );
			});

			it( 'correctly handles invalid input (RNA instead of DNA)', function(){
				expect( SUT.toRna( dna='U' ) ).toBeNull();
			});

			it( 'correctly handles completely invalid DNA input', function(){
				expect( SUT.toRna( dna='XXX' ) ).toBeNull();
			});

			it( 'correctly handles partially invalid DNA input', function(){
				expect( SUT.toRna( dna='ACGTXXXCTTAA' ) ).toBeNull();
			});

		});
		
	}
 
}

Version data entries

72 entries across 71 versions & 1 rubygems

Version Path
trackler-2.2.1.104 tracks/cfml/exercises/rna-transcription/RnaTranscriptionTest.cfc
trackler-2.2.1.103 tracks/cfml/exercises/rna-transcription/RnaTranscriptionTest.cfc
trackler-2.2.1.102 tracks/cfml/exercises/rna-transcription/RnaTranscriptionTest.cfc
trackler-2.2.1.101 tracks/cfml/exercises/rna-transcription/RnaTranscriptionTest.cfc
trackler-2.2.1.100 tracks/cfml/exercises/rna-transcription/RnaTranscriptionTest.cfc
trackler-2.2.1.99 tracks/cfml/exercises/rna-transcription/RnaTranscriptionTest.cfc
trackler-2.2.1.98 tracks/cfml/exercises/rna-transcription/RnaTranscriptionTest.cfc
trackler-2.2.1.97 tracks/cfml/exercises/rna-transcription/RnaTranscriptionTest.cfc
trackler-2.2.1.96 tracks/cfml/exercises/rna-transcription/RnaTranscriptionTest.cfc
trackler-2.2.1.95 tracks/cfml/exercises/rna-transcription/RnaTranscriptionTest.cfc
trackler-2.2.1.94 tracks/cfml/exercises/rna-transcription/RnaTranscriptionTest.cfc
trackler-2.2.1.93 tracks/cfml/exercises/rna-transcription/RnaTranscriptionTest.cfc
trackler-2.2.1.92 tracks/cfml/exercises/rna-transcription/RnaTranscriptionTest.cfc
trackler-2.2.1.91 tracks/cfml/exercises/rna-transcription/RnaTranscriptionTest.cfc
trackler-2.2.1.90 tracks/cfml/exercises/rna-transcription/RnaTranscriptionTest.cfc
trackler-2.2.1.89 tracks/cfml/exercises/rna-transcription/RnaTranscriptionTest.cfc
trackler-2.2.1.88 tracks/cfml/exercises/rna-transcription/RnaTranscriptionTest.cfc
trackler-2.2.1.87 tracks/cfml/exercises/rna-transcription/RnaTranscriptionTest.cfc
trackler-2.2.1.86 tracks/cfml/exercises/rna-transcription/RnaTranscriptionTest.cfc
trackler-2.2.1.85 tracks/cfml/exercises/rna-transcription/RnaTranscriptionTest.cfc