Sha256: 1ef4a727606c58eaf1e29a2f134a3865486b543a0caa0b3edfc93d25604052fd

Contents?: true

Size: 793 Bytes

Versions: 157

Compression:

Stored size: 793 Bytes

Contents

{
  "exercise": "leap",
  "version": "1.3.0",
  "cases": [
    {
      "description": "year not divisible by 4: common year",
      "property": "leapYear",
      "input": {
        "year": 2015
      },
      "expected": false
    },
    {
      "description": "year divisible by 4, not divisible by 100: leap year",
      "property": "leapYear",
      "input": {
        "year": 1996
      },
      "expected": true
    },
    {
      "description": "year divisible by 100, not divisible by 400: common year",
      "property": "leapYear",
      "input": {
        "year": 2100
      },
      "expected": false
    },
    {
      "description": "year divisible by 400: leap year",
      "property": "leapYear",
      "input": {
        "year": 2000
      },
      "expected": true
    }
  ]
}

Version data entries

157 entries across 87 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/ocaml/tools/test-generator/test/leap.json
trackler-2.2.1.180 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.179 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.179 tracks/ocaml/tools/test-generator/test/leap.json
trackler-2.2.1.178 tracks/ocaml/tools/test-generator/test/leap.json
trackler-2.2.1.178 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.177 tracks/ocaml/tools/test-generator/test/leap.json
trackler-2.2.1.177 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.176 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.176 tracks/ocaml/tools/test-generator/test/leap.json
trackler-2.2.1.175 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.175 tracks/ocaml/tools/test-generator/test/leap.json
trackler-2.2.1.174 tracks/ocaml/tools/test-generator/test/leap.json
trackler-2.2.1.174 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.173 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.173 tracks/ocaml/tools/test-generator/test/leap.json
trackler-2.2.1.172 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.172 tracks/ocaml/tools/test-generator/test/leap.json
trackler-2.2.1.171 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.171 tracks/ocaml/tools/test-generator/test/leap.json