Made new test call polymorphic constructor #ToFloat
This commit is contained in:
parent
d682f28faf
commit
20114d9a84
|
@ -85,7 +85,7 @@ describe("(Symbolic) mean", () => {
|
||||||
let betaDistribution = SymbolicDist.Beta.fromMeanAndStdev(mean, stdev)
|
let betaDistribution = SymbolicDist.Beta.fromMeanAndStdev(mean, stdev)
|
||||||
let meanValue =
|
let meanValue =
|
||||||
betaDistribution->E.R2.fmap(d =>
|
betaDistribution->E.R2.fmap(d =>
|
||||||
run(FromDist(ToFloat(#Mean), d->DistributionTypes.Symbolic))
|
run(FromDist(#ToFloat(#Mean), d->DistributionTypes.Symbolic))
|
||||||
)
|
)
|
||||||
switch meanValue {
|
switch meanValue {
|
||||||
| Ok(value) => value->unpackFloat->expect->toBeCloseTo(mean)
|
| Ok(value) => value->unpackFloat->expect->toBeCloseTo(mean)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user