squiggle/packages/squiggle-lang/__tests__/Distributions/AlgebraicShapeCombination_test.res

18 lines
440 B
Plaintext
Raw Normal View History

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