Sha256: 7652c5efab7ccb126cca154e6da385d179b354c85d98b084d2cf79a77c5531c6

Contents?: true

Size: 276 Bytes

Versions: 169

Compression:

Stored size: 276 Bytes

Contents

using Base.Test

include("collatz-conjecture.jl")

# canonical data
@test collatz_steps(1) == 0
@test collatz_steps(16) == 4
@test collatz_steps(12) == 9
@test collatz_steps(1000000) == 152
@test_throws DomainError collatz_steps(0)
@test_throws DomainError collatz_steps(-15)

Version data entries

169 entries across 169 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.179 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.178 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.177 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.176 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.175 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.174 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.173 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.172 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.171 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.170 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.169 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.167 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.166 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.165 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.164 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.163 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.162 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.161 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.160 tracks/julia/exercises/collatz-conjecture/runtests.jl