Sha256: e39390f179df24ffef3d5bc70ed391f1b772fc4d2f73d0f93d7b46fa78701304

Contents?: true

Size: 509 Bytes

Versions: 307

Compression:

Stored size: 509 Bytes

Contents

using Base.Test

include("gigasecond.jl")

samples = Dict(
    DateTime("2011-04-25") => DateTime("2043-01-01T01:46:40"),
    DateTime("1977-06-13") => DateTime("2009-02-19T01:46:40"),
    DateTime("1959-07-19") => DateTime("1991-03-27T01:46:40"),
    DateTime("2015-01-24T22:00:00") => DateTime("2046-10-02T23:46:40"),
    DateTime("2015-01-24T23:59:59") => DateTime("2046-10-03T01:46:39")
)

@testset "add gigasecond to $sample[1]" for sample in samples
    @test add_gigasecond(sample[1]) == sample[2]
end

Version data entries

307 entries across 307 versions & 1 rubygems

Version Path
trackler-2.2.1.159 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.158 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.157 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.156 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.155 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.154 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.153 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.152 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.151 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.150 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.149 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.148 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.147 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.146 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.145 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.144 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.143 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.142 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.141 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.140 tracks/julia/exercises/gigasecond/runtests.jl