squiggle/__tests__/CDFunctor__Test.re
2020-02-21 16:17:32 +03:00

16 lines
418 B
ReasonML

open Jest;
open Expect;
describe("CDF", () => {
module CDF =
CDFunctor.Make({
let shape: DistributionTypes.xyShape =
CDFunctor.order({xs: [|1., 4., 8.|], ys: [|8., 9., 2.|]});
});
test("order", () => {
Js.log(CDFunctor.order({xs: [|1., 4., 8.|], ys: [|8., 9., 2.|]}));
Js.log(CDFunctor.order({xs: [|10., 5., 12.|], ys: [|8., 9., 2.|]}));
expect(19.0) |> toEqual(19.0);
});
});