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.119 tracks/julia/exercises/leap/runtests.jl
trackler-2.2.1.118 tracks/julia/exercises/leap/runtests.jl
trackler-2.2.1.117 tracks/julia/exercises/leap/runtests.jl
trackler-2.2.1.116 tracks/julia/exercises/leap/runtests.jl
trackler-2.2.1.115 tracks/julia/exercises/leap/runtests.jl
trackler-2.2.1.114 tracks/julia/exercises/leap/runtests.jl
trackler-2.2.1.113 tracks/julia/exercises/leap/runtests.jl
trackler-2.2.1.111 tracks/julia/exercises/leap/runtests.jl
trackler-2.2.1.110 tracks/julia/exercises/leap/runtests.jl
trackler-2.2.1.109 tracks/julia/exercises/leap/runtests.jl
trackler-2.2.1.108 tracks/julia/exercises/leap/runtests.jl
trackler-2.2.1.107 tracks/julia/exercises/leap/runtests.jl
trackler-2.2.1.106 tracks/julia/exercises/leap/runtests.jl
trackler-2.2.1.105 tracks/julia/exercises/leap/runtests.jl
trackler-2.2.1.104 tracks/julia/exercises/leap/runtests.jl
trackler-2.2.1.103 tracks/julia/exercises/leap/runtests.jl
trackler-2.2.1.102 tracks/julia/exercises/leap/runtests.jl
trackler-2.2.1.101 tracks/julia/exercises/leap/runtests.jl
trackler-2.2.1.100 tracks/julia/exercises/leap/runtests.jl
trackler-2.2.1.99 tracks/julia/exercises/leap/runtests.jl