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.58 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.57 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.56 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.55 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.54 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.53 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.52 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.51 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.50 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.49 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.48 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.47 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.46 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.45 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.44 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.43 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.42 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.41 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.40 tracks/gnu-apl/exercises/leap/leap.tc
trackler-2.2.1.39 tracks/gnu-apl/exercises/leap/leap.tc