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.139 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.138 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.137 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.136 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.135 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.134 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.133 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.132 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.131 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.130 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.129 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.128 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.127 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.126 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.125 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.124 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.123 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.122 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.121 tracks/julia/exercises/gigasecond/runtests.jl
trackler-2.2.1.120 tracks/julia/exercises/gigasecond/runtests.jl