squiggle/packages/squiggle-lang/__tests__/Reducer/Reducer_mapReduce_test.res

12 lines
300 B
Plaintext
Raw Permalink Normal View History

2022-05-04 13:46:00 +00:00
open Jest
open Reducer_TestHelpers
2022-05-04 18:44:46 +00:00
Skip.describe("map reduce (sam)", () => {
testEvalToBe("addone(x)=x+1; map(2, addone)", "Error???")
testEvalToBe("addone(x)=x+1; map(2, {x: addone})", "Error???")
})
describe("map", () => {
testEvalToBe("arr=[1,2,3]; map(arr, {|x| x*2})", "Ok([2,4,6])")
})