Sha256: 391f05d21f8f6de9018ec3c3fcd4f90694a108bc4e308eb38919b6f226f62e0b

Contents?: true

Size: 1.69 KB

Versions: 79

Compression:

Stored size: 1.69 KB

Contents

{
  "exercise": "matrix",
  "version": "1.0.0",
  "cases": [
    {
      "description": "extract row from one number matrix",
      "property": "row",
      "input": {
        "string": "1",
        "index": 0
      },
      "expected": [1]
    },
    {
      "description": "can extract row",
      "property": "row",
      "input": {
        "string": "1 2\n3 4",
        "index": 1
      },
      "expected": [3, 4]
    },
    {
      "description": "extract row where numbers have different widths",
      "property": "row",
      "input": {
        "string": "1 2\n10 20",
        "index": 1
      },
      "expected": [10, 20]
    },
    {
      "description": "can extract row from non-square matrix",
      "property": "row",
      "input": {
        "string": "1 2 3\n4 5 6\n7 8 9\n8 7 6",
        "index": 2
      },
      "expected": [7, 8, 9]
    },
    {
      "description": "extract column from one number matrix",
      "property": "column",
      "input": {
        "string": "1",
        "index": 0
      },
      "expected": [1]
    },
    {
      "description": "can extract column",
      "property": "column",
      "input": {
        "string": "1 2 3\n4 5 6\n7 8 9",
        "index": 2
      },
      "expected": [3, 6, 9]
    },
    {
      "description": "can extract column from non-square matrix",
      "property": "column",
      "input": {
        "string": "1 2 3\n4 5 6\n7 8 9\n8 7 6",
        "index": 2
      },
      "expected": [3, 6, 9, 6]
    },
    {
      "description": "extract column where numbers have different widths",
      "property": "column",
      "input": {
        "string": "89 1903 3\n18 3 1\n9 4 800",
        "index": 1
      },
      "expected": [1903, 3, 4]
    }
  ]
}

Version data entries

79 entries across 79 versions & 1 rubygems

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