squiggle/packages/squiggle-lang/__tests__/TS/TestHelpers.ts
2022-04-19 23:42:24 -04:00

18 lines
376 B
TypeScript

import {
run,
Distribution,
squiggleExpression,
errorValueToString,
errorValue,
result,
} from "../../src/js/index";
export function testRun(x: string): any {
//: result<squiggleExpression, errorValue> => {
return run(x, { sampleCount: 1000, xyPointLength: 100 });
}
export function failDefault() {
expect("be reached").toBe("codepath should never be");
}