squiggle/packages/squiggle-lang/__tests__/ReducerInterface/ReducerInterface_ExpressionValue_test.res
2022-09-19 23:10:09 +04:00

15 lines
344 B
Plaintext

open Jest
open Expect
describe("ExpressionValue", () => {
test("argsToString", () => expect(
[IEvNumber(1.), IEvString("a")]->Reducer_Value.argsToString)->toBe("1,'a'")
)
test("toStringFunctionCall", () =>
expect(
("fn", [IEvNumber(1.), IEvString("a")])->Reducer_Value.toStringFunctionCall)->toBe("fn(1,'a')"
)
)
})