Sha256: 805ff2ad9211131ae95a578db607141943a485e8f530197c5f4f3af973307f40

Contents?: true

Size: 1.84 KB

Versions: 206

Compression:

Stored size: 1.84 KB

Contents

{
    "square_of_sum": {
        "description": ["Square the sum of the numbers up to the given number"],
        "cases": [
            {
                "description": "square of sum 5",
                "number": 5,
                "expected": 225
            },
            {
                "description": "square of sum 10",
                "number": 10,
                "expected": 3025
            },
            {
                "description": "square of sum 100",
                "number": 100,
                "expected": 25502500
            }
        ]
    },
    "sum_of_squares": {
        "description": ["Sum the squares of the numbers up to the given number"],
        "cases": [
            {
                "description": "sum of squares 5",
                "number": 5,
                "expected": 55
            },
            {
                "description": "sum of squares 10",
                "number": 10,
                "expected": 385
            },
            {
                "description": "sum of squares 100",
                "number": 100,
                "expected": 338350
            }
        ]
    },
    "difference_of_squares": {
        "description": ["Subtract sum of squares from square of sums"],
        "cases": [
            {
                "description": "difference of squares 0",
                "number": 0,
                "expected": 0
            },
            {
                "description": "difference of squares 5",
                "number": 5,
                "expected": 170
            },
            {
                "description": "difference of squares 10",
                "number": 10,
                "expected": 2640
            },
            {
                "description": "difference of squares 100",
                "number": 100,
                "expected": 25164150
            }
        ]
    }
}

Version data entries

206 entries across 118 versions & 1 rubygems

Version Path
trackler-2.0.8.17 tracks/ocaml/tools/test-generator/test/difference_of_squares.json
trackler-2.0.8.16 tracks/ocaml/tools/test-generator/test/difference_of_squares.json
trackler-2.0.8.15 tracks/ocaml/tools/test-generator/test/difference_of_squares.json
trackler-2.0.8.15 common/exercises/difference-of-squares/canonical-data.json
trackler-2.0.8.14 common/exercises/difference-of-squares/canonical-data.json
trackler-2.0.8.14 tracks/ocaml/tools/test-generator/test/difference_of_squares.json
trackler-2.0.8.13 common/exercises/difference-of-squares/canonical-data.json
trackler-2.0.8.13 tracks/ocaml/tools/test-generator/test/difference_of_squares.json
trackler-2.0.8.12 common/exercises/difference-of-squares/canonical-data.json
trackler-2.0.8.12 tracks/ocaml/tools/test-generator/test/difference_of_squares.json
trackler-2.0.8.11 common/exercises/difference-of-squares/canonical-data.json
trackler-2.0.8.11 tracks/ocaml/tools/test-generator/test/difference_of_squares.json
trackler-2.0.8.10 common/exercises/difference-of-squares/canonical-data.json
trackler-2.0.8.10 tracks/ocaml/tools/test-generator/test/difference_of_squares.json
trackler-2.0.8.9 common/exercises/difference-of-squares/canonical-data.json
trackler-2.0.8.9 tracks/ocaml/tools/test-generator/test/difference_of_squares.json
trackler-2.0.8.8 common/exercises/difference-of-squares/canonical-data.json
trackler-2.0.8.8 tracks/ocaml/tools/test-generator/test/difference_of_squares.json
trackler-2.0.8.7 common/exercises/difference-of-squares/canonical-data.json
trackler-2.0.8.7 tracks/ocaml/tools/test-generator/test/difference_of_squares.json