Sha256: fa22e1878c08eb2798b17e8c966b11e00ba213d7721e8068b8734ff266ea1c93

Contents?: true

Size: 422 Bytes

Versions: 311

Compression:

Stored size: 422 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

311 entries across 311 versions & 1 rubygems

Version Path
trackler-2.0.6.40 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.6.39 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.6.38 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.6.37 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.6.36 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.6.35 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.6.34 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.6.33 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.6.32 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.6.31 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.6.30 tracks/julia/exercises/leap/runtests.jl