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.180 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.179 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.178 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.177 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.176 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.175 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.174 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.173 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.172 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.171 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.170 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.169 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.167 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.166 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.165 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.164 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.163 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.162 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.161 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.160 tracks/gnu-apl/exercises/leap/leap.tc