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

Version Path
trackler-2.2.1.23 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.22 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.21 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.20 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.19 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.18 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.17 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.16 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.15 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.14 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.13 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.12 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.11 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.10 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.9 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.8 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.7 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.6 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.5 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.4 tracks/perl6/exercises/leap/example.yaml