squiggle/packages/squiggle-lang/__tests__/TS/TestHelpers.ts

18 lines
376 B
TypeScript
Raw Normal View History

2022-04-20 03:42:24 +00:00
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");
}