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