squiggle/packages/squiggle-lang/__tests__/Bandwidth_test.res

14 lines
306 B
Plaintext
Raw Permalink Normal View History

2022-01-29 22:43:08 +00:00
open Jest
open Expect
describe("Bandwidth", () => {
test("nrd0()", () => {
let data = [1., 4., 3., 2.]
2022-02-06 23:54:19 +00:00
expect(Bandwidth.nrd0(data)) -> toEqual(0.7625801874014622)
2022-01-29 22:43:08 +00:00
})
test("nrd()", () => {
let data = [1., 4., 3., 2.]
2022-02-06 23:54:19 +00:00
expect(Bandwidth.nrd(data)) -> toEqual(0.8981499984950554)
2022-01-29 22:43:08 +00:00
})
})