Skip to content

Commit 32f4315

Browse files
committed
Add exception tests
1 parent 6691185 commit 32f4315

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

exercises/nucleotide-count/canonical-data.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@
2525
"strand": "CGATTGGG",
2626
"nucleotide": "T",
2727
"expected": 2
28+
},
29+
{
30+
"description": "validates nucleotides in requested nucleotide",
31+
"strand": "GACT",
32+
"nucleotide": "X",
33+
"expected": {
34+
"error": "Invalid requested nucleotide"
35+
}
2836
}
2937
]
3038
},
@@ -60,6 +68,14 @@
6068
"G": 17,
6169
"T": 21
6270
}
71+
},
72+
{
73+
"description": "validates nucleotides in the strand",
74+
"strand": "AGXXACT",
75+
"nucleotide": "A",
76+
"expected": {
77+
"error": "Invalid nucleotide in strand"
78+
}
6379
}
6480
]
6581
}

0 commit comments

Comments
 (0)