2020-02-18 15:50:36 +00:00
|
|
|
open Jest;
|
|
|
|
open Expect;
|
|
|
|
|
2020-02-23 13:27:52 +00:00
|
|
|
let shape: DistTypes.xyShape = {xs: [|1., 4., 8.|], ys: [|8., 9., 2.|]};
|
2020-02-18 15:50:36 +00:00
|
|
|
|
2020-02-23 13:27:52 +00:00
|
|
|
let step: DistTypes.xyShape = {
|
2020-02-19 17:47:25 +00:00
|
|
|
xs: [|1., 4., 8.|],
|
|
|
|
ys: [|8., 17., 19.|],
|
2020-02-23 13:27:52 +00:00
|
|
|
} /* }*/ /* )*/;
|
2020-02-18 15:50:36 +00:00
|
|
|
|
2020-02-22 11:07:17 +00:00
|
|
|
// describe("Shape", () =>
|
|
|
|
// describe("XYShape", () => {
|
|
|
|
// test("#ySum", () =>
|
|
|
|
// expect(XYShape.ySum(shape)) |> toEqual(19.0)
|
|
|
|
// );
|
|
|
|
// test("#yFOo", () =>
|
2020-02-23 13:27:52 +00:00
|
|
|
// expect(Discrete.integrate(shape)) |> toEqual(step)
|