Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rna-transcription: update to v1.1.0 #192

Merged
merged 1 commit into from
Dec 8, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 4 additions & 28 deletions exercises/rna-transcription/uTestRnaTranscription.pas
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ interface
uses
DUnitX.TestFramework;

const
CanonicalVersion = '1.1.0';

type
[TestFixture]
RnaTranscriptionTest = class(TObject)
public
[Test]
// [Ignore('Comment the "[Ignore]" statement to run the test')]
// [Ignore('Comment the "[Ignore]" statement to run the test')]
procedure Rna_complement_of_cytosine_is_guanine;

[Test]
Expand All @@ -27,18 +30,6 @@ RnaTranscriptionTest = class(TObject)
[Test]
[Ignore]
procedure Rna_complement;

[Test]
[Ignore]
procedure Dna_correctly_handles_invalid_input;

[Test]
[Ignore]
procedure Dna_correctly_handles_completely_invalid_input;

[Test]
[Ignore]
procedure Dna_correctly_handles_partially_invalid_input;
end;

implementation
Expand Down Expand Up @@ -69,21 +60,6 @@ procedure RnaTranscriptionTest.Rna_complement;
Assert.AreEqual('UGCACCAGAAUU', complement.OfDna('ACGTGGTCTTAA'));
end;

procedure RnaTranscriptionTest.Dna_correctly_handles_invalid_input;
begin
Assert.AreEqual('', complement.OfDna('U'));
end;

procedure RnaTranscriptionTest.Dna_correctly_handles_completely_invalid_input;
begin
Assert.AreEqual('', complement.OfDna('XXX'));
end;

procedure RnaTranscriptionTest.Dna_correctly_handles_partially_invalid_input;
begin
Assert.AreEqual('', complement.OfDna('ACGTXXXCTTAA'));
end;

initialization
TDUnitX.RegisterTestFixture(RnaTranscriptionTest);
end.