File tree 1 file changed +44
-0
lines changed
exercises/nucleotide-count 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments