moy-fp
Version:
A functional programming library.
30 lines (25 loc) • 506 B
JavaScript
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()
})