2022-04-12 21:06:53 +00:00
|
|
|
open Jest
|
|
|
|
open Expect
|
|
|
|
open TestHelpers
|
|
|
|
|
|
|
|
describe("Mean", () => {
|
|
|
|
|
|
|
|
let distributions = list{
|
|
|
|
normalMake(0.0, 1e0),
|
|
|
|
betaMake(2e0, 4e0),
|
|
|
|
exponentialMake(1.234e0),
|
|
|
|
uniformMake(7e0, 1e1),
|
2022-04-12 21:56:59 +00:00
|
|
|
// cauchyMake(1e0, 1e0),
|
2022-04-12 21:06:53 +00:00
|
|
|
lognormalMake(1e0, 1e0),
|
|
|
|
triangularMake(1e0, 1e1, 5e1),
|
|
|
|
floatMake(1e1)
|
|
|
|
}
|
2022-04-12 21:56:59 +00:00
|
|
|
let digits = 7
|
|
|
|
|
|
|
|
testAll("addition", () => {
|
2022-04-12 21:06:53 +00:00
|
|
|
true -> expect -> toBe(true)
|
|
|
|
})
|
|
|
|
})
|