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.43 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.42 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.41 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.40 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.39 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.38 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.37 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.36 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.35 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.34 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.33 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.32 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.31 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.30 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.29 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.28 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.27 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.26 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.25 tracks/perl6/exercises/leap/example.yaml
trackler-2.2.1.24 tracks/perl6/exercises/leap/example.yaml