squiggle/packages/squiggle-lang/__tests__/Distributions/Scale_test.res
Quinn Dougherty 2d84805f88 Added infinity error; fixed infinities in logs
Value: [1e-3 to 3e-2]
2022-05-02 17:15:23 -04:00

20 lines
414 B
Plaintext

/*
This test case comes via Nuño https://github.com/quantified-uncertainty/squiggle/issues/433
*/
open Jest
open Expect
open TestHelpers
describe("", () => {
test("", () => {
let scalelog = DistributionOperation.Constructors.scaleLogarithm(~env, mkExponential(10.0), 2.0)
E.R2.bind(DistributionOperation.Constructors.mean(~env), scalelog)
->expect
->toEqual(Ok(-2.348336572091017))
})
})