Fixed most tests

Value: [1e-5 to 1e-3]
This commit is contained in:
Quinn Dougherty 2022-04-29 15:02:24 -04:00
parent 0e9996256e
commit f05d089524

View File

@ -4,6 +4,7 @@ import {
samplingParams, samplingParams,
environment, environment,
evaluatePartialUsingExternalBindings, evaluatePartialUsingExternalBindings,
evaluateUsingOptions,
externalBindings, externalBindings,
expressionValue, expressionValue,
recordEV, recordEV,
@ -110,7 +111,10 @@ export function run(
? samplingInputs ? samplingInputs
: defaultSamplingInputs; : defaultSamplingInputs;
let e = environ ? environ : defaultEnvironment; let e = environ ? environ : defaultEnvironment;
let res: result<expressionValue, errorValue> = eval(squiggleString); // , b, e); let res: result<expressionValue, errorValue> = evaluateUsingOptions(
{ externalBindings: b, environment: e },
squiggleString
); // , b, e);
return resultMap(res, (x) => createTsExport(x, si)); return resultMap(res, (x) => createTsExport(x, si));
} }