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.159 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.158 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.157 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.156 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.155 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.154 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.153 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.152 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.151 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.150 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.149 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.148 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.147 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.146 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.145 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.144 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.143 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.142 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.141 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.140 problem-specifications/exercises/matrix/canonical-data.json