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.38 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.37 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.36 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.35 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.34 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.33 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.32 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.31 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.30 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.29 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.28 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.27 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.26 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.25 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.24 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.23 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.22 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.21 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.20 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.19 tracks/gnu-apl/exercises/leap/leap.tc