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.139 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.138 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.137 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.136 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.135 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.134 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.133 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.132 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.131 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.130 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.129 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.128 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.127 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.126 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.125 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.124 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.123 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.122 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.121 problem-specifications/exercises/matrix/canonical-data.json
trackler-2.2.1.120 problem-specifications/exercises/matrix/canonical-data.json