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