UNPKG

moy-fp

Version:
30 lines (25 loc) 506 B
import __ from '../../src/Function/__' /** * Ord a => a -> a -> Boolean */ import gte from '../../src/Relation/gte' test('gte(not using __), return false', () => { expect( gte(2)(1) ).toBeFalsy() }) test('gte(not using __), not equals, return true', () => { expect( gte(2)(3) ).toBeTruthy() }) test('gte(not using __), equals, return true', () => { expect( gte(2)(2) ).toBeTruthy() }) test('gte(using __), return false', () => { expect( gte(__, 1)(2) ).toBeFalsy() })