ac9a468aa6
this will allow complicated changes to execution without changing the typescript interface
12 lines
338 B
Plaintext
12 lines
338 B
Plaintext
open ReducerInterface.ExternalExpressionValue
|
|
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')")
|
|
)
|
|
})
|