squiggle/packages/squiggle-lang/__tests__/ReducerInterface/ReducerInterface_ExpressionValue_test.res
2022-03-30 12:53:36 +02:00

12 lines
332 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')")
)
})