UNPKG

moy-fp

Version:
18 lines (15 loc) 329 B
import __ from '../../src/Function/__' /** * Number -> a -> [a] -> [a] */ import insert from '../../src/List/insert' test('insert(not using __)', () => { expect( insert(1)(2)([1, 3, 4]) ).toEqual([1, 2, 3, 4]) }) test('insert(using __)', () => { expect( insert(1, __, [1, 3, 4])(2) ).toEqual([1, 2, 3, 4]) })