Sha256: 7a6a696670d772f6d464a93b2ef0b00cfe9696c52a557502817e30d8107100e5

Contents?: true

Size: 1.68 KB

Versions: 87

Compression:

Stored size: 1.68 KB

Contents

{
  "exercise": "nucleotide-count",
  "version": "1.3.0",
  "cases": [
    {
      "description": "count all nucleotides in a strand",
      "cases": [
        {
          "description": "empty strand",
          "property": "nucleotideCounts",
          "input": {
            "strand": ""
          },
          "expected": {
            "A": 0,
            "C": 0,
            "G": 0,
            "T": 0
          }
        },
        {
          "description": "can count one nucleotide in single-character input",
          "property": "nucleotideCounts",
          "input": {
            "strand": "G"
          },
          "expected": {
            "A": 0,
            "C": 0,
            "G": 1,
            "T": 0
          }
        },
        {
          "description": "strand with repeated nucleotide",
          "property": "nucleotideCounts",
          "input": {
            "strand": "GGGGGGG"
          },
          "expected": {
            "A": 0,
            "C": 0,
            "G": 7,
            "T": 0
          }
        },
        {
          "description": "strand with multiple nucleotides",
          "property": "nucleotideCounts",
          "input": {
            "strand": "AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC"
          },
          "expected": {
            "A": 20,
            "C": 12,
            "G": 17,
            "T": 21
          }
        },
        {
          "description": "strand with invalid nucleotides",
          "property": "nucleotideCounts",
          "input": {
            "strand": "AGXXACT"
          },
          "expected": {
            "error": "Invalid nucleotide in strand"
          }
        }
      ]
    }
  ]
}

Version data entries

87 entries across 87 versions & 1 rubygems

Version Path
trackler-2.2.1.180 problem-specifications/exercises/nucleotide-count/canonical-data.json
trackler-2.2.1.179 problem-specifications/exercises/nucleotide-count/canonical-data.json
trackler-2.2.1.178 problem-specifications/exercises/nucleotide-count/canonical-data.json
trackler-2.2.1.177 problem-specifications/exercises/nucleotide-count/canonical-data.json
trackler-2.2.1.176 problem-specifications/exercises/nucleotide-count/canonical-data.json
trackler-2.2.1.175 problem-specifications/exercises/nucleotide-count/canonical-data.json
trackler-2.2.1.174 problem-specifications/exercises/nucleotide-count/canonical-data.json
trackler-2.2.1.173 problem-specifications/exercises/nucleotide-count/canonical-data.json
trackler-2.2.1.172 problem-specifications/exercises/nucleotide-count/canonical-data.json
trackler-2.2.1.171 problem-specifications/exercises/nucleotide-count/canonical-data.json
trackler-2.2.1.170 problem-specifications/exercises/nucleotide-count/canonical-data.json
trackler-2.2.1.169 problem-specifications/exercises/nucleotide-count/canonical-data.json
trackler-2.2.1.167 problem-specifications/exercises/nucleotide-count/canonical-data.json
trackler-2.2.1.166 problem-specifications/exercises/nucleotide-count/canonical-data.json
trackler-2.2.1.165 problem-specifications/exercises/nucleotide-count/canonical-data.json
trackler-2.2.1.164 problem-specifications/exercises/nucleotide-count/canonical-data.json
trackler-2.2.1.163 problem-specifications/exercises/nucleotide-count/canonical-data.json
trackler-2.2.1.162 problem-specifications/exercises/nucleotide-count/canonical-data.json
trackler-2.2.1.161 problem-specifications/exercises/nucleotide-count/canonical-data.json
trackler-2.2.1.160 problem-specifications/exercises/nucleotide-count/canonical-data.json