moy-fp
Version:
A functional programming library.
18 lines (15 loc) • 353 B
JavaScript
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])
})