|
1 | 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 |
| 2 | + "exercise": "nucleotide-count", |
| 3 | + "version": "1.0.0", |
| 4 | + "cases": [ |
| 5 | + { |
| 6 | + "description": "count all nucleotides in a strand", |
| 7 | + "cases": [ |
| 8 | + { |
| 9 | + "description": "empty strand", |
| 10 | + "property": "nucleotideCounts", |
| 11 | + "strand": "", |
| 12 | + "expected": { |
| 13 | + "A": 0, |
| 14 | + "C": 0, |
| 15 | + "G": 0, |
| 16 | + "T": 0 |
| 17 | + } |
| 18 | + }, |
| 19 | + { |
| 20 | + "description": "strand with repeated nucleotide", |
| 21 | + "property": "nucleotideCounts", |
| 22 | + "strand": "GGGGGGG", |
| 23 | + "expected": { |
| 24 | + "A": 0, |
| 25 | + "C": 0, |
| 26 | + "G": 7, |
| 27 | + "T": 0 |
| 28 | + } |
| 29 | + }, |
| 30 | + { |
| 31 | + "description": "strand with multiple nucleotides", |
| 32 | + "property": "nucleotideCounts", |
| 33 | + "strand": "AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC", |
| 34 | + "expected": { |
| 35 | + "A": 20, |
| 36 | + "C": 12, |
| 37 | + "G": 17, |
| 38 | + "T": 21 |
| 39 | + } |
| 40 | + }, |
| 41 | + { |
| 42 | + "description": "strand with invalid nucleotides", |
| 43 | + "property": "nucleotideCounts", |
| 44 | + "strand": "AGXXACT", |
| 45 | + "expected": { |
| 46 | + "error": "Invalid nucleotide in strand" |
| 47 | + } |
13 | 48 | }
|
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 |
| - } |
| 49 | + ] |
| 50 | + } |
| 51 | + ] |
44 | 52 | }
|
0 commit comments