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.119 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.118 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.117 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.116 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.115 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.114 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.113 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.111 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.110 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.109 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.108 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.107 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.106 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.105 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.104 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.103 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.102 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.101 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.100 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.99 tracks/julia/exercises/collatz-conjecture/runtests.jl