squiggle/packages/squiggle-lang/benchmark/conversion_tests.ts

10 lines
329 B
TypeScript
Raw Normal View History

2022-04-26 18:26:02 +00:00
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);
});