squiggle/packages/squiggle-lang/__tests__/Reducer/Reducer_externalBindings_test.res
2022-04-17 20:36:04 +02:00

73 lines
1.2 KiB
Plaintext

open Jest
open Reducer_TestHelpers
Skip.describe("Parse for Bindings", () => {
testParseOuterToBe(
"x",
"????",
)
testParseOuterToBe(
"x+1",
"????",
)
testParseOuterToBe(
"y = x+1; y",
"????",
)
testParsePartialToBe(
"x",
"????",
)
testParsePartialToBe(
"y=x",
"????",
)
testParsePartialToBe(
"y=x+1",
"????",
)
testParsePartialToBe(
"y = x+1; z = y",
"????",
)
})
Skip.describe("Eval for Bindings", () => {
testEvalBindingsToBe(
"x",
list{("x", ExpressionValue.EvNumber(1.))},
"????",
)
testEvalBindingsToBe(
"x+1",
list{("x", ExpressionValue.EvNumber(1.))},
"????",
)
testEvalBindingsToBe(
"y = x+1; y",
list{("x", ExpressionValue.EvNumber(1.))},
"????",
)
testEvalPartialBindingsToBe(
"x",
list{("x", ExpressionValue.EvNumber(1.))},
"????",
)
testEvalPartialBindingsToBe(
"y=x",
list{("x", ExpressionValue.EvNumber(1.))},
"????",
)
testEvalBindingsToBe(
"y=x+1",
list{("x", ExpressionValue.EvNumber(1.))},
"????",
)
testEvalBindingsToBe(
"y = x+1; z = y",
list{("x", ExpressionValue.EvNumber(1.))},
"????",
)
})