Sha256: 4d08192d4e6123ef15df884dc92d5a57b11d94c8c2bac30f2705e25c07481ff0

Contents?: true

Size: 1.49 KB

Versions: 117

Compression:

Stored size: 1.49 KB

Contents

{
  "cases": [
    {
      "description": "paired square brackets",
      "input": "[]",
      "expected": true
    },
    {
      "description": "empty string",
      "input": "",
      "expected": true
    },
    {
      "description": "unpaired brackets",
      "input": "[[",
      "expected": false
    },
    {
      "description": "wrong ordered brackets",
      "input": "}{",
      "expected": false
    },
    {
      "description": "paired with whitespace",
      "input": "{ }",
      "expected": true
    },
    {
      "description": "simple nested brackets",
      "input": "{[]}",
      "expected": true
    },
    {
      "description": "several paired brackets",
      "input": "{}[]",
      "expected": true
    },
    {
      "description": "paired and nested brackets",
      "input": "([{}({}[])])",
      "expected": true
    },
    {
      "description": "unopened closing brackets",
      "input": "{[)][]}",
      "expected": false
    },
    {
      "description": "unpaired and nested brackets",
      "input": "([{])",
      "expected": false
    },
    {
      "description": "paired and wrong nested brackets",
      "input": "[({]})",
      "expected": false
    },
    {
      "description": "math expression",
      "input": "(((185 + 223.85) * 15) - 543)/2",
      "expected": true
    },
    {
      "description": "complex latex expression",
      "input": "\\left(\\begin{array}{cc} \\frac{1}{3} & x\\\\ \\mathrm{e}^{x} &... x^2 \\end{array}\\right)",
      "expected": true
    }
  ]
}

Version data entries

117 entries across 117 versions & 1 rubygems

Version Path
trackler-2.0.5.0 common/exercises/bracket-push/canonical-data.json
trackler-2.0.4.0 common/exercises/bracket-push/canonical-data.json
trackler-2.0.3.9 common/exercises/bracket-push/canonical-data.json
trackler-2.0.3.8 common/exercises/bracket-push/canonical-data.json
trackler-2.0.3.7 common/exercises/bracket-push/canonical-data.json
trackler-2.0.3.6 common/exercises/bracket-push/canonical-data.json
trackler-2.0.3.5 common/exercises/bracket-push/canonical-data.json
trackler-2.0.3.4 common/exercises/bracket-push/canonical-data.json
trackler-2.0.3.3 common/exercises/bracket-push/canonical-data.json
trackler-2.0.3.2 common/exercises/bracket-push/canonical-data.json
trackler-2.0.3.1 common/exercises/bracket-push/canonical-data.json
trackler-2.0.3.0 common/exercises/bracket-push/canonical-data.json
trackler-2.0.2.0 common/exercises/bracket-push/canonical-data.json
trackler-2.0.1.2 common/exercises/bracket-push/canonical-data.json
trackler-2.0.1.1 common/exercises/bracket-push/canonical-data.json
trackler-2.0.1.0 common/exercises/bracket-push/canonical-data.json
trackler-2.0.0.10 common/exercises/bracket-push/canonical-data.json
trackler-2.0.0.9 common/exercises/bracket-push/canonical-data.json
trackler-2.0.0.8 common/exercises/bracket-push/canonical-data.json
trackler-2.0.0.7 common/exercises/bracket-push/canonical-data.json