Skip to content
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
8 changes: 7 additions & 1 deletion exercises/nucleotide-count/nucleotide-count_test.spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down