Sha256: d3cce49a1cdc175ac06c348343e4d4c17a1695a6ae94ab3c696ac0cb466b1cf6
Contents?: true
Size: 1.92 KB
Versions: 94
Compression:
Stored size: 1.92 KB
Contents
{ "exercise": "rna-transcription", "version": "1.0.1", "comments": [ "Language implementations vary on the issue of invalid input data.", "A language may elect to simplify this task by only presenting valid", "test cases. For languages handling invalid input data as", "error conditions, invalid test cases are included here and are", "indicated with an expected value of null. Note however that null is", "simply an indication here in the JSON. Actually returning null from", "a rna-transcription function may or may not be idiomatic in a language.", "Language idioms of errors or exceptions should be followed.", "Alternative interpretations such as ignoring excess length at the end", "are not represented here." ], "cases": [ { "description": "RNA complement of cytosine is guanine", "property": "toRna", "dna": "C", "expected": "G" }, { "description": "RNA complement of guanine is cytosine", "property": "toRna", "dna": "G", "expected": "C" }, { "description": "RNA complement of thymine is adenine", "property": "toRna", "dna": "T", "expected": "A" }, { "description": "RNA complement of adenine is uracil", "property": "toRna", "dna": "A", "expected": "U" }, { "description": "RNA complement", "property": "toRna", "dna": "ACGTGGTCTTAA", "expected": "UGCACCAGAAUU" }, { "description": "correctly handles invalid input (RNA instead of DNA)", "property": "toRna", "dna": "U", "expected": null }, { "description": "correctly handles completely invalid DNA input", "property": "toRna", "dna": "XXX", "expected": null }, { "description": "correctly handles partially invalid DNA input", "property": "toRna", "dna": "ACGTXXXCTTAA", "expected": null } ] }
Version data entries
94 entries across 94 versions & 1 rubygems