Sha256: 96b6ca2a211e0ebf1effda8202e2bc594600b71172f97dbf69ef85cb47f9a2c2

Contents?: true

Size: 1.14 KB

Versions: 162

Compression:

Stored size: 1.14 KB

Contents

{
  "exercise": "flatten-array",
  "version": "1.1.0",
  "cases": [
    {
      "description": "no nesting",
      "property": "flatten",
      "input": [0, 1, 2],
      "expected": [0, 1, 2]
    },
    {
      "description": "flattens array with just integers present",
      "property": "flatten",
      "input": [1, [2, 3, 4, 5, 6, 7], 8],
      "expected": [1, 2, 3, 4, 5, 6, 7, 8]
    },
    {
      "description": "5 level nesting",
      "property": "flatten",
      "input": [0, 2, [[2, 3], 8, 100, 4, [[[50]]]], -2],
      "expected": [0, 2, 2, 3, 8, 100, 4, 50, -2]
    },
    {
      "description": "6 level nesting",
      "property": "flatten",
      "input": [1, [2, [[3]], [4, [[5]]], 6, 7], 8],
      "expected": [1, 2, 3, 4, 5, 6, 7, 8]
    },
    {
      "description": "6 level nest list with null values",
      "property": "flatten",
      "input": [0, 2, [[2, 3], 8, [[100]], null, [[null]]], -2],
      "expected": [0, 2, 2, 3, 8, 100, -2]
    },
    {
      "description": "all values in nested list are null",
      "property": "flatten",
      "input": [null, [[[null]]], null, null, [[null, null], null], null],
      "expected": []
    }
  ]
}

Version data entries

162 entries across 162 versions & 1 rubygems

Version Path
trackler-2.2.1.84 problem-specifications/exercises/flatten-array/canonical-data.json
trackler-2.2.1.83 problem-specifications/exercises/flatten-array/canonical-data.json
trackler-2.2.1.82 problem-specifications/exercises/flatten-array/canonical-data.json
trackler-2.2.1.81 problem-specifications/exercises/flatten-array/canonical-data.json
trackler-2.2.1.80 problem-specifications/exercises/flatten-array/canonical-data.json
trackler-2.2.1.79 problem-specifications/exercises/flatten-array/canonical-data.json
trackler-2.2.1.78 problem-specifications/exercises/flatten-array/canonical-data.json
trackler-2.2.1.77 problem-specifications/exercises/flatten-array/canonical-data.json
trackler-2.2.1.76 problem-specifications/exercises/flatten-array/canonical-data.json
trackler-2.2.1.75 problem-specifications/exercises/flatten-array/canonical-data.json
trackler-2.2.1.74 problem-specifications/exercises/flatten-array/canonical-data.json
trackler-2.2.1.73 problem-specifications/exercises/flatten-array/canonical-data.json
trackler-2.2.1.72 problem-specifications/exercises/flatten-array/canonical-data.json
trackler-2.2.1.71 problem-specifications/exercises/flatten-array/canonical-data.json
trackler-2.2.1.70 problem-specifications/exercises/flatten-array/canonical-data.json
trackler-2.2.1.69 problem-specifications/exercises/flatten-array/canonical-data.json
trackler-2.2.1.68 problem-specifications/exercises/flatten-array/canonical-data.json
trackler-2.2.1.67 problem-specifications/exercises/flatten-array/canonical-data.json
trackler-2.2.1.66 problem-specifications/exercises/flatten-array/canonical-data.json
trackler-2.2.1.65 problem-specifications/exercises/flatten-array/canonical-data.json