Skip to content

Commit

Permalink
nucleotide-count: Add a single character case (#951)
Browse files Browse the repository at this point in the history
Add test case for input string containing only one character.
  • Loading branch information
Vankog authored and Insti committed Oct 14, 2017
1 parent 3d03c78 commit 64f27d4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion exercises/nucleotide-count/canonical-data.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"exercise": "nucleotide-count",
"version": "1.0.0",
"version": "1.1.0",
"cases": [
{
"description": "count all nucleotides in a strand",
Expand All @@ -27,6 +27,17 @@
"T": 0
}
},
{
"description": "can count one nucleotide in single-character input",
"property": "nucleotideCounts",
"strand": "G",
"expected": {
"A": 0,
"C": 0,
"G": 1,
"T": 0
}
},
{
"description": "strand with multiple nucleotides",
"property": "nucleotideCounts",
Expand Down

0 comments on commit 64f27d4

Please sign in to comment.