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