squiggle/packages/squiggle-lang/__tests__/ReducerInterface/ReducerInterface_ExpressionValue_test.res
2022-08-19 21:12:04 +02:00

12 lines
342 B
Plaintext

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