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.98 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.97 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.96 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.95 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.94 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.93 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.92 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.91 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.90 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.89 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.88 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.87 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.86 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.85 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.84 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.83 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.82 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.81 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.80 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.79 tracks/julia/exercises/collatz-conjecture/runtests.jl