UNPKG

moy-fp

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