Sha256: f7b99280297aa6a3c53af39b4046a8c63c76716c3c9e67acfb69b20ee6e25d90
Contents?: true
Size: 455 Bytes
Versions: 72
Compression:
Stored size: 455 Bytes
Contents
exercise: Leap version: 1 plan: 6 imports: '&is-leap-year' tests: | is &::('is-leap-year')(.<input>), |.<expected description> for @($c-data<cases>); unit: module example: | sub is-leap-year ($year) is export { is-divisible($year, 400) || is-divisible($year, 4) && !is-divisible($year, 100); } sub is-divisible($year, $number) { $year % $number == 0 ?? True !! False; } stub: | sub is-leap-year ($year) is export { }
Version data entries
72 entries across 72 versions & 1 rubygems