8e318a8aa9
removed some extra array references rename Builder to ExpressionBuilder Expression Builder Trash Warning remove parsePartial/Outer, add context to lambda format module Bindings simplify types module Macro reduceValueList do macro call result map bindings stop replacing on macro calls Macro Test doBindStatement bind a statement bindings tested. TODO bind shadowing in lambda block tests defined block tests defined blocks tested macro lambda test defined
12 lines
330 B
Plaintext
12 lines
330 B
Plaintext
open ReducerInterface.ExpressionValue
|
|
open Jest
|
|
open Expect
|
|
|
|
describe("ExpressionValue", () => {
|
|
test("argsToString", () => expect([EvNumber(1.), EvString("a")]->argsToString)->toBe("1,'a'"))
|
|
|
|
test("toStringFunctionCall", () =>
|
|
expect(("fn", [EvNumber(1.), EvString("a")])->toStringFunctionCall)->toBe("fn(1,'a')")
|
|
)
|
|
})
|