Sha256: 709516e9054e20526df9268e186e80cbdc72b46becde1950b299172dcf39c6e3

Contents?: true

Size: 1.8 KB

Versions: 134

Compression:

Stored size: 1.8 KB

Contents

{
  "exercise": "difference-of-squares",
  "version": "1.1.0",
  "cases": [
    {
      "description": "Square the sum of the numbers up to the given number",
      "cases": [
        {
          "description": "square of sum 1",
          "property": "squareOfSum",
          "number": 1,
          "expected": 1
        },
        {
          "description": "square of sum 5",
          "property": "squareOfSum",
          "number": 5,
          "expected": 225
        },
        {
          "description": "square of sum 100",
          "property": "squareOfSum",
          "number": 100,
          "expected": 25502500
        }
      ]
    },
    {
      "description": "Sum the squares of the numbers up to the given number",
      "cases": [
        {
          "description": "sum of squares 1",
          "property": "sumOfSquares",
          "number": 1,
          "expected": 1
        },
        {
          "description": "sum of squares 5",
          "property": "sumOfSquares",
          "number": 5,
          "expected": 55
        },
        {
          "description": "sum of squares 100",
          "property": "sumOfSquares",
          "number": 100,
          "expected": 338350
        }
      ]
    },
    {
      "description": "Subtract sum of squares from square of sums",
      "cases": [
        {
          "description": "difference of squares 1",
          "property": "differenceOfSquares",
          "number": 1,
          "expected": 0
        },
        {
          "description": "difference of squares 5",
          "property": "differenceOfSquares",
          "number": 5,
          "expected": 170
        },
        {
          "description": "difference of squares 100",
          "property": "differenceOfSquares",
          "number": 100,
          "expected": 25164150
        }
      ]
    }
  ]
}

Version data entries

134 entries across 134 versions & 1 rubygems

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