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