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.119 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.118 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.117 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.116 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.115 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.114 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.113 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.111 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.110 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.109 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.108 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.107 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.106 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.105 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.104 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.103 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.102 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.101 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.100 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs
trackler-2.2.1.99 tracks/fsharp/exercises/collatz-conjecture/CollatzConjectureTest.fs