|
1 | 1 | {
|
2 |
| - "#": [ |
3 |
| - "Language implementations vary on the issue of invalid input data.", |
4 |
| - "A language may elect to simplify this task by only presenting valid", |
5 |
| - "test cases. For languages handling invalid input data as", |
6 |
| - "error conditions, invalid test cases are included here and are", |
7 |
| - "indicated with an expected value of null. Note however that null is", |
8 |
| - "simply an indication here in the JSON. Actually returning null from", |
9 |
| - "a rna-transcription function may or may not be idiomatic in a language.", |
10 |
| - "Language idioms of errors or exceptions should be followed.", |
11 |
| - "Alternative interpretations such as ignoring excess length at the end", |
12 |
| - "are not represented here." |
13 |
| - ], |
14 |
| - "cases": [ |
15 |
| - { |
16 |
| - "description": "rna complement of cytosine is guanine", |
17 |
| - "dna" : "C", |
18 |
| - "expected": "G" |
19 |
| - }, |
20 |
| - { |
21 |
| - "description": "rna complement of guanine is cytosine", |
22 |
| - "dna": "G", |
23 |
| - "expected": "C" |
24 |
| - }, |
25 |
| - { |
26 |
| - "description": "rna complement of thymine is adenine", |
27 |
| - "dna": "T", |
28 |
| - "expected": "A" |
29 |
| - }, |
30 |
| - { |
31 |
| - "description": "rna complement of adenine is uracil", |
32 |
| - "dna": "A", |
33 |
| - "expected": "U" |
34 |
| - }, |
35 |
| - { |
36 |
| - "description": "rna complement", |
37 |
| - "dna": "ACGTGGTCTTAA", |
38 |
| - "expected": "UGCACCAGAAUU" |
39 |
| - }, |
40 |
| - { |
41 |
| - "description": "dna correctly handles invalid input", |
42 |
| - "dna": "U", |
43 |
| - "expected": null |
44 |
| - }, |
45 |
| - { |
46 |
| - "description": "dna correctly handles completely invalid input", |
47 |
| - "dna": "XXX", |
48 |
| - "expected": null |
49 |
| - }, |
50 |
| - { |
51 |
| - "description": "dna correctly handles partially invalid input", |
52 |
| - "dna": "ACGTXXXCTTAA", |
53 |
| - "expected": null |
54 |
| - } |
55 |
| - ] |
| 2 | + "exercise": "rna-transcription", |
| 3 | + "version": "1.0.0", |
| 4 | + "comments": [ |
| 5 | + "Language implementations vary on the issue of invalid input data.", |
| 6 | + "A language may elect to simplify this task by only presenting valid", |
| 7 | + "test cases. For languages handling invalid input data as", |
| 8 | + "error conditions, invalid test cases are included here and are", |
| 9 | + "indicated with an expected value of null. Note however that null is", |
| 10 | + "simply an indication here in the JSON. Actually returning null from", |
| 11 | + "a rna-transcription function may or may not be idiomatic in a language.", |
| 12 | + "Language idioms of errors or exceptions should be followed.", |
| 13 | + "Alternative interpretations such as ignoring excess length at the end", |
| 14 | + "are not represented here." |
| 15 | + ], |
| 16 | + "cases": [ |
| 17 | + { |
| 18 | + "description": "rna complement of cytosine is guanine", |
| 19 | + "property": "toRna", |
| 20 | + "dna": "C", |
| 21 | + "expected": "G" |
| 22 | + }, |
| 23 | + { |
| 24 | + "description": "rna complement of guanine is cytosine", |
| 25 | + "property": "toRna", |
| 26 | + "dna": "G", |
| 27 | + "expected": "C" |
| 28 | + }, |
| 29 | + { |
| 30 | + "description": "rna complement of thymine is adenine", |
| 31 | + "property": "toRna", |
| 32 | + "dna": "T", |
| 33 | + "expected": "A" |
| 34 | + }, |
| 35 | + { |
| 36 | + "description": "rna complement of adenine is uracil", |
| 37 | + "property": "toRna", |
| 38 | + "dna": "A", |
| 39 | + "expected": "U" |
| 40 | + }, |
| 41 | + { |
| 42 | + "description": "rna complement", |
| 43 | + "property": "toRna", |
| 44 | + "dna": "ACGTGGTCTTAA", |
| 45 | + "expected": "UGCACCAGAAUU" |
| 46 | + }, |
| 47 | + { |
| 48 | + "description": "dna correctly handles invalid input", |
| 49 | + "property": "toRna", |
| 50 | + "dna": "U", |
| 51 | + "expected": null |
| 52 | + }, |
| 53 | + { |
| 54 | + "description": "dna correctly handles completely invalid input", |
| 55 | + "property": "toRna", |
| 56 | + "dna": "XXX", |
| 57 | + "expected": null |
| 58 | + }, |
| 59 | + { |
| 60 | + "description": "dna correctly handles partially invalid input", |
| 61 | + "property": "toRna", |
| 62 | + "dna": "ACGTXXXCTTAA", |
| 63 | + "expected": null |
| 64 | + } |
| 65 | + ] |
56 | 66 | }
|
0 commit comments