mirror of
https://github.com/correl/elm.git
synced 2024-12-22 11:09:08 +00:00
Correct formatting
This commit is contained in:
parent
1b852aeeb4
commit
8bc34db0f2
1 changed files with 10 additions and 11 deletions
|
@ -15,25 +15,24 @@ tests =
|
|||
-- Once you get the first test passing, remove the
|
||||
-- `skip <|` (just leave the comma) on the next
|
||||
-- lines to continue!
|
||||
|
||||
, skip <|
|
||||
test "divide if even" <|
|
||||
\() ->
|
||||
Expect.equal (Ok 4) (collatz 16)
|
||||
\() ->
|
||||
Expect.equal (Ok 4) (collatz 16)
|
||||
, skip <|
|
||||
test "even and odd step" <|
|
||||
\() ->
|
||||
Expect.equal (Ok 9) (collatz 12)
|
||||
\() ->
|
||||
Expect.equal (Ok 9) (collatz 12)
|
||||
, skip <|
|
||||
test "Large number of even and odd step" <|
|
||||
\() ->
|
||||
Expect.equal (Ok 152) (collatz 1000000)
|
||||
\() ->
|
||||
Expect.equal (Ok 152) (collatz 1000000)
|
||||
, skip <|
|
||||
test "zero is an error" <|
|
||||
\() ->
|
||||
Expect.equal (Err "Only positive numbers are allowed") (collatz 0)
|
||||
\() ->
|
||||
Expect.equal (Err "Only positive numbers are allowed") (collatz 0)
|
||||
, skip <|
|
||||
test "negative values is an error" <|
|
||||
\() ->
|
||||
Expect.equal (Err "Only positive numbers are allowed") (collatz -15)
|
||||
\() ->
|
||||
Expect.equal (Err "Only positive numbers are allowed") (collatz -15)
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue