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.3 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.2 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.1 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.0 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.0.6 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.0.5 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.0.4 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.0.3 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.0.2 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.0.1 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.0.0 tracks/perl6/exercises/leap/example.yaml
trackler-2.1.0.55 tracks/perl6/exercises/leap/example.yaml
trackler-2.1.0.54 tracks/perl6/exercises/leap/example.yaml
trackler-2.1.0.53 tracks/perl6/exercises/leap/example.yaml
trackler-2.1.0.52 tracks/perl6/exercises/leap/example.yaml
trackler-2.1.0.51 tracks/perl6/exercises/leap/example.yaml
trackler-2.1.0.50 tracks/perl6/exercises/leap/example.yaml
trackler-2.1.0.49 tracks/perl6/exercises/leap/example.yaml
trackler-2.1.0.48 tracks/perl6/exercises/leap/example.yaml
trackler-2.1.0.47 tracks/perl6/exercises/leap/example.yaml