eval partial all tested
This commit is contained in:
parent
2aa3a5ac48
commit
b903863fe7
|
@ -39,7 +39,7 @@ describe("Eval with Bindings", () => {
|
||||||
Partial code is a partial code fragment that is cut out from a larger code.
|
Partial code is a partial code fragment that is cut out from a larger code.
|
||||||
Therefore it does not end with an expression.
|
Therefore it does not end with an expression.
|
||||||
*/
|
*/
|
||||||
Only.describe("Eval Partial", () => {
|
describe("Eval Partial", () => {
|
||||||
testEvalPartialBindingsToBe(
|
testEvalPartialBindingsToBe(
|
||||||
// A partial cannot end with an expression
|
// A partial cannot end with an expression
|
||||||
"x",
|
"x",
|
||||||
|
@ -52,7 +52,7 @@ Only.describe("Eval Partial", () => {
|
||||||
list{("x", ExpressionValue.EvNumber(1.))},
|
list{("x", ExpressionValue.EvNumber(1.))},
|
||||||
"Ok({x: 1, y: 2})",
|
"Ok({x: 1, y: 2})",
|
||||||
)
|
)
|
||||||
MyOnly.testEvalPartialBindingsToBe(
|
testEvalPartialBindingsToBe(
|
||||||
"y = x+1; z = y",
|
"y = x+1; z = y",
|
||||||
list{("x", ExpressionValue.EvNumber(1.))},
|
list{("x", ExpressionValue.EvNumber(1.))},
|
||||||
"Ok({x: 1, y: 2, z: 2})",
|
"Ok({x: 1, y: 2, z: 2})",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user