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,
environment,
evaluatePartialUsingExternalBindings,
evaluateUsingOptions,
externalBindings,
expressionValue,
recordEV,
@ -110,7 +111,10 @@ export function run(
? samplingInputs
: defaultSamplingInputs;
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));
}