moy-fp
Version:
A functional programming library.
18 lines (15 loc) • 348 B
JavaScript
import __ from '../../src/Function/__'
/**
* Number -> Number -> [a] -> [a]
*/
import sliceList from '../../src/List/sliceList'
test('sliceList(not using __)', () => {
expect(
sliceList(1)(-1)([1, 2, 3, 4])
).toEqual([2, 3])
})
test('sliceList(using __)', () => {
expect(
sliceList(1, __, [1, 2, 3, 4])(-1)
).toEqual([2, 3])
})