squiggle/packages/squiggle-lang/__tests__/Distributions/AlgebraicShapeCombination_test.res
2022-04-25 14:52:52 -04:00

17 lines
426 B
Plaintext

open Jest
open TestHelpers
describe("Combining Continuous and Discrete Distributions", () => {
makeTest(
"keep order of xs when multiplying by negative number",
AlgebraicShapeCombination.isOrdered(
AlgebraicShapeCombination.combineShapesContinuousDiscrete(
#Multiply,
{xs: [0., 1.], ys: [1., 1.]},
{xs: [-1.], ys: [1.]},
),
), // Multiply distribution by -1
true,
)
})