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

Version Path
trackler-2.2.1.98 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.97 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.96 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.95 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.94 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.93 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.92 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.91 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.90 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.89 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs