mirror of
https://github.com/correl/elm.git
synced 2024-12-22 19:17:27 +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
|
-- 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)
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue