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