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