From c060304161730f4b6dec4283d8c8a3bc5ffbd7c3 Mon Sep 17 00:00:00 2001 From: Sam Nolan Date: Tue, 11 Oct 2022 12:53:16 +1100 Subject: [PATCH] Add simple plot test --- .../SquiggleLibrary_Plot_test.res | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 packages/squiggle-lang/__tests__/SquiggleLibrary/SquiggleLibrary_Plot_test.res diff --git a/packages/squiggle-lang/__tests__/SquiggleLibrary/SquiggleLibrary_Plot_test.res b/packages/squiggle-lang/__tests__/SquiggleLibrary/SquiggleLibrary_Plot_test.res new file mode 100644 index 00000000..75ab0e66 --- /dev/null +++ b/packages/squiggle-lang/__tests__/SquiggleLibrary/SquiggleLibrary_Plot_test.res @@ -0,0 +1,17 @@ +open Jest +open Reducer_TestHelpers + +describe("Plot Library", () => { + testEvalToBe(`Plot.dist({ + show: [{ + name: "normal", + value: normal(0, 1) + }, { + name: "lognormal", + value: 1 to 2 + }, { + name: "constant", + value: 3 + }] +})`, "Ok(Plot showing normal,lognormal,constant)") +})