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.180 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.179 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.178 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.177 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.176 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.175 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.174 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.173 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.172 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.171 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.170 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.169 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.167 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.166 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.165 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.164 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.163 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.162 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.161 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.160 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs