2022-04-25 15:44:50 +00:00
|
|
|
open Jest
|
|
|
|
open TestHelpers
|
|
|
|
|
|
|
|
describe("combine with discrete", () => {
|
|
|
|
makeTest(
|
|
|
|
"keep order when multiplying by negative number",
|
2022-04-25 18:50:45 +00:00
|
|
|
AlgebraicShapeCombination.isOrdered(
|
2022-04-25 15:44:50 +00:00
|
|
|
AlgebraicShapeCombination.combineShapesContinuousDiscrete(
|
|
|
|
#Multiply,
|
|
|
|
{xs: [0., 1.], ys: [1., 1.]},
|
|
|
|
{xs: [-1.], ys: [1.]},
|
|
|
|
),
|
|
|
|
), // Multiply distribution by -1
|
|
|
|
true,
|
|
|
|
)
|
|
|
|
})
|