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