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.1.0.46 tracks/perl6/exercises/leap/example.yaml
trackler-2.1.0.45 tracks/perl6/exercises/leap/example.yaml
trackler-2.1.0.44 tracks/perl6/exercises/leap/example.yaml
trackler-2.1.0.43 tracks/perl6/exercises/leap/example.yaml
trackler-2.1.0.42 tracks/perl6/exercises/leap/example.yaml
trackler-2.1.0.41 tracks/perl6/exercises/leap/example.yaml
trackler-2.1.0.40 tracks/perl6/exercises/leap/example.yaml
trackler-2.1.0.39 tracks/perl6/exercises/leap/example.yaml
trackler-2.1.0.38 tracks/perl6/exercises/leap/example.yaml
trackler-2.1.0.37 tracks/perl6/exercises/leap/example.yaml
trackler-2.1.0.36 tracks/perl6/exercises/leap/example.yaml
trackler-2.1.0.34 tracks/perl6/exercises/leap/example.yaml