From 16d9ba2dcf888f56ad85776c38e0d2adfe4c36fd Mon Sep 17 00:00:00 2001 From: Simon Jakobi Date: Sun, 17 Aug 2014 12:26:40 +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.js | 4 ++-- nucleotide-count/nucleotide-count_test.spec.js | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/nucleotide-count/example.js b/nucleotide-count/example.js index d2e6eb1a..546a39fc 100644 --- a/nucleotide-count/example.js +++ b/nucleotide-count/example.js @@ -5,7 +5,7 @@ var splitDNA = dnaString.split(''); this.nucleotideCounts = { A : 0, T : 0, C : 0, G : 0 }; - this.validNucleotides = 'ATCGU'; + this.validNucleotides = 'ATCG'; splitDNA.reduce(this.countAll, this.nucleotideCounts); } @@ -28,4 +28,4 @@ }; module.exports = DNA; -})(); \ No newline at end of file +})(); diff --git a/nucleotide-count/nucleotide-count_test.spec.js b/nucleotide-count/nucleotide-count_test.spec.js index 4c56763b..5428bfa3 100644 --- a/nucleotide-count/nucleotide-count_test.spec.js +++ b/nucleotide-count/nucleotide-count_test.spec.js @@ -35,11 +35,6 @@ describe('DNA', function() { expect(dna.count('T')).toEqual(2); }); - xit('has no uracil', function(){ - var dna = new DNA('GGTTGG'); - expect(dna.count('U')).toEqual(0); - }); - xit('validates nucleotides', function(){ var dna = new DNA('GGTTGG'); expect(function(){