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.78 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.77 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.76 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.75 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.74 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.73 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.72 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.71 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.70 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.69 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.68 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.67 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.66 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.65 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.64 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.63 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.62 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.61 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.60 tracks/julia/exercises/collatz-conjecture/runtests.jl
trackler-2.2.1.59 tracks/julia/exercises/collatz-conjecture/runtests.jl