Skip to content

Commit ab2a8d5

Browse files
bunnymaticpetertseng
authored andcommitted
1 parent 343c937 commit ab2a8d5

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"nucleotide_counts": {
3+
"description": "count all nucleotides in a strand",
4+
"cases": [
5+
{
6+
"description": "empty strand",
7+
"strand": "",
8+
"expected": {
9+
"A": 0,
10+
"C": 0,
11+
"G": 0,
12+
"T": 0
13+
}
14+
},
15+
{
16+
"description": "strand with repeated nucleotide",
17+
"strand": "GGGGGGG",
18+
"expected": {
19+
"A": 0,
20+
"C": 0,
21+
"G": 7,
22+
"T": 0
23+
}
24+
},
25+
{
26+
"description": "strand with multiple nucleotides",
27+
"strand": "AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC",
28+
"expected": {
29+
"A": 20,
30+
"C": 12,
31+
"G": 17,
32+
"T": 21
33+
}
34+
},
35+
{
36+
"description": "strand with invalid nucleotides",
37+
"strand": "AGXXACT",
38+
"expected": {
39+
"error": "Invalid nucleotide in strand"
40+
}
41+
}
42+
]
43+
}
44+
}

0 commit comments

Comments
 (0)