UNPKG

moy-fp

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