Sha256: 9668871b69ac65c53647c3a0eb8b8221189799b994f4cda11906e7188cda2ef1

Contents?: true

Size: 415 Bytes

Versions: 9

Compression:

Stored size: 415 Bytes

Contents

using Base.Test

include("leap.jl")

@testset "Year not divisible by 4: common year" begin
  @test !is_leap_year(2015)
end

@testset "Year divisible by 4, not divisible by 100: leap year" begin
  @test is_leap_year(2016)
end

@testset "Year divisible by 100, not divisible by 400: common year" begin
  @test !is_leap_year(2100)
end

@testset "Year divisible by 400: leap year" begin
  @test is_leap_year(2000)
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
trackler-2.0.6.29 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.6.28 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.6.27 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.6.26 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.6.25 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.6.24 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.6.23 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.6.22 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.6.21 tracks/julia/exercises/leap/runtests.jl