Skip to content

Commit

Permalink
fix hypergeometric tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bvenn committed Aug 29, 2022
1 parent 2ded099 commit a551b2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/FSharp.Stats.Tests/Distributions.fs
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ let hypergeometricTests =
test "SampleUnchecked" {
let generateALL = Distributions.Discrete.Hypergeometric.Sample 40 20 40
let generate50 = Array.init 50 (fun x -> Distributions.Discrete.Hypergeometric.Sample 40 20 10)
let numbersAreBetween_1_K = generate50 |> Array.forall (fun x -> x > 0 && x < 20)
let numbersAreBetween_1_K = generate50 |> Array.forall (fun x -> x >= 0 && x <= 10)
// If N = n then k = K
Expect.equal generateALL 20 "generateALL"
Expect.isTrue numbersAreBetween_1_K "numbersAreBetween_1_K"
Expand Down

0 comments on commit a551b2d

Please sign in to comment.