12 lines
300 B
Plaintext
12 lines
300 B
Plaintext
open Jest
|
|
open Reducer_TestHelpers
|
|
|
|
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])")
|
|
})
|