From 68fef1494e9ab13d4efad6567be5945322495698 Mon Sep 17 00:00:00 2001 From: Adam Morris Date: Sat, 25 Jan 2020 15:27:40 +1000 Subject: [PATCH] validates strand --- .../nucleotide-count/nucleotide-count_test.spec.coffee | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/exercises/nucleotide-count/nucleotide-count_test.spec.coffee b/exercises/nucleotide-count/nucleotide-count_test.spec.coffee index 49aa0a1d..cbbcd4fc 100644 --- a/exercises/nucleotide-count/nucleotide-count_test.spec.coffee +++ b/exercises/nucleotide-count/nucleotide-count_test.spec.coffee @@ -36,11 +36,17 @@ describe 'DNA', -> dna.count('T') expect(dna.count('T')).toEqual 2 + xit 'validates strand', -> + dna = new DNA('AGTXCG') + expect -> + dna.count 'G' + .toThrow new Error('Invalid nucleotide strand') + xit 'validates nucleotides', -> dna = new DNA('GGTTGG') expect -> dna.count 'X' - .toThrow new Error('Invalid Nucleotide') + .toThrow new Error('Invalid nucleotide') xit 'counts all nucleotides', -> dna = new DNA('AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC')