From db43ea8d87ec5067902afa62094ab7ae883b1132 Mon Sep 17 00:00:00 2001 From: Simon Jakobi Date: Sun, 17 Aug 2014 12:59:54 +0200 Subject: [PATCH] nucleotide-count: Remove special treatment of uracil For the related discussion see https://github.com/exercism/xpython/pull/98. --- nucleotide-count/example.coffee | 2 +- nucleotide-count/nucleotide-count_test.spec.coffee | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/nucleotide-count/example.coffee b/nucleotide-count/example.coffee index b3dae476..b2d0b92b 100644 --- a/nucleotide-count/example.coffee +++ b/nucleotide-count/example.coffee @@ -7,7 +7,7 @@ class DNA G: @value 'G' value: (nucleotide) -> - if nucleotide is 'U' then 0 else @strand.split(nucleotide).length - 1 + @strand.split(nucleotide).length - 1 count: (nucleotide) -> throw new Error('Invalid Nucleotide') if nucleotide not of @nucleotideCounts diff --git a/nucleotide-count/nucleotide-count_test.spec.coffee b/nucleotide-count/nucleotide-count_test.spec.coffee index 1edd6990..49aa0a1d 100644 --- a/nucleotide-count/nucleotide-count_test.spec.coffee +++ b/nucleotide-count/nucleotide-count_test.spec.coffee @@ -36,10 +36,6 @@ describe 'DNA', -> dna.count('T') expect(dna.count('T')).toEqual 2 - xit 'has no uracil', -> - dna = new DNA('GGTTGG') - expect(dna.value('U')).toEqual 0 - xit 'validates nucleotides', -> dna = new DNA('GGTTGG') expect ->