Sha256: 60daf882aed1736b92bb0d09c1b398bd801e95ca2806d3fdf679838ab4bc0ece

Contents?: true

Size: 930 Bytes

Versions: 76

Compression:

Stored size: 930 Bytes

Contents

// This file was auto-generated based on version 1.1.0 of the canonical data.

module PrimeFactorsTest

open FsUnit.Xunit
open Xunit

open PrimeFactors

[<Fact>]
let ``No factors`` () =
    factors 1L |> should be Empty

[<Fact(Skip = "Remove to run test")>]
let ``Prime number`` () =
    factors 2L |> should equal [2]

[<Fact(Skip = "Remove to run test")>]
let ``Square of a prime`` () =
    factors 9L |> should equal [3; 3]

[<Fact(Skip = "Remove to run test")>]
let ``Cube of a prime`` () =
    factors 8L |> should equal [2; 2; 2]

[<Fact(Skip = "Remove to run test")>]
let ``Product of primes and non-primes`` () =
    factors 12L |> should equal [2; 2; 3]

[<Fact(Skip = "Remove to run test")>]
let ``Product of primes`` () =
    factors 901255L |> should equal [5; 17; 23; 461]

[<Fact(Skip = "Remove to run test")>]
let ``Factors include a large prime`` () =
    factors 93819012551L |> should equal [11; 9539; 894119]

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/fsharp/exercises/prime-factors/PrimeFactorsTest.fs
trackler-2.2.1.179 tracks/fsharp/exercises/prime-factors/PrimeFactorsTest.fs
trackler-2.2.1.178 tracks/fsharp/exercises/prime-factors/PrimeFactorsTest.fs
trackler-2.2.1.177 tracks/fsharp/exercises/prime-factors/PrimeFactorsTest.fs
trackler-2.2.1.176 tracks/fsharp/exercises/prime-factors/PrimeFactorsTest.fs
trackler-2.2.1.175 tracks/fsharp/exercises/prime-factors/PrimeFactorsTest.fs
trackler-2.2.1.174 tracks/fsharp/exercises/prime-factors/PrimeFactorsTest.fs
trackler-2.2.1.173 tracks/fsharp/exercises/prime-factors/PrimeFactorsTest.fs
trackler-2.2.1.172 tracks/fsharp/exercises/prime-factors/PrimeFactorsTest.fs
trackler-2.2.1.171 tracks/fsharp/exercises/prime-factors/PrimeFactorsTest.fs
trackler-2.2.1.170 tracks/fsharp/exercises/prime-factors/PrimeFactorsTest.fs
trackler-2.2.1.169 tracks/fsharp/exercises/prime-factors/PrimeFactorsTest.fs
trackler-2.2.1.167 tracks/fsharp/exercises/prime-factors/PrimeFactorsTest.fs
trackler-2.2.1.166 tracks/fsharp/exercises/prime-factors/PrimeFactorsTest.fs
trackler-2.2.1.165 tracks/fsharp/exercises/prime-factors/PrimeFactorsTest.fs
trackler-2.2.1.164 tracks/fsharp/exercises/prime-factors/PrimeFactorsTest.fs
trackler-2.2.1.163 tracks/fsharp/exercises/prime-factors/PrimeFactorsTest.fs
trackler-2.2.1.162 tracks/fsharp/exercises/prime-factors/PrimeFactorsTest.fs
trackler-2.2.1.161 tracks/fsharp/exercises/prime-factors/PrimeFactorsTest.fs
trackler-2.2.1.160 tracks/fsharp/exercises/prime-factors/PrimeFactorsTest.fs