squiggle/packages/squiggle-lang/benchmark/conversion_tests.ts
2022-04-26 14:26:02 -04:00

10 lines
329 B
TypeScript

import { generateNormal } from "./generators";
import { test, expectEqual } from "./lib";
test("mean is the same under point set transform", () => {
let normal = generateNormal();
let symbolicMean = `mean(${normal})`;
let pointSetMean = `mean(toPointSet(${normal}))`;
return expectEqual(symbolicMean, pointSetMean);
});