2022-10-11 01:53:16 +00:00
|
|
|
open Jest
|
|
|
|
open Reducer_TestHelpers
|
|
|
|
|
|
|
|
describe("Plot Library", () => {
|
2022-10-11 06:05:37 +00:00
|
|
|
testEvalToBe(
|
|
|
|
`Plot.dist({
|
2022-10-11 01:53:16 +00:00
|
|
|
show: [{
|
|
|
|
name: "normal",
|
|
|
|
value: normal(0, 1)
|
|
|
|
}, {
|
|
|
|
name: "lognormal",
|
|
|
|
value: 1 to 2
|
|
|
|
}, {
|
|
|
|
name: "constant",
|
|
|
|
value: 3
|
|
|
|
}]
|
2022-10-11 06:05:37 +00:00
|
|
|
})`,
|
|
|
|
"Ok(Plot showing normal,lognormal,constant)",
|
|
|
|
)
|
2022-10-11 01:53:16 +00:00
|
|
|
})
|