squiggle/packages/squiggle-lang/__tests__/ReducerInterface/ReducerInterface_ExpressionValue_test.res

12 lines
330 B
Plaintext
Raw Permalink Normal View History

2022-03-29 09:09:59 +00:00
open ReducerInterface.ExpressionValue
2022-03-24 12:41:31 +00:00
open Jest
open Expect
2022-03-29 09:09:59 +00:00
describe("ExpressionValue", () => {
test("argsToString", () => expect([EvNumber(1.), EvString("a")]->argsToString)->toBe("1,'a'"))
2022-03-24 12:41:31 +00:00
2022-03-30 10:53:36 +00:00
test("toStringFunctionCall", () =>
expect(("fn", [EvNumber(1.), EvString("a")])->toStringFunctionCall)->toBe("fn(1,'a')")
2022-03-24 12:41:31 +00:00
)
})