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???")
|
|
|
|
})
|
2022-09-19 17:46:37 +00:00
|
|
|
|
|
|
|
describe("map", () => {
|
|
|
|
testEvalToBe("arr=[1,2,3]; map(arr, {|x| x*2})", "Ok([2,4,6])")
|
|
|
|
})
|