fix: Failing tests

The tests were wrong, not the code. Feels like it should be
the other way around
This commit is contained in:
NunoSempere 2022-04-14 16:52:36 -04:00
parent 6d82adca25
commit 9910afd74b

View File

@ -57,8 +57,8 @@ describe("eval on distribution functions", () => {
describe("multiply", () => {
testEval("normal(10, 2) * 2", "Ok(Normal(20,4))")
testEval("2 * normal(10, 2)", "Ok(Normal(20,4))")
testEval("lognormal(5,2) * lognormal(10,2)", "Ok(Lognormal(15,4))")
testEval("lognormal(10, 2) * lognormal(5, 2)", "Ok(Lognormal(15,4))")
testEval("lognormal(5,2) * lognormal(10,2)", "Ok(Lognormal(15,2.8284271247461903))")
testEval("lognormal(10, 2) * lognormal(5, 2)", "Ok(Lognormal(15,2.8284271247461903))")
testEval("2 * lognormal(5, 2)", "Ok(Lognormal(5.693147180559945,2))")
testEval("lognormal(5, 2) * 2", "Ok(Lognormal(5.693147180559945,2))")
})