UNPKG

moy-fp

Version:
24 lines (20 loc) 377 B
import __ from '../../src/Function/__' /** * Ord a => a -> a -> a */ import min from '../../src/Relation/min' test('min(not using __), return first', () => { expect( min(2)(3) ).toBe(2) }) test('min(not using __), return second', () => { expect( min(2)(1) ).toBe(1) }) test('min(using __), return first', () => { expect( min(__, 3)(2) ).toBe(2) })