Sha256: e5b8b01003ecfda3a8b34bf3858aa17abf904ea07dc6488ec2689908931cfe60

Contents?: true

Size: 690 Bytes

Versions: 39

Compression:

Stored size: 690 Bytes

Contents

{
  "exercise": "leap",
  "version": "1.2.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": 1996,
      "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

39 entries across 39 versions & 1 rubygems

Version Path
trackler-2.2.1.91 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.90 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.89 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.88 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.87 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.86 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.85 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.84 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.83 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.82 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.81 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.80 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.79 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.78 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.77 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.76 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.75 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.74 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.73 problem-specifications/exercises/leap/canonical-data.json
trackler-2.2.1.72 problem-specifications/exercises/leap/canonical-data.json