Correct formatting

This commit is contained in:
Morten Nygaard Åsnes 2017-10-08 17:57:29 +02:00
parent 1b852aeeb4
commit 8bc34db0f2

View file

@ -15,25 +15,24 @@ tests =
-- Once you get the first test passing, remove the -- Once you get the first test passing, remove the
-- `skip <|` (just leave the comma) on the next -- `skip <|` (just leave the comma) on the next
-- lines to continue! -- lines to continue!
, skip <| , skip <|
test "divide if even" <| test "divide if even" <|
\() -> \() ->
Expect.equal (Ok 4) (collatz 16) Expect.equal (Ok 4) (collatz 16)
, skip <| , skip <|
test "even and odd step" <| test "even and odd step" <|
\() -> \() ->
Expect.equal (Ok 9) (collatz 12) Expect.equal (Ok 9) (collatz 12)
, skip <| , skip <|
test "Large number of even and odd step" <| test "Large number of even and odd step" <|
\() -> \() ->
Expect.equal (Ok 152) (collatz 1000000) Expect.equal (Ok 152) (collatz 1000000)
, skip <| , skip <|
test "zero is an error" <| 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 <| , skip <|
test "negative values is an error" <| 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)
] ]