This commit is contained in:
Umur Ozkul 2022-04-22 21:16:27 +02:00
parent c79685699e
commit b683e720f1
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ describe("Parse for Bindings", () => {
)
})
describe("Parse for Bindings", () => {
describe("Parse Partial", () => {
testParsePartialToBe(
"x",
"Ok((:$$bindExpression (:$$bindStatement (:$$bindings) :x) (:$exportVariablesExpression)))",

View File

@ -122,7 +122,7 @@ let evalWBindingsExpression_ = (aExpression, bindings): result<expressionValue,
/*
Evaluates MathJs code via Reducer using bindings and answers the result.
When bindings are used, the code is a partial code as if it is cut from a larger code.
Therefore all statments are assignments.
Therefore all statements are assignments.
*/
let evalPartialWBindings_ = (codeText: string, bindings: T.bindings) => {
parsePartial(codeText)->Result.flatMap(expression =>