Sha256: 0cb04cadee3f922d13bd5cd9a756518c01df1200be6613e7487187a0eae53591

Contents?: true

Size: 462 Bytes

Versions: 160

Compression:

Stored size: 462 Bytes

Contents

log←'./leap.tc.log'
⍎ ')COPY ',(⎕FIO 30),'/../../test.apl'

test∆copy_relative 'leap.apl'
test∆clear_log log

⍝ ∇leap_year

⍝ year not divisible by 4: common year
  1⎕CR leap_year 2015
0

⍝ year divisible by 4, not divisible by 100: leap year
  1⎕CR leap_year 2016
1

⍝ year divisible by 100, not divisible by 400: common year
  1⎕CR leap_year 2100
0

⍝ year divisible by 400: leap year
  1⎕CR leap_year 2000
1

test∆show_log log

Version data entries

160 entries across 160 versions & 1 rubygems

Version Path
trackler-2.2.1.98 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.97 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.96 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.95 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.94 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.93 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.92 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.91 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.90 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.89 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.88 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.87 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.86 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.85 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.84 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.83 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.82 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.81 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.80 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.79 tracks/gnu-apl/exercises/leap/leap.tc