squiggle/packages/squiggle-lang/__tests__/ReducerInterface/ReducerInterface_ExpressionValue_test.res
2022-03-29 15:18:56 +02:00

12 lines
316 B
Plaintext

open ReducerInterface.ExpressionValue
open Jest
open Expect
describe("ExpressionValue", () => {
test("showArgs", () => expect([EvNumber(1.), EvString("a")]->showArgs)->toBe("1, 'a'"))
test("showFunctionCall", () =>
expect(("fn", [EvNumber(1.), EvString("a")])->showFunctionCall)->toBe("fn(1, 'a')")
)
})