Skip to content

Commit 8080cea

Browse files
committed
Update SpecialFunctions.fs
1 parent 64ac64a commit 8080cea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/FSharp.Stats.Tests/SpecialFunctions.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ let factorialTests =
292292
Expect.floatClose Accuracy.high (Factorial._factorialLn 6942) 54467.727976695301612523565124699078303834231913072759124392135342 "factorialLn of large number failed"
293293
)
294294
testCase "_ln(0!) = 0" (fun _ ->
295-
Expect.equal (Factorial._factorialLn 0) 0. "Expected factorialLn of 0 to be 1."
295+
Expect.floatClose Accuracy.high (Factorial._factorialLn 0) 0. "Expected factorialLn of 0 to be 1."
296296
)
297297
testCase "_ln(69!)" (fun _ ->
298298
Expect.floatClose Accuracy.high 226.19054832372759333227016852232261788323276357495863628461257077 (Factorial._factorialLn 69) "Expected factorialLn of 69 to be 226.19054832372759333227016852232261788323276357495863628461257077"
@@ -310,7 +310,7 @@ let factorialTests =
310310
Expect.floatClose Accuracy.high (Factorial.factorialLn 6942) 54467.727976695301612523565124699078303834231913072759124392135342 "factorialLn of large number failed"
311311
)
312312
testCase "ln(0!) = 0" (fun _ ->
313-
Expect.equal (Factorial.factorialLn 0) 0. "Expected factorialLn of 0 to be 1."
313+
Expect.floatClose Accuracy.high (Factorial.factorialLn 0) 0. "Expected factorialLn of 0 to be 1."
314314
)
315315
testCase "ln(69!)" (fun _ ->
316316
Expect.floatClose Accuracy.high 226.19054832372759333227016852232261788323276357495863628461257077 (Factorial.factorialLn 69) "Expected factorialLn of 69 to be 226.19054832372759333227016852232261788323276357495863628461257077"

0 commit comments

Comments
 (0)