2020-03-23 21:31:06 +00:00
|
|
|
open Jest;
|
|
|
|
open Expect;
|
|
|
|
|
|
|
|
describe("Shape", () => {
|
|
|
|
describe("Parser", () => {
|
|
|
|
test("", () => {
|
2020-03-24 00:04:48 +00:00
|
|
|
let parsed1 = MathJsParser.fromString("mm(normal(0,1), normal(10,1))");
|
|
|
|
Js.log(parsed1 |> E.R.fmap(Jstat.toString));
|
|
|
|
Js.log(parsed1 |> E.R.fmap(Jstat.toShape(20)));
|
2020-03-23 21:31:06 +00:00
|
|
|
expect(1.0) |> toEqual(1.0);
|
|
|
|
})
|
|
|
|
})
|
|
|
|
});
|