Sha256: d83ec3f72c5091b2f026dfc11ab90a5411f1344fcbc7b1a7561ddb00b99ef596

Contents?: true

Size: 690 Bytes

Versions: 7

Compression:

Stored size: 690 Bytes

Contents

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
trackler-2.2.1.52 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.51 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.50 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.49 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.48 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.47 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.46 problem-specifications/exercises/leap/canonical-data.json