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.159 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.158 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.157 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.156 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.155 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.154 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.153 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.152 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.151 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.150 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.149 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.148 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.147 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.146 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.145 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.144 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.143 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.142 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.141 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.140 tracks/julia/exercises/collatz-conjecture/runtests.jl