Sha256: cb730ee37c4b69f34bea6304a69217a978b16b5e32292e1a0dc03855274dc138
Contents?: true
Size: 804 Bytes
Versions: 90
Compression:
Stored size: 804 Bytes
Contents
// This file was auto-generated based on version 1.2.0 of the canonical data. module CollatzConjectureTest open FsUnit.Xunit open Xunit open CollatzConjecture [<Fact>] let ``Zero steps for one`` () = steps 1 |> should equal (Some 0) [<Fact(Skip = "Remove to run test")>] let ``Divide if even`` () = steps 16 |> should equal (Some 4) [<Fact(Skip = "Remove to run test")>] let ``Even and odd steps`` () = steps 12 |> should equal (Some 9) [<Fact(Skip = "Remove to run test")>] let ``Large number of even and odd steps`` () = steps 1000000 |> should equal (Some 152) [<Fact(Skip = "Remove to run test")>] let ``Zero is an error`` () = steps 0 |> should equal None [<Fact(Skip = "Remove to run test")>] let ``Negative value is an error`` () = steps -15 |> should equal None
Version data entries
90 entries across 90 versions & 1 rubygems