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.1.0.0 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.8.55 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.8.54 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.8.53 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.8.52 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.8.51 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.8.50 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.8.49 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.8.48 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.8.47 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.8.46 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.8.45 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.8.44 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.8.43 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.8.42 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.8.41 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.8.40 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.8.39 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.8.38 tracks/julia/exercises/leap/runtests.jl
trackler-2.0.8.37 tracks/julia/exercises/leap/runtests.jl