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.58 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.57 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.56 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.55 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.54 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.53 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.52 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.51 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.50 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.49 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.48 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.47 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.46 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.45 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.44 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.43 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.42 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.41 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.40 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.39 tracks/julia/exercises/collatz-conjecture/runtests.jl